/* =========================================================================
   YATREDA ያጥሬዳ — global stylesheet
   Design tokens + base shell (nav, content frame, grey band, footer).
   No page content lives here — see §2/§3 of the brief.
   ========================================================================= */

:root {
  /* --- Palette (brief §2) --- */
  --ground:        #f4f4f4;          /* page background            */
  --ink:           #161616;          /* primary text               */
  --label-grey:    #8a8a8a;          /* small uppercase labels      */
  --copy:          #222;             /* primary body copy / captions */
  --body-grey:     #444;             /* secondary body text (credit) */
  --body-grey-soft:#666;             /* lighter secondary body text */
  --placeholder:   #7d7d7d;          /* BTS placeholder note         */
  --nav-muted:     #9a9a9a;          /* inactive nav links          */
  --plate:         #111;             /* video / image placeholder   */
  --plate-border:  rgba(0, 0, 0, 0.18); /* faint plate edge         */
  --band:          #d9d9d9;          /* behind-the-scenes band      */
  --hairline:      rgba(0, 0, 0, 0.13);
  --rule:          #161616;          /* inline underline links       */
  --social:        #555;             /* social icon color           */

  /* --- Type --- */
  /* Stand-in stack. Swap to Graphik / Kigali here if licensed later. */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* --- Spacing / layout --- */
  --nav-pad:     20px 44px;          /* top nav padding             */
  --frame-pad:   46px 44px;          /* content frame padding       */
  --frame-pad-x: 44px;               /* horizontal frame inset      */
  --rail:        18%;                /* marginalia left-rail width  */
  --gap:         32px;               /* marginalia column gap       */
  --plate-cap:   90%;                /* alignment rule: plate width */
}

/* --- Reset / base --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;   /* modern browsers: reserve scrollbar space */
  overflow-y: scroll;         /* always show the vertical track so pages never shift */
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Page transitions ----------------------------------------------------
   A quick "dip to paper": navigating fades the page out to the ground color,
   then the next page fades in from it — never two pages overlapping. Driven by
   site.js; the overlay only exists when JS runs, so no-JS just navigates. */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ground);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .page-fade { display: none; }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

/* =========================================================================
   Top nav (brief §3) — every page.
   ========================================================================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;          /* narrow viewports: link group drops below logo */
  row-gap: 12px;
  padding: var(--nav-pad);
  border-bottom: 0.5px solid var(--hairline);
}

/* Self-hosted Noto Sans Ethiopic — the wordmark face. Embedding it also makes
   the section mark ፠ render from Noto on every device, not a system fallback. */
