/* immersive.css — the painting stage, the splash, and the boxes that arrive
   over it. Home page and series pages (body.immersive).

   OVERRIDES, recorded in CLAUDE.md (C16–C20) rather than left as drift:
     · scroll-linked box expansion and stage fade         (C16)
     · Ken Burns drift + cursor tracking on the stage      (C17, motion 45 → 80)
     · Jost as the heading face (titles, captions)         (C18)
     · object-fit: cover on the STAGE only — the plates
       inside the boxes stay uncropped (C10 still holds)   (C19)
     · display type on the home splash; 2.6× painting
       titles on series pages                              (C20)
   Scrolling stays native: nothing here or in stage.js hijacks the wheel. */


/* ═══ Stage — the painting behind everything ════════════════════════════ */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0d0c0e;          /* the frame before a painting has loaded */
  pointer-events: none;
}

/* Panned by the cursor. Inset beyond the viewport so the pan plus the Ken Burns
   drift never reveal an edge. */
.stage__pan {
  position: absolute;
  inset: -5%;
  will-change: transform;
}

.stage__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.stage__layer.is-on { opacity: 1; }

/* The only object-fit: cover on the site (C19). The stage is an atmosphere, not
   a reproduction — the uncropped plate is always in the box below it. */
.stage__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  animation: kenburns 70s ease-in-out infinite alternate;
}
.stage__layer:nth-child(2) .stage__img { animation-delay: -35s; }
.stage__img:not([src]) { display: none; }
/* Nothing to see: stop drifting. */
.stage.is-hidden .stage__img { animation-play-state: paused; }

/* A subtle Ken Burns: a slow zoom of a few per cent with a gentle diagonal pan,
   over 70s each way. The cursor no longer moves the painting (client). */
@keyframes kenburns {
  from { transform: scale(1.03) translate(-.8%, -.5%); }
  to   { transform: scale(1.09) translate(.8%, .5%); }
}


/* ═══ Shell over the stage ══════════════════════════════════════════════ */

.immersive .shell { position: relative; z-index: 1; }

/* The rails are overlaid on the painting from the first frame: a translucent
   paper ground, no blur (glassmorphism stays refused). */
.immersive .rail {
  background: color-mix(in srgb, var(--paper) 45%, transparent);
}


/* ═══ Splash and full views ═════════════════════════════════════════════
   A .view is a full-viewport window onto the stage. The home splash is one;
   each painting on a series page opens with one. */

