/* Layout concept: a printed contact sheet. A quiet paper ground, the name set
   large in Bodoni (a Parma typeface), photographs carrying frame numbers like
   film edge print, and one toner colour used only for small marks. */
:root {
  --paper: #f2f2ef;        /* fibre paper, slightly cool */
  --paper-2: #e6e6e1;      /* placeholder print tone */
  --ink: #161615;
  --ink-soft: #5d5c58;
  --rule: #cfcec8;
  --toner: #6b3f53;        /* selenium toner, used sparingly */
  --veil: rgba(16, 16, 15, 0.94);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1320px;
}
@media (min-width: 720px) {
  :root { --gutter-l: max(40px, env(safe-area-inset-left, 0px)); --gutter-r: max(40px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211; --paper-2: #1f1f1d; --ink: #ebe9e4; --ink-soft: #9b9993;
    --rule: #33322f; --toner: #c9a0b4; --veil: rgba(8, 8, 8, 0.96); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121211; --paper-2: #1f1f1d; --ink: #ebe9e4; --ink-soft: #9b9993;
  --rule: #33322f; --toner: #c9a0b4; --veil: rgba(8, 8, 8, 0.96); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--toner); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.soft { color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 14px; flex-wrap: wrap;
}
.brand { font-family: var(--display); font-style: italic; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); flex-wrap: wrap; }
.nav a { text-decoration: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-block: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--toner); text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- views ---------- */
.view { animation: develop 0.9s ease both; }
@keyframes develop { from { opacity: 0.35; filter: grayscale(1) contrast(0.8); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } html { scroll-behavior: auto; } }

/* ---------- home ---------- */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px); }
.hero h1 {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(3.2rem, 13vw, 11.5rem); line-height: 0.86; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
.hero h1 span { display: block; font-style: normal; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(18px, 3vw, 32px); }
.hero-meta p { margin: 0; max-width: 34ch; }

.lead-frame { margin-block: 8px clamp(40px, 7vw, 88px); }
.lead-frame .frame { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .lead-frame .frame { aspect-ratio: 4 / 5; } }

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding-block: clamp(16px, 2.6vw, 28px); text-decoration: none;
}
.index-list .t { font-family: var(--display); font-size: clamp(1.7rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; transition: transform .35s ease, color .35s ease; }
.index-list a:hover .t { transform: translateX(10px); color: var(--toner); }
.index-list .sub { display: block; margin-top: 6px; }
@media (max-width: 560px) { .index-list a { grid-template-columns: 2.2rem minmax(0, 1fr); } .index-list .status { grid-column: 2; } }

/* ---------- frames & placeholders ---------- */
.frame { position: relative; overflow: hidden; background: var(--paper-2); max-width: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.missing img { opacity: 0; }
.frame.missing::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 30% 25%, color-mix(in srgb, var(--ink) 9%, transparent), transparent 60%),
    radial-gradient(90% 80% at 80% 90%, color-mix(in srgb, var(--ink) 14%, transparent), transparent 70%);
}
.frame.missing::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.edge { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--ink-soft); }

/* ---------- project pages ---------- */
.project-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); padding-block: clamp(32px, 6vw, 80px) clamp(24px, 4vw, 48px); align-items: end; }
@media (max-width: 820px) { .project-head { grid-template-columns: minmax(0, 1fr); } }
.project-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 8vw, 6.8rem); line-height: 0.92; letter-spacing: -0.03em; margin: 10px 0 0; text-wrap: balance; }
.project-head h1 em { color: var(--toner); }
.statement { max-width: 46ch; min-width: 0; }
.statement p { margin: 0 0 1em; }
.statement .draft { border-left: 1px solid var(--toner); padding-left: 12px; }

.contact-sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); padding-bottom: clamp(48px, 8vw, 110px); }
.plate { grid-column: span 4; margin: 0; cursor: zoom-in; min-width: 0; }
.plate.w-6 { grid-column: span 6; }
.plate.w-8 { grid-column: span 8; }
.plate.w-12 { grid-column: span 12; }
.plate.push { margin-top: clamp(0px, 8vw, 120px); }
.plate .frame { transition: opacity .3s ease; }
.plate:hover .frame { opacity: 0.88; }
@media (max-width: 720px) { .plate, .plate.w-6, .plate.w-8 { grid-column: span 12; } .plate.push { margin-top: 0; } .plate.half { grid-column: span 6; } }