@font-face {
  font-family: "Noto Sans Ethiopic";
  src: url("yatreda_media/site/NotoSansEthiopic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Ethiopic";
  src: url("yatreda_media/site/NotoSansEthiopic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

.nav__logo {
  font-family: "Noto Sans Ethiopic", "Nyala", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

/* The wordmark is now the hi-res transparent PNG (right-click → Save =
   site/Yatreda-Logo.png); sized by height so it stays crisp on any display. */
.nav__logo-img {
  display: block;
  height: 32px;   /* ≈ the original 18px text wordmark's cap height */
  width: auto;
  /* The PNG carries ~56px transparent left padding (= 4.3px at this height);
     pull left so the wordmark's Y aligns with the page title's left edge. */
  margin-left: -4.3px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--nav-muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link.is-active {
  color: var(--ink);          /* active page = ink */
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__social a {
  display: inline-flex;
  align-items: center;
  color: var(--social);
}

/* Size/fill are set per-SVG inline (Instagram is stroked, X is filled). */
.nav__social svg {
  display: block;
}

/* Mobile menu toggle (hamburger) — hidden on desktop; revealed in the ≤760px
   query, where .nav__right collapses into a dropdown panel. */
.nav__toggle {
  display: none;
  padding: 4px;
  margin: -4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__ico { display: block; }
.nav__ico--close { display: none; }

/* =========================================================================
   Content frame (brief §3)
   ========================================================================= */

.wrap {
  padding: var(--frame-pad);
}

/* Embedded mode (?embed) — the page renders inside the /links launcher's
   accordion. Hide the site chrome and the page title (the accordion button is
   the title); the content keeps its normal mobile layout (the grey band's
   negative margins still resolve against the frame inset). */
[data-embed] #site-nav,
[data-embed] #site-footer { display: none !important; }
[data-embed] .ti { display: none; }
[data-embed] .wrap { padding-top: 10px; }
[data-embed] .page-fade { display: none; }

/* Page title (.ti) */
.ti {
  margin: 0 0 30px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Small uppercase labels */
.label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink);          /* labels carry the ink; values stay grey */
}

/* Justified body copy with hyphenation — narrow measure (brief §4 / §5). */
.copy {
  width: 52%;
  min-width: 240px;
  max-width: 760px;
  color: var(--copy);
  text-align: justify;
  hyphens: auto;
}

/* Stacked text column copy needs a gap between paragraphs. */
.copy + .copy {
  margin-top: 14px;
}

/* Inline underlined link (credit / credentials). */
.lk {
  border-bottom: 0.5px solid var(--rule);
}

/* --- Marginalia row: 18% left rail + flexible main column ----------------- */

.marg {
  display: flex;
  gap: var(--gap);
}

.marg__rail {
  flex: 0 0 var(--rail);
}

.marg__main {
  flex: 1;
  min-width: 0;
}

/* Alignment rule (brief §3): plates never reach the right edge of their
   column — cap at ~90% of the main column so pages share a right margin.
   Home is the deliberate exception (handled per-page). */
.plate {
  width: var(--plate-cap);
  background: transparent;   /* media fills it; no dark box during load */
}

/* A real video injected into a plate fills it; the frame ratio matches the
   video ratio, so cover never crops. The plate's dark fill shows until the
   first frame loads. */
.work__plate,
.grid__cell,
.hero__frame {
  position: relative;
  overflow: hidden;
}

.plate-video,
.plate-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* Mux player fills its plate like the other media (the plate is sized to the
   work's aspect ratio, so cover = no letterbox). */
.work__plate mux-player,
.grid__cell mux-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --media-object-fit: cover;
  /* Trim the control bar: no skip-seek buttons, no playback-rate, and no
     picture-in-picture button (removed across every Mux embed). */
  --seek-backward-button: none;
  --seek-forward-button: none;
  --playback-rate-button: none;
  --pip-button: none;
}

/* Shrink the center play button to ~60% — the default reads big/clunky over art. */
.work__plate mux-player::part(center play button),
.grid__cell mux-player::part(center play button) {
  transform: scale(0.6);
}

/* Cloudflare Stream player iframe — fills the plate (on click, or on load for
   data-autoplay). The plate's dark placeholder is cleared to transparent in JS
   when a Stream plate is wired, so any sub-pixel edge blends into the page
   instead of showing as a thin dark line. */
.plate-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Subtle sound toggle on ambient art — appears on hover, starts muted. */
.v-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #f4f4f4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.work__plate:hover .v-sound,
.grid__cell:hover .v-sound,
.hero__frame:hover .v-sound,
.lightbox__stage:hover .v-sound,
.v-sound.is-on {
  opacity: 1;
}

.v-sound:hover {
  background: rgba(0, 0, 0, 0.62);
}

.v-sound svg {
  width: 15px;
  height: 15px;
}

/* Play button for click-to-play works (Movement, behind-the-scenes). */
.v-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f4f4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.v-play:hover {
  background: rgba(0, 0, 0, 0.12);
}

.v-play svg {
  width: 58px;
  height: 58px;
  opacity: 0.92;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

/* =========================================================================
   Full-bleed grey band (brief §3)
   Pulled out of the frame padding, then re-padded so its inner column
   lines up with the body column above it.
   ========================================================================= */

.band {
  background: var(--band);
  /* Pull out of the 46px 44px frame padding so the band is full-bleed and
     runs flush to the footer; re-pad so its inner column re-aligns (brief §3). */
  margin: 50px calc(-1 * var(--frame-pad-x)) -46px;
  padding: 58px var(--frame-pad-x) 64px;
}

/* Band's own marginalia row sits flush (no extra top gap). */
.band .marg {
  margin-top: 0;
}

/* A standalone still shown at plate scale (e.g. a behind-the-scenes photo),
   click-to-expand via the lightbox. Sized by the same --ar model as a plate. */
.work__still {
  display: block;
  width: min(calc(50.625% * var(--ar)), calc(86svh * var(--ar)));
  aspect-ratio: var(--ar);
  margin-top: 36px;
  object-fit: cover;
}

/* Behind-the-scenes figure inside the band (Strong Hair "Creating" fig). */
.band__fig {
  width: 62%;
  min-width: 300px;
  margin-top: 26px;
  aspect-ratio: 4 / 3;
  background: transparent;   /* no dark placeholder box (blends until media exists) */
}

/* Section mark — a centered Ge'ez section mark (፠) that closes each major
   movement of a page: the end of the artworks, the end of the behind-the-scenes
   / response material, and the end of the page itself. Generous breathing room
   each way, like a book's chapter ornament. */
.chapter-mark {
  /* Center on the artwork column (main, 90% width), not the full page, so the mark
     sits under the videos/images rather than being pulled left by the rail. */
  margin: 120px 0 120px calc(var(--rail) + var(--gap));
  width: calc(0.9 * (100% - var(--rail) - var(--gap)));
  text-align: center;
  line-height: 1;
  /* Ge'ez section mark (፠ U+1360); fall back through common Ethiopic system fonts. */
  font-family: "Noto Sans Ethiopic", "Nyala", "Kefa", "Ebrima", sans-serif;
  font-size: 20px;            /* reduced ~30% from 28px — was reading too large */
  color: var(--body-grey);    /* dark grey — a step off pure ink (secondary-text tone) */
}

/* A section mark that closes a behind-the-scenes section sits INSIDE the grey
   band (the grey extends to hold it), not on the paper below it. Less bottom
   margin since the band's own padding-bottom supplies the rest of the breath. */
.band > .chapter-mark {
  margin-bottom: 56px;
}

/* Bio: its behind-the-scenes video is 54% wide (not the 90% artwork cap), so
   center the section mark under THAT video rather than the full column. */
[data-page="bio"] .chapter-mark {
  width: calc(0.54 * (100% - var(--rail) - var(--gap)));
}

/* =========================================================================
   Compact reading mode on DESKTOP — body[data-compact="1"] (first tried on
   Kibir). Carries the phone-only calm to the big screen: the "… more" caption
   clamp + the "Provenance" drawer. The JS gates honor the same flag; these
   rules just restyle the JS-built elements at desktop widths (≤932px already
   has them in the mobile block). Scoped to [data-compact] so no other page or
   the mobile layout is touched.
   ========================================================================= */
@media (min-width: 933px) {
  [data-compact="1"] .cap-more {
    color: var(--nav-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  [data-compact="1"] .cap-less { margin-left: 0.15em; }

  [data-compact="1"] .prov-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--nav-muted);
    cursor: pointer;
  }
  [data-compact="1"] .prov-toggle .prov-chev { width: 16px; height: 13px; transition: opacity 0.28s ease; }
  [data-compact="1"] .prov-toggle.is-open { color: var(--ink); }
  [data-compact="1"] .prov-toggle.is-open .prov-chev { opacity: 0; }
  [data-compact="1"] .prov-drawer { overflow: hidden; }
  [data-compact="1"][data-prov="drawer"] .work__title { margin-bottom: 0; }
  [data-compact="1"] .prov-drawer > :first-child { margin-top: 12px; }
  [data-compact="1"] .prov-drawer > :last-child { margin-bottom: 30px; }
  [data-compact="1"] .prov-drawer .chain--proof > .label { display: none; }
}

/* Placeholder note where real BTS copy will go. */
.ph {
  margin: 26px 0 0;
  font-size: 12px;
  color: var(--placeholder);
}

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 28px 44px;
  border-top: 0.5px solid var(--hairline);
}

.footer__logo {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.footer__note {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--label-grey);
}

/* =========================================================================
   Shared rail sub-pieces (used by index + collection pages)
   ========================================================================= */

/* A small sub-label under a rail label (e.g. the index date range). */
.rail-sub {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--body-grey-soft);
}

/* Quiet back-link at the top of a collection detail page's rail. The arrow is
   an inline SVG (centered in its viewBox) so it stays centered with the text. */
.rail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--nav-muted);
  transition: color 0.15s ease;
}

.rail-back:hover {
  color: var(--ink);
}

.rail-back svg {
  flex: 0 0 auto;
  width: 1em;
  height: 0.72em;
}

/* Acquisition byline — "PERMANENT COLLECTION / <institution>" in a rail.
   Reused across pages (collection-level or on a specific acquired work). */
.acq {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--label-grey);   /* venue/value recedes to the medium's grey */
}

/* The credential label (Permanent Collection / Provenance) carries the ink —
   the label is the emphasis, the value reads quiet. */
.acq .label,
.chain .label {
  color: var(--ink);
}

/* On-chain provenance — quiet, certificate-like links to Etherscan: the
   collection contract, and each token's page (which always shows its current
   owner, so nothing needs tracking when a work changes hands). Set in the body
   font and kept understated so it never financializes the page; a copy button
   lifts the full address. */
.chain {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--label-grey);
}

.chain__row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.chain__link {
  color: var(--label-grey);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.chain__link:hover { color: var(--ink); }

.chain__addr {
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 1.5px;
}

.chain__link:hover .chain__addr { border-bottom-color: currentColor; }

.chain__arrow { margin-left: 4px; }

.chain__copy {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  color: var(--nav-muted);
  transition: color 0.15s ease;
}

.chain__copy:hover,
.chain__copy.is-copied { color: var(--ink); }

.chain__copy svg { display: block; width: 13px; height: 13px; }

/* Editioned provenance (Option B): one quiet line per edition, each linking to
   that edition's token (its current owner). */
.chain__ed {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 5px;
}

.chain__edno {
  color: var(--ink);
  min-width: 36px;
}

/* Wider edition labels (e.g. "Museum Proof") still align their addresses. */
.chain--proof .chain__edno {
  min-width: 92px;
}

/* The LACMA source object: small portrait image beside a museum-label caption. */
.source-object {
  display: flex;
  gap: 44px;
  align-items: center;
}

/* Stacked rows inside the band (In Response To / Behind the Scenes) get space. */
.band .marg + .marg {
  margin-top: 64px;
}

.source-object__img {
  flex: 0 0 auto;
  width: 290px;
  max-width: 42%;
  aspect-ratio: 1456 / 2100;
  object-fit: cover;
}

.source-object__label {
  flex: 1;
  min-width: 0;
  max-width: 430px;
}

.source-object__lead {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--copy);
}

.source-object__meta {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--label-grey);
}

