@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/eb-garamond-latin.woff2') format('woff2'); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('assets/fonts/crimson-pro.woff2') format('woff2'); }

/* ==========================================================================
   CINEMA — a title-sequence system for Ray Huang - Photography
   Near-black screen, warm projector-white type, credits-style labels.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Colour — contrast measured against --bg (#0c0c0b) */
  --bg: #0c0c0b;            /* the screen */
  --surface: #151513;       /* placeholders, empty posters */
  --surface-2: #1c1b18;     /* alternate empty posters */
  --text: #ece6da;          /* 15.9:1 — titles, primary copy */
  --text-2: #c9c2b4;        /* 11.2:1 — prose, captions */
  --muted: #9d978a;         /*  6.7:1 — meta, secondary labels */
  --faint: #8a8478;         /*  5.3:1 — numbers, tertiary labels (still >= 4.5) */
  --rule: #2a2925;          /* hairlines */
  --rule-strong: #45423b;   /* emphasised hairlines, borders */
  --surface-3: #12120f;     /* third empty poster */
  --frost: rgba(12, 12, 11, .72); /* lightbox: page shows through a blur */
  --glass: rgba(12, 12, 11, .6);  /* sticky header over scrolling photos */
  --name-hover: transparent;      /* home name on hover: hollow letters... */
  --name-hover-stroke: #fff;      /* ...drawn as a 1px white outline */
  --header-stuck: 80px;           /* visible header height once it sticks */
  --dim: rgba(0, 0, 0, .22);/* placeholder hover dim */

  /* Type families */
  --font-heading: 'EB Garamond', 'Noto Serif SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', 'STSong', SimSun, serif;
  --font-body: 'Crimson Pro', 'Noto Serif SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', 'STSong', SimSun, serif;

  /* Type scale: fixed steps, set by the About page (a little larger than the old site) */
  --fs-label: 12px;                         /* tracked uppercase credits */
  --fs-caption: 14px;                       /* captions, meta */
  --fs-small: 15px;
  --fs-body: 16px;                          /* prose */
  --fs-lead: 17px;                          /* italic standfirsts */
  --fs-h3: 17px;                            /* chapter titles, small headings */
  --fs-h2: 20px;                            /* event / film titles */
  --fs-h1: 26px;                            /* page titles, the name on About */

  --lh-tight: 1;
  --lh-head: 1.06;
  --lh-caption: 1.55;
  --lh-body: 1.7;

  --tr-label: .18em;
  --tr-nav: .2em;

  --w-body: 400;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 192px;

  --gutter: clamp(16px, 4.4vw, 80px);
  --max: 1920px;
  --photo-max-h: 88svh;     /* a photograph is always seen whole */

  --image-hover-duration: 360ms;
  --image-hover-ease: cubic-bezier(.2, .6, .3, 1);

  font-family: var(--font-body);
  font-size: 100%;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Thin CJK serif strokes on black: a touch larger, a touch heavier, less tracking. */
:root:lang(zh) {
  --fs-label: 13px;
  --fs-caption: 15px;
  --fs-small: 16px;
  --fs-body: 17px;
  --tr-label: .12em;
  --tr-nav: .14em;
  --w-body: 450;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Font and line height are restated on body so a host page that styles body (e.g. a published preview wrapper) cannot override them. */
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-body); overflow-x: hidden; }
body.lightbox-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; padding: 0; background: none; }
a { color: inherit; text-decoration: none; }
button, h1, h2, h3, p, figure, ul { margin: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: var(--text); color: var(--bg); }

/* Shared label voice: small, tracked, uppercase — the credit line. */
.eyebrow, .image-number, .page-count, .event-meta, .pending-label, .poster-note,
.lightbox-count {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: var(--lh-caption);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: var(--s-3); left: var(--gutter); z-index: 30;
  background: var(--text); color: var(--bg);
  padding: var(--s-3) var(--s-5); min-height: 44px; display: inline-flex; align-items: center;
  font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header: restored from the pre-redesign site, re-toned for the dark screen ---------- */
/* Sticks to the top as frosted glass. The negative top lets part of the top padding scroll away, so the stuck
   bar is slimmer than the resting header without changing layout; padding + margin keep the original 40px gap below. */
.site-header {
  position: sticky; top: -27px; z-index: 20;
  display: flex; align-items: baseline; justify-content: space-between; gap: 30px;
  padding: 43px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 24px;
  margin-bottom: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
}
.wordmark { font-family: var(--font-heading); font-size: 22px; line-height: 1.1; font-weight: 400; white-space: nowrap; letter-spacing: normal; color: var(--text); }
.site-nav { order: 1; margin-left: auto; display: flex; gap: clamp(18px, 2vw, 34px); font-size: 14px; line-height: normal; letter-spacing: .05em; }
.site-nav a { padding: 8px 0; position: relative; white-space: nowrap; color: var(--text); }
.site-nav a::after { content: ''; position: absolute; height: 1px; bottom: 0; left: 0; right: 0; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.header-controls { order: 2; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.language-toggle { display: grid; place-items: center; width: 32px; height: 32px; font-size: 12px; line-height: 1; border: 1px solid var(--rule-strong); white-space: nowrap; }
.language-toggle:hover { border-color: var(--text); }

/* ---------- Main frame ---------- */
/* There is no footer: each page ends a short way under its content, and home on its last photograph. */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--s-8); min-height: calc(100svh - 260px); }
.route-home main { padding-bottom: 0; }
/* Documentary: the header stays where it is as the page scrolls (elsewhere it slides up a little and sticks). */
.route-documentary .site-header { top: 0; }

/* ---------- Home: after christopherandersonphoto.com ---------- */
/* The name holds the centre of the screen; captionless photographs scatter past it and come into focus. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-page { padding-bottom: 30svh; }
/* Pure white, with a soft shadow so it stays legible over bright frames. On hover the letters turn to an outline
   (--name-hover fill, --name-hover-stroke line), so the photographs show through them. */
.home-name {
  position: fixed; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.home-name > span {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(40px, 6.2vw, 104px); line-height: 1; letter-spacing: .005em;
  text-align: center; color: #fff;
  -webkit-text-stroke: 1px transparent;
  text-shadow: 0 0 28px rgba(0, 0, 0, .35);
  pointer-events: auto;
  transition: color .35s ease, -webkit-text-stroke-color .35s ease, text-shadow .35s ease;
}
.home-name > span:hover { color: var(--name-hover); -webkit-text-stroke-color: var(--name-hover-stroke); text-shadow: none; }
/* Past half a screen the name dissolves (setupHomeName in app.js): every letter blurs, fades and drifts upward on its
   own path and delay, then gathers again, a little faster, back at the top. */
.home-name .ch {
  display: inline-block;
  transition: opacity .8s ease, filter .8s ease, transform 1.3s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(var(--delay) * .4);
}
.home-name.is-gone > span { pointer-events: none; }
.home-name.is-gone .ch {
  opacity: 0; filter: blur(14px);
  transform: translate(var(--dx), var(--dy)) rotate(var(--turn)) scale(1.12);
  transition-delay: var(--delay);
}

/* One continuous scatter in three lanes; app.js places every photo (x, y, w as percent of the home width) so density
   stays even and frames never overlap. Positions are plain percentages of a field whose aspect ratio is 100 : h,
   not container units. Every photo stays beneath the fixed name. */
.scatter { margin-top: 38svh; }
.scatter-field { position: relative; aspect-ratio: 100 / var(--h); }
.scatter-item {
  position: absolute; z-index: 1; margin: 0;
  left: calc(var(--x) * 1%); top: calc(var(--y) / var(--h) * 100%); width: calc(var(--w) * 1%);
}
.editorial-item { min-width: 0; }
.home-motion .editorial-item { transition: opacity .8s, filter .8s; }
.home-motion .editorial-item.is-pending { opacity: 0; filter: blur(2rem); }
.home-motion .editorial-item:focus-within { opacity: 1; filter: none; transition: none; }

/* Photographs: never cropped, never taller than the screen. */
.photo-button { display: block; width: 100%; position: relative; cursor: zoom-in; }
.photo-button img { width: 100%; height: auto; max-height: var(--photo-max-h); object-fit: contain; object-position: center; }
.home-freeform .photo-button img { max-height: none; }
/* No arrow appears over a photograph under the pointer; the zoom-in cursor says it opens large. */

/* Captions read as end-credits: number — rule — line. */
figcaption {
  margin-top: var(--s-4);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-2);
}
.image-number { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--faint); flex-shrink: 0; }
.image-number::after { content: ''; width: var(--s-5); border-top: 1px solid var(--rule-strong); }
.placeholder-label {
  display: inline-block; vertical-align: middle;
  margin-left: var(--s-2); padding: 0 6px;
  font-family: var(--font-body); font-size: 11px; font-weight: 400; font-style: normal;
  line-height: 1.7; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.text-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-7);
  min-height: 44px; padding: var(--s-2) 0;
  font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; line-height: 1.2;
  color: var(--text);
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 240ms ease, color 240ms ease;
}
.text-link:hover { border-bottom-color: var(--text); }


