:root {
  color-scheme: dark;
  --photo-bg: #0b0b0b;
  --photo-surface: #111111;
  --photo-text: #efede8;
  --photo-muted: #92908a;
  --photo-line: rgba(255, 255, 255, 0.12);
  --photo-gutter: clamp(20px, 4.5vw, 76px);
  --photo-max: 1600px;
  --motion-fast: 220ms;
  --motion-ui: 280ms;
  --motion-photo: 760ms;
  --motion-hero: 900ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-photo: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--photo-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--photo-bg);
  color: var(--photo-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--photo-text);
  outline-offset: 5px;
}

.photo-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--photo-gutter);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-header a,
.photo-header button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  text-transform: inherit;
}

.photo-header button {
  min-width: 48px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  text-align: right;
}

.photo-intro {
  min-height: min(86vh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: clamp(48px, 9vw, 150px);
  max-width: var(--photo-max);
  margin: 0 auto;
  padding: clamp(150px, 20vh, 250px) var(--photo-gutter) clamp(70px, 10vh, 120px);
}

.photo-kicker,
.series-number,
.photo-caption,
.lightbox-series,
.license-eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.photo-kicker {
  margin: 0 0 24px;
  color: var(--photo-muted);
}

.photo-intro h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 138px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.intro-copy {
  align-self: end;
  max-width: 480px;
  padding-bottom: 0.5em;
}

.intro-note {
  margin: 0 0 28px;
  color: var(--photo-muted);
  font-size: clamp(15px, 1.3vw, 19px);
}

.intro-statement {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.2vw, 50px);
  line-height: 1.08;
}

.intro-arrow {
  display: inline-block;
  margin-top: 48px;
  color: var(--photo-muted);
  font-size: 24px;
  text-decoration: none;
}

.hero-photo {
  width: min(100%, 1780px);
  margin: 0 auto;
  padding: 0 var(--photo-gutter);
}

.photo-figure {
  margin: 0;
  scroll-margin-top: 36px;
}

.photo-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.photo-open img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--photo-surface);
  transition:
    filter var(--motion-ui) var(--ease-standard),
    transform 560ms var(--ease-photo);
}

.image-clip {
  display: block;
  overflow: hidden;
}

.hero-photo .image-clip {
  background: #080808;
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  color: var(--photo-muted);
}

.photo-caption strong {
  color: var(--photo-text);
  font-weight: 600;
}

.photo-caption span:last-child {
  text-align: right;
}

.series-list {
  max-width: var(--photo-max);
  margin: 0 auto;
  padding: 0 var(--photo-gutter) clamp(120px, 15vw, 240px);
}

.series {
  padding-top: clamp(130px, 16vw, 250px);
}

.series:first-child {
  padding-top: clamp(100px, 12vw, 190px);
}

.series-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: clamp(70px, 10vw, 150px);
  padding-top: 18px;
  border-top: 1px solid var(--photo-line);
}

.series-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 68px);
  font-weight: 510;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.series-heading p {
  max-width: 440px;
  margin: 2px 0 0;
  color: var(--photo-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(100px, 12vw, 190px);
  align-items: start;
}

.series.motion-pending .series-number,
.series.motion-pending .series-heading h2,
.series.motion-pending .series-heading p,
.photo-figure.motion-pending {
  opacity: 0;
  transform: translateY(10px);
}

.series .series-number,
.series .series-heading h2,
.series .series-heading p,
.photo-figure {
  transition:
    opacity var(--motion-photo) var(--ease-photo),
    transform var(--motion-photo) var(--ease-photo);
}

.series.motion-pending .series-heading h2 {
  transition-delay: 80ms;
}

.series.motion-pending .series-heading p {
  transition-delay: 160ms;
}

.photo-figure.motion-pending {
  transition-delay: var(--reveal-delay, 0ms);
}

.photo-figure.motion-pending .photo-open img {
  filter: brightness(0.94);
}

.photo-figure.is-revealed,
.series.is-revealed .series-number,
.series.is-revealed .series-heading h2,
.series.is-revealed .series-heading p {
  opacity: 1;
  transform: translateY(0);
}

.photo-figure.is-revealed .photo-open img {
  filter: brightness(1);
}

.layout-wide,
.layout-hero {
  grid-column: 1 / -1;
}

.layout-portrait-left {
  grid-column: 1 / span 5;
}

.layout-portrait-right {
  grid-column: 8 / span 5;
}

.layout-pair-left {
  grid-column: 1 / span 6;
}

.layout-pair-right {
  grid-column: 7 / span 6;
  margin-top: clamp(60px, 8vw, 120px);
}

.photo-status {
  min-height: 30vh;
  padding: 80px 0;
  color: var(--photo-muted);
}

.photo-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--photo-max);
  margin: 0 auto;
  padding: 48px var(--photo-gutter) 70px;
  border-top: 1px solid var(--photo-line);
  color: var(--photo-muted);
  font-size: 12px;
}