.source-object__link {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--body-grey);
}

/* Onchain Storage (OCS) — technical provenance block in the band.
   Mirrors the myland.yatreda.xyz layout: a dark contract card with the
   Solidity snippet, a centered caption, then the grey arrows-to-chunks
   diagram (the SVG carries the four 100kb boxes), then the explanatory copy. */
.ocs-graphic {
  /* Match the text column below so the card, diagram and copy share one width
     and one left edge. */
  width: 52%;
  min-width: 240px;
  max-width: 760px;
  margin: 4px 0 36px;
}

.ocs-card {
  border-radius: 16px;
  padding: 24px 28px;
  /* Soft charcoal — lighter than near-black so it sits easier on the paper. */
  background: radial-gradient(125% 145% at 68% 28%, #3a3a3a 0%, #2a2a2a 72%);
  overflow: hidden;
}

.ocs-card__code {
  margin: 0;
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.85;
  color: #f0f0f0;
  white-space: pre;
  overflow-x: auto;
}

.ocs-card__code .c { color: #9a9a9a; }   /* doc-comment lines */

.ocs-arrows {
  /* The diagram carries its own "Onchain Storage Contract" caption, the arrows
     and the four chunk boxes. Fill the column so the chunks spread to align
     under the card. */
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 0;
}

/* OCS copy follows the same rules as a work caption so it lines up with the
   Behind the Scenes text above it: same font, colour, 52% column, justified. */
.ocs__lead,
.ocs__p {
  width: 52%;
  min-width: 240px;
  max-width: 760px;
  margin: 0 0 1.1em;
  color: var(--copy);
  text-align: justify;
  hyphens: auto;
}

.ocs__link {
  display: inline-block;
  margin-top: 6px;
  color: var(--body-grey);
}

/* Credit / premiere line in a collection rail. */
.credit {
  font-size: 12px;
  line-height: 1.65;
  color: var(--label-grey);   /* a value — recedes to the medium's grey */
}

/* Stacked rail credentials (Collection / Featured / Winner). */
.rail-item {
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--label-grey);   /* value tone — labels stay ink */
}

/* A list of credentials under a single label (e.g. Strong Hair's Collection).
   Plain stacked lines on desktop; bulleted on mobile (see the ≤932px block). */
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li { font-size: 12px; line-height: 1.65; color: var(--label-grey); position: relative; padding-left: 0.95em; }
.cred-list li::before { content: "•"; position: absolute; left: 0; color: var(--label-grey); }
/* Under a work title (e.g. Immersive's Coffee Ceremony) the list takes the place
   of the medium line, so it gets the same gap the title-to-medium spacing had. */
.work__title + .cred-list { margin-top: 12px; }

.rail-item:last-child {
  margin-bottom: 0;
}

/* =========================================================================
   Artwork Collections — index (brief §5)
   Rail = Index label + date range. Main = content-width uppercase name list
   beside a boxless square "stage" whose plate scales (animated) to each
   work's aspect ratio on hover.
   ========================================================================= */

/* List sits to the left, stage takes the rest; both anchored top-left.
   Full width (Option B) so the preview can run to the right content edge and a
   16:9 preview can reach the full list height. */
.idx-live {
  display: flex;
  gap: 4%;
  align-items: flex-start;
  width: 100%;
}

/* List shrinks to its content so names set the column width. */
.idx-list {
  flex: 0 0 auto;
}

.idx-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--hairline);
  cursor: pointer;
}