/* ---------- Page title cards ---------- */
.page-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6);
  padding: clamp(16px, 3vh, 32px) 0 var(--s-6);
}
.page-heading h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  line-height: 1.15;
  font-weight: 500;
  color: var(--text);
}
.page-heading p {
  margin-top: var(--s-3);
  font-size: var(--fs-lead); line-height: 1.45; font-style: italic;
  color: var(--text-2);
  max-width: 34em;
}
.page-count { color: var(--faint); white-space: nowrap; padding-bottom: var(--s-2); }

/* ---------- Documentary and Photojournalism covers ---------- */
/* One design for both: photographs in rows with 20px between them, only the photographs showing. Documentary's are
   square, four across (three, two, then one on narrower screens); Photojournalism's keep the photographs' own 3:2
   shape, three across, so each is about as large as a square would be (two, then one, on narrower screens; a
   portrait cover is cut to 3:2 through its middle). Under the pointer (or keyboard focus) a dark grey veil fades in
   over the photograph with the title and one line of detail in its middle, and the photograph grows a little. On a
   touch screen, with no pointer to hover, the veil and words always show. */
.documentary-page, .journalism-page { max-width: 1360px; margin: 0 auto; }
/* Documentary's globe (app.js, setupGlobe). No words: the page is one stage as tall as the screen under the header,
   the globe in its middle (at most 640px, and never taller than three quarters of the screen), with room round it for
   the glow of the atmosphere. A flat canvas over it draws the lit borders and the places' lights. The globe fades in
   once the map has loaded. A sideways drag turns it; an upright swipe on a touch screen still scrolls the page. Over a
   region or a place the pointer becomes a hand. While a region's albums are out the globe draws back a little
   (setupGlobe sets the scale) to leave them room. */
.globe-page { position: relative; }
.globe-stage { position: relative; min-height: calc(100svh - 150px); display: grid; place-items: center; }
/* With no album open on a wide screen the page holds still (setupGlobe adds globe-still): no scrolling, and the stage
   runs from the top of the page (--globe-top) to just above the bottom of the screen. */
html.globe-still { overflow: hidden; }
html.globe-still main { padding-bottom: 0; min-height: 0; }
html.globe-still .globe-stage { height: calc(100svh - var(--globe-top, 115px) - 12px); min-height: 0; }
html.globe-still .globe-regions:focus-within { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; z-index: 6; }
.globe { position: relative; width: min(100%, 640px, 74svh); transition: transform .8s cubic-bezier(.65, 0, .2, 1); }
.globe-canvas { display: block; width: 100%; aspect-ratio: 1 / 1; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; opacity: 0; transition: opacity .9s ease; }
.globe-canvas.over-region { cursor: pointer; }
.globe-canvas:active { cursor: grabbing; }
.globe-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.globe.is-ready .globe-canvas, .globe.is-ready .globe-lines { opacity: 1; }
.globe-canvas:focus { outline: none; }
.globe-canvas:focus-visible { outline: 1px solid var(--rule-strong); outline-offset: -8%; border-radius: 50%; }
/* Documentary's switch between Travelogue and Projects: "Travelogue", a small track, "Projects", in the site's own
   typeface (13px). The track is a thin white outline with a white dot in it: left for Travelogue, sliding right for
   Projects. The side being shown is white, the other dimmed. It stays put while the sides change; on the globe it
   fades away once a region is chosen (or an album is open). */