.photo-footer p {
  max-width: 650px;
  margin: 0;
}

.photo-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.photo-footer a {
  color: var(--photo-text);
  text-decoration: none;
}

dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b0b0b;
  color: var(--photo-text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

dialog[open]::backdrop {
  animation: dialog-backdrop-in var(--motion-ui) ease-out both;
}

dialog.is-closing::backdrop {
  animation: dialog-backdrop-out var(--motion-fast) ease-in both;
}

.dialog-close {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 25px;
  cursor: pointer;
}

.index-shell {
  min-height: 100%;
  padding: 28px var(--photo-gutter) 80px;
}

#photo-index[open] .index-shell {
  animation: index-in var(--motion-ui) var(--ease-standard) both;
}

#photo-index.is-closing .index-shell {
  animation: index-out var(--motion-fast) ease-in both;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--photo-line);
}

.dialog-head h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 80px) clamp(18px, 3vw, 46px);
  padding-top: 56px;
}

.contact-item {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

#photo-index[open] .contact-item {
  animation: contact-in var(--motion-ui) var(--ease-standard) both;
  animation-delay: var(--index-delay, 0ms);
}

.contact-item img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  filter: saturate(0.86);
  transition: filter 220ms ease;
}

.contact-item:hover img,
.contact-item:focus-visible img {
  filter: saturate(1);
}

.contact-meta {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  font-size: 11px;
}

.contact-meta span:first-child,
.contact-series {
  color: var(--photo-muted);
}

.contact-series {
  display: block;
  margin: 4px 0 0 42px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

#lightbox[open] .lightbox-shell {
  animation: lightbox-in 380ms var(--ease-photo) both;
}

#lightbox.is-closing .lightbox-shell {
  animation: lightbox-out 260ms ease-in both;
}

.lightbox-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--photo-gutter);
}

.lightbox-count {
  color: var(--photo-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.lightbox-close {
  justify-self: end;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
}

.lightbox-nav button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--photo-line);
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

.lightbox-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: 0;
  padding: 8px var(--photo-gutter) 44px;
}

.lightbox-image-wrap {
  display: grid;
  min-height: 0;
  place-items: center;
  transition:
    opacity 110ms linear,
    transform 110ms var(--ease-standard);
}

.lightbox-image-wrap.is-switching {
  opacity: 0;
  transform: translateY(4px);
}

.lightbox-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
}

.lightbox-info {
  align-self: center;
}

.lightbox-series {
  margin: 0 0 14px;
  color: var(--photo-muted);
}

.lightbox-info h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.05;
}

.lightbox-date {
  margin: 0 0 34px;
  color: var(--photo-muted);
}

.exif-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 7px 20px;
  margin: 0 0 38px;
  font-size: 12px;
}

.exif-list dt {
  color: var(--photo-muted);
}

.exif-list dd {
  margin: 0;
}

.download-request {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--photo-text);
  background: transparent;
  color: var(--photo-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.copyright-short {
  max-width: 280px;
  margin: 20px 0 0;
  color: var(--photo-muted);
  font-size: 11px;
}

.license-dialog {
  width: min(600px, calc(100% - 32px));
  height: max-content;
  max-height: calc(100% - 32px);
  block-size: fit-content;
  margin: auto;
  border: 1px solid var(--photo-line);
  background: #111;
}

.license-dialog[open] .license-confirm {
  animation: license-in 240ms var(--ease-standard) both;
}

.license-dialog.is-closing .license-confirm {
  animation: license-out 200ms ease-in both;
}

.license-confirm {
  padding: clamp(26px, 5vw, 54px);
}

.license-confirm h2 {
  margin: 0 0 26px;
  font-size: 13px;
  letter-spacing: 0.13em;
}

.license-confirm p {
  color: #c3c0ba;
}

.license-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
}

.license-actions button,
.license-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--photo-line);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.license-actions a {
  border-color: var(--photo-text);
  background: var(--photo-text);
  color: var(--photo-bg);
}

.license-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(150px, 19vh, 220px) var(--photo-gutter) 120px;
}

.license-page h1 {
  max-width: 800px;
  margin: 0 0 70px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 8vw, 120px);
  padding-top: 28px;
  border-top: 1px solid var(--photo-line);
}