.idx-item:first-child {
  border-top: 0.5px solid var(--hairline);
}

.idx-name {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.idx-item:hover .idx-name,
.idx-item.is-current .idx-name {
  color: var(--ink);
}

/* Ethiopic full stop (U+1362) trails the name on hover/active. Drawn as an
   inline SVG (a 2x2 dot cluster) instead of the character, so its vertical
   centering is exact on every device — no dependence on the OS Ethiopic font.
   The row is center-aligned, and the dots are centered in the viewBox, so the
   cluster lands on the text's middle automatically. */
.idx-dot {
  display: inline-flex;
  align-items: center;
  margin-left: 9px;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.28s ease;   /* gentle fade in/out */
}

.idx-dot svg {
  display: block;
  width: 0.7em;                      /* four equal squares, padded off the edges */
  height: 0.7em;
  fill: currentColor;
}

.idx-item:hover .idx-dot,
.idx-item.is-current .idx-dot {
  opacity: 1;
}

/* Boxless stage takes the space beside the list; the plate is sized by JS
   (height-bounded, like the Bio photo) and anchored top-left. */
.idx-stage {
  flex: 1 1 auto;
  min-width: 0;
}

.idx-plate {
  position: relative;
  /* Transparent, not a dark plate: the fade-through-blank dips to the page
     background (grey), never a black box. */
  background: transparent;
  /* No size transition: the box snaps to each clip's ratio so previews never
     morph/scale into one another. The fade-through-blank (JS) covers swaps. */
}

/* Preview clips stack in the plate; one is shown at a time behind the veil dip.
   cover = exact fit since the plate is sized to the clip's aspect ratio.
   Hidden clips are display:none so only the shown clip renders/decodes (lighter
   than 13 stacked layers). The shown clip always matches the box ratio — see the
   dip() logic in collections.js, which resolves the target at swap time. */
.idx-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.idx-video.is-showing {
  display: block;
}

/* Dip veil over the preview box — the same paper-colored fade the page
   transition uses. Covers the box while the clip resizes + swaps behind it,
   then lifts. No crossfade, no visible morph. */
.idx-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ground);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* =========================================================================
   Collection page — Featured block (brief §4, Block A)
   ========================================================================= */

/* Intro row: rail = Collection label + credit/premiere; main = statement. */
.feat-intro {
  display: flex;
  gap: var(--gap);
}

.feat-intro__rail {
  flex: 0 0 var(--rail);
  padding-right: 2.6%;              /* wraps the credit one line earlier */
}

.feat-intro__main {
  flex: 1;
  min-width: 0;
  padding-top: 19px;               /* drops the statement level with the credit */
}

/* Work row: rail = title + medium; main = 16:9 plate (90%) + caption (52%). */
.work {
  display: flex;
  gap: var(--gap);
  margin-top: 84px;
}

.work__rail {
  flex: 0 0 var(--rail);
}

.work__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* A short hairline rule under each work title sets it apart from the labels —
   distinct from a link's full underline. */
.work__title::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 9px;
  background: var(--ink);
}

.work__medium {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--label-grey);
}

.work__main {
  flex: 1;
  min-width: 0;
}

/* Every work renders at the SAME height — the height a 16:9 work has at 90%
   width (= 50.625% of the column width). Width follows the ratio, so 16:9 is
   wide, 4:3 a touch narrower, verticals narrower still, all matched in height.
   The 86svh term caps height on short/wide screens so nothing ever crops.
   Per-work ratio is set inline as a unitless number, style="--ar: 1.3333". */
.work__plate {
  --ar: 1.7778;                     /* 16:9 default */
  width: min(calc(50.625% * var(--ar)), calc(86svh * var(--ar)));
  aspect-ratio: var(--ar);
  /* Transparent, not the dark --plate: media-heavy pages reveal before the
     videos/players load, and a dark box flashing then filling reads as a
     stutter. Transparent blends with the page during load; media covers it. */
  background: transparent;
}

/* Vertical artworks (9:16, 2:3, 3:4) read small when height-matched to the
   landscapes. Bump the column term ~20% (50.625 → 60.75) so they're larger;
   the 86svh viewport cap is unchanged, so they still never crop and always fit
   the window on short/wide screens. */
.work__plate.is-vertical {
  width: min(calc(60.75% * var(--ar)), calc(86svh * var(--ar)));
}

.work__cap {
  width: 52%;
  min-width: 240px;
  max-width: 760px;
  margin-top: 26px;
  color: var(--copy);
  text-align: justify;
  hyphens: auto;
}

/* =========================================================================
   Collection page — Grid block (brief §4, Block B)
   A cluster of smaller works in a 3-column grid, capped at 90% width.
   ========================================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: var(--plate-cap);          /* 90% — matches the alignment rule */
  margin-top: 48px;
}

.grid__cell {
  aspect-ratio: 4 / 3;
  background: transparent;   /* same as .work__plate — no dark flash before media loads */
}

/* Grid figure with a small label beneath (e.g. Andromeda Vol II characters). */
.grid__fig .grid__cell {
  width: 100%;
}

.grid__cap {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--body-grey-soft);
}

/* Stacked edition list grouped by rarity tier (Andromeda Vol II packs). */
.packs {
  margin-top: 34px;
}