/* ---------- Art x Free ---------- */
.axf { background: var(--ink); color: var(--paper); scroll-margin-top: 56px; }
.axf .wrap { padding-block: clamp(48px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); }
@media (max-width: 860px) { .axf .wrap { grid-template-columns: minmax(0, 1fr); } }
.axf h2 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.9; letter-spacing: -0.03em; margin: 12px 0 24px; }
.axf h2 i { font-weight: 400; }
.axf p { max-width: 44ch; margin: 0 0 1em; color: color-mix(in srgb, var(--paper) 82%, var(--ink)); }
.axf .mono { color: color-mix(in srgb, var(--paper) 62%, var(--ink)); }
.counter { font-family: var(--display); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.03em; }
.counter small { font-size: 0.32em; letter-spacing: 0; color: color-mix(in srgb, var(--paper) 55%, var(--ink)); }
.ledger { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-block: 24px 14px; max-width: 420px; }
.ledger span { aspect-ratio: 3 / 4; border: 1px solid color-mix(in srgb, var(--paper) 30%, var(--ink)); }
.ledger span.current { background: var(--paper); border-color: var(--paper); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid currentColor; }
.legend span.fill::before { background: var(--paper); border-color: var(--paper); }
.cities { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.cities div { border-top: 1px solid color-mix(in srgb, var(--paper) 30%, var(--ink)); padding-top: 10px; min-width: 140px; }
.cities strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.book-one { border: 1px solid color-mix(in srgb, var(--paper) 30%, var(--ink)); padding: clamp(18px, 3vw, 28px); margin-top: 28px; }
.book-one h3 { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 1.7rem; margin: 6px 0 10px; }
.media-tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 14px 0 0; }
.media-tags li { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--paper) 35%, var(--ink)); padding: 4px 9px; border-radius: 999px; }

/* ---------- Pride ---------- */
.pride-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-bottom: 28px; }
.pride-strip .frame { aspect-ratio: 2 / 3; }
@media (max-width: 720px) { .pride-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.notice { border-top: 1px solid var(--ink); padding-block: 22px clamp(56px, 8vw, 110px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.notice p { margin: 0; max-width: 50ch; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 110px); }
@media (max-width: 820px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about .frame { aspect-ratio: 4 / 5; }
.about h1 { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.95; letter-spacing: -0.03em; margin: 10px 0 28px; }
.bio { max-width: 60ch; font-size: 1.06rem; }
.bio p { margin: 0 0 1.1em; }
.facts { margin-top: 36px; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
@media (max-width: 480px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.facts dt { margin: 0; } .facts dd { margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: var(--veil); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #ebe9e4;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox button { background: none; border: 1px solid #55544f; color: #ebe9e4; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
.lightbox button:hover { border-color: #ebe9e4; }
.lightbox .stage { display: grid; place-items: center; min-height: 0; padding-block: 14px; }
.lightbox .stage .frame { height: 100%; max-height: 82vh; width: auto; aspect-ratio: var(--r, 4 / 5); max-width: 100%; background: #1f1f1d; }
.lightbox .stage .frame.missing::after { color: #9b9993; }
.lightbox .stage img { object-fit: contain; }
.lightbox .nav-btns { display: flex; gap: 8px; }
.lightbox[hidden], .view[hidden] { display: none; }

/* ================= Art x Free page ================= */
.axf .read-link { display: inline-block; margin-top: 32px; color: var(--paper); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--paper) 40%, var(--ink)); padding-bottom: 4px; }
.axf .read-link:hover { border-color: var(--paper); }
.ledger { max-width: 360px; }

/* Volume 001: a book read page by page */
.volume { scroll-margin-top: 56px; padding-bottom: clamp(48px, 8vw, 120px); }
.volume .frame { aspect-ratio: 3 / 2; }
.volume .pg { margin: 0; cursor: zoom-in; min-width: 0; }
.volume .pg:hover .frame img { opacity: 0.92; }
.volume .frame img { transition: opacity .3s ease; }

.chapter { padding-top: clamp(64px, 11vw, 160px); }
.chapter > .spread, .chapter > .wide, .chapter > .pair, .chapter > .poem-coda, .chapter > .poem-center,
.chapter.spread, .chapter.colophon {
  max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.chapter > * + * { margin-top: clamp(40px, 7vw, 100px); }

.cover { position: relative; }
.cover .frame { aspect-ratio: 3 / 2; max-height: 92vh; width: 100%; }
.cover-title {
  position: absolute; inset: auto 0 0 0; color: #f2f2ef;
  padding: clamp(20px, 4vw, 56px) max(16px, env(safe-area-inset-right, 0px)) clamp(20px, 4vw, 56px) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, rgba(10,10,10,.62), rgba(10,10,10,0));
}
@media (min-width: 720px) { .cover-title { padding-left: max(40px, env(safe-area-inset-left, 0px)); } }
.cover-title h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 8vw, 7.5rem); line-height: .92; letter-spacing: -.03em; margin: 8px 0 12px; text-wrap: balance; }
.cover-title h2 em { font-weight: 400; }
.cover-title .mono { margin: 0; color: rgba(242,242,239,.8); }

.spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.spread > .poem:first-child + .pg, .spread > .poem:first-child { }
.spread:has(> .poem:first-child) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.spread.flip > .pg { order: 2; }
.spread.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 820px) {
  .spread, .spread.flip, .spread:has(> .poem:first-child) { grid-template-columns: minmax(0, 1fr); }
  .spread > .pg, .spread.flip > .pg { order: -1; }
}

.poem { min-width: 0; }
.poem h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; margin: 8px 0 24px; text-wrap: balance; }
.poem p:not(.mono) { font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; margin: 0 0 1.2em; }
.poem .mono { margin: 0; }
.poem-coda { display: flex; flex-direction: column; align-items: center; }
.poem-coda p:not(.mono), .poem-center p:not(.mono) { max-width: 30ch; }
.poem-coda > *, .poem-center > * { width: min(100%, 30rem); }
.poem-center { display: flex; flex-direction: column; align-items: center; }

.overlay-line { position: relative; }
.overlay-line .frame { width: 100%; }
.overlay-line .line {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 6vw, 80px); margin: 0; text-align: center;
  padding-inline: 16px; color: #f2f2ef; font-family: var(--display); font-style: italic;
  font-size: clamp(1.6rem, 5.5vw, 4.6rem); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.45);
}

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); align-items: start; }
.pair .low { margin-top: clamp(40px, 10vw, 140px); }
@media (max-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr); } .pair .low { margin-top: 0; } }