.doc-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: normal; letter-spacing: .04em; }
.doc-switch a { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; color: var(--muted); transition: color .3s ease; }
.doc-switch a:hover { color: var(--text); }
.doc-switch a[aria-current="page"] { color: #fff; }
.doc-switch-track { position: relative; flex: none; width: 34px; height: 18px; padding: 0; border: 1px solid rgb(255 255 255 / .6); border-radius: 999px; background: none; cursor: pointer; transition: border-color .3s ease; }
.doc-switch-track:hover, .doc-switch-track:focus-visible { border-color: #fff; }
.doc-switch-dot { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.65, 0, .2, 1); }
.doc-switch[data-on="projects"] .doc-switch-dot { transform: translateX(16px); }
.doc-switch.is-still .doc-switch-dot { transition: none; }
.globe-page .doc-switch { position: absolute; top: 0; left: 0; z-index: 4; transition: opacity .4s ease, visibility .4s; }
.globe-page.has-region:not(.is-projects) .doc-switch, .globe-page.is-album .doc-switch { opacity: 0; visibility: hidden; pointer-events: none; }
/* The two sides of the page. Projects sits under the switch; the globe's stage, arrows and keyboard row go while it
   shows. Changing side, what is showing dissolves (blur and fade, .25s), then the other side fades in (.4s), the
   projects' covers one after another. */
.globe-page .doc-projects { display: none; padding-top: 48px; }
.globe-page.is-projects .doc-projects { display: block; }
.globe-page.is-projects .globe-stage, .globe-page.is-projects .globe-arrow, .globe-page.is-projects .globe-regions { display: none; }
.globe-stage.is-dissolving, .doc-projects.is-dissolving, .globe-arrow.is-dissolving { opacity: 0; filter: blur(1.2rem); transition: opacity .25s ease, filter .25s ease; }
.globe-stage.is-appearing { animation: side-in .4s ease both; }
.doc-projects.is-appearing .project-card { animation: side-in .4s ease both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes side-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .doc-switch-dot, .doc-switch a { transition: none; } .globe-stage.is-appearing, .doc-projects.is-appearing .project-card { animation: none; } }
/* The < and > at the far left and right of the screen: thin chevrons that turn the globe on to the next region. */
.globe-arrow { position: fixed; top: 50%; z-index: 5; width: 44px; height: 88px; display: grid; place-items: center; color: var(--muted); transform: translateY(-50%); transition: color 240ms ease, opacity .4s ease; }
.globe-arrow-prev { left: 12px; }
.globe-arrow-next { right: 12px; }
.globe-arrow svg { width: 16px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.globe-arrow:hover, .globe-arrow:focus-visible { color: var(--text); }
.globe-page:not(.has-region) .globe-arrow { opacity: 0; visibility: hidden; pointer-events: none; }
.globe-arrow { transition: color 240ms ease, opacity .4s ease, visibility .4s; }
/* A region's albums round the whole screen (placed by setupGlobe), large covers like Photojournalism's. They come into
   focus one after another, as the home page's photographs do, and blur away when another region is chosen. On a
   narrow screen they sit under the globe instead, two across, then one. */
.globe-albums { position: absolute; inset: 0; pointer-events: none; }
.globe-album { position: absolute; pointer-events: auto; transition: opacity .8s, filter .8s; transition-delay: calc(var(--i, 0) * 90ms); }
.globe-album .album-cover { aspect-ratio: 3 / 2; }
/* The home page's depth: each cover floats over a deep, soft shadow that setupGlobe turns away from the pointer. The
   other covers stay as they are while one is under the pointer. */
.globe-album .album-cover { overflow: hidden; box-shadow: var(--shadow-x, 0px) var(--shadow-y, 28px) 56px -18px rgb(0 0 0 / .85), 0 6px 16px rgb(0 0 0 / .45); transition: box-shadow .35s ease-out; }
/* A cover coming in takes its shadow as it is, with no easing into place. */
.globe-album.is-pending .album-cover, .globe-album.is-leaving .album-cover { transition: none; }
.globe-albums.is-under .globe-album .album-cover { box-shadow: none; }
.globe-album.is-pending, .globe-album.is-leaving { opacity: 0; filter: blur(2rem); }
.globe-album.is-leaving { transition-duration: .35s; transition-delay: 0s; pointer-events: none; }
.globe-albums.is-under { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--s-5); pointer-events: auto; }
.globe-albums.is-under .globe-album { position: relative; }
.globe-albums.is-under:empty { display: none; }
@media (max-width: 600px) { .globe-albums.is-under { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .globe-stage { display: block; min-height: 0; } .globe { margin: 0 auto; } }
/* An open album: the globe in the left quarter, the whole height of the screen, low down, closed in on the region and
   seen through a round lens; the place's name over it and the way back to the whole globe at the top; the
   photographs in the right three quarters, coming into focus. On a narrow screen: the way back, the name, a smaller
   globe, then the photographs. */
.globe-page .globe-back, .globe-page .globe-label, .globe-page .globe-gallery { display: none; }
.globe-page.is-album .globe-back { display: inline-flex; }
/* Over the small globe: the region, in the place's typeface and colour (a size smaller), then the place between two
   small chevrons that go to the region's other places. Going from place to place, the region's name stays put. */
.globe-page.is-album .globe-label { display: block; align-self: stretch; width: 100%; margin: 0 0 var(--s-4); text-align: center; }
.globe-region-name { margin: 0 0 var(--s-1); font-family: var(--font-heading); font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; color: var(--text); }
/* The arrows sit at a fixed distance either side of the middle, however long the place's name: a row of fixed
   width with the name centred between them. */
.globe-place-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; width: min(100%, 300px); margin: 0 auto; }
.globe-place { grid-column: 2; margin: 0; font-family: var(--font-heading); font-size: var(--fs-h2); line-height: 1.2; font-weight: 500; color: var(--text); text-align: center; }
.place-step[data-step="1"] { grid-column: 3; }
.place-step { width: 32px; height: 44px; display: grid; place-items: center; flex: none; color: var(--muted); transition: color 240ms ease; }
.place-step:hover, .place-step:focus-visible { color: var(--text); }
.place-step svg { width: 10px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.globe-label.is-entering, .globe-place.is-entering { animation: focus-in .9s cubic-bezier(.2, .7, .3, 1) both; }
/* From place to place in a region the change is quicker, and only a fade: no blur, so nothing like a shadow flickers
   behind the name or the photographs. */
.globe-place.is-switching, .globe-gallery.is-switching { animation: side-in .3s ease both; }
/* The album on the right: each section's name, then its photographs. */
.globe-gallery .album-chapter { margin-top: var(--s-9); }
.globe-gallery .album-chapter:first-child { margin-top: 0; }
.album-section-name { margin: 0 0 var(--s-5); font-family: var(--font-heading); font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; color: var(--text); }
.globe-page.is-album .globe-gallery { display: block; }
.globe-page.is-album .globe-albums, .globe-page.is-album .globe-regions, .globe-page.is-album .globe-arrow { display: none; }
.globe-page.is-album .globe-canvas, .globe-page.is-album .globe-lines { -webkit-mask-image: radial-gradient(closest-side, #000 92%, transparent 100%); mask-image: radial-gradient(closest-side, #000 92%, transparent 100%); }
.globe-gallery.is-entering { animation: focus-in .9s cubic-bezier(.2, .7, .3, 1) both; }
@media (min-width: 900px) {
  .globe-page.is-album { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: clamp(24px, 3vw, 56px); align-items: start; }
  .globe-page.is-album .globe-gallery { grid-column: 2; }
  /* The left column does not scroll: fixed where the grid's first column is (setupGlobe gives its place and width),
     from the top of the page as it first shows down to near the bottom of the screen. */
  .globe-page.is-album .globe-stage { position: fixed; left: var(--album-left, var(--gutter)); width: var(--album-width, 22vw); top: var(--album-top, 115px); bottom: var(--s-5); height: auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: var(--s-4); }
  .globe-page.is-album .globe { width: 100%; }
  .globe-page.is-album .globe-back { position: absolute; top: 0; left: 0; margin: 0; }
}
@media (max-width: 899px) {
  .globe-page.is-album .globe-place { margin-top: var(--s-4); }
  .globe-page.is-album .globe { width: min(72vw, 320px); }
  .globe-page.is-album .globe-gallery { margin-top: var(--s-6); }
}
/* The regions' names, for the keyboard only: out of sight until one of them has focus, then a row under the globe. */
.globe-regions { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.globe-regions:focus-within { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: flex; justify-content: center; gap: var(--s-5); margin-top: var(--s-4); }
.globe-regions button { min-height: 44px; font-size: var(--fs-caption); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.globe-regions button[aria-pressed="true"] { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .globe-album, .globe { transition: none; } .globe-gallery.is-entering, .globe-label.is-entering, .globe-place.is-entering, .globe-place.is-switching, .globe-gallery.is-switching { animation: none; } }
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1200px) { .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1201px) { .journalism-page .album-grid, .doc-projects .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.album-card { display: block; }
.album-cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); }
.event-card .album-cover { aspect-ratio: 3 / 2; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.album-info {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-1); padding: var(--s-5); text-align: center; background: rgb(22 22 20 / .68);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.album-info h2 { margin: 0; font-family: var(--font-heading); font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; color: var(--text); }
.album-info p { margin: 0; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-2); }
.album-card:hover .album-cover img, .album-card:focus-visible .album-cover img { transform: scale(1.03); }
.album-card:hover .album-info, .album-card:focus-visible .album-info { opacity: 1; }
@media (hover: none) { .album-info { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .placeholder-photo::after { content: ''; position: absolute; inset: 0; background: var(--dim); opacity: 1; pointer-events: none; transition: opacity var(--image-hover-duration) var(--image-hover-ease); }
  .placeholder-photo:hover::after, .placeholder-photo:focus-visible::after { opacity: 0; }
}
.section-note { margin-top: var(--s-6); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); max-width: 52em; }

/* ---------- Album (Documentary detail) ---------- */
.album-page { display: block; }
.back-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-2);
  font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--muted); transition: color 240ms ease;
}
.back-link:hover { color: var(--text); }
.album-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8%; padding: var(--s-5) 0 var(--s-8); }
.eyebrow { color: var(--muted); }
.album-intro h1, .album-intro h2 {
  font-family: var(--font-heading); font-size: var(--fs-h1); line-height: 1.15;
  font-weight: 500; margin: var(--s-3) 0 var(--s-3);
}
.album-meta { font-size: var(--fs-lead); line-height: 1.45; font-style: italic; color: var(--text-2); }
.album-description { align-self: end; max-width: 32em; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }
.chapter-navigation { display: flex; flex-wrap: wrap; column-gap: var(--s-7); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s-2) 0; }
.chapter-navigation button {
  min-height: 44px; text-align: left;
  font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--muted); transition: color 240ms ease;
}
.chapter-navigation button:hover { color: var(--text); }
.chapter-navigation span { margin-left: var(--s-3); }
.album-chapter { margin-top: var(--s-9); scroll-margin-top: calc(var(--header-stuck) + var(--s-6)); }
.album-chapter:focus { outline: none; }
.chapter-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: baseline;
  margin-bottom: var(--s-7);
}
.chapter-heading h2, .chapter-heading h3 { font-family: var(--font-heading); font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; }
.chapter-heading p { font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); max-width: 36em; }
.photo-sequence { display: flex; flex-direction: column; align-items: center; gap: clamp(64px, 9vw, 160px); }
.sequence-item { width: 100%; max-width: 1480px; }
.sequence-item.portrait { width: min(100%, 760px); }
.sequence-item figcaption { display: flex; justify-content: center; align-items: baseline; gap: var(--s-4); text-align: center; max-width: 46em; margin-left: auto; margin-right: auto; }
.next-album {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3);
  margin: var(--s-10) 0 0; padding: var(--s-7) 0 var(--s-4);
  border-top: 1px solid var(--rule);
}
.next-album span:first-child { font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); }
.next-album span:last-child { font-family: var(--font-heading); font-size: var(--fs-h1); line-height: 1.15; font-weight: 500; transition: color 240ms ease; }
.next-album:hover span:last-child { color: var(--text-2); }

