/* Concept C — one dark room throughout (Nocturne), with Folio's composed pairings and caption hierarchy. */

/* Self-hosted Newsreader and Jost (SIL Open Font License 1.1; licences in fonts/). Variable files: one file covers
   both weights. Each subset downloads only if a page uses its characters. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jost-normal-latin-ext.woff2?v=7a55c06261) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jost-normal-latin.woff2?v=180347d9f2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-italic-vietnamese.woff2?v=90e979a869) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-italic-latin-ext.woff2?v=d548c53320) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-italic-latin.woff2?v=3c4f766e09) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(fonts/newsreader-normal-vietnamese.woff2?v=b232cde57b) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(fonts/newsreader-normal-latin-ext.woff2?v=5ca53eda01) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(fonts/newsreader-normal-latin.woff2?v=662a6e2a1a) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0f0f0e;
  --bg-raise: #181816;
  --ink: #eeeae2;                         /* titles and body: 16:1 on --bg */
  --ink-2: #c6c0b4;                       /* places, secondary text: 10:1 */
  --ink-3: #9d978b;                       /* labels, counts: 6.5:1, still AA for small text */
  --line: rgba(238, 234, 226, .16);
  --brass: #d2bc90;                       /* recognition only */
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Futura', system-ui, sans-serif;
  --g: clamp(16px, 3.4vw, 56px);          /* page gutter */
  --hdr: 72px;
  --gap: clamp(16px, 2.2vw, 36px);        /* between paired photographs */
  --space: clamp(96px, 17vh, 200px);      /* between homepage movements */
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
main:focus, .viewer:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); font: 500 13px var(--sans); }
.skip:focus { top: 12px; }