.view {
  position: relative;
  min-height: calc(100vh - var(--u2));
  min-height: calc(100svh - var(--u2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--u2);
  padding-bottom: var(--u1);
  color: #F5F5F5;               /* sits on the painting in both themes */
  text-shadow: 0 0 18px rgba(0, 0, 0, .45), 0 0 2px rgba(0, 0, 0, .35);
}
.chapter > .view { min-height: 100vh; min-height: 100svh; }

.view__id { min-width: 0; }

/* Series title on the splash: light, uppercase, tracked — the antheaxin.com
   heading manner. Tracking is Latin-only (lang.css resets it for 中文). */
.splash__name {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.splash__name .alt {
  display: block;
  color: inherit;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: var(--t-meta);
  letter-spacing: 0;
  line-height: 1.5;
  margin-top: var(--u1);
  opacity: .85;
}

.splash__line {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: var(--u1);
  min-height: 1.4em;
  white-space: nowrap;
}

/* Typing is an enhancement: the full line is in the markup and stays visible
   until stage.js has taken over (and is kept for assistive tech after). */
.splash__typed, .splash__caret { display: none; }
.splash__line.is-typing .splash__full {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.splash__line.is-typing .splash__typed { display: inline; }
.splash__line.is-typing .splash__caret {
  display: inline-block;
  width: .6em;
  height: 1.05em;
  margin-left: .08em;
  vertical-align: -.15em;
  background: currentColor;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Painting label on a series full view. */
.view__name {
  display: block;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.view__line {
  display: block;
  font-size: var(--t-meta);
  margin-top: var(--u-half);
}

/* Bottom-right: what the painting is, and a way to it. Meaningful without hover. */
.view__cap {
  flex: 0 0 auto;
  margin-left: auto;            /* holds the right edge when it is the only child */
  text-align: right;
  font-size: var(--t-caption);
  line-height: 1.5;
  max-width: 28ch;
}
.view__cap a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.view__cue {
  display: block;
  text-transform: uppercase;
  letter-spacing: var(--track);
  margin-bottom: var(--u1);
  opacity: .8;
}


/* ═══ Boxes ═════════════════════════════════════════════════════════════
   Content panels that fade in over the painting as they scroll in — the ground
   and the content together, no scaling, no border. stage.js writes --t (0 → 1)
   on each. Without JS, or with reduced motion, --t stays 1: every box is simply
   an opaque panel. */
.box {
  --t: 1;
  position: relative;
  padding: var(--u2);
  /* Ground = the lesser of the box's own arrival (--t) and what the cover still
     needs (--g, from stage.js). Below the cover --g is 0, so the boxes go clear
     and the 10% painting tint is the page ground. No JS: both default to 1. */
  background: color-mix(in srgb, var(--paper) calc(min(var(--t), var(--g, 1)) * 100%), transparent);
}
.box + .box,
.view + .box,
.box + .chapter { margin-top: var(--u2); }
.box > * { opacity: clamp(0, calc(var(--t) * 1.6 - .45), 1); }

/* The home page's series spacing came from .series + .series; boxes own it now. */
.immersive .series + .series { margin-top: var(--u2); }
.immersive .bio { margin-bottom: 0; }
.immersive .series__lead { margin-bottom: var(--u2); }


/* ═══ Series page — the antheaxin.com manner ════════════════════════════
   One centred column. A light uppercase title; the statement beneath it; then
   one large image per work, a centred caption, a short text. Nothing else. */

.chapter + .chapter,
.box + .chapter,
.chapter + .box { margin-top: var(--u2); }
/* A work reached from the rail stops just below the top edge, not under it. */
.chapter, .box--head { scroll-margin-top: var(--u2); }
/* Focus is moved here by rail-anchors.js only to place the reader; no ring on
   a whole section. */
.chapter:focus, .box--head:focus { outline: none; }

/* Series head: no cover. Title and years centred in the field, the statement
   beneath. The first work tints the ground at 10% behind it (stage.js). */
.series-head {
  text-align: center;
  padding: calc(var(--u4) * 2) 0 var(--u4);
}
.series-head .splash__line { margin-top: var(--u2); }
.series-head .statement { margin-top: var(--u4); }
.series-head .alt:lang(zh) { text-align: inherit; }
/* Without JS the stage is never dimmed by script: hold it at the head's tint. */
.immersive .stage { opacity: .1; }

/* Work pages: statements set justified, both edges. Words are never broken —
   no hyphenation; the justification takes up the slack in the spacing. */
.series-page .statement p { text-align: justify; hyphens: manual; word-break: normal; }
/* A hyphenated compound is one word: it moves to the next line whole
   (the generator wraps each in .nobr). */
.nobr { white-space: nowrap; }

/* Home head: the bio in place of a cover — the block centred, the text left. */
.home-head .thesis { margin-inline: auto; text-align: left; }
.home-head .thesis + .thesis { margin-top: var(--u2); }

/* Home index: the series boxes share the bio's column — 84ch of the thesis
   face (home.css), restated here in px terms because ch follows each element's
   own font-size. Roboto Mono's advance is exactly .6em. */
.immersive .home-head ~ .series {
  max-width: calc(84 * .6 * var(--t-thesis));
  margin-inline: auto;
  padding-inline: 0;            /* content edge = the bio's text edge */
}
/* Landscape plates run flush to that column, edge to edge. */
.immersive .home-head ~ .series .row__thumb img.is-landscape { width: 100%; }
.immersive .home-head ~ .series .row__pending { max-width: none; }

/* Home index: one work per series, then the way to the rest. */
.series__more {
  margin-top: var(--u1);
  text-align: center;
  font-family: var(--f-head);
  font-style: italic;
  font-size: var(--t-meta);
}
.series__more a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ═══ Home digest — the top of Research, Performance, Aural ═════════════
   Three registers in three bands, each true to its own page: Research as text,
   Performance led by its stills, Aural by its covers. */
/* Each register is its own horizontal band — heading rule, then its three
   entries in one row. Tight: one unit of rhythm between bands, nothing else. */
.digest { display: block; }
.digest__col + .digest__col { margin-top: calc(var(--u4) * 2); }
.digest .marker { margin: 0 0 var(--u2); padding-top: var(--u1); align-items: baseline; }
.digest .marker__note a { color: var(--ink-soft); }
/* Section titles in the heading face — light, uppercase, as the series titles. */
.digest .marker > a {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: .04em;
}
.digest .marker > a [lang="zh"] {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: var(--t-meta);
  letter-spacing: 0;
  margin-left: var(--u-half);
}
.digest .marker > a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.digest__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--u2);
  align-items: start;
}
.digest__item { display: grid; gap: 2px; font-size: var(--t-caption); line-height: 1.5; }
.digest__title {
  font-family: var(--f-head);
  font-weight: 500;
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink);
}
.digest__title:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.digest__item .alt { color: var(--ink-soft); }
.digest__meta { color: var(--ink-soft); }
.digest__form {
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}
.digest__item--still img { width: 100%; margin-bottom: var(--u-half); }
.digest__item--cover {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--u1);
  align-items: start;
}
.digest__item--cover img { width: 64px; height: auto; }
.digest__body { display: grid; gap: 2px; }

@media (max-width: 800px) {
  .digest__list { grid-template-columns: minmax(0, 1fr); gap: var(--u1); }
  .digest__col + .digest__col { margin-top: var(--u2); }
}

/* Statement and group boxes: centred head, text left-set in a centred measure. */
.box--head { text-align: center; padding-block: var(--u4); }

.group__title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.group__title .alt {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: var(--u-half);
}

.statement {
  max-width: 86ch;   /* 72 + 20% (client) */
  margin: var(--u2) auto 0;
  text-align: left;
}
/* Statements: pure white on dark, pure black on light, at the client's request
   — the one place the palette's "never pure #000" is set aside. */
.statement p { font-size: var(--t-caption); line-height: 1.75; color: #FFF; }
:root:not([data-theme="dark"]) .statement p { color: #000; }
.statement p + p { margin-top: var(--u1); }
.statement i, .piece__text i { font-style: italic; }

.inquire {
  margin-top: var(--u2);
  font-family: var(--f-head);
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink-soft);
}
.inquire a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* The work: one large image, never cropped (C10) — tall canvases are held by
   the viewport height, wide ones by the column. */
.piece { text-align: center; padding-block: var(--u4); }
.piece__plate img {
  margin-inline: auto;
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 90vh;
}
/* Every landscape image shares one width: 85% of the column. */
.piece__plate img.is-landscape { width: 85%; max-height: none; }
/* A portrait one gets a definite width from its ratio (--ar, set by the
   generator): as wide as 90vh of height allows, never over 85% of the column.
   Its height follows from the width/height attributes, so the space is held
   before the image loads and nothing below it moves. */
.piece__plate img.is-portrait,
.immersive .row__thumb img.is-portrait {
  width: min(85%, calc(90vh * var(--ar, .5)));
  height: auto;
  max-width: none;
  max-height: none;
}

/* Caption: ***Title,*** dims, medium, year. */
.piece__cap {
  margin-top: var(--u1);
  font-size: var(--t-caption);
  line-height: 1.6;
  color: var(--ink-soft);
}
.piece__title {
  display: inline;              /* a heading, but it runs into its caption line */
  font-family: var(--f-head);
  font-weight: 500;
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink);
}
.piece__cap .alt { display: block; }

/* lang.css sets 中文 to text-align: start; in the centred heads and captions it
   must follow its English line instead. */
.box--head .alt:lang(zh),
.piece__cap .alt:lang(zh) { text-align: inherit; }

.piece__text {
  max-width: 84ch;   /* 70 + 20% (client) */
  margin: var(--u2) auto 0;
  text-align: left;
}
.piece__text p { font-size: var(--t-caption); line-height: 1.75; color: var(--ink-soft); }
.piece__text p + p { margin-top: var(--u1); }

/* A forthcoming work: an empty frame, honestly labelled. No invented data. */
.piece__pending {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  max-width: 720px;
  margin-inline: auto;
  border: var(--hair) solid var(--rule);
  font-size: var(--t-caption);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}

.immersive .siblings { margin-top: var(--u2); }

/* Series pages: the blocks run on, no gaps between them. Their own padding
   still separates the content. */
.series-page .box + .box,
.series-page .view + .box,
.series-page .box + .chapter,
.series-page .chapter + .chapter,
.series-page .chapter + .box,
.series-page .siblings { margin-top: 0; }

/* A splash with no painting yet (Extasis): the text sits on the page ground,
   so it takes the ink rather than the forced light used over a painting. */
.view--empty { color: var(--ink); text-shadow: none; }

/* Home index, antheaxin manner: each work stacks — the image full column width
   at its own ratio (never cropped), the record centred beneath it. */
.immersive .row {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: var(--u1);
  padding: var(--u4) 0;
}
.immersive .row__thumb { width: 100%; }
.immersive .row__thumb a { display: block; }
.immersive .row__thumb img { height: auto; margin-inline: auto; }
/* Every landscape plate shares one width: 85% of the column. */
.immersive .row__thumb img.is-landscape { width: 85%; }
/* Portrait plates are held to 90vh, so a long canvas is seen whole on one screen. */
/* portrait: see the --ar rule with .piece__plate above */
.immersive .row__body { width: 100%; }
/* One centred caption line, as on antheaxin.com/gallery:
   ***Title,*** dims, medium, year */
/* Flex, so the markup's whitespace between the parts never opens a gap before
   a comma. */
.immersive .row__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0;
}
.immersive .row__title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--t-meta);
}
.immersive .row__medium::before,
.immersive .row__year:not(:empty)::before { content: ",\00a0"; }
.immersive .row__medium::before { color: var(--ink); }
.immersive .row__pending { max-width: var(--thumb); margin-inline: auto; }