.packs__group {
  margin-bottom: 20px;
}

.packs__item {
  font-size: 12px;
  line-height: 1.7;
  color: var(--body-grey);    /* the names read as the content */
}

/* Edition size stated once per tier — quiet grey, names listed beneath. */
.packs__ed {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--label-grey);
  margin-bottom: 2px;
}

/* Justified row of stills (Akodama): equal height, widths proportional to each
   image's aspect (set inline as --ar), capped at the 90% plate line, no crop. */
.akodama-stills {
  display: flex;
  gap: 12px;
  width: var(--plate-cap);
}

.akodama-stills img {
  flex: var(--ar) 1 0;
  min-width: 0;
  aspect-ratio: var(--ar);
  object-fit: cover;
  display: block;
}

/* Any zoomable image invites a click. */
img.zoom {
  cursor: zoom-in;
}

/* A local ambient loop that opens enlarged in the lightbox (same gesture as the
   zoomable stills). Mux players are not openable this way. */
.work__plate video.zoom-video {
  cursor: zoom-in;
}

/* =========================================================================
   Immersive Experience page
   ========================================================================= */

/* Contact-sheet gallery of stills, 3 across, capped at the 90% plate line.
   Square thumbnails crop to fill the grid; the lightbox shows each full frame
   uncropped (img.zoom + data-gallery, same gesture as the Akodama stills). */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: var(--plate-cap);
}

.shots img {
  width: 100%;
  aspect-ratio: 3 / 2;          /* 4×6 photo ratio (landscape); reveals native in the lightbox */
  object-fit: cover;
  display: block;
}

/* A row of equal media — two square videos side by side (Queen's Medallion), or
   a line of 9:16 verticals (the cup tap + coffee proverbs). Each item takes an
   equal share and fills it at its own --ar; the row holds the 90% column. */
.media-row {
  display: flex;
  gap: 20px;
  width: var(--plate-cap);
  align-items: flex-start;
  margin-top: 40px;
}

.media-row > * {
  flex: 1 1 0;
  min-width: 0;
}

.media-row .work__plate {
  width: 100%;
}

/* Vertical rhythm on the Immersive page: a media-row sits flush at the top of a
   column; otherwise media and prose keep a generous gap (≈ a double line break)
   so text never crowds a video or photo. */
[data-page="immersive"] .work__main > .media-row:first-child {
  margin-top: 0;
}

[data-page="immersive"] .work__plate + .copy,
[data-page="immersive"] .media-row + .copy,
[data-page="immersive"] .copy + .shots {
  margin-top: 40px;
}
[data-page="immersive"] .shots + .work__plate {
  margin-top: 14px;   /* stills -> video: tight, matches the gap between the stills */
}

/* Lightbox: click a still or local loop → page dims, media fades + scales in centered. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
  background: rgba(20, 20, 20, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  cursor: default;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Wraps the enlarged media so the hover sound toggle can sit at its corner.
   Only this region (the media itself) carries the zoom-out cursor + sound toggle,
   so rolling off the video onto the dimmed backdrop clears both. */
.lightbox__stage {
  position: relative;
  display: inline-flex;
  cursor: zoom-out;
}

.lightbox img,
.lightbox video {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.965);
  transition: transform 0.32s ease, opacity 0.2s ease;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
}

.lightbox.is-open img,
.lightbox.is-open video {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox img,
  .lightbox video { transition: none; }
}

/* =========================================================================
   Home — full-bleed immersion (brief §5)
   A signature 16:9 film fills the frame edge-to-edge; title + premiere line
   are overlaid bottom-left like a film poster, over a subtle gradient.
   ========================================================================= */

/* Letterbox container: centers the frame; ground shows on ultra-wide screens. */
.hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--ground);
}

/* The 16:9 film frame is the LARGEST that fits both the viewport width and the
   height left under the nav/footer (--chrome-h, measured in site.js) — so the
   whole frame is always visible and never cropped, on any screen. */
.hero__frame {
  position: relative;
  width: min(100%, calc((100vh - var(--chrome-h, 132px)) / 9 * 16));    /* universal fallback */
  width: min(100%, calc((100svh - var(--chrome-h, 132px)) / 9 * 16));   /* svh where supported */
  aspect-ratio: 16 / 9;
  background: var(--plate);
  overflow: hidden;
}

/* Bottom gradient so the overlaid text stays legible over any frame. */
.hero__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 42%);
  pointer-events: none;
}

/* The single editable field — swap title + line for a future premiere. */
.hero__over {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 34px;
}

.hero__title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ground);
}

.hero__line {
  margin: 9px 0 0;
  max-width: 540px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(244, 244, 244, 0.72);
}

.hero__line .lk {
  border-bottom: 0.5px solid rgba(244, 244, 244, 0.6);
  color: rgba(244, 244, 244, 0.85);
}

/* =========================================================================
   Bio (brief §5) — 54% photo + bio paragraphs, then Sam Spratt band quote.
   ========================================================================= */

/* Lighter second rail label (e.g. "Addis Ababa" under "The Collective"). */
.label.is-sub {
  margin-top: 7px;
  margin-bottom: 0;
  color: #aaa;
}

.bio-photo {
  display: block;
  width: 54%;
  min-width: 300px;
  margin-bottom: 28px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bio-copy {
  width: 54%;
  min-width: 300px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--copy);
  text-align: justify;
  hyphens: auto;
}

/* Sam Spratt passage inside the grey band — column snaps to the bio width. */
.bio-quote {
  width: 54%;
  min-width: 300px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.85;
  font-style: italic;
  color: #262626;
  text-align: justify;
  hyphens: auto;
}

.bio-quote-attr {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
}

/* =========================================================================
   Contact (brief §5) — 30% rail (label, intro, email, icon socials) +
   a contained 360px form with hairline-underlined fields.
   ========================================================================= */