/* ---------- Photojournalism: event covers under a row of categories; each event on its own page ---------- */
/* The categories, in the small tracked capitals of the labels. Each is a full-height tap target; its line sits just
   under the word, grows from the left on hover as the menu does, and stays under the chosen one. */
.event-filter { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); margin: calc(-1 * var(--s-3)) 0 var(--s-6); }
.event-filter button {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; line-height: 1;
  transition: color 180ms ease;
}
.event-filter span { position: relative; display: inline-block; padding-bottom: 5px; }
.event-filter span::after { content: ""; position: absolute; height: 1px; bottom: 0; left: 0; right: .18em; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.event-filter button:hover, .event-filter button[aria-pressed="true"] { color: var(--text); }
.event-filter button:hover span::after, .event-filter button[aria-pressed="true"] span::after { transform: scaleX(1); }
/* After a change of category the covers fade back in. */
.event-card-in { animation: event-card-in 420ms cubic-bezier(.2, .7, .3, 1) both; }
@keyframes event-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* An event: its heading in the reading column, then its photographs laid out freely across the whole page
   (.free-gallery). Captions show when a photograph is opened large. */
.event-head { max-width: 760px; padding-bottom: var(--s-6); }
.event-summary { margin-top: var(--s-5); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); max-width: 36em; }
.event-source { margin-top: var(--s-8); }
.album-meta:empty, .album-description:empty, .chapter-heading p:empty { display: none; }
.publication-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-6);
  font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--text); border-bottom: 1px solid var(--rule-strong);
  transition: border-color 240ms ease;
}
.publication-link:hover { border-bottom-color: var(--text); }

