:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #000000;
  --muted: #666666;
  --line: #dddddd;
  --tint: var(--ink);
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 48px;
  --s5: 96px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.2,.9,.3,1.12);
}
:root[data-theme=dark] { color-scheme: dark; --bg: #000000; --ink: #ffffff; --muted: #aaaaaa; --line: #333333; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; color: inherit; cursor: pointer; background: transparent; border: 1px solid var(--line); min-height: 48px; padding: 8px 24px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tint); outline-offset: 5px; }
button:disabled { cursor: default; }
.skip { position: absolute; top: -100px; padding: 16px; background: var(--bg); z-index: 10; }
.skip:focus { top: 0; }
header, footer { max-width: 1440px; margin: auto; padding-inline: 48px; }
main { max-width: 1600px; margin: auto; }
.portfolio-section, .text-section { margin-inline: 48px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex-shrink: 0; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; width: 48px; height: 64px; background: currentColor; -webkit-mask: url('assets/watermark.png') center / contain no-repeat; mask: url('assets/watermark.png') center / contain no-repeat; transition: transform 420ms var(--spring); }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: scale(1.04); }
nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
nav a { position: relative; font-size: 14px; text-decoration: none; padding-block: 8px; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
#theme-toggle { font-size: 14px; padding: 8px 0; min-height: 40px; border: 0; border-bottom: 1px solid var(--ink); }
.hero { text-align: center; padding: 48px 24px; }
.story-title { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0 0 24px; font-size: clamp(32px,5.4vw,84px); letter-spacing: -.035em; line-height: 1.2; }
.story-title strong { font-weight: 700; }
.story-title > span:last-child { font-weight: 200; color: var(--ink); letter-spacing: .025em; }
.title-slash { flex: 0 0 1px; height: 1.4em; background: var(--muted); transform: rotate(24deg); margin-inline: 8px; opacity: .65; }
.hero-copy { font-size: 16px; line-height: 1.8; max-width: 720px; margin: 0 auto 16px; }
.hero .cta { font-size: 13px; }
.hero .notice { display: table; margin: 24px auto 0; font-size: 12px; text-align: left; }
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.chapter { position: relative; display: block; text-decoration: none; min-width: 0; background: var(--bg); }
.chapter-visual { min-height: 380px; position: relative; display: flex; align-items: center; justify-content: center; }
.chapter-visual img { display: block; width: 100%; height: auto; }
.chapter-empty { min-height: 380px; width: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 48px 24px; border: 1px solid var(--line); }
.chapter-empty span { font-size: 14px; color: var(--muted); }
.chapter-empty small { font-size: 12px; color: var(--muted); }
.chapter-caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; padding: 24px; }
.chapter-caption h2 { font-size: clamp(28px,3vw,40px); font-weight: 300; margin: 0; }
.chapter-action { margin-left: auto; font-size: 24px; transition: transform 420ms var(--spring); }

