:root {
  color-scheme: light;
  --paper: #f4f2ed;
  --black: #22211f;
  --muted: #6d6a66;
  --rule: rgba(38, 35, 32, .17);
  --max: 1460px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--black); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
/* Dark surfaces below the photographs; hero colours remain independent. */
.site-page {
  --paper: #111111;
  --black: #f4f2ed;
  --muted: #aaa7a2;
  --rule: rgba(244, 242, 237, .2);
}
.site-page .empty { color: var(--muted); }
.site-page .project-description { color: #c7c4be; }
a { color: inherit; }
button { font: inherit; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 20; background: white; color: black; padding: .8rem 1rem; }
.skip:focus { top: 1rem; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  min-height: 100svh;
  overflow: hidden;
  background: #3a3b38;
  color: #f7f5f1;
  display: flex;
  flex-direction: column;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 10, 10, .44) 0%, rgba(9, 10, 10, .14) 65%, rgba(9, 10, 10, .17) 100%), linear-gradient(0deg, rgba(9, 10, 10, .36), transparent 36%);
}
.hero.tone-dark { color: #20221f; background: #d7d5cb; }
.hero.tone-dark::after { background: linear-gradient(90deg, rgba(255, 255, 252, .6), rgba(255, 255, 252, .09) 72%), linear-gradient(0deg, rgba(255, 255, 252, .15), transparent 33%); }
.site-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: clamp(24px, 3.4vw, 54px) clamp(22px, 4.6vw, 76px);
  z-index: 2;
}
.wordmark { text-decoration: none; text-transform: uppercase; white-space: nowrap; letter-spacing: .22em; font-size: .76rem; font-weight: 600; line-height: 1.5; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(18px, 2.7vw, 45px); }
.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: calc(.67rem + 0.5px);
  font-weight: 500;
  letter-spacing: .18em;
  position: relative;
  opacity: .76;
  padding-bottom: 7px;
  transition: opacity 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 0; left: 0; width: calc(100% - .18em); height: 1px; background: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 4.6vw, 76px);
  padding-top: 80px;
  padding-bottom: clamp(70px, 8.6vh, 116px);
  width: 100%;
}
.kicker { font-size: .64rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .25em; font-weight: 500; margin: 0 0 20px 4px; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(4.1rem, 10.2vw, 10.4rem); letter-spacing: -.066em; line-height: .98; margin: 0; max-width: 1300px; }
.hero[data-page="about"] h1 { font-size: clamp(4.25rem, 11vw, 10.8rem); }
.hero-sub { font-size: clamp(.85rem, 1.2vw, 1rem); letter-spacing: .02em; line-height: 1.8; max-width: 510px; margin: 27px 0 0 5px; font-weight: 400; }
.hero[data-page="contact"] .hero-sub + .hero-sub { margin-top: 8px; }
.hero-footer {
  position: absolute;
  right: clamp(22px, 4.6vw, 76px);
  bottom: clamp(35px, 5.7vw, 80px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: calc(.66rem + 0.5px);
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .88;
  text-decoration: none;
}
.hero-footer svg { height: 18px; width: 18px; }
.hero-footer.hidden { display: none; }
.content {
  padding: clamp(64px, 9vw, 145px) clamp(22px, 4.6vw, 76px) 120px;
  max-width: 1800px;
  margin: 0 auto;
  min-height: 220px;
}
.content-topline { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(38px, 5vw, 85px); }
.section-label, .index-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .22em; }
.index-label { color: var(--muted); }
.empty { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(1.6rem, 3vw, 3rem); color: #8a8780; font-weight: 400; }
.projects-list { border-top: 1px solid var(--rule); }
.project { padding: clamp(26px, 4vw, 58px) 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 2fr) minmax(180px, .9fr); gap: clamp(18px, 4vw, 65px); align-items: start; }
.project-type { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding-top: 10px; }
.project-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(1.75rem, 3vw, 3.6rem); letter-spacing: -.04em; line-height: 1.12; }
.project-description { font-size: .87rem; line-height: 1.8; max-width: 560px; margin: 20px 0 0; color: #54514c; }
.project-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding-top: 10px; }
.project-links a { text-decoration: none; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.project-links a:hover { opacity: .55; }
.project-license { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.contact-link { display: inline-block; color: inherit; text-underline-offset: .13em; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule); padding: 25px clamp(22px, 4.6vw, 76px); background: var(--paper); font-size: calc(.65rem + 0.5px); color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }
@media (max-width: 860px) {
    .project { grid-template-columns: 1fr; gap: 14px; }
  .project-links { padding-top: 4px; }
  .hero-footer { bottom: 28px; }
}
@media (max-width: 600px) {
  .hero { min-height: 620px; min-height: 100svh; }
  .site-header { display: block; padding-top: 25px; }
  .site-nav { margin-top: 23px; justify-content: flex-start; gap: 17px 24px; }
  .site-nav a { font-size: calc(.62rem + 0.5px); }
  .hero-main { padding-bottom: 110px; }
  .hero[data-page="about"] h1 { font-size: clamp(3.7rem, 15.2vw, 6.2rem); }
  h1 { font-size: clamp(3.45rem, 13.8vw, 6.3rem); }
  .hero-sub { max-width: 320px; font-size: .85rem; }
  .hero-footer { left: 22px; right: auto; bottom: 33px; }
    .content { padding-bottom: 75px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; } }

/* Photography archive: image proportions determine thumbnail widths. */
.photography-archive {
  max-width: 1592px;
  padding-top: clamp(48px, 5vw, 76px);
}
.photography-archive .content-topline { margin-bottom: 32px; }
.photo-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.photo-card { margin: 0; width: calc(200px * var(--ratio, 1.5)); max-width: 100%; }
.photo-button { display: block; width: 100%; height: 100%; background: transparent; cursor: zoom-in; text-decoration: none; }
.photo-button img { display: block; width: 100%; height: auto; object-fit: contain; }
.photo-button:focus-visible { outline: 2px solid #f4f2ed; outline-offset: 5px; }
.photo-grid.is-arranged { position: relative; display: block; }
.photo-grid.is-arranged .photo-card { position: absolute; }
.photo-grid.is-arranged .photo-button img { height: 100%; }
.photo-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  overflow: hidden;
  color: #f4f2ed;
  background: #0b0b0b;
  overscroll-behavior: none;
  color-scheme: dark;
}
.photo-dialog:not([open]) { display: none; }
.photo-dialog[open] { display: block; }
.viewer-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; background: #0b0b0b; }
.photo-dialog::backdrop { background: #0b0b0b; }
.viewer-shell:fullscreen { background: #0b0b0b; width: 100%; height: 100%; }
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 6px max(26px, env(safe-area-inset-left));
  gap: 16px;
}
.viewer-counter { font-size: .68rem; letter-spacing: .18em; color: #c7c4be; font-variant-numeric: tabular-nums; }
.viewer-actions { display: flex; gap: 4px; }
.viewer-control {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  color: #e1dfda;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.viewer-control[hidden] { display: none; }
.viewer-control svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.viewer-control:focus-visible { outline: 1px solid #f4f2ed; outline-offset: 2px; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 4px 80px; touch-action: pan-y pinch-zoom; }
.viewer-image { display: block; width: auto; height: auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; opacity: .88; transition: opacity 160ms ease; }
.viewer-image.is-ready { opacity: 1; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.viewer-prev { left: max(14px, env(safe-area-inset-left)); }
.viewer-next { right: max(14px, env(safe-area-inset-right)); }
.viewer-footer { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; min-height: 48px; padding: 12px 24px max(16px, env(safe-area-inset-bottom)); text-align: center; }
.viewer-hint { color: #a8a6a1; font-size: .64rem; letter-spacing: .09em; }
.viewer-status { font-size: .72rem; color: #d4d0c8; }
.viewer-status:empty { display: none; }
@media (hover: hover) {
  .viewer-control:hover { color: #fff; background: #222; }
}
@media (max-width: 600px) {
  .photography-archive .content-topline { margin-bottom: 24px; gap: 16px; }
  .photography-archive .section-label, .photography-archive .index-label { font-size: .6rem; letter-spacing: .12em; }
  .photo-grid { gap: 12px; }
  .photo-card { width: min(100%, calc(150px * var(--ratio, 1.5))); }
  .viewer-toolbar { padding-left: 20px; padding-right: 8px; }
  .viewer-stage { padding: 0 12px 48px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 0; transform: none; }
  .viewer-prev { left: calc(50% - 60px); }
  .viewer-next { right: calc(50% - 60px); }
  .viewer-footer { min-height: 40px; padding-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .viewer-image, .viewer-control { transition: none; }
}

/* Only the requested section labels grow; index labels retain their scale. */
.section-label { font-size: calc(.65rem + 0.5px); }
@media (max-width: 600px) { .photography-archive .section-label { font-size: calc(.6rem + 0.5px); } }
/* Responsive photographs are chosen by picture, without a JavaScript fetch. */
.hero-media { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; transform: scale(1.005); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position, center center); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Publication rows retain the existing type scale and reveal every download. */
.project { grid-template-columns: minmax(92px, .36fr) minmax(0, 1.75fr) minmax(245px, 1fr); }
.project > * { min-width: 0; }
.project-downloads { display: grid; gap: 26px; padding-top: 10px; }
.document-label { font-size: .87rem; line-height: 1.8; margin: 0; }
.document-edition { margin: 4px 0 0; }
.document-download .project-links { flex-direction: row; flex-wrap: wrap; gap: 24px; padding-top: 8px; }
.document-download .project-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
.project-material-label { margin: 18px 0 8px; }
.project-body > .project-license { display: inline-block; text-underline-offset: 3px; }
.project-body > p.project-license { display: block; }

/* Support uses the existing hero, project-body and supplementary type sizes. */
.hero[data-page="support"] { background: #1b0808; }
.hero[data-page="support"]::after { background: linear-gradient(90deg, rgba(17,5,5,.67), rgba(17,5,5,.31) 72%), linear-gradient(0deg, rgba(17,5,5,.48), transparent 65%); }
.support-main { justify-content: center; padding-top: 48px; padding-bottom: 70px; }
.support-inner { display: grid; grid-template-columns: minmax(0, 510px) minmax(0, 450px); gap: clamp(40px, 6vw, 110px); align-items: start; max-width: 1100px; }
.support-intro .hero-sub { margin-left: 0; }
.support-intro .hero-sub:first-child { margin-top: 0; }
.support-payment { min-width: 0; }
.transfer-heading { font-size: .68rem; font-weight: 400; text-transform: uppercase; letter-spacing: .16em; line-height: 1.8; margin: 0 0 18px; }
.payment-details { margin: 0; font-size: .87rem; line-height: 1.8; }
.payment-row { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 14px; padding: 6px 0; align-items: baseline; }
.payment-row dt { color: inherit; opacity: .76; }
.payment-row dd { margin: 0; min-width: 0; }
.copy-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.bank-code { font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; }
.copy-button { min-height: 44px; min-width: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.copy-button[hidden] { display: none; }
.bank-address, .transfer-questions, .copy-status { color: inherit; max-width: 450px; margin: 16px 0 0; }
.bank-address { opacity: .82; }
.copy-status { min-height: 1.5em; margin-top: 8px; }
.transfer-questions a { text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .project { grid-template-columns: 1fr; gap: 14px; }
  .project-downloads { padding-top: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .support-inner { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .support-main { padding-top: 36px; padding-bottom: 50px; }
  .hero[data-page="support"] .hero-media { height: 100svh; bottom: auto; }
  .hero[data-page="support"]::after { height: 100svh; bottom: auto; background: linear-gradient(90deg, rgba(17,5,5,.62), rgba(17,5,5,.25)), linear-gradient(0deg, #1b0808 0%, transparent 55%); }
}

/* A composition-led image frame on narrow portrait screens. */
@media (max-width: 860px) and (orientation: portrait) {
  .hero-media img { object-position: var(--hero-mobile-position, var(--hero-position, center center)); }
  .hero[data-page="photography"] { min-height: min(100svh, 177.7778vw); }
  .site-header { display: block; }
  .wordmark[aria-hidden="true"] { display: none; }
  .site-nav { margin-top: 0; justify-content: flex-start; column-gap: 24px; row-gap: 4px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 0; }
  .site-nav a[aria-current="page"]::after { bottom: 5px; }
  .hero[data-page="contact"] .site-nav { margin-top: 16px; }
  .hero[data-mobile-frame="panel"] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto min(125vw, 70svh) auto; min-height: 0; background: #111; }
  .hero[data-mobile-frame="panel"]::after { display: none; }
  .hero[data-mobile-frame="panel"] .site-header { grid-area: 1 / 1; padding-bottom: 16px; }
  .hero[data-mobile-frame="panel"] .hero-media { grid-area: 2 / 1; position: relative; inset: auto; z-index: 0; transform: none; min-height: 0; }
  .hero[data-mobile-frame="panel"] .hero-main { grid-area: 3 / 1; flex: none; padding: 28px 22px 40px; justify-content: flex-start; }
  .hero[data-mobile-frame="panel"] .hero-sub { margin-left: 0; margin-top: 0; }
  .hero[data-page="projects"][data-mobile-frame="panel"] { grid-template-rows: auto auto auto; }
  .hero[data-page="projects"] .hero-media { width: 100%; aspect-ratio: 4 / 3; }
  .hero[data-page="projects"] .hero-main { display: none; }
  .hero[data-mobile-frame="panel"] .hero-footer { grid-area: 3 / 1; position: static; margin: 0; min-height: 64px; padding: 18px 22px; justify-self: start; }
}

@media (max-width: 600px) {
  .hero-media img { object-position: var(--hero-mobile-position, var(--hero-position, center center)); }
  .site-header { padding-top: max(16px, env(safe-area-inset-top)); }
  .site-nav { gap: 4px 24px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 0; }
  .hero-footer { min-height: 44px; }
  .project-downloads { grid-template-columns: minmax(0, 1fr); }
  .project-description, .document-label { overflow-wrap: break-word; }
  .support-main { padding-top: 28px; }
  .payment-row { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .copy-value { align-items: flex-start; }
  .support-intro .hero-sub { max-width: 100%; }
  .site-footer { padding-bottom: max(25px, env(safe-area-inset-bottom)); }
}

@media (max-width: 860px) and (orientation: landscape) {
  .hero-main { padding-top: 35px; padding-bottom: 80px; }
  .site-header { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 16px; }
  .site-nav { row-gap: 4px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-footer { min-height: 44px; bottom: 16px; }
}