.contact-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;          /* photo drops below on narrow viewports */
}

.contact-rail {
  flex: 0 0 24%;
  min-width: 0;
}

/* Companion image, right of the form. The cell fills the leftover space (so it
   shrinks the image instead of wrapping it below), ends at the 16:9 plate line
   (8% inset), and right-aligns the image within it. */
.contact-photo-cell {
  flex: 1 1 0;
  min-width: 0;
  margin-right: 8%;         /* ends where a 16:9 collection plate ends (90% cap) */
  display: flex;
  justify-content: flex-end;
  align-self: flex-start;
}

.contact-photo {
  display: block;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-intro {
  margin: 12px 0 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body-grey);
}

.contact-mail {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 0.5px solid var(--ink);
}

.contact-socials {
  display: flex;
  gap: 20px;
  margin-top: 26px;
}

.contact-socials a {
  display: inline-flex;
  color: var(--social);
}

.contact-form {
  flex: 0 0 360px;
}

.field {
  margin-bottom: 26px;
}

.field__label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--label-grey);
}

.field__input {
  width: 100%;
  padding: 0 0 9px;
  border: none;
  border-bottom: 0.5px solid #b9b9b9;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.field__input:focus {
  border-bottom-color: var(--ink);
}

textarea.field__input {
  resize: none;
  line-height: 1.6;
}

.send {
  padding: 0 0 5px;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  background: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.send:disabled { opacity: 0.5; cursor: default; }

/* Visually-hidden honeypot field (spam trap) */
.cf-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Inline contact-form status (success / error) */
.contact-status {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--body-grey);
}
.contact-status.is-ok { color: var(--ink); }
.contact-status.is-err { color: #a33; }

/* =========================================================================
   Press (brief §5) — publication-forward archive, two columns pulled tight.
   ========================================================================= */

.press-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 36px;
}

.press-pub,
.press-cell {
  padding: 15px 0;
  border-bottom: 0.5px solid var(--hairline);
}

.press-pub:nth-child(1),
.press-cell:nth-child(2) {
  border-top: 0.5px solid var(--hairline);
}

.press-pub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.press-cell {
  min-width: 0;
}

.press-title {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.press-date {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--nav-muted);
}

/* =========================================================================
   Exhibition History (brief §5) — text-first record with small thumbnails,
   grouped into rail-labelled sections.
   ========================================================================= */

/* Second+ group gets top separation from the previous section. */
.exh-group {
  margin-top: 48px;
}

.exh-entry {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--hairline);
}

.exh-entry:first-child {
  border-top: 0.5px solid var(--hairline);
}

.exh-thumb {
  flex: 0 0 150px;
  aspect-ratio: 3 / 2;       /* 4×6 thumbnail; opens at native ratio in the lightbox */
  background: transparent;   /* no dark placeholder box until real thumbnails exist */
}

/* Install thumbnails (a photo, or a video showing its first frame) fill the 4×6
   slot via cover; the lightbox reveals the full media at its native ratio. */
.exh-thumb img,
.exh-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.exh-text {
  flex: 1;
  min-width: 0;
}

.exh-venue {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exh-show {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--copy);
}

.exh-feat {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.55;
  color: #777;
}

.exh-date {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-muted);
}

/* =========================================================================
   Per-viewport visibility utilities — the levers for mobile-only divergence.
   Add .u-hide-mobile to anything that should drop on phones (e.g. a caption
   under a work); add .u-mobile-only to markup that should appear only on
   phones. Use on block elements.
   ========================================================================= */
.u-mobile-only { display: none; }

/* =========================================================================
   MOBILE (≤932px — every phone in both orientations; full desktop is >932 and
   untouched). Everything below is additive. Most spacing flows from the four
   tokens re-set here; the rest stacks the side-by-side rows into one column.
   ========================================================================= */