.chapter.has-photo .chapter-caption { position: absolute; inset: auto 0 0; background: var(--bg); }
.chapter.has-photo::after { position: absolute; content: ''; inset: 0; pointer-events: none; background: #333; opacity: 0; transition: opacity 220ms var(--ease); }
.chapter.has-photo .chapter-caption { z-index: 1; }
.chapter:hover .chapter-action, .chapter:focus-visible .chapter-action { transform: translate(2px,-2px); }
.chapter.has-photo:hover::after, .chapter.has-photo:focus-visible::after { opacity: .12; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 24px; }
h1 { font-weight: 500; font-size: clamp(40px,6vw,88px); line-height: 1.1; letter-spacing: -.045em; margin: 0 0 48px; }
h1 span { color: var(--muted); }
.intro { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.intro p { margin: 0; }
.cta { display: inline-block; text-decoration: none; border-bottom: 1px solid var(--ink); padding-block: 16px; }
.cta span { display: inline-block; margin-left: 48px; transition: transform 420ms var(--spring); }
.cta:hover span { transform: translateY(4px); }
.notice { font-size: 14px; border-left: 2px solid var(--tint); padding-left: 16px; margin-top: 48px; }
.section-heading { margin-top: 48px; display: flex; justify-content: flex-end; align-items: end; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
h2 { font-size: clamp(28px,3vw,40px); font-weight: 500; line-height: 1.2; margin: 0 0 24px; letter-spacing: -.02em; }
.filters { position: relative; display: flex; gap: 8px; max-width: 100%; border-bottom: 1px solid var(--line); }
.filters button { position: relative; border: 0; padding-inline: 16px; color: var(--muted); transition: color 220ms var(--ease); }
.filters button[aria-pressed=true] { color: var(--ink); }
.filter-marker { position: absolute; height: 2px; bottom: -1px; background: var(--ink); pointer-events: none; transform-origin: left; }
.muted { color: var(--muted); font-size: 14px; }
.gallery { column-count: 3; column-gap: 8px; margin-top: 24px; }
.gallery.small-selection { column-count: 2; }
.gallery.single-selection { column-count: 1; max-width: 960px; margin-inline: auto; }
.gallery figure { break-inside: avoid; margin-bottom: 24px; }
.gallery figure:hover .photo-hint, .photo:focus-visible .photo-hint { opacity: 1; transform: translateY(0); }
figure { margin: 0; min-width: 0; }
figure[hidden] { display: none; }
.photo, .placeholder { position: relative; background: var(--bg); }
.photo { display: block; transform-origin: center; transition: transform 600ms var(--spring); }
.photo::after { content: ''; position: absolute; inset: 0; border: 1px solid currentColor; opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease); }
.photo:focus-visible { z-index: 2; transform: translateY(-3px) scale(1.012); }
.photo:focus-visible::after { opacity: .35; }
.photo-hint { position: absolute; right: 16px; bottom: 16px; padding: 8px 16px; background: #333333dd; color: #fff; font-size: 24px; opacity: 0; transform: translateY(8px); transition: opacity 220ms var(--ease), transform 420ms var(--spring); pointer-events: none; }
.photo img { display: block; width: 100%; height: auto; }
.photo:focus-visible { border-color: var(--tint); }
.placeholder { border: 1px solid var(--line); min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
.placeholder::before, .placeholder::after { content: ''; width: 48px; height: 1px; background: var(--line); margin-block: 24px; }
.placeholder span { font-size: 40px; font-weight: 400; letter-spacing: -.02em; }
.placeholder p { margin: 16px 0 8px; }
.placeholder small { color: var(--muted); }
.text-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); margin-top: 96px; padding-top: 48px; }
.text-section p { max-width: 600px; }
.text-section .eyebrow { padding-top: 8px; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 96px; padding-block: 24px; font-size: 13px; border-top: 1px solid var(--line); }
#motion-toggle { font-size: 13px; border: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
dialog { border: 1px solid var(--line); padding: 24px; background: var(--bg); color: var(--ink); width: min(96vw,1400px); max-height: 96dvh; }
dialog::backdrop { background: #000d; }
.viewer-bar, .viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
dialog img { display: block; max-width: 100%; max-height: 70dvh; width: auto; height: auto; margin: auto; }
dialog button { border: 0; border-bottom: 1px solid var(--line); padding-inline: 8px; }
#viewer-title { margin: 0; }
.viewer-controls { margin-top: 16px; }
[hidden] { display: none!important; }
@media (max-width:1000px) {
  .gallery { column-count: 2; }
  .chapter-caption { align-items: start; gap: 8px; }
}
@media (max-width:700px) {
  header, footer { padding-inline: 24px; }
  .portfolio-section, .text-section { margin-inline: 24px; }
  header { flex-direction: row; gap: 16px; }
  .hero { padding: 48px 24px 24px; }
  .story-title { gap: 8px; font-size: clamp(19px,5.5vw,36px); white-space: nowrap; }
  .title-slash { margin-inline: 4px; }
  .hero .eyebrow { font-size: 11px; }
  .hero-copy { font-size: 14px; }
  .chapters { grid-template-columns: 1fr; }
  .chapter-visual, .chapter-empty { min-height: 280px; }
  .chapter-caption { padding: 16px; }
  .chapter-caption h2 { font-size: 28px; }
  .chapter-action { font-size: 12px; }
  .intro, .section-heading { align-items: start; flex-direction: column; }
  .text-section { grid-template-columns: 1fr; }
  .gallery, .gallery.small-selection { column-count: 1; }
  .placeholder { min-height: 300px; }
  .text-section { margin-top: 48px; }
  nav { gap: 12px; }
  .brand-mark { width: 40px; height: 56px; }
  footer { margin-top: 48px; }
  dialog { padding: 16px; }
  .viewer-bar { align-items: start; }
  #viewer-title { font-size: 14px; }
}
html[data-motion=off] { scroll-behavior: auto; }
html[data-motion=off] *, html[data-motion=off] *::after { transition: none!important; }
html[data-motion=off] .brand-mark { transform: none!important; }
html[data-motion=off] .photo-hint, html[data-motion=off] .cta:hover span, html[data-motion=off] .chapter-action { transform: none; }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::after { transition: none!important; }
  .brand-mark { transform: none!important; }
  .photo-hint, .cta:hover span, .chapter-action { transform: none; }
}

.portfolio-tools { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Keep collection captions outside real photographs, so no part is obscured. */
.chapter.has-photo .chapter-visual { min-height: 0; display: block; }
.chapter.has-photo .chapter-visual { aspect-ratio: 3 / 2; overflow: hidden; }
.chapter.has-photo .chapter-visual img { width: 100%; height: 100%; object-fit: cover; }
.chapter-visual img { transition: transform 700ms var(--spring); }
.chapter:focus-visible .chapter-visual img { transform: scale(1.025); }
@media (hover:hover) and (pointer:fine) {
  .photo:hover { z-index: 2; transform: translateY(-3px) scale(1.012); }
  .photo:hover::after { opacity: .35; }
  .chapter:hover .chapter-visual img { transform: scale(1.025); }
}
html[data-motion=off] .photo, html[data-motion=off] .chapter-visual img { transform: none!important; }
@media (prefers-reduced-motion:reduce) { .photo, .chapter-visual img { transform: none!important; } }
.chapter.has-photo .chapter-caption { position: relative; inset: auto; background: var(--bg); border-bottom: 1px solid var(--line); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.gallery.paginated { position: relative; column-count: auto; }
.gallery.paginated > figure { position: absolute; margin: 0; }
.load-more-row { display: flex; justify-content: center; margin-top: 24px; }
#load-more { border: 0; border-bottom: 1px solid var(--ink); padding: 8px 24px; }
#load-more span { display: inline-block; margin-left: 24px; transition: transform 420ms var(--spring); }
#load-more:hover span { transform: translateY(4px); }
html[data-motion=off] #load-more:hover span { transform: none; }
@media (prefers-reduced-motion:reduce) { #load-more:hover span { transform: none; } }

/* Minimal masthead and a single contact line at the very bottom. */
.hero { padding: 32px 24px; }
.story-title { margin: 0; font-weight: 500; letter-spacing: .04em; }
footer { display: block; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-contact { display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; padding-top: 24px; color: var(--muted); }
.footer-contact .cta { padding: 0; border: 0; }
.footer-rights { max-width: 800px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-rights p { margin: 0; }
.footer-rights p + p { margin-top: 8px; }
@media (max-width:700px) { .hero { padding: 24px; } .footer-contact { gap: 8px 24px; } }