/* Shared type roles */
.label { margin: 0; font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.c-title { margin: 0; font: 400 clamp(19px, 1.5vw, 23px)/1.25 var(--serif); color: var(--ink); }
.c-meta { margin: 4px 0 0; font: 400 13.5px/1.45 var(--sans); letter-spacing: .03em; color: var(--ink-2); }
.c-honour {
  display: flex; align-items: baseline; gap: 10px; margin: 10px 0 0;
  font: italic 400 15px/1.4 var(--serif); color: var(--brass);
}
.c-honour::before { content: ''; flex: none; width: 18px; height: 1px; background: currentColor; opacity: .6; transform: translateY(-4px); }

/* Images: natural ratio; tone colour fills the box until the file arrives. */
.gk-img { width: 100%; height: auto; background: var(--tone); opacity: 0; transition: opacity .6s var(--ease); }
.gk-img.is-loaded { opacity: 1; }

/* ---- Header --------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--g);
  transition: transform .45s var(--ease), background-color .3s;
}
.hdr.is-solid { background: rgba(15, 15, 14, .9); backdrop-filter: blur(10px); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-mark { font: 400 20px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.hdr-nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.hdr-nav a { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 10px 0; }
.hdr-nav a:hover, .hdr-nav a[aria-current] { color: var(--ink); }
.hdr-nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--ink); }

/* ---- Homepage movements --------------------------------------------------- */
.fig { margin: 0; }
.fig > a { display: block; }
.cap { padding-top: 16px; max-width: 46ch; }
.mv { padding: 0 var(--g); margin-top: var(--space); }

/* 1 · Opening: the name beside the first photograph, at its own near-square proportion. */
.mv--hero {
  margin-top: 0; min-height: 100svh; padding-top: calc(var(--hdr) + 24px); padding-bottom: 48px;
  display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: var(--gap); align-items: center;
}
.hero-text { align-self: end; padding-bottom: 72px; }
.hero-name { margin: 14px 0 18px; font: 300 clamp(44px, 5.6vw, 86px)/1 var(--serif); letter-spacing: -.02em; }
.hero-line { margin: 0; max-width: 26ch; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 20px); }
.hero-link {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.hero-link .arrow { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.hero-link:hover { border-color: var(--ink); }
#selected { scroll-margin-top: calc(var(--hdr) + 24px); }
#selected:focus { outline: none; }
.mv--hero .fig { justify-self: end; width: min(100%, calc((100svh - var(--hdr) - 140px) * var(--ar))); }

/* 2 · Pair: equal heights on one baseline. Each figure grows by its ratio, so heights match exactly. */
.mv--pair {
  display: flex; gap: var(--gap); align-items: flex-start;
  max-width: calc((100svh - 190px) * var(--sum) + var(--gap) + 2 * var(--g)); margin-left: auto; margin-right: auto;
}
.mv--pair .fig { flex: var(--ar) 1 0; min-width: 0; }

/* 3 · Statement: one photograph, caption and recognition set beside it. */
.mv--statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.mv--statement .fig { grid-column: 2 / 13; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap); align-items: end; }
.mv--statement .fig > a { width: min(100%, calc((100svh - 160px) * var(--ar))); justify-self: end; }
.mv--statement .cap { padding: 0 0 4px; }
.mv--statement .c-title { font-size: clamp(26px, 2.4vw, 38px); font-weight: 300; }

/* 4 · Offset: the small portrait sits high, the wide landscape lower and larger. */
.mv--offset { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.mv--offset .fig:first-child { grid-column: 1 / 5; }
.mv--offset .fig:last-child { grid-column: 5 / 13; margin-top: clamp(80px, 22vh, 260px); }

/* 5 · Wide: as large as the screen allows. */
.mv--wide { padding: 0 clamp(8px, 1.4vw, 24px); }
.mv--wide .fig { width: min(100%, calc((100svh - 120px) * var(--ar))); margin: 0 auto; }
.mv--wide .cap { padding-left: clamp(8px, 2vw, 32px); }

/* 6 · Quiet: a smaller photograph held in open space. */
.mv--quiet { margin-top: calc(var(--space) * 1.3); margin-bottom: calc(var(--space) * .3); }
.mv--quiet .fig { width: min(100%, 52vw, calc(62svh * var(--ar))); margin: 0 auto; }

/* 7 · Stagger: two portraits at different heights. */
.mv--stagger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.mv--stagger .fig { width: min(100%, calc((100svh - 170px) * var(--ar))); }
.mv--stagger .fig:first-child { grid-column: 2 / 6; justify-self: end; }
.mv--stagger .fig:last-child { grid-column: 7 / 12; margin-top: clamp(120px, 30vh, 340px); }

/* 8 · Close: the offset mirrored; the wide landscape high on the left, the closing portrait lower on the right. */
.mv--close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.mv--close .fig:first-child { grid-column: 1 / 9; }
.mv--close .fig:last-child { grid-column: 9 / 13; width: min(100%, calc((100svh - 170px) * var(--ar))); margin-top: clamp(120px, 32vh, 360px); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Coda: the four collections */
.coda { margin: calc(var(--space) * 1.1) var(--g) 0; padding-top: 40px; border-top: 1px solid var(--line); }
.coda-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.coda-head h2 { margin: 0; font: 300 clamp(28px, 2.6vw, 40px)/1.1 var(--serif); }
.more { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.more:hover { border-color: var(--ink); }
/* A way out of the site (Instagram): a small arrow pointing up and away. */
.more--out { display: inline-flex; align-items: center; gap: 10px; color: var(--brass); border-color: var(--brass-dim, rgba(210, 188, 144, .45)); }
.more--out::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 1px 1px 0 0; transform: translateY(-1px); background: linear-gradient(to bottom right, transparent calc(50% - .6px), currentColor calc(50% - .6px), currentColor calc(50% + .6px), transparent calc(50% + .6px)); }
.more--out:hover { border-color: var(--brass); }

/* ---- Justified rows (gallery and collection covers) ------------------------ */
.jrow { --row: 340px; --jgap: 8px; display: flex; flex-wrap: wrap; gap: var(--jgap); }
.jrow::after { content: ''; flex-grow: 1e6; }
.tile, .cover { position: relative; display: block; flex-grow: var(--ar); width: calc(var(--row) * var(--ar)); text-decoration: none; }
.tile .gk-img { transition: opacity .6s var(--ease), filter .4s; }
.tile-cap {
  position: absolute; inset: auto 0 0; padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(10, 10, 9, .82), rgba(10, 10, 9, 0));
  opacity: 0; transition: opacity .3s;
  overflow: hidden; overflow-wrap: anywhere;   /* long words on narrow tiles stay inside the tile */
}
.tile-cap .c-title { display: block; font-size: 18px; }
.tile-cap .c-meta { display: block; margin-top: 2px; font-size: 12.5px; }
.tile:focus-visible { outline-offset: 2px; }
.tile:focus-visible .tile-cap { opacity: 1; }
@media (hover: hover) {
  .tile:hover .tile-cap { opacity: 1; }
  .jrow:hover .tile .gk-img { filter: brightness(.6); }
  .jrow .tile:hover .gk-img { filter: none; }
}
.jrow--covers { --row: 210px; --jgap: var(--gap); }
.cover-cap { display: block; padding-top: 12px; }
.cover-name { display: block; font: 400 19px/1.3 var(--serif); }
.cover-count { display: block; margin-top: 3px; font: 400 13px/1.3 var(--sans); color: var(--ink-3); letter-spacing: .03em; }
.cover:hover .cover-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---- Work ----------------------------------------------------------------- */
.work-head { padding: calc(var(--hdr) + clamp(40px, 8vh, 96px)) var(--g) 0; }
.work-head h1 { margin: 0; font: 300 clamp(40px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -.015em; }
.work-count { margin: 12px 0 0; font: 400 14px/1 var(--sans); color: var(--ink-3); letter-spacing: .04em; }
.work-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 36px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.tabs a, .view-toggle button {
  padding: 8px 0; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
}
.tabs a:hover, .tabs a[aria-current] { color: var(--ink); }
.tabs a[aria-current] { box-shadow: inset 0 -1px 0 var(--ink); }
.tabs .n { margin-left: 6px; color: var(--ink-3); letter-spacing: .04em; }
.view-toggle { display: flex; gap: 18px; }
.view-toggle button { background: none; border: 0; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.work-body { padding: 0 var(--g); }
.group { margin-top: clamp(48px, 7vh, 80px); }
.work-head + .work-body .group:first-child { margin-top: 32px; }
.group-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.group-head h2 { margin: 0; font: 300 clamp(26px, 2.2vw, 34px)/1.1 var(--serif); }
.group-head .n { font: 400 13px/1 var(--sans); color: var(--ink-3); letter-spacing: .04em; }

/* Index: a text-led catalogue with uncropped thumbnails, distinct from the image-led gallery. */
.ix { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ix li { border-bottom: 1px solid var(--line); }
.ix-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 18rem); gap: 28px; align-items: center; padding: 18px 0; text-decoration: none; }
.ix-thumb { display: flex; align-items: center; justify-content: center; height: 160px; }
.ix-thumb .gk-img { width: auto; height: auto; max-width: 100%; max-height: 160px; }
.ix-title { display: block; font: 400 22px/1.25 var(--serif); }
.ix-place { display: block; margin-top: 4px; font: 400 13.5px/1.4 var(--sans); color: var(--ink-2); letter-spacing: .03em; }
.ix-notes { display: grid; gap: 4px; justify-items: start; }
.ix-honour { font: italic 400 15px/1.35 var(--serif); color: var(--brass); }
.ix-flag { font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ix-row:hover .ix-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---- About ---------------------------------------------------------------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px);
  padding: calc(var(--hdr) + clamp(40px, 8vh, 96px)) var(--g) 0;
}
.about h1 { margin: 14px 0 32px; font: 300 clamp(40px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -.015em; }
.bio { max-width: 34em; }
.bio p { margin: 0; font: 300 clamp(19px, 1.45vw, 23px)/1.55 var(--serif); color: var(--ink); }
.bio p + p { margin-top: 1em; }
.contact-block { margin-top: 40px; max-width: 52ch; }
.contact { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact dd { margin: 6px 0 0; color: var(--ink-2); }
.rec-head { display: flex; align-items: center; gap: 18px; margin: 0 0 8px; padding-top: 30px; }
.about-rec h2 { margin: 0; font: 300 clamp(28px, 2.6vw, 40px)/1.1 var(--serif); }
.honours { list-style: none; margin: 0; padding: 0; }
.honours li { border-bottom: 1px solid var(--line); }
.honour { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 0; text-decoration: none; }
.honour-thumb { display: flex; align-items: center; justify-content: center; height: 150px; }
.honour-thumb .gk-img { width: auto; max-width: 100%; max-height: 150px; }
.honour-org { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.honour-what { display: block; margin-top: 6px; font: 400 21px/1.3 var(--serif); }
.honour-title { display: block; margin-top: 8px; font: italic 400 16px/1.4 var(--serif); color: var(--ink-2); }
.honour:hover .honour-what { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin: clamp(96px, 16vh, 180px) var(--g) 0; padding: 24px 0 40px; border-top: 1px solid var(--line);
  font: 400 13px/1.5 var(--sans); letter-spacing: .03em; color: var(--ink-3);
}
.foot-links { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---- Viewer ---------------------------------------------------------------
   The photograph with its exhibition label. Phones and tablets: the label follows below the photograph, which is
   sized so the title shows on the first screen; Previous / Next sit in a bar at the bottom. Wide screens: the label
   stands beside the photograph. "Image only" hides the label and lets the photograph fill the screen. */
.viewer {
  position: fixed; inset: 0; z-index: 50; background: #090909;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
}
.viewer[hidden] { display: none; }
.v-bar, .v-steps { position: relative; z-index: 3; transition: opacity .5s; }
.v-bar {
  grid-row: 1; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--g); padding-top: env(safe-area-inset-top); box-sizing: content-box;
}
.v-back {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 0; text-decoration: none; color: var(--ink);
  font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.v-back-arrow { flex: none; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(45deg); margin-left: 3px; }
.v-back:hover span:last-child { box-shadow: inset 0 -1px 0 currentColor; }
.v-back-full { display: none; }
.v-btn {
  background: none; border: 0; min-height: 44px; padding: 0; cursor: pointer; color: var(--ink-2);
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.v-btn:hover { color: var(--ink); }
.v-mode-on, .viewer.is-image-only .v-mode-off { display: none; }
.viewer.is-image-only .v-mode-on { display: inline; }

.v-scroll { grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.v-frame { position: relative; }
.v-stage { display: grid; place-items: center; }
.v-stage .gk-img {
  grid-area: 1 / 1; height: auto; transition: opacity .4s var(--ease);
  width: min(100%, calc((100svh - 56px - 60px - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * var(--ar)));
}
.v-stage .gk-img.is-leaving { opacity: 0; pointer-events: none; } /* touches land on the incoming photograph */

.v-label { padding: 22px var(--g) 40px; max-width: 42rem; }
.v-title { margin: 0; font: 300 clamp(26px, 2.2vw, 34px)/1.15 var(--serif); letter-spacing: -.005em; }
.v-meta { margin: 8px 0 0; font: 400 13.5px/1.45 var(--sans); letter-spacing: .03em; color: var(--ink-2); }
.v-honour { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 0; font: italic 400 15.5px/1.4 var(--serif); color: var(--brass); }
.v-honour::before { content: ''; flex: none; width: 18px; height: 1px; background: currentColor; opacity: .6; transform: translateY(-4px); }
.v-honour[hidden] { display: none; }
.v-desc { margin: 22px 0 0; max-width: 40ch; font: 400 18px/1.62 var(--serif); color: var(--ink); }
.v-facts { margin: 26px 0 0; border-top: 1px solid var(--line); }
.v-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.v-facts dt { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.v-facts dd { margin: 5px 0 0; font: 400 16px/1.45 var(--serif); color: var(--ink-2); }
.v-facts .note { font-style: italic; }
.v-colls { margin-top: 40px; }
.v-colls-label { margin: 0 0 10px; font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.v-colls ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.v-colls a { display: inline-block; padding: 7px 0; font: 400 14px/1.3 var(--sans); letter-spacing: .02em; color: var(--ink-2); text-decoration: none; }
.v-colls a:hover, .v-colls a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Previous / Next within the sequence: a bar at the bottom on phones, the foot of the label on wide screens. */
.v-steps {
  grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 calc(var(--g) - 10px) env(safe-area-inset-bottom); box-sizing: content-box;
  border-top: 1px solid var(--line); background: #090909;
}
.v-step {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  color: var(--ink-2); font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.v-step:hover { color: var(--ink); }
.v-step:disabled { visibility: hidden; }
.v-step-arrow { width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(45deg); }
.v-step--next .v-step-arrow { transform: rotate(-135deg); }
.v-count { margin: 0; font: 400 13px/1 var(--sans); letter-spacing: .04em; color: var(--ink-3); }

/* Previous / next zones over the photograph's edges: wide screens only, a thin chevron on hover or focus. */
.v-side { display: none; }

/* Image only: the label goes, the photograph takes the whole screen, the controls float over it. */
.viewer.is-image-only .v-label { display: none; }
.viewer.is-image-only .v-scroll { grid-row: 1 / -1; overflow: hidden; }
.viewer.is-image-only .v-frame, .viewer.is-image-only .v-stage { height: 100%; }
.viewer.is-image-only .v-stage .gk-img { width: min(100%, calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * var(--ar))); }
.viewer.is-image-only .v-bar, .viewer.is-image-only .v-steps { position: absolute; left: 0; right: 0; border: 0; }
.viewer.is-image-only .v-bar { top: 0; background: linear-gradient(rgba(9, 9, 9, .7), rgba(9, 9, 9, 0)); }
.viewer.is-image-only .v-steps { bottom: 0; background: linear-gradient(rgba(9, 9, 9, 0), rgba(9, 9, 9, .7)); }
.viewer.is-idle .v-bar, .viewer.is-idle .v-steps, .viewer.is-idle .v-side { opacity: 0; pointer-events: none; }
.viewer.is-idle { cursor: none; }

@media (min-width: 1000px) {
  .viewer { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); }
  .v-bar { grid-column: 1 / -1; height: 64px; }
  .v-back-full { display: inline; }
  .v-back-short { display: none; }
  .v-scroll { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) 380px; overflow: hidden; }
  .v-frame { display: grid; min-height: 0; padding: 0 var(--g) 40px; }
  .v-stage .gk-img { width: min(100%, calc((100svh - 64px - 40px) * var(--ar))); }
  .v-label {
    display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; max-width: none;
    padding: 24px 40px 120px 36px; border-left: 1px solid var(--line);
  }
  .v-label > :first-child { margin-top: auto; }
  .v-label > :last-child { margin-bottom: auto; }
  .v-colls { margin-top: 44px; }
  .v-steps { position: absolute; right: 0; bottom: 0; width: 380px; height: 76px; padding: 0 30px 0 26px; box-sizing: border-box; border-left: 1px solid var(--line); }
  .v-side {
    position: absolute; top: 0; bottom: 40px; z-index: 2; width: 24%; border: 0; background: none; cursor: pointer; padding: 0 var(--g);
    display: flex; align-items: center; color: var(--ink); transition: opacity .5s;
  }
  .v-prev { left: 0; justify-content: flex-start; }
  .v-next { right: 0; justify-content: flex-end; }
  .v-side span { width: 18px; height: 18px; border: solid currentColor; border-width: 0 0 1px 1px; opacity: 0; transition: opacity .3s; }
  .v-prev span { transform: rotate(45deg); }
  .v-next span { transform: rotate(-135deg); }
  .v-side:hover span, .v-side:focus-visible span { opacity: .85; }
  .v-side:focus-visible { outline: none; }
  .v-side:disabled { display: none; }
  .viewer.is-image-only .v-scroll { grid-template-columns: minmax(0, 1fr); }
  .viewer.is-image-only .v-frame { padding: 0; }
  .viewer.is-image-only .v-stage .gk-img { width: min(100%, calc(100svh * var(--ar))); }
  .viewer.is-image-only .v-steps { left: auto; width: 380px; border: 0; }
  .viewer.is-image-only .v-side { bottom: 0; }
}

/* ---- Preview marker ------------------------------------------------------- */
.gk-preview-marker {
  position: fixed; right: 14px; bottom: 14px; z-index: 60; padding: 7px 11px;
  border: 1px solid rgba(210, 188, 144, .45); background: rgba(15, 15, 14, .86);
  font: 500 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass);
  pointer-events: none;
}
body.has-viewer .gk-preview-marker { bottom: auto; top: 76px; right: var(--g); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .jrow { --row: 260px; }
  .mv--hero { grid-template-columns: minmax(220px, 4fr) 7fr; }
}

@media (max-width: 760px) {
  :root { --hdr: 60px; --space: 88px; --gap: 14px; }
  body { font-size: 16px; }
  .hdr-mark { font-size: 18px; }
  .hdr-nav { gap: 22px; }

  .mv { padding: 0 var(--g); }
  .mv--hero { display: block; min-height: 0; padding-top: calc(var(--hdr) + 28px); padding-bottom: 0; }
  .hero-text { padding-bottom: 36px; }
  .hero-name { font-size: 46px; }
  .mv--hero .fig { width: 100%; }
  .mv--pair, .mv--offset, .mv--stagger, .mv--statement, .mv--close { display: grid; grid-template-columns: 1fr; gap: 56px; max-width: none; }
  .mv--offset .fig, .mv--stagger .fig, .mv--statement .fig, .mv--close .fig { grid-column: 1 / -1 !important; margin-top: 0 !important; justify-self: stretch; }
  .mv--statement .fig { display: block; }
  .mv--statement .fig > a { width: 100%; }
  .mv--statement .cap { padding-top: 16px; }
  /* On a phone, portraits are held to 82% of the screen height so a whole photograph is visible at once. */
  .fig > a { max-width: calc(82svh * var(--ar)); }
  .mv--wide { padding: 0; }
  .mv--wide .cap { padding: 16px var(--g) 0; }
  .mv--quiet .fig { width: 84%; }
  /* Keep some of the desktop rhythm: smaller and offset figures rather than one uniform column. */
  .mv--offset .fig:first-child { width: 72%; }
  .mv--stagger .fig { width: 80%; }
  .mv--stagger .fig:last-child { justify-self: end; }
  .mv--close .fig:last-child { width: 80%; justify-self: end; }
  .gk-preview-marker { right: 10px; bottom: 10px; padding: 6px 9px; font-size: 9.5px; }
  .foot { padding-bottom: 64px; }
  .coda-head { flex-direction: column; gap: 14px; }
  .jrow { --row: 112px; --jgap: 4px; }
  .jrow--covers { --row: 130px; --jgap: 12px; }
  .cover-name { font-size: 16px; }

  .work-bar { margin-top: 24px; }
  .tabs { gap: 2px 18px; }
  .ix-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
  .ix-thumb { height: 72px; }
  .ix-thumb .gk-img { max-height: 72px; }
  .ix-notes { grid-column: 2; }
  .ix-notes:empty { display: none; }
  .ix-title { font-size: 19px; }

  .about { grid-template-columns: 1fr; gap: 56px; }
  .contact { grid-template-columns: 1fr; }
  .honour { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 18px 0; }
  .honour-thumb { height: 96px; }
  .honour-thumb .gk-img { max-height: 96px; }
  .honour-what { font-size: 18px; }

  body.has-viewer .gk-preview-marker { display: none; }
}

@keyframes sheet-in { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Page not found (dist/404.html, built without script) */
.nf { padding: 22vh 8vw 12vh; max-width: 48rem; }
.nf h1 { margin: 14px 0 24px; font: 300 clamp(40px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -.015em; }
.nf p:not(.label) { margin: 0 0 12px; font: 300 clamp(19px, 1.45vw, 23px)/1.55 var(--serif); }
.nf a { color: var(--ink); text-underline-offset: 4px; }

/* ---- Inside Gaganverse (integrated build only) ------------------------------------------------------------------
   The Photography landing at /photography/ (the four collections as rooms) and the viewer's "In Gaganverse" links.
   Unused by the standalone portfolio. */
.land-head { padding: calc(var(--hdr) + clamp(40px, 8vh, 96px)) var(--g) 0; max-width: 60rem; }
.land-kicker { display: flex; align-items: baseline; gap: 12px; }
.land-num { font: italic 400 15px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--brass); }
.land-head h1 { margin: 16px 0 0; font: 300 clamp(44px, 5.4vw, 80px)/1 var(--serif); letter-spacing: -.02em; }
.land-lede { margin: 22px 0 0; max-width: 38em; font: 300 clamp(19px, 1.45vw, 23px)/1.55 var(--serif); color: var(--ink-2); }
.land-links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 30px 0 0; }
.land-room { margin: clamp(64px, 10vh, 120px) var(--g) 0; }
.land-room-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-top: 18px; margin-bottom: 22px; border-top: 1px solid var(--line); }
.land-room-num { font: italic 400 17px/1 var(--serif); color: var(--brass); min-width: 1.6em; }
.land-room-head h2 { margin: 0; font: 300 clamp(28px, 2.6vw, 40px)/1.1 var(--serif); }
.land-room-head h2 a { text-decoration: none; }
.land-room-head h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.land-room-head .n { font: 400 13px/1 var(--sans); color: var(--ink-3); letter-spacing: .04em; }
.land-enter { margin-left: auto; }
.land-row { --row: 230px; }
.v-links { margin-top: 36px; }
.v-links ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.v-links li { border-bottom: 1px solid var(--line); }
.v-links a { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; text-decoration: none; font: 400 16px/1.35 var(--serif); color: var(--ink); }
.v-links a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.v-link-kind { flex: none; min-width: 6.5em; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 760px) {
  .land-row { --row: 104px; }
  .land-room-head { gap: 10px 14px; }
  .land-enter { margin-left: 0; }
}