@media (max-width: 932px) {
  :root {
    --nav-pad:     13px 18px;
    --frame-pad:   22px 18px;
    --frame-pad-x: 18px;        /* band negative-margins follow this token */
    --gap:         14px;        /* rail→content gap (was 20) — tighter rhythm */
  }

  /* ---- One consistent mobile vertical rhythm so the first artwork sits high on
         the page. Three steps only:
           --sp-tight  : within a block (label→value, caption→media)
           --sp-section: between sections (work→work, intro→work)
           --sp-move   : between movements (the ፠ section marks)
         Tune these three to taste; everything below references them. ---- */
  :root {
    --sp-tight:   14px;
    --sp-section: 30px;
    --sp-move:    44px;
  }

  .u-hide-mobile { display: none !important; }
  .u-mobile-only { display: block; }

  /* --- Nav → hamburger + dropdown panel --- */
  .nav { position: relative; flex-wrap: nowrap; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav.is-open .nav__ico--menu  { display: none; }
  .nav.is-open .nav__ico--close { display: block; }
  /* Menu panel: always present, animated open/closed (max-height + fade) so it
     slides down across the page and slides back up — minimal, like "… more". */
  .nav__right {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--frame-pad-x);
    background: var(--ground);
    border-bottom: 0.5px solid transparent;
    box-shadow: 0 14px 20px -14px rgba(0, 0, 0, 0);
    z-index: 60;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.36s ease, opacity 0.26s ease, padding 0.36s ease,
                box-shadow 0.36s ease, visibility 0.36s;
  }
  .nav.is-open .nav__right {
    max-height: 460px;
    opacity: 1;
    visibility: visible;
    padding: 4px var(--frame-pad-x) 16px;
    border-bottom-color: var(--hairline);
    box-shadow: 0 14px 20px -14px rgba(0, 0, 0, 0.28);
  }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__link {
    padding: 14px 2px;
    font-size: 14px;
    border-bottom: 0.5px solid var(--hairline);
  }
  .nav__social { padding: 16px 2px 2px; gap: 22px; }

  /* --- Title / spacing --- */
  .ti { font-size: 23px; margin-bottom: var(--sp-tight); }

  /* --- Stack EVERY side-by-side row into one column: marginalia, work rows, and
         the feat-intro (Collection / credit + statement) at the top of a page.
         No left+center columns anywhere on a phone. --- */
  .marg,
  .work,
  .feat-intro { flex-direction: column; gap: var(--gap); }
  .work { margin-top: var(--sp-section); }       /* intro → first work: tight, so the art shows */
  .work + .work { margin-top: 48px; }            /* work → work: generous air between artworks */
  .work__medium { margin-top: 8px; }
  .rail-item { margin-bottom: 12px; }
  /* Credential bullets now apply at every width (see base .cred-list li). */
  .marg__rail,
  .work__rail,
  .feat-intro__rail { flex: 0 0 auto; width: 100%; padding-right: 0; }
  .marg__main,
  .work__main,
  .feat-intro__main { width: 100%; padding-top: 0; }

  /* --- Measures go full width (no narrow desktop column on a phone) --- */
  .copy,
  .work__cap,
  .ocs-graphic,
  .ocs__lead,
  .ocs__p,
  .bio-photo,
  .bio-copy,
  .bio-quote { width: 100%; min-width: 0; max-width: none; }

  /* --- Media fills its column but KEEPS the frame padding on the sides — never
         edge-to-edge. Verticals use the SAME full-column width as horizontals,
         so 9:16 works read large in the hand at the same comfortable side
         padding. --- */
  .work__plate,
  .work__plate.is-vertical,
  .work__still,
  .band__fig { width: 100%; min-width: 0; max-width: 100%; margin-left: 0; }
  /* Plates carrying a custom desktop inline width (Andromeda Vol II clip, Bio BTS
     video, band BTS videos) — force full column width on mobile. */
  .marg .work__plate { width: 100% !important; min-width: 0 !important; }
  .grid { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 10px; }
  /* Case-study still rows stack (Coffee Ceremony, Load Gallery); the "Also
     Presented" coda (in a .marg) stays a 2-up grid. Video rows fill the column. */
  .work__main .shots { grid-template-columns: 1fr; width: 100%; }
  .marg__main .shots { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .media-row { width: 100%; margin-top: var(--sp-tight); gap: 12px; }   /* match the stacked-image gap */
  .work__cap { margin-top: var(--sp-tight); }
  /* Akodama triptych: stack the three stills full-width so each reads large. */
  .akodama-stills { flex-direction: column; width: 100%; gap: 12px; }
  .akodama-stills img { flex: none; width: 100%; }

  /* --- Section mark centers on the full column once the rail is gone --- */
  .chapter-mark { margin: var(--sp-move) 0; width: 100%; }
  .band { margin-top: var(--sp-section); }
  .band > .chapter-mark { margin-bottom: 28px; }
  .band .marg + .marg { margin-top: var(--sp-section); }

  /* --- True Cross source object stacks; the cross image fills the column --- */
  .source-object { flex-direction: column; gap: 18px; align-items: flex-start; }
  .source-object__img { width: 100%; max-width: 100%; }

  /* --- Home: the hero fills the space under the nav via FLEX, not arithmetic.
         The page is a viewport-tall column (dvh tracks the live visible area as
         iOS toolbars show/hide; svh and vh are fallbacks), the nav takes its
         natural height, and the hero STRETCHES into whatever's left. So the
         frame can never be left short by a mis-measured --chrome-h or a transient
         svh read — the cause of the collapsed / cut-off-at-the-bottom hero on
         iOS. Footer hidden so the visual owns the whole height. --- */
  [data-page="home"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;     /* universal fallback */
    min-height: 100svh;
    min-height: 100dvh;    /* fill the live visible viewport */
  }
  [data-page="home"] .footer { display: none; }
  [data-page="home"] .hero { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  .hero__frame {
    width: 100vw;
    max-width: 100vw;
    min-height: 50vh;            /* floor — never collapse to a band */
    aspect-ratio: auto;          /* height comes from the flex stretch, not a ratio */
    background: var(--ground);   /* any letterbox margin reads as paper, never black */
  }
  /* Portrait: fill the screen edge-to-edge, cropping the bottom as needed. */
  .hero__frame video { object-fit: cover; object-position: center top; }
  .hero__grad { display: none; }   /* no overlay text on mobile → no gradient */
  .hero__over { display: none; }

  /* --- Index → a vertical feed of 16:9 preview cards (no hover on phones).
         Each preview autoplays while on-screen; the name sits beneath; tapping
         the card enters the collection. --- */
  .idx-live { display: block; }
  .idx-stage { display: none; }
  .idx-list { display: flex; flex-direction: column; gap: 30px; }
  .idx-item { display: block; padding: 0; border: 0; }
  .idx-item:first-child { border-top: 0; }
  .idx-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    /* Quiet ground (not a black --plate) so an unloaded card reads as empty
       space that's filling in, rather than a black box that flashes in over the
       page and then has the image appear inside it. */
    background: var(--ground);
  }
  .idx-card__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .idx-name { display: block; white-space: normal; margin-top: 11px; color: var(--ink); }
  .idx-dot { display: none; }

  /* --- Contact: rail, form, and photo each take the full width --- */
  .contact-row { gap: 26px; }
  .contact-rail { flex: 0 0 100%; }
  .contact-form { flex: 1 1 100%; }
  .contact-photo-cell { flex: 1 1 100%; margin-right: 0; justify-content: flex-start; }

  /* --- Press: tighten the two-column gap --- */
  .press-list { column-gap: 18px; }

  /* --- Long captions/paragraphs truncate to 3 lines with an inline "… more"
         (Instagram-style) appended in JS at the exact end of the visible text;
         tapping expands the whole block (all paragraphs) with a subtle height
         slide, and a trailing "less" collapses it again. --- */
  .cap-more {
    color: var(--nav-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .cap-less { margin-left: 0.15em; }
  /* Immersive case-study columns: ONE consistent thin gap between every stacked
     element (stills → video → text → video row), matching the gap between the
     stacked images so nothing reads inconsistent. */
  [data-page="immersive"] .work__main > * { margin-top: var(--sp-tight); }
  [data-page="immersive"] .work__main > *:first-child { margin-top: 0; }
  /* Beat the desktop .shots + .work__plate (40px) rule so the stills→video gap
     matches the thin gap between the stacked images. */
  [data-page="immersive"] .shots + .work__plate,
  [data-page="immersive"] .work__plate + .copy,
  [data-page="immersive"] .media-row + .copy,
  [data-page="immersive"] .copy + .shots { margin-top: var(--sp-tight); }

  /* Single-work pages: hide the work title when it just repeats the page <h1>
     (Mother of Menelik, My Land). The medium/provenance stay. */
  .work__title.is-dupe { display: none; }

  /* When the intro rail has only the contract (no collection credit — e.g. Tizita,
     My Land), let it sit a single break under the back-link, not a double. */
  .feat-intro__rail .rail-back + .chain { margin-top: 0; }

  /* ---- EXPERIMENT — True Cross "Provenance" drawer (body[data-prov="drawer"]):
       each artwork shows just its title + a tappable "Provenance ▾"; the credential
       details slide open below it (built in JS). ---- */
  .prov-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--nav-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .prov-toggle .prov-chev { width: 16px; height: 13px; transition: opacity 0.28s ease; }
  .prov-toggle.is-open { color: var(--ink); }
  .prov-toggle.is-open .prov-chev { opacity: 0; }   /* fade away when open */
  .prov-drawer { overflow: hidden; }
  [data-prov="drawer"] .work__title { margin-bottom: 0; }
  [data-prov="drawer"] .prov-drawer > :first-child { margin-top: 12px; }
  /* Always a double line break after the last line of the opened drawer (with the
     ~14px work gap below, this reads as ~2 lines before the artwork) — also keeps
     the last row's underline clear of the overflow:hidden clip edge. */
  [data-prov="drawer"] .prov-drawer > :last-child { margin-bottom: 30px; }
  [data-prov="drawer"] .prov-drawer .chain--proof > .label { display: none; }  /* "Provenance" toggle already says it; keep "Contract" in the Collection drawer */
}

/* =========================================================================
   MOBILE — LANDSCAPE. A phone turned sideways is wide and short, so full-bleed
   media would tower past the screen. Snap each work to fit the screen HEIGHT
   and center it, so the whole frame is visible without scrolling. Overrides the
   portrait full-bleed above.
   ========================================================================= */
@media (orientation: landscape) and (max-width: 932px) {
  .work__plate,
  .work__still {
    width: min(94vw, calc(86svh * var(--ar, 1.7778)));
    max-width: 94vw;
    margin-left: auto;
    margin-right: auto;
  }
  .work__plate.is-vertical { width: min(62vw, calc(86svh * var(--ar))); }
  .band__fig {
    width: min(72vw, calc(86svh * 1.3333));
    margin-left: auto;
    margin-right: auto;
  }
  /* Home held sideways: show the FULL 16:9 work (no face cropping), letterboxed
     on paper-white rather than filling-and-cropping as portrait does. */
  .hero__frame video { object-fit: contain; }
}

/* =========================================================================
   Coffee Proverb reveal pages (unlisted — reached by tapping the NFC cup at a
   YATREDA coffee ceremony). Standalone, no nav/chrome: the vertical film fills
   the screen, an icon-only download sits in the paper beneath it, and a View
   Provenance button links to the work on OpenSea. One block drives all 180.
   ========================================================================= */
body.reveal { margin: 0; background: var(--ground); color: var(--ink); }
.reveal__wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 20px;
  box-sizing: border-box;
}
/* The film is as large as fits BOTH the viewport width and the height left for
   the download + button — so the whole 9:16 shows, uncropped, with no scroll. */
.reveal__media {
  width: min(100vw, calc((100svh - 132px) * 9 / 16));
  flex: 0 0 auto;
}
.reveal__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--plate);
  overflow: hidden;
}
.reveal__vid { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Icon-only download, in the paper just beneath the film, its right edge lined
   up with the film's right edge (only the icon's own optical margin remains). */