/* ---------- Film & Other Work: sections of covers, each opening the work on its own page ---------- */
/* No rule between sections, only a little more room. Photojournalism's Featured and More Events groups (.event-group)
   are titled and spaced the same way. */
.work-section + .work-section, .event-group + .event-group { margin-top: calc(var(--s-8) + var(--s-5)); }
.work-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-5); }
.work-section-head h2 { font-family: var(--font-heading); font-size: var(--fs-h2); line-height: 1.2; font-weight: 500; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) clamp(16px, 2vw, 28px); }
.work-card { display: block; }
/* A cover grows a little under the pointer, as the photographs on home do. */
/* Covers are 3:2, the shape of a camera frame; the placeholder covers take the same shape. */
.work-cover, .work-cover.film-poster { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s ease; }
.work-card:hover .work-cover img, .work-card:focus-visible .work-cover img { transform: scale(1.03); filter: none; }
.work-card h3 { margin-top: var(--s-3); font-family: var(--font-heading); font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; color: var(--text); }
.work-card p { margin-top: var(--s-1); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); }
.work-head { padding: var(--s-5) 0 var(--s-6); }
.work-head h1 { margin: var(--s-3) 0; font-family: var(--font-heading); font-size: var(--fs-h1); line-height: 1.15; font-weight: 500; }

/* A photo story's page, set like its article on The Huntington News: everything in one reading column, the headline
   a little larger than other titles, the credit before each caption, the text at reading size, and the other
   photographs as a gallery slideshow under a hairline, with arrows and a count. */
.article { max-width: 760px; margin: 0 auto; }
.article-head { padding: var(--s-5) 0 var(--s-6); }
.article-head h1 { margin: var(--s-3) 0 var(--s-5); font-family: var(--font-heading); font-size: 30px; line-height: 1.25; font-weight: 500; }
.article-byline { font-weight: 600; color: var(--text); }
.article-dateline { margin-top: var(--s-1); font-size: var(--fs-caption); color: var(--muted); }
.article-figure, .article .slide { margin: 0; }
.article figcaption { margin-top: var(--s-3); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-2); }
.article-credit { display: block; margin-bottom: var(--s-1); color: var(--muted); }
.article-body { margin-top: var(--s-7); }
.article-body p { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.article-body p + p { margin-top: var(--s-4); }
.article-gallery { margin-top: var(--s-8); }
.article-gallery-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); border-top: 1px solid var(--rule); padding-top: var(--s-3); margin-bottom: var(--s-4); color: var(--text); }
.slide-controls { display: inline-flex; align-items: center; gap: var(--s-3); }
.slide-controls button { width: 40px; height: 40px; border: 1px solid var(--rule-strong); color: var(--text); transition: background-color 240ms ease, color 240ms ease; }
.slide-controls button:hover { background: var(--text); color: var(--bg); }
.slide-count { min-width: 4.5em; text-align: center; font-variant-numeric: lining-nums tabular-nums; color: var(--muted); }
.article-source { margin-top: var(--s-6); }

/* A project page (such as a commissioned exhibition): the introduction in a reading column, then the films one under
   another at full width with a title and caption each, then a spread-out gallery in rows that fill the width. Each
   photograph grows in proportion to its shape (--ar, width over height), so every row comes out one even height. */
.project { max-width: 1080px; margin: 0 auto; }
.project .work-head, .project-intro { max-width: 760px; }
.project-role { margin-top: var(--s-2); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-2); }
.project-intro { margin-top: 0; }
.project-section { margin-top: var(--s-9); }
.project-section > h2 { border-top: 1px solid var(--rule); padding-top: var(--s-3); margin-bottom: var(--s-5); font-family: var(--font-heading); font-size: var(--fs-h2); line-height: 1.2; font-weight: 500; }
.project-video { margin: 0; }
.project-video + .project-video { margin-top: var(--s-7); }
/* A single film plays at the top, the full width of the page, with its description under it. */
.project-feature + .project-intro { margin-top: var(--s-7); }
.project-video video { display: block; width: 100%; height: auto; background: #000; }
.video-embed { aspect-ratio: 16 / 9; background: #000; }
/* A film that only plays on YouTube: its cover, which grows a little under the pointer as the covers do, and the link
   to YouTube under it. */
.video-poster-link { display: block; overflow: hidden; background: #000; }
.video-poster-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.94); transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s ease; }
.video-poster-link:hover img, .video-poster-link:focus-visible img { transform: scale(1.02); filter: none; }
.video-watch { margin-top: var(--s-3); }
/* A film with its own cover: the whole cover (3:2) shows, with a play mark in the corner like the film cards' arrow;
   a click swaps in the player. */
.video-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: #000; cursor: pointer; color: var(--text); text-decoration: none; }
.video-cover img { display: block; width: 100%; height: auto; filter: brightness(.96); transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s ease; }
.video-cover:hover img, .video-cover:focus-visible img { transform: scale(1.02); filter: none; }
.video-play {
  position: absolute; right: var(--s-4); bottom: var(--s-4);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--bg); color: var(--text); border: 1px solid var(--rule-strong);
  transition: background-color 240ms ease, color 240ms ease;
}
.video-cover:hover .video-play, .video-cover:focus-visible .video-play { background: var(--text); color: var(--bg); }
/* A project's films as a grid, two across, sized so both rows and their captions fit on one screen under the
   heading (each cover is 3:2, so the grid's width follows the screen's height); one across on a phone. */