.license-section + .license-section {
  margin-top: 58px;
}

.license-section h2 {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.license-section p,
.license-section li {
  color: #c0bdb7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.license-section ul {
  margin: 0;
  padding-left: 20px;
}

.license-section a {
  text-underline-offset: 4px;
}

@keyframes entry-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes entry-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-reveal {
  from {
    opacity: 0.72;
    clip-path: inset(4% 0 5% 0);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0);
  }
}

@keyframes dialog-backdrop-in {
  from { background: rgba(0, 0, 0, 0); }
  to { background: rgba(0, 0, 0, 0.88); }
}

@keyframes dialog-backdrop-out {
  from { background: rgba(0, 0, 0, 0.88); }
  to { background: rgba(0, 0, 0, 0); }
}

@keyframes index-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes index-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}

@keyframes contact-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lightbox-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.99); }
}

@keyframes license-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes license-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(4px); }
}

@media (prefers-reduced-motion: no-preference) {
  .photo-header {
    animation: entry-fade 360ms ease-out 120ms both;
  }

  .photo-intro > div:first-child {
    animation: entry-rise 560ms var(--ease-standard) 260ms both;
  }

  .intro-copy {
    animation: entry-rise 620ms var(--ease-standard) 380ms both;
  }

  .hero-photo .image-clip {
    animation: hero-reveal var(--motion-hero) var(--ease-photo) 500ms both;
  }
}

@media (hover: hover) and (pointer: fine) {
  .photo-open:hover img {
    filter: brightness(1.035);
    transform: scale(1.012);
  }

  .hero-photo .photo-open:hover img {
    transform: none;
  }

  .photo-caption {
    opacity: 0.72;
    transition: opacity var(--motion-ui) ease-out;
  }

  .photo-figure:focus-within .photo-caption,
  .photo-figure:hover .photo-caption {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .photo-intro {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-content: end;
  }

  .intro-copy {
    max-width: 560px;
  }

  .series-heading {
    grid-template-columns: 0.25fr 1fr;
  }

  .series-heading p {
    grid-column: 2;
  }

  .contact-sheet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    align-content: start;
    overflow-y: auto;
  }

  .lightbox-image-wrap img {
    max-height: 68vh;
  }

  .lightbox-info {
    width: min(100%, 680px);
    padding-bottom: 40px;
  }
}

@media (max-width: 620px) {
  .photo-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .photo-intro {
    min-height: 710px;
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .photo-intro h1 {
    font-size: clamp(50px, 17vw, 76px);
  }

  .intro-arrow {
    margin-top: 34px;
  }

  .hero-photo,
  .series-list {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-photo .photo-caption,
  .series .photo-caption,
  .series-heading {
    margin-left: var(--photo-gutter);
    margin-right: var(--photo-gutter);
  }

  .series {
    padding-top: 120px;
  }

  .series-heading {
    display: block;
    margin-bottom: 64px;
  }

  .series-heading h2 {
    margin: 15px 0 22px;
  }

  .series-grid {
    display: block;
  }

  .series-grid .photo-figure {
    margin-bottom: 82px;
  }

  .series-grid .photo-figure:last-child {
    margin-bottom: 0;
  }

  .layout-pair-right {
    margin-top: 0;
  }

  .photo-footer {
    grid-template-columns: 1fr;
  }

  .photo-footer nav {
    justify-content: flex-start;
  }

  .contact-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lightbox-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .lightbox-content {
    padding: 0 16px 36px;
  }

  .lightbox-image-wrap img {
    max-height: 62vh;
  }

  .lightbox-info h2 {
    font-size: 34px;
  }

  .license-grid {
    grid-template-columns: 1fr;
  }

  dialog {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .series.motion-pending .series-number,
  .series.motion-pending .series-heading h2,
  .series.motion-pending .series-heading p,
  .photo-figure.motion-pending,
  .photo-figure.motion-pending .photo-open img,
  .lightbox-image-wrap.is-switching {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .hero-photo .image-clip {
    clip-path: none !important;
  }

  .photo-header,
  .photo-intro > div:first-child,
  .intro-copy,
  .hero-photo .image-clip,
  dialog[open]::backdrop,
  #photo-index[open] .index-shell,
  #photo-index[open] .contact-item,
  #lightbox[open] .lightbox-shell,
  .license-dialog[open] .license-confirm {
    animation: none !important;
    animation-delay: 0ms !important;
  }

  .photo-open:hover img {
    transform: none !important;
  }
}