.reveal__bar { display: flex; justify-content: flex-end; padding: 9px 0 0 0; }
.reveal__dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px 4px 4px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.reveal__dl svg { width: 24px; height: 24px; display: block; }
.reveal__dl:hover { color: var(--body-grey); }
.reveal__mint {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 13px 28px;
  transition: background 0.2s ease, color 0.2s ease;
}
.reveal__mint:hover { background: var(--ink); color: var(--ground); }

/* =========================================================================
   Available-works page (yatreda.com/available) — an elegant price in the rail,
   and Sunday Morning's 2x2 detail gallery beneath its two large stills.
   ========================================================================= */
.price {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.price__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.price__amount { display: block; font-size: 15px; color: var(--label-grey); }
.price__note { display: block; margin-top: 4px; font-size: 12px; color: var(--label-grey); }
.gallery-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: var(--plate-cap);
  margin-top: 26px;
}
.gallery-2x2 img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
/* Sunday Morning: the two large stills + the film span the full plate width,
   aligning with the gallery and the works above. */
.shot-wide { display: block; width: var(--plate-cap); height: auto; }
.work__plate.is-wide { width: var(--plate-cap); }
@media (max-width: 932px) {
  .gallery-2x2 { width: 100%; }
  .shot-wide { width: 100%; }
  .work__plate.is-wide { width: 100%; }
}

/* Journey to Solomon the Wise — align the two vertical works on desktop so
   Mother of Menelik (9:16) matches the width of Queen of Sheba (2:3) above it. */
@media (min-width: 933px) {
  [data-page="journey"] .work__plate.is-vertical { width: min(40.5%, 57.3svh); }
}