.video-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: start;
  max-width: max(600px, calc(1.5 * (100svh - 430px) + var(--s-5)));
}
.video-grid .project-video + .project-video { margin-top: 0; }
/* Caption: the title, with the YouTube link (if any) at the right of the same line, and the description under both. */
.video-grid .project-video figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); }
.video-grid .project-video figcaption > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.video-grid .project-video figcaption > a { grid-column: 2; grid-row: 1; }
/* That link is small, with its line just under the letters, and sits on the title's baseline. */
.video-grid .project-video figcaption > .project-video-title, .video-grid .project-video figcaption > a { align-self: baseline; }
.video-grid .project-video figcaption > .text-link { display: inline-block; min-height: 0; padding: 0 0 2px; font-size: 11px; letter-spacing: .14em; line-height: 1; }
.video-grid .video-play { right: var(--s-3); bottom: var(--s-3); width: 40px; height: 40px; }
/* Every cover in the grid is 3:2: holding that shape keeps the tiles equal and saves their room before they load. */
.video-grid .video-cover img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; max-width: none; } }
/* A project's outside link (such as the client's own article) sits under its description. */
.project-link { margin-top: var(--s-5); }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-video figcaption { display: flex; gap: var(--s-4); margin-top: var(--s-3); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-2); }
.project-video-title { flex: none; font-weight: 600; color: var(--text); }
.project-credit { margin: calc(-1 * var(--s-3)) 0 var(--s-4); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-2); }
/* A gallery laid out freely (app.js, freeGallery): each photograph placed at its own x, width and y, all fractions of
   the gallery's width, and the gallery as tall as its --h (also a fraction of its width), so it scales with the page.
   An event's gallery runs across the whole page; the exhibition's across the project's 1080px column. */
.free-gallery { position: relative; width: 100%; aspect-ratio: 1 / var(--h); }
.free-gallery figure { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; }
.free-gallery .photo-button img { width: 100%; height: auto; max-height: none; aspect-ratio: var(--ar); object-fit: cover; }

/* ---------- Film & Other Work ---------- */
.film-list { border-bottom: 1px solid var(--rule); }
.film-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 7%; align-items: center;
  padding: var(--s-7) 0 var(--s-9); border-top: 1px solid var(--rule);
}
.film-poster-link { display: block; }
.film-poster {
  aspect-ratio: 16 / 9; position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--surface); color: var(--muted);
}
.film-poster img { width: 100%; height: 100%; object-fit: contain; }
.film-row:nth-child(2) .film-poster { background: var(--surface-2); }
.film-row:nth-child(3) .film-poster { background: var(--surface-3); }
.film-frame {
  display: grid; place-items: center; width: 22%; aspect-ratio: 2.39 / 1;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-heading); font-size: var(--fs-h2);
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: .08em; color: var(--text-2);
}
.poster-note { margin-top: var(--s-5); color: var(--faint); }
.play-icon {
  position: absolute; right: var(--s-4); bottom: var(--s-4);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--bg); color: var(--text); border: 1px solid var(--rule-strong);
  transition: background-color 240ms ease, color 240ms ease;
}
.film-poster-link:hover .play-icon { background: var(--text); color: var(--bg); }
.film-info h2 { font-family: var(--font-heading); font-size: var(--fs-h2); line-height: 1.2; font-weight: 500; margin: var(--s-3) 0 var(--s-4); }
.film-info > p:not(.eyebrow) { font-size: var(--fs-body); line-height: var(--lh-body); max-width: 28em; color: var(--text-2); }
.film-info .film-role { margin-top: var(--s-3); font-style: italic; color: var(--muted); }
.pending-label { display: block; margin-top: var(--s-6); color: var(--faint); }
.film-info .text-link { margin-top: var(--s-6); }

/* ---------- About ---------- */
/* After the old site: in a centred frame, a column of text on the left beside the portrait, top-aligned, with the
   type only a little larger than there (name 18px, line under it and links 14px, text 13px on the old site). The
   portrait starts level with the first line of the text and scrolls with it, with the links under it, their glyphs
   lined up on its left edge. The page ends a short way under the longer column, with no footer. */
.about-page {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "head ." "copy photo";
  column-gap: clamp(40px, 7vw, 112px); align-items: start;
  max-width: 1080px; margin: 0 auto; padding: clamp(16px, 3vh, 32px) 0 0;
}
.about-head { grid-area: head; }
.about-head h1 { font-family: var(--font-heading); font-size: var(--fs-h1); line-height: 1.15; font-weight: 500; color: var(--text); }
/* The line under the name sits as far above the text as On Media does above its paragraph. */
.about-tagline { margin-top: var(--s-4); font-size: var(--fs-h3); line-height: 1.4; font-weight: 600; color: var(--text); }
/* The portrait sits on the wall like the photographs on home, with the same shadow. */
/* Under the portrait, the links start level with the first line of On Media: app.js sets their top margin from where
   that line falls (32px at the least). */
.about-side { grid-area: photo; }
.about-portrait { margin: var(--s-3) 0 0; }
.about-portrait img { width: 100%; height: auto; box-shadow: 0 28px 56px -18px rgb(0 0 0 / .85), 0 6px 16px rgb(0 0 0 / .45); }
.about-portrait figcaption { color: var(--muted); }
.about-copy { grid-area: copy; margin-top: var(--s-3); max-width: 36em; font-size: var(--fs-body); line-height: 1.65; color: var(--text-2); }
.about-copy p + p { margin-top: var(--s-4); }
.about-copy h2 { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-h3); line-height: 1.4; font-weight: 600; color: var(--text); }
.about-copy .about-placeholder { font-family: var(--font-heading); font-size: 22px; line-height: 1.3; color: var(--text); }
.about-copy .about-note {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule);
  font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted);
}
/* The links as on the old site: the glyph and a bold line. */
.about-links { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.about-links a { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text); transition: opacity 240ms ease; }
.about-links a:hover { opacity: .7; }
/* Every glyph is drawn 24.5px tall (the Instagram square with its stroke), except the HN letters, a little smaller,
   and centred on the line. Each sits in the same 48 x 30 slot and is centred across it, so the four share one upright
   axis whatever their width; the slots start on the portrait's left edge, and the link text lines up after them. */