/* Home index: a forthcoming work keeps its place in the row grid. */
.row__pending {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border: var(--hair) solid var(--rule);
  font-size: var(--t-caption);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}
.immersive .series > .marker a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* Home: series titles take the heading face; group labels sit beneath them. */
.immersive .series > .marker {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: calc(var(--t-meta) * 1.2);
  letter-spacing: .1em;
}
.series__group { margin-top: var(--u2); }
.series__group > .marker { font-size: var(--t-caption); margin: 0 0 var(--u1); }

/* Local rail: works in their groups, unlabelled; a gap marks each group. */
.worklist__group + .worklist__group { margin-top: var(--u2); }
.worklist .nav__item > .nav__label { color: var(--ink-soft); }


/* ═══ Collapse ══════════════════════════════════════════════════════════ */

@media (max-width: 800px) {
  /* The rail lies over the top of the splash rather than pushing it down. Order
     is unchanged, so it is still first in the keyboard path. */
  .immersive .rail--global {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 2;
  }
  /* Switches and contact fold into the menu with the routes. With JS off the
     button is hidden and aria-expanded stays "true" — so they stay visible. */
  .immersive .rail--global:has(.menubtn[aria-expanded="false"]) .rail__bottom { display: none; }

  .view { padding-top: calc(var(--u4) * 1.6); flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .view__cap { text-align: left; margin-left: 0; }
  .splash__line { white-space: normal; letter-spacing: .08em; }
}

@media (max-width: 520px) {
  .box { padding: var(--u1); }
}


/* ═══ Reduced motion ════════════════════════════════════════════════════
   No drift, no pan, no expansion, no caret. The painting is still there, and
   still fades as the boxes cover it — that follows the scroll, it is not an
   animation. */
@media (prefers-reduced-motion: reduce) {
  .stage__img { animation: none; transform: scale(1.04); }
  .stage__pan { transform: none; }
  .splash__line.is-typing .splash__caret { animation: none; }
}


/* ═══ Opening carousel (reel.js) — series pages ═════════════════════════
   After antheaxin.com/gallery's gallery reel: the series' wall views in one
   row at a single height, edge to edge across the content column, the current
   one centred with its neighbours showing. Native horizontal scroll with
   snap; ← → buttons over the sides. Ratios kept, nothing cropped (C10). */
/* No margin of its own, and edge to edge across the column: it bleeds through
   the field's side padding (--u2, or --u1 on the narrowest screens). */
.reel {
  --bleed: var(--u2);
  position: relative;
  margin: calc(var(--bleed) * -1) calc(var(--bleed) * -1) 0;
  text-align: left;
}
/* The reel opens the page; the series title follows closely beneath it. */
.reel + .series-head { padding-top: var(--u4); }
.reel__track {
  display: flex;
  gap: 0;
  height: clamp(300px, 64vh, 680px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.reel__item {
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
}
.reel__item img {
  width: auto;
  height: 100%;
  max-width: none;
}
.reel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: rgba(245, 245, 245, .82);    /* light square over the image, both themes */
  color: #171717;
  font-family: var(--f-sans);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--fade) ease, opacity var(--fade) ease;
}
.reel__btn:hover { background: #F5F5F5; }
.reel__btn:focus-visible { outline: 2px solid #F5F5F5; outline-offset: 3px; }
.reel__btn--prev { left: var(--u1); }
.reel__btn--next { right: var(--u1); }

/* The field's padding drops to --u1 here (shell.css); the bleed follows it. */
@media (max-width: 520px) { .reel { --bleed: var(--u1); } }

@media (max-width: 800px) {
  /* The rail lies over the top of the page here: the reel starts exactly at
     its lower edge. Rail = its padding (= the field padding, --bleed) above and
     below + the 36px glyph + its hairline; the field already supplies one
     --bleed of that, so the reel adds the rest. */
  .reel { margin-top: calc(var(--bleed) + 36px + var(--hair)); }
  .reel__track { height: clamp(240px, 52vh, 460px); }
  .reel__btn { width: 44px; height: 44px; font-size: 20px; }
  .reel__btn--prev { left: var(--u-half); }
  .reel__btn--next { right: var(--u-half); }
}


/* ═══ Home — hero and the four boxes ═══════════════════════════════════
   The page opens on Ruliad in black and white, full screen: it bleeds through
   the field's padding to the rail and the window's edges, one screen tall.
   A cover crop here as on the stage (C19) — the painting is shown whole on
   the Sensate page. On phones it runs under the translucent menu bar. */
/* Hero: three photographs crossfading (crossfade.js), each shown whole —
   the frame is one screen tall less 50px above and below (more at the sides
   on a wide screen, as the images are 3:4 portraits), and the bio sits beneath
   it at exactly the frame's width. On phones the frame takes the width less
   50px a side, and the 50px above is measured from the menu bar. */
.home-hero {
  --bleed: var(--u2);
  --hero-gap: 50px;
  --hero-top: var(--hero-gap);
  margin: calc(var(--bleed) * -1) calc(var(--bleed) * -1) 0;
  padding: var(--hero-top) var(--hero-gap) var(--hero-gap);
  display: grid;
  justify-items: center;
}
.home-hero__frame {
  width: min(100%, calc((100vh - var(--hero-top) - var(--hero-gap)) * .75));
  width: min(100%, calc((100svh - var(--hero-top) - var(--hero-gap)) * .75));
}
/* The bio below takes the width of the site's paragraphs — the series
   statement measure, 86ch of the 15px body (774px) — not the images' width. */
.home-hero__text { width: min(100%, calc(86 * .6 * var(--t-meta))); }
.home-hero__frame {
  position: relative;
  aspect-ratio: 3 / 4;
}
.home-hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.home-hero__frame img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .home-hero__frame img { transition: none; } }
@media (max-width: 800px) {
  /* The menu bar lies over the top here. */
  .home-hero { --hero-top: calc(var(--bleed) * 2 + 36px + var(--hair) + var(--hero-gap)); }
}
@media (max-width: 520px) { .home-hero { --bleed: var(--u1); } }

/* ── Galleries: one large panel per series ─────────────────────────────────
   Edge to edge across the column. The panel is exactly as tall as its wall
   view, so the whole image is seen — no crop, and no movement (client). The text
   sits on it in a block of the page ground: a small line of data, the title
   set large, the statement's opening, then a strip of the series' own
   paintings at their true proportions — the gallery in miniature — and the
   way in. Alternate panels carry the block on the right. */
.hgals {
  --bleed: var(--u2);
  display: grid;
  gap: var(--u1);
  margin: var(--u1) calc(var(--bleed) * -1) 0;
}
@media (max-width: 520px) { .hgals { --bleed: var(--u1); } }

.hgal {
  position: relative;
  display: block;
}
.hgal__media { display: block; }
.hgal__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.hgal__body {
  position: absolute;
  left: var(--u4);
  bottom: var(--u4);
  width: min(46%, 600px);
  display: flex;
  flex-direction: column;
  gap: var(--u1);
  padding: var(--u2) calc(var(--u2) * 1.2) calc(var(--u2) * 1.1);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
}
.hgal--flip .hgal__body { left: auto; right: var(--u4); }

.hgal__kicker {
  font-size: var(--t-caption);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}
.hgal__title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(42px, 5.2vw, 84px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hgal__title .alt {
  display: block;
  margin-top: var(--u-half);
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}
.hgal__text {
  font-size: var(--t-caption);
  line-height: 1.7;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.hgal__text i { font-style: italic; }

/* The gallery in miniature: its paintings, one height, true widths. */
.hgal__strip {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  overflow: hidden;
  margin-top: var(--u-half);
}
.hgal__strip img {
  flex: none;
  width: auto;
  height: 100%;
  max-width: none;
}
.hgal__go {
  font-family: var(--f-head);
  font-style: italic;
  font-size: calc(var(--t-meta) * 1.15);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.hgal:hover .hgal__go { text-decoration-thickness: 2px; }

@media (max-width: 800px) {
  /* Stacked: the image at 4:3, the text beneath it on the page ground. */
  .hgal__body,
  .hgal--flip .hgal__body {
    position: static;
    width: auto;
    padding: var(--u2) var(--bleed) var(--u2);
  }
  .hgal__title { font-size: clamp(36px, 10vw, 54px); }
  .hgal__strip { height: 52px; }
}

/* ── Research and Performance: notes, not panels ──────────────────────────
   Deliberately quieter than the galleries and text-led: a hairline above, a
   small image at the side, the kind of thing, the title, a line, the way in.
   Two side by side, one on phones. */
.hnotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--u2) calc(var(--u2) * 2);
  padding-top: var(--u4);
}
.hnote {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--u2);
  align-items: start;
  padding-top: var(--u2);
  border-top: var(--hair) solid var(--rule);
}
.hnote__thumb img {
  width: 112px;
  height: auto;
  transition: opacity var(--fade) ease;
}
.hnote:hover .hnote__thumb img { opacity: .82; }
.hnote__body { display: flex; flex-direction: column; gap: var(--u-half); min-width: 0; }
.hnote__kicker {
  font-size: var(--t-caption);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}
.hnote__title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hnote__title .alt {
  display: block;
  margin-top: 4px;
  font-family: var(--f-sans);
  font-size: var(--t-caption);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.hnote__meta { font-size: var(--t-caption); color: var(--ink-soft); }
.hnote__text {
  font-size: var(--t-caption);
  line-height: 1.7;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.hnote__go {
  font-family: var(--f-head);
  font-style: italic;
  font-size: var(--t-meta);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.hnote:hover .hnote__go { text-decoration-thickness: 2px; }

@media (max-width: 800px) {
  .hnotes { grid-template-columns: minmax(0, 1fr); gap: var(--u2); padding-top: var(--u2); }
  .hnote { grid-template-columns: 88px minmax(0, 1fr); }
  .hnote__thumb img { width: 88px; }
}


/* The bio beneath the images, on the page ground — no box, at the site's
   paragraph width (above). Justified, never
   broken mid-word; the lead 15% under the thesis size, the second paragraph
   smaller (held at the 13.5px floor). */
.home-hero__text { margin-top: var(--u2); color: var(--ink); }
.home-hero__text .thesis { max-width: none; font-size: calc(var(--t-thesis) * .85); }
.home-hero__text .thesis p { text-align: justify; hyphens: manual; word-break: normal; }
.home-hero__text .thesis .lede { font-size: 1em; line-height: 1.6; }
.home-hero__text .thesis .small { font-size: max(var(--t-caption), calc(var(--t-meta) * .85)); line-height: 1.6; }
.home-hero__text .thesis p.small { max-width: none; }   /* home.css caps it at 76ch */
.home-hero__text .thesis p + p { margin-top: var(--u1); }
.home-hero__text .thesis + .thesis { margin-top: var(--u1); }   /* no-JS: both panels */
@media (max-width: 800px) {
  .home-hero__text .thesis { font-size: max(var(--t-caption), calc(var(--t-meta) * .85)); }
  .home-hero__text .thesis .small { font-size: var(--t-caption); }
}

/* Phone menu ground 20 points stronger than the desktop rail's 45% (client). */
@media (max-width: 800px) {
  .immersive .rail { background: color-mix(in srgb, var(--paper) 65%, transparent); }
}