.chapter.night { background: var(--ink); color: var(--paper); margin-top: clamp(64px, 11vw, 160px); padding-top: 0; padding-bottom: clamp(56px, 9vw, 130px); }
.night .frame { background: #1f1f1d; }
.night-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.night .mono { color: color-mix(in srgb, var(--paper) 62%, var(--ink)); }
.two-col h3, .two-col > .mono { column-span: all; }
@media (min-width: 900px) { .two-col { columns: 2; column-gap: clamp(28px, 4vw, 56px); } .two-col p { break-inside: avoid; } }
@media (max-width: 820px) { .night-inner { grid-template-columns: minmax(0, 1fr); } }

.colophon { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.colophon > * + * { margin-top: 0; }
.colophon .facts { margin-top: 0; }
.colophon .facts div { grid-template-columns: 7.5rem minmax(0, 1fr); }
@media (max-width: 820px) { .colophon { grid-template-columns: minmax(0, 1fr); } }

/* Almost Human / Elsewhere placeholders */
.coming .frame { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .coming .frame { aspect-ratio: 4 / 5; } }
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.places li { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 3.2rem); padding: 18px 12px 28px 0; border-bottom: 1px solid var(--rule); line-height: 1.1; }
.places li .mono { display: block; margin-bottom: 10px; }
@media (max-width: 720px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lead-frame a.frame { display: block; }

/* --- refinements --- */
.volume .chapter > * + * { margin-top: clamp(40px, 7vw, 100px); }
.volume .chapter.colophon > * + * { margin-top: 0; }
.poem-coda > *, .poem-center > * { width: min(100%, 31rem); }
.poem-coda p:not(.mono), .poem-center p:not(.mono) { max-width: none; }
.night-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-top: clamp(48px, 8vw, 110px); }
.night-inner > .night-photo { order: -1; position: sticky; top: 90px; }
.two-col { columns: auto !important; }
@media (max-width: 820px) { .night-inner { grid-template-columns: minmax(0, 1fr); } .night-inner > .night-photo { position: static; } }
.volume .chapter.night > .night-inner { margin-top: 0; }
@media (max-width: 640px) {
  .cover-title { position: static; background: none; color: var(--ink); padding-top: 18px; padding-bottom: 0; }
  .cover-title .mono { color: var(--ink-soft); }
}
.frame img { position: absolute; inset: 0; }
.frame.missing::before, .frame.missing::after { z-index: 1; }
.overlay-line .line { top: clamp(18px, 5vw, 70px); bottom: auto; text-align: right; padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-left: 16px; }
@media (min-width: 720px) { .overlay-line .line { padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.ledger { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.closing { max-width: var(--maxw); margin: clamp(64px, 10vw, 140px) auto 0; padding-left: var(--gutter-l); padding-right: var(--gutter-r); text-align: center; font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 4.5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.closing .mono { display: block; font-style: normal; margin-bottom: 18px; }
.about .frame { aspect-ratio: 1286 / 1600; }
.portrait-cap { margin: 10px 0 0; text-transform: none; letter-spacing: 0.02em; line-height: 1.5; }
.about > div:first-child { align-self: start; position: sticky; top: 90px; }
@media (max-width: 820px) { .about > div:first-child { position: static; } }
.bio p { font-size: 1.2rem; line-height: 1.55; }
.cv { margin-top: clamp(36px, 5vw, 56px); max-width: 62ch; }
.cv h2 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.cv ul { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.cv-what { font-weight: 500; }
.cv-what a { text-decoration: underline; text-decoration-color: var(--toner); text-underline-offset: 4px; }
.cv-where { color: var(--ink-soft); }
.cv p { margin: 0; }
.bio p { font-size: 1.08rem; line-height: 1.7; }
.bio p:first-child { font-size: 1.25rem; line-height: 1.5; }
.bio a { text-decoration: underline; text-decoration-color: var(--toner); text-underline-offset: 4px; }
.bio p.mono { font-size: 0.72rem; margin-top: 2em; }
.contact { margin-top: 2.4em; padding-top: 16px; border-top: 1px solid var(--ink); display: grid; gap: 4px; }
.bio .contact p { margin: 0; font-size: 1.08rem; }
.bio .contact p.mono { font-size: 0.72rem; margin-bottom: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; text-transform: none; }
.axf p.cities-label { margin: 28px 0 0; }
.axf .cities { margin-top: 10px; }
.ah-plate { margin: 0 auto; max-width: min(100%, 820px); }
.ah-plate img { width: 100%; height: auto; }
.notice a:not(.mono) { text-decoration: underline; text-decoration-color: var(--toner); text-underline-offset: 4px; }
.ah-plate + .notice { margin-top: clamp(40px, 6vw, 72px); }
.ah { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 110px); }
.ah .ah-plate { max-width: 100%; margin: 0; }
.ah-text { min-width: 0; max-width: 46ch; }
.ah-text h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.92; letter-spacing: -0.03em; margin: 10px 0 28px; }
.ah-text h1 em { color: var(--toner); }
.ah-text p:not(.mono) { margin: 0 0 1em; }
.ah-text p:nth-of-type(2) { font-size: 1.15rem; line-height: 1.5; }
.ah-contact { padding-top: 14px; border-top: 1px solid var(--ink); }
.ah-contact a { text-decoration: underline; text-decoration-color: var(--toner); text-underline-offset: 4px; }
@media (max-width: 860px) { .ah { grid-template-columns: minmax(0, 1fr); } }

/* ===== Almost Human v3: night page, photo bleeding off the left edge ===== */
.ah { display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); gap: 0; padding: 0; align-items: stretch; background: #0e0e0d; color: #ebe9e4; max-width: none; }
.ah .ah-plate { margin: 0; position: relative; min-height: min(100vh, 1000px); }
.ah .ah-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ah .ah-plate figcaption { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 16px; color: rgba(235,233,228,.75); }
@media (min-width: 720px) { .ah .ah-plate figcaption { left: max(40px, env(safe-area-inset-left, 0px)); } }
.ah-text { position: relative; max-width: none; padding: clamp(40px, 6vw, 96px) max(16px, env(safe-area-inset-right, 0px)) clamp(40px, 6vw, 96px) clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 720px) { .ah-text { padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.ah-kicker { color: rgba(235,233,228,.6); margin: 0; }
.ah-text h1 { color: #ebe9e4; font-size: clamp(3.4rem, 8.4vw, 9.5rem); line-height: .84; margin: 14px 0 36px calc(-1 * clamp(80px, 12vw, 220px)); mix-blend-mode: difference; position: relative; z-index: 2; }
.ah-text h1 em { color: #ebe9e4; }
.ah-text p { max-width: 40ch; color: rgba(235,233,228,.82); margin: 0 0 1em; }
.ah-text p.ah-lead { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.3; color: #ebe9e4; font-size: clamp(1.3rem, 1.9vw, 1.65rem); }
.ah-text p:nth-of-type(2) { font-size: 1rem; line-height: 1.6; }
.ah-notes { margin: 18px 0 0; border-top: 1px solid rgba(235,233,228,.25); max-width: 40ch; }
.ah-notes div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding-block: 9px; border-bottom: 1px solid rgba(235,233,228,.15); }
.ah-notes dt { color: rgba(235,233,228,.5); } .ah-notes dd { margin: 0; color: #ebe9e4; }
.ah-call { margin-top: 32px; padding: 20px 22px; border: 1px solid rgba(235,233,228,.4); max-width: 40ch; }
.ah-call .mono { margin: 0 0 8px; color: rgba(235,233,228,.6); }
.ah-call p:not(.mono) { color: #ebe9e4; }
.ah-call a { color: #ebe9e4; text-decoration: underline; text-decoration-color: #c9a0b4; text-underline-offset: 5px; }
@media (max-width: 900px) {
  .ah { grid-template-columns: minmax(0, 1fr); }
  .ah .ah-plate { min-height: 0; aspect-ratio: 1 / 1; }
  .ah-text { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
  .ah-text h1 { margin-left: 0; margin-top: calc(-1 * clamp(60px, 16vw, 120px)); }
}
.ah-notes dd { font-family: var(--text); text-transform: none; letter-spacing: 0; font-size: .92rem; }
@media (max-width: 900px) { .ah-text h1 { margin-top: 14px; mix-blend-mode: normal; } }
/* show the whole photograph, never cropped */
.ah .ah-plate { min-height: 0; aspect-ratio: auto; align-self: start; padding-bottom: 40px; }
.ah .ah-plate img { position: static; width: 100%; height: auto; object-fit: contain; }
.ah .ah-plate figcaption { position: static; margin-top: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 720px) { .ah .ah-plate figcaption { padding-left: max(40px, env(safe-area-inset-left, 0px)); left: auto; } }
@media (max-width: 900px) { .ah .ah-plate { aspect-ratio: auto; padding-bottom: 0; } }
.ah .ah-plate { align-self: center; padding-block: 40px; }
/* never crop: home lead photo at its own 3:2 shape */
.lead-frame .frame { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .lead-frame .frame { aspect-ratio: 3 / 2; } }
.cover .frame { max-height: none; }
/* one rule under the label, both cities beneath it */
.axf .cities { border-top: 1px solid color-mix(in srgb, var(--paper) 30%, var(--ink)); padding-top: 12px; margin-top: 10px; max-width: 420px; gap: 32px; }
.axf .cities div { border-top: 0; padding-top: 0; min-width: 0; }

/* ===== Queerness: justified rows, every photo shown whole ===== */
.qgallery { display: grid; gap: clamp(14px, 2.4vw, 32px); padding-bottom: clamp(56px, 8vw, 120px); }
.qrow { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: flex-start; }
.qpg { margin: 0; min-width: 0; cursor: zoom-in; }
.qpg img { width: 100%; height: auto; display: block; background: var(--paper-2); transition: opacity .3s ease; }
.qpg:hover img { opacity: .9; }
.qpg figcaption { margin-top: 8px; text-align: right; color: var(--ink-soft); }
@media (max-width: 640px) { .qrow { flex-direction: column; } .qpg { flex: none !important; width: 100%; } }
.lightbox .stage .frame img { position: static; width: 100%; height: 100%; object-fit: contain; }

/* ===== Portraits: a loose wall, with each sitter's frames kept together as a strip ===== */
.pgallery { display: grid; gap: clamp(48px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.prow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); align-items: start; }
.ppg { margin: 0; min-width: 0; cursor: zoom-in; }
.ppg img { width: 100%; height: auto; display: block; background: var(--paper-2); transition: opacity .3s ease; }
.ppg:hover img { opacity: .9; }
.prow .ppg.push { margin-top: clamp(40px, 9vw, 140px); }
.prow .ppg figcaption { margin-top: 8px; color: var(--ink-soft); }
.pgroup { background: var(--ink); padding: clamp(10px, 1.4vw, 18px); margin-inline: calc(-1 * clamp(0px, 1.4vw, 18px)); }
.pstrip { display: flex; gap: 6px; align-items: flex-start; }
.pgroup-cap { display: flex; justify-content: space-between; gap: 12px; margin: 10px 2px 0; color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
@media (max-width: 720px) {
  .prow { grid-template-columns: minmax(0, 1fr); }
  .prow .ppg { grid-column: 1 / -1 !important; }
  .prow .ppg.push { margin-top: 0; }
  .pstrip { flex-wrap: wrap; }
  .pstrip .ppg { flex: 1 1 calc(50% - 3px) !important; }
  .pgroup { margin-inline: 0; }
}
/* two-frame strips sit narrower so the portraits don't blow up */
.pgroup:has(.pstrip > .ppg:nth-child(2):last-child) { max-width: 1000px; margin-inline: auto; width: 100%; }
.statement p.portal-lead { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: .5em; }

/* ---------------- Travel Photography ---------------- */
.tgallery { column-count: 3; column-gap: clamp(14px, 2vw, 28px); padding-bottom: clamp(56px, 8vw, 112px); }
.tpg { margin: 0 0 clamp(22px, 3vw, 40px); break-inside: avoid; cursor: zoom-in; }
.tpg img { width: 100%; height: auto; display: block; background: var(--paper-2); outline: 5px solid var(--ink); outline-offset: -5px; transition: opacity .3s ease; }
.tpg:hover img { opacity: .88; }
.tpg figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--ink); }
.tpg figcaption span:last-child { color: var(--ink-soft); }
@media (max-width: 900px) { .tgallery { column-count: 2; } }
@media (max-width: 520px) { .tgallery { column-count: 1; } }
.tdivider p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 clamp(32px, 5vw, 64px); padding-top: 14px; border-top: 1px solid var(--ink); }
.tdivider p span:first-child { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; text-transform: none; }

.album { padding-bottom: clamp(56px, 8vw, 110px); }
.album-label { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 12px; margin: 0 0 18px; }
.album-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); padding-bottom: 0; }
@media (max-width: 860px) { .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.aprint { position: relative; padding: 0; overflow: hidden; }
.aprint img { position: absolute; inset: 9%; width: 82%; height: 82%; max-width: none; max-height: none; object-fit: contain; box-shadow: none; filter: drop-shadow(0 5px 8px rgba(0,0,0,.22)); }

/* About album cells */
.archive { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.acell { margin: 0; min-width: 0; cursor: zoom-in; }
.aprint { aspect-ratio: 1; background: var(--paper-2); position: relative; overflow: hidden; transition: background .25s; }
.aprint img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.22)); transition: transform .35s ease; }
.acell:hover .aprint img { transform: scale(1.04); }

/* ---------------- Travel: film strips and loose prints ---------------- */
.tflow { --H: clamp(190px, 24vw, 330px); display: grid; gap: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.fstrip { width: min(100%, calc(var(--w) * var(--H) + 12px)); justify-self: center; }
.tflow > .fstrip:nth-child(4n+1) { justify-self: start; }
.tflow > .fstrip:nth-child(4n+3) { justify-self: end; }
.fband { display: flex; gap: 6px; align-items: flex-start; background: #121110; padding: 6px; }
.fstrip.film .fband { position: relative; padding: 22px 6px; }
.fstrip.film .fband::before, .fstrip.film .fband::after { content: ""; position: absolute; left: 6px; right: 6px; height: 8px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, color-mix(in srgb, var(--paper) 88%, transparent) 7px 17px, transparent 17px 24px); }
.fstrip.film .fband::before { top: 7px; } .fstrip.film .fband::after { bottom: 7px; }
.fband .tf { margin: 0; min-width: 0; cursor: zoom-in; }
.fband .tf img { width: 100%; height: auto; display: block; transition: opacity .3s; }
.fband .tf:hover img { opacity: .85; }
.fcap { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; }
.fcap span:last-child { color: var(--ink-soft); }
.tflow .prow .tf { margin: 0; min-width: 0; cursor: zoom-in; }
.tflow .prow .tf img { width: 100%; height: auto; display: block; background: var(--paper-2); transition: opacity .3s; }
.tflow .prow .tf:hover img { opacity: .9; }
.tflow .prow .tf.push { margin-top: clamp(40px, 9vw, 140px); }
.tflow .prow .tf figcaption { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 700px) {
  .tflow .prow { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tflow .prow .tf { grid-column: auto / span 6 !important; }
  .tflow .prow .tf.push { margin-top: 48px; }
  .fstrip { width: 100%; }
  .fband { flex-wrap: wrap; }
  .fband .tf { flex: 1 1 calc(50% - 3px) !important; }
}

/* Film sequences on white, like a contact print */
.fband { background: #fbfaf7; padding: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 14px 30px -18px rgba(0,0,0,.35); outline: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.fstrip.film .fband { padding: 26px 10px; }
.fstrip.film .fband::before, .fstrip.film .fband::after { left: 10px; right: 10px; height: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, color-mix(in srgb, var(--ink) 82%, transparent) 7px 17px, transparent 17px 24px); }
.fstrip.film .fband::before { top: 9px; } .fstrip.film .fband::after { bottom: 9px; }
.fstrip.big { --H: clamp(260px, 44vw, 600px); }
.fhero { margin-inline: calc(50% - 50vw); }
html, body { overflow-x: clip; }
.fhero .tf { margin: 0; cursor: zoom-in; }
.fhero .tf img { width: 100%; height: auto; display: block; }
.tflow > .fstrip:nth-child(n) { justify-self: center; }
.tflow > .fstrip:nth-child(4n+1) { justify-self: start; }
.tflow > .fstrip:nth-child(4n+3) { justify-self: end; }
.tflow > .fstrip.big { justify-self: center; }
.fduo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
.fduo .fstrip { width: 100%; }
.fduo .fstrip:last-child { margin-bottom: clamp(40px, 8vw, 120px); }
@media (max-width: 700px) { .fduo { grid-template-columns: minmax(0, 1fr); gap: 56px; } .fduo .fstrip:last-child { margin-bottom: 0; } .fband { padding: 6px; } .fstrip.film .fband { padding: 20px 6px; } }
@media (max-width: 700px) {
  .fband { flex-wrap: nowrap; }
  .fband .tf { flex-basis: 0% !important; flex-shrink: 1 !important; }
  .fband:has(.tf:nth-child(4)) { flex-wrap: wrap; }
  .fband:has(.tf:nth-child(4)) .tf { flex: 1 1 calc(50% - 3px) !important; }
}
@media (max-width: 700px) { .fband:not(:has(.tf:nth-child(4))) .tf { flex-grow: var(--g) !important; } }
/* no sprocket holes: plain white print border */
.fstrip.film .fband { padding: 10px; }
.fstrip.film .fband::before, .fstrip.film .fband::after { display: none; }
.ftrio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); align-items: start; padding-inline: clamp(0px, 4vw, 64px); }
.ftrio .tf { margin: 0; min-width: 0; cursor: zoom-in; }
.ftrio .tf img { width: 100%; height: auto; display: block; transition: opacity .3s; }
.ftrio .tf:hover img { opacity: .9; }
.ftrio .tf:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.ftrio .tf:nth-child(3) { margin-top: clamp(20px, 4vw, 60px); }
.ftrio figcaption { display: none; }
@media (max-width: 700px) { .ftrio { gap: 8px; padding-inline: 0; } .tflow .prow .tf[style*="span 12"], .tflow .prow .tf[style*="span 8"] { grid-column: 1 / -1 !important; } }
.fband .tf:only-child { flex: 1 1 0% !important; }
.fduo .fstrip { width: min(100%, calc(var(--w) * var(--H) + 20px)); }
.fduo .fstrip:last-child { justify-self: end; }
@media (max-width: 700px) { .fduo .fstrip { width: 100%; } .fduo .fstrip:has(.tf:only-child) { width: min(100%, calc(var(--w) * 420px)); justify-self: center; } }