.about-link-icon { width: 48px; height: 30px; flex: none; }
/* The Huntington News's HN letters, cut from its logo, as a mask filled with the text colour, centred in the slot.
   They are 22px tall (about 42px wide), a little under the other glyphs' 24.5px, since the wide, dark blackletter
   would otherwise look the largest of the four. */
.about-link-hn {
  background: currentColor;
  -webkit-mask: url(assets/icons/huntington-news-hn.png) center / auto 22px no-repeat;
  mask: url(assets/icons/huntington-news-hn.png) center / auto 22px no-repeat;
}
/* A little more dark below the page than elsewhere. */
.route-about main { padding-bottom: var(--s-9); }
.about-copy .text-link { margin-top: var(--s-6); text-transform: none; letter-spacing: .02em; font-size: var(--fs-body); }

/* ---------- 404 / errors / fallbacks ---------- */
.not-found { padding: var(--s-10) 0; }
.not-found h1 { font-family: var(--font-heading); font-size: var(--fs-h1); line-height: 1.15; font-weight: 500; }
.not-found p { margin: var(--s-5) 0 var(--s-6); font-size: var(--fs-lead); font-style: italic; color: var(--text-2); }
.image-error {
  display: block; padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--rule);
  font-size: var(--fs-caption); text-align: center; color: var(--muted);
}
.noscript-message { padding: var(--s-5) var(--gutter); color: var(--text); font-size: var(--fs-body); }

/* ---------- Lightbox: frosted overlay, after christopherandersonphoto.com ---------- */
/* The page stays faintly visible through a 2rem blur; each photograph arrives out of focus. */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: none; height: 100%; max-height: none;
  background: var(--frost); color: var(--text); overflow: hidden;
  -webkit-backdrop-filter: blur(2rem); backdrop-filter: blur(2rem);
}
.lightbox[open] { display: flex; flex-direction: column; animation: frost-in .4s cubic-bezier(.4, 0, .2, 1); }
.lightbox::backdrop { background: transparent; }
.lightbox-image.is-changing { animation: focus-in .4s cubic-bezier(.4, 0, .2, 1); }
.lightbox.captionless #lightbox-caption { display: none; }
.lightbox.captionless .lightbox-stage { padding-bottom: var(--s-7); }
.lightbox-toolbar { flex-shrink: 0; padding: var(--s-4) var(--s-6); display: flex; justify-content: space-between; align-items: center; }
.lightbox-count { color: var(--muted); }
.lightbox-close {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); margin-right: calc(var(--s-3) * -1);
  font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--text-2); transition: color 240ms ease;
}
.lightbox-close:hover { color: var(--text); }
.lightbox-close span[aria-hidden] { font-size: 24px; letter-spacing: 0; margin-left: var(--s-3); line-height: 1; }
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: 0 var(--s-5); }
.lightbox-image { min-width: 0; max-width: calc(100% - 160px); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-prev, .lightbox-next {
  flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 22px; color: var(--muted); transition: color 240ms ease;
}
.lightbox-prev:hover, .lightbox-next:hover { color: var(--text); }
#lightbox-caption {
  flex-shrink: 0; align-self: center; max-width: 52em; min-height: 80px;
  padding: var(--s-5) var(--s-7);
  font-size: var(--fs-small); line-height: var(--lh-caption); text-align: center; color: var(--text-2);
}

/* ---------- Home light: a small lamp of liquid light that follows the pointer behind the photos (setupHomeLight in app.js) ---------- */
/* A head and three trailing blobs, each stretched along its path, brighten the dark wall with screen blending. The
   layer sits beneath the photos (z-index 1) and the name (2), so the frames block it and their shadows fall across
   it. Mouse only; it fades in on the first move. */
/* Each blob fades along a Gaussian curve (sigma a third of its radius) in a near-neutral warm white, and the head
   carries a small bright core: a glow reads as light only when its centre is bright, otherwise as a grey stain, and
   a beige tint turns brown as it dims. */
.home-light {
  --tint: 255 248 240;
  --falloff: radial-gradient(closest-side, #000, rgb(0 0 0 / .955) 10%, rgb(0 0 0 / .832) 20%, rgb(0 0 0 / .662) 30%, rgb(0 0 0 / .48) 40%, rgb(0 0 0 / .317) 50%, rgb(0 0 0 / .191) 60%, rgb(0 0 0 / .105) 70%, rgb(0 0 0 / .053) 80%, rgb(0 0 0 / .024) 90%, transparent);
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; opacity: 0; will-change: opacity;
}
.home-light span {
  position: absolute; left: 0; top: 0;
  width: var(--size); height: var(--size); margin: calc(var(--size) / -2);
  background: rgb(var(--tint) / var(--glow));
  -webkit-mask-image: var(--falloff); mask-image: var(--falloff);
  mix-blend-mode: screen; will-change: transform;
}
/* The highlight: a nearly white core, 30% of the head's width, that stretches with it. */
.home-light span:first-child::after {
  content: ''; position: absolute; inset: 35%;
  background: rgb(255 251 244 / .5);
  -webkit-mask-image: var(--falloff); mask-image: var(--falloff);
}
/* Each photo's shadow. At rest it falls straight down; setupHomeLight turns it away from the light, and fades it
   (--wrap) while the light has melted in behind the photo, so the halo reaches right up to the frame. */
.scatter-item .photo-button img, .freeform-item .photo-button img { box-shadow: var(--shadow-x, 0px) var(--shadow-y, 28px) 56px -18px rgb(0 0 0 / calc(.85 * (1 - var(--wrap, 0)))), 0 6px 16px rgb(0 0 0 / calc(.45 * (1 - var(--wrap, 0)))); }
/* The light melted into a photo (setupHomeLight): a dim glow in the light's tint behind the photo, sized by app.js
   from a round light to the square frame. The blur (sigma 18px) keeps its soft falloff close to the frame; the photo
   covers the rest, so only a narrow halo spills round it. */
.home-light .light-wrap {
  position: absolute; left: 0; top: 0;
  background: rgb(var(--tint) / .5);
  filter: blur(18px);
  opacity: 0; will-change: transform;
}

/* ---------- Home photo hover: the photo grows a little and the others soften, like a shallow depth of field (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .scatter-item img { transition: filter .5s ease; }
  .scatter-field:has(.photo-button:hover) .scatter-item:not(:hover) img { filter: blur(3px) brightness(.7); }
  .home-page .editorial-item .photo-button { transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
  .home-page .editorial-item .photo-button:hover { transform: scale(1.03); }
}

/* ---------- Cursor: a dot that inverts what it passes over, after christopherandersonphoto.com (desktop only) ---------- */
.custom-cursor { display: none; }
.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
.has-custom-cursor .custom-cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 100;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: width .2s, height .2s, opacity .2s;
}
.has-custom-cursor .custom-cursor.visible { opacity: 1; }
.has-custom-cursor .custom-cursor.hover { width: 20px; height: 20px; }
.has-custom-cursor .custom-cursor.plain { mix-blend-mode: normal; }

/* ---------- Page change: the new page comes out of a blur ---------- */
/* Home animates its parts rather than the section, so the fixed name keeps its viewport position. */
.page-enter > :not(.home-page):not(.globe-page), .page-enter .scatter, .page-enter .home-freeform { animation: focus-in .45s cubic-bezier(.4, 0, .2, 1); }
/* Documentary's globe page comes in part by part, so its < and > (fixed to the screen's edges) never sit inside a
   blurred, and so repositioned, parent; they just fade in. */
.page-enter .globe-page > :not(.globe-arrow) { animation: focus-in .45s cubic-bezier(.4, 0, .2, 1); }
.page-enter .globe-page > .globe-arrow { animation: frost-in .45s cubic-bezier(.4, 0, .2, 1); }
.page-enter .home-name { animation: frost-in .45s cubic-bezier(.4, 0, .2, 1); }
@keyframes focus-in { from { opacity: 0; filter: blur(2rem); } }
@keyframes frost-in { from { opacity: 0; } }

/* ========================= Breakpoints ========================= */
@media (max-width: 1100px) {
  .site-header { gap: 20px; }
  .site-nav { gap: 17px; font-size: 12px; }
}

@media (max-width: 980px) {
  :root { --header-stuck: 72px; }
  .site-header { top: -14px; align-items: center; flex-wrap: wrap; padding-top: 28px; padding-bottom: 16px; margin-bottom: 9px; gap: 0; }
  .menu-toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0 8px 15px; font-size: 12px; }
  .menu-icon { width: 19px; height: 10px; border-top: 1px solid; border-bottom: 1px solid; position: relative; }
  .menu-open .menu-icon { height: 1px; border-bottom: 0; transform: rotate(45deg); }
  .menu-open .menu-icon::after { content: ''; position: absolute; width: 19px; height: 1px; background: currentColor; transform: rotate(90deg); top: -1px; left: 0; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 5px; padding-top: 18px; padding-bottom: 10px; font-size: 17px; }
  .menu-open .site-nav { display: flex; }
  .menu-open .site-nav a { animation: focus-in .4s cubic-bezier(.4, 0, .2, 1); }
  .site-nav a { padding: 12px 0; width: fit-content; }
  .header-controls { order: 1; margin-left: auto; }
  .site-nav { order: 2; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { padding: var(--s-5) 0 var(--s-6); }
  .album-intro { grid-template-columns: 1fr; gap: var(--s-6); }
  .film-row { gap: 5%; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "copy" "links"; max-width: 40em; padding-top: var(--s-5); }
  /* One column: the links go back to the end, after the text. */
  .about-side { display: contents; }
  .about-portrait { grid-area: photo; margin: var(--s-6) 0 0; }
  .about-side .about-links { grid-area: links; margin: var(--s-7) 0 0; }
  .about-copy { margin-top: var(--s-6); }
}

@media (max-width: 600px) {
  :root {
    --photo-max-h: 82svh;
  }
  .wordmark { font-size: 20px; }
  .menu-label { display: none; }
  :root { --header-stuck: 64px; }
  /* One row on phones so the stuck bar stays short: name left, menu and language right. */
  .site-header { top: -6px; padding-top: 16px; padding-bottom: 10px; margin-bottom: 10px; }
  .menu-toggle { padding-left: 0; }

  .home-name > span { font-size: clamp(40px, 13vw, 56px); }
  .scatter { margin-top: 42svh; }
  .scatter-field { aspect-ratio: auto; display: flow-root; }
  .scatter-item { position: relative; left: auto; top: auto; width: calc(var(--mw) * 1%); margin: 11% 0 0 calc(var(--mx) * 1%); }
  .scatter-item:first-child { margin-top: 0; }


  .page-heading { flex-direction: column; align-items: flex-start; padding: var(--s-6) 0 var(--s-5); gap: var(--s-2); }
  .page-count { padding-bottom: 0; }
  .album-grid { grid-template-columns: 1fr; gap: var(--s-4); }

  .album-intro { padding: var(--s-6) 0 var(--s-7); }
  .chapter-navigation { column-gap: var(--s-5); }
  .chapter-heading { grid-template-columns: 1fr; gap: var(--s-3); margin-bottom: var(--s-5); }
  .album-chapter { margin-top: var(--s-8); }
  .photo-sequence { gap: var(--s-8); }
  .sequence-item { width: 100%; }
  .sequence-item.portrait { width: 88%; }
  .next-album { margin-top: var(--s-9); }

  .article-head h1 { font-size: var(--fs-h1); }
  .article-body p { font-size: var(--fs-body); }

  .film-row { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-5) 0 var(--s-8); }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  /* On a phone a free gallery's photographs simply stack, full width, in order. */
  .free-gallery { aspect-ratio: auto; display: grid; gap: var(--s-3); }
  .free-gallery figure { position: static; width: auto; }
  .work-section + .work-section, .event-group + .event-group { margin-top: calc(var(--s-7) + var(--s-4)); }
  .film-info h2 { margin: var(--s-3) 0 var(--s-4); }
  .pending-label { margin-top: var(--s-5); }

  .about-page { padding: var(--s-4) 0 0; }

  .lightbox-toolbar { padding: var(--s-2) var(--s-4); }
  .lightbox-stage { padding: 0 var(--s-3); gap: 0; position: relative; justify-content: center; }
  .lightbox-image { max-width: 100%; max-height: calc(100% - 64px); margin-bottom: 56px; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 0; width: 52px; height: 52px; }
  .lightbox-prev { left: calc(50% - 72px); }
  .lightbox-next { right: calc(50% - 72px); }
  #lightbox-caption { padding: var(--s-4) var(--s-5); font-size: var(--fs-caption); }
}

@media (prefers-reduced-motion: reduce) {
  .home-motion .editorial-item.is-pending { opacity: 1; transform: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
