/* ============================================================
   ROOMS SYSTEM — "The Container Changes"
   Structural redesign layer, additive to art.css. Does not touch
   the colour tokens defined there. Linked (after art.css) only on
   the pages that use it: oeuvre-actuelle.html, autres-travaux.html,
   index.html, shop.html, expositions.html, and the individual
   gallery-*.html pages that render via buildRoomGallery() (the room
   system also backs the trunk/branch overlay, see js/art-trunk.js).
   gallery-contemplations.html and gallery-bailar-la-ciudad.html used
   to load this too for their own room-system layout; both are now
   simple redirects (2026-10-30 / 2026-11-11, trunk/branch rework)
   and no longer load it. home.html itself was retired 2026-11-11,
   split into oeuvre-actuelle.html/autres-travaux.html above.
   ============================================================ */

:root{
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:20px; --sp-5:32px;
  --sp-6:52px; --sp-7:84px; --sp-8:136px;
}

/* ---------- motion primitives ---------- */
.reveal{clip-path:inset(0 0 100% 0);transition:clip-path .7s cubic-bezier(.77,0,.175,1)}
.reveal.in{clip-path:inset(0 0 0% 0)}
.reveal-img{clip-path:inset(0 0 100% 0);transition:clip-path .45s cubic-bezier(.77,0,.175,1)}
.reveal-img.in{clip-path:inset(0 0 0% 0)}
@media(prefers-reduced-motion:reduce){
  .reveal,.reveal-img{transition-duration:.01ms}
}

/* ---------- minimal top bar (logo only) ---------- */
.rbar{position:fixed;top:0;left:0;right:0;z-index:70;display:flex;align-items:center;padding:18px var(--sp-5);pointer-events:none}
.rbar::before{content:"";position:absolute;inset:0 0 -60px 0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(8,6,4,.75),rgba(8,6,4,0))}
.rbar .brand{pointer-events:auto;display:flex;align-items:center}
.rbar .brand img{height:40px;width:auto}
/* 2026-11-16 — language trigger next to the logo, always visible
   (was reachable only via the Index overlay). Same [data-idx-lang]
   pattern/JS wiring (js/rooms.js) as the one inside that overlay,
   just styled to read clearly against the rbar's own dark scrim. */
.rbar .lang.rbar-lang{pointer-events:auto;display:flex;gap:7px;align-items:center;
  margin-left:16px;font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.14em;color:var(--bone);opacity:.75}
.rbar .lang.rbar-lang span{opacity:.5}
.rbar .lang.rbar-lang button{background:none;border:0;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;padding:4px 1px;
  transition:color .25s ease,opacity .25s ease}
.rbar .lang.rbar-lang button.on{opacity:1;color:var(--or)}
.rbar .lang.rbar-lang button:hover{opacity:1;color:var(--or)}
@media(max-width:480px){ .rbar .lang.rbar-lang{font-size:11px;gap:5px;margin-left:10px} }

/* ---------- corner index affordance ---------- */
.idx-fab{position:fixed;right:var(--sp-5);bottom:var(--sp-5);z-index:90;display:flex;align-items:center;gap:10px;
  background:rgba(16,12,10,.74);backdrop-filter:blur(6px);border:1px solid rgba(237,230,218,.2);border-radius:30px;
  padding:12px 18px;cursor:pointer;font-family:var(--sans);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--bone);
  transition:background .3s ease,border-color .3s ease,color .3s ease}
.idx-fab:hover{border-color:var(--or);color:var(--or)}
.idx-fab .dot{width:7px;height:7px;border-radius:50%;background:var(--or);flex-shrink:0}
.idx-fab .cur{opacity:.7;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.idx-overlay{position:fixed;inset:0;z-index:95;background:rgba(10,7,5,.97);backdrop-filter:blur(6px);
  overflow-y:auto;padding:var(--sp-7) var(--sp-5) var(--sp-7);
  opacity:0;pointer-events:none;transition:opacity .35s ease}
.idx-overlay.open{opacity:1;pointer-events:auto}
.idx-wrap{max-width:900px;width:100%;margin:0 auto;padding-top:var(--sp-6)}
.idx-close{position:fixed;top:var(--sp-5);right:var(--sp-5);font-size:30px;color:var(--bone);cursor:pointer;opacity:.8;z-index:96;line-height:1}
.idx-close:hover{opacity:1;color:var(--or)}
.idx-sec{margin-bottom:var(--sp-7)}
.idx-sec h4{font-family:var(--sans);font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:var(--or);margin-bottom:var(--sp-4)}
.idx-sec a.idx-link{display:block;font-family:var(--serif);font-size:clamp(22px,4vw,38px);line-height:1.5;color:var(--bone);opacity:.82;transition:opacity .25s ease,color .25s ease}
.idx-sec a.idx-link:hover{opacity:1;color:var(--or)}
.idx-row{display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-6);align-items:center}
.idx-row a{font-family:var(--sans);font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--bone);opacity:.82}
.idx-row a:hover{opacity:1;color:var(--or)}
.idx-row .lang{display:flex;gap:6px;align-items:center;font-size:12px;letter-spacing:.14em;color:var(--ash)}
.idx-row .lang button{background:none;border:0;color:var(--ash);font:inherit;letter-spacing:.14em;cursor:pointer;padding:0 2px}
.idx-row .lang button.on{color:var(--bone)}
.idx-row .lang button:hover{color:var(--or)}
@media(max-width:600px){ .idx-sec a.idx-link{font-size:22px} .idx-fab .cur{display:none} .idx-fab{padding:15px 16px;min-height:44px} .idx-close{font-size:34px;padding:6px} }

/* ---------- room base ---------- */
.room{position:relative;padding:var(--sp-7) var(--sp-5)}
.room-first{padding-top:var(--sp-6)}
.room-opener{max-width:800px;margin:0 auto var(--sp-6);text-align:center}
.room-opener .rk{display:block;font-family:var(--sans);font-weight:400;font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--or);margin-bottom:var(--sp-4)}
.room-opener p{font-family:var(--serif);font-style:italic;font-weight:400;font-size:clamp(20px,2.8vw,32px);line-height:1.5;color:var(--bone);opacity:.94}

.room figure{position:relative;margin:0;cursor:zoom-in;overflow:hidden;background:var(--surface);line-height:0}
.room figure img{display:block;width:auto;max-width:100%;height:auto;max-height:88vh;margin:0 auto;transition:transform 1s ease}
.room a.room-link{display:block}
.room a.room-link:hover img{transform:scale(1.02)}
.room figure .n{position:absolute;left:12px;bottom:12px;font-size:12px;letter-spacing:.16em;color:var(--bone);
  background:rgba(10,7,5,.55);padding:4px 9px;backdrop-filter:blur(3px);opacity:0;transition:opacity .35s ease}
.room a.room-link:hover .n{opacity:1}

/* museum-label caption (dossier format — see reference_portfolio_pdf_dossier_format):
   title (+ medium/date once that per-photo data exists), small italic,
   right-aligned — OUTSIDE the photo, like a real gallery wall label or a
   print catalogue's tombstone text, never printed over the image itself.
   (First pass had this as an absolute overlay on the photo corner —
   Guillaume caught that this is exactly backwards: museum labels sit
   beside/below the work, they are never stamped on it.) Normal flow
   below the image, inside the same <figure> (so it still travels with
   the room-type positioning rules keyed to `figure`), not clipped by
   the figure's own overflow:hidden since it isn't layered within the
   image's box. */
.room figure .cartel{display:block;margin-top:var(--sp-3);text-align:right;
  font-family:var(--serif);font-style:italic;font-size:17px;line-height:1.4;color:var(--bone-dim)}
.room figure .cartel .med{display:block;font-family:var(--sans);font-style:normal;font-size:10px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--or);opacity:.85;margin-top:2px}

/* tile label (home series entries — image doubles as a link into a gallery) */
.room-tile{position:relative;min-height:120px}
.room-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,12,10,0) 45%,rgba(16,12,10,.82) 100%);pointer-events:none}
.room-tile .lab{position:absolute;left:var(--sp-4);right:var(--sp-4);bottom:var(--sp-4);z-index:2}
.room-tile .lab .no{font-size:12px;letter-spacing:.24em;color:var(--or);text-shadow:0 1px 6px rgba(0,0,0,.6)}
.room-tile .lab h3{font-family:var(--serif);font-weight:400;font-size:clamp(16px,2.2vw,32px);margin-top:6px;line-height:1.1;text-shadow:0 1px 10px rgba(0,0,0,.6)}
.room-tile .lab .adult{color:var(--braise)}

/* 18+ tile: the <img> src itself is a pre-blurred, low-res derivative
   generated offline (images/boudoir/after-dark-teaser-safe.jpg) — no
   runtime CSS filter to rely on. This class only keeps hover restrained
   (no zoom-in affordance on this tile) and must never start with "ad-":
   ad blockers hide ad-* classes/ids outright, which would silently
   un-restrain this exact element for a meaningful share of visitors.
   Must never be the largest/most prominent element on the public
   homepage (see room composition in art-home.js). */
.room-veiled:hover figure img{transform:none}

/* ---------- room--full ---------- */
/* text-align:center + an inline-block child (NOT flex: a flex item with
   an auto flex-basis and a width:auto/max-width:100% image inside it is
   a circular sizing case some engines resolve to 0×0 before the image's
   bytes arrive — inline-block shrink-to-fit has used the img width/height
   attributes to reserve space correctly for decades) so the tile/figure
   shrink-wraps the image's actual rendered size — a square or wide-aspect
   image no longer sits inside a slab wider than itself, with the
   label/gradient floating past its edge. */
.room--full{max-width:1500px;margin:0 auto;text-align:center}
.room--full a.room-link,.room--full>figure,.room--full>.trunk-stack{display:inline-block;max-width:100%}

/* ---------- room--asym2 (asymmetric 2-up, never 50/50) ----------
   Flexbox, not grid: a grid row's track height is set by its tallest
   item even with align-items:start, so a short column still sits inside
   a tall empty row band. Flex items have no shared row to inherit — the
   room's own height is still "tallest child", but each column's box ends
   exactly where its own content ends, nothing reserved beyond that. */
.room--asym2{display:flex;gap:var(--sp-5);max-width:1500px;margin:0 auto;align-items:flex-start}
.room--asym2>.a{flex:7 1 0%}
.room--asym2>.b{flex:4 1 0%;margin-top:var(--sp-6)}
.room--asym2.rev{flex-direction:row-reverse}

/* ---------- room--rhythm3 (3-up, one deliberately larger) ---------- */
.room--rhythm3{display:flex;gap:var(--sp-5);max-width:1500px;margin:0 auto;align-items:flex-start}
.room--rhythm3>.x1{flex:5 1 0%}
.room--rhythm3>.x2{flex:3 1 0%;margin-top:var(--sp-6)}
.room--rhythm3>.x3{flex:4 1 0%}
.room--rhythm3.alt>.x1{flex:3 1 0%}
.room--rhythm3.alt>.x2{flex:6 1 0%;margin-top:0}
.room--rhythm3.alt>.x3{flex:3 1 0%;margin-top:var(--sp-6)}

/* ---------- room--interrupt (curatorial text break) ---------- */
.room--interrupt{max-width:760px;margin:0 auto;padding:var(--sp-7) 0;text-align:center;
  border-top:1px solid rgba(237,230,218,.14);border-bottom:1px solid rgba(237,230,218,.14)}
.room--interrupt .rk{display:block;font-family:var(--sans);font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--or);margin-bottom:var(--sp-4)}
.room--interrupt p{font-family:var(--serif);font-style:italic;font-size:clamp(22px,3.2vw,34px);line-height:1.55;color:var(--bone)}

/* ---------- room--detail (a pause, not another image group) ----------
   One image, deliberately small, generous whitespace either side — a
   genuine change of pace between bigger rooms rather than just another
   same-weight group. Inserted periodically by buildRoomSequence(). */
.room--detail{max-width:360px;margin:0 auto;text-align:center;padding:var(--sp-6) 0}
.room--detail::before,.room--detail::after{content:"";display:block;width:28px;height:1px;background:rgba(237,230,218,.22);margin:0 auto}
.room--detail::before{margin-bottom:var(--sp-6)}
.room--detail::after{margin-top:var(--sp-6)}
.room--detail a.room-link,.room--detail>figure{display:inline-block;max-width:100%}
@media(max-width:820px){ .room--detail{max-width:260px} }

/* ---------- home.html series list (radical withholding) ----------
   home.html does NOT show a preview grid of every series — that read as
   a catalog/sales-pitch pattern, not how working fine-art photographers
   structure a site (surveyed 2026-10-30: gregoryhalpern.com,
   toddhido.com, alecsoth.com, maxpinckers.be — text links over bodies of
   work, near-zero thumbnails/captions on the entry page, sequence lives
   one level down inside each series). The corner index overlay is
   already a text-only series list; this is the same idea inline on the
   page, under the single random hero photo. */
.work-list{max-width:720px}
.work-list a{display:block;padding:14px 0;border-bottom:1px solid rgba(237,230,218,.1);font-family:var(--serif);font-size:clamp(20px,2.6vw,30px);color:var(--bone);opacity:.82;transition:opacity .25s ease,color .25s ease}
.work-list a:first-child{padding-top:0}
.work-list a:hover{opacity:1;color:var(--or)}
.work-list .no{display:inline-block;width:2.6ch;font-family:var(--sans);font-size:12px;letter-spacing:.14em;color:var(--or);vertical-align:middle}
.work-list .adult{color:var(--braise);font-family:var(--sans);font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin-left:10px;vertical-align:middle}
@media(max-width:820px){ .work-list a{font-size:19px;padding:12px 0} }

@media(max-width:820px){
  .room{padding:var(--sp-6) var(--sp-4)}
  /* each primitive keeps its own proportions on mobile instead of collapsing
     into one undifferentiated stack — widths/alignment carry the asymmetry
     and the rhythm break even though everything necessarily stacks. */
  .room--asym2,.room--asym2.rev,.room--rhythm3,.room--rhythm3.alt{display:flex;flex-direction:column;gap:var(--sp-4)}
  .room--asym2>.a,.room--asym2>.b,.room--asym2.rev>.a,.room--asym2.rev>.b,
  .room--rhythm3>.x1,.room--rhythm3>.x2,.room--rhythm3>.x3,
  .room--rhythm3.alt>.x1,.room--rhythm3.alt>.x2,.room--rhythm3.alt>.x3{grid-column:auto;margin-top:0}

  .room--asym2>.a{width:100%}
  .room--asym2>.b{width:76%;align-self:flex-end}
  .room--asym2.rev>.a{width:100%}
  .room--asym2.rev>.b{width:76%;align-self:flex-start}

  .room--rhythm3>.x1{width:100%}
  .room--rhythm3>.x2{width:62%;align-self:flex-end}
  .room--rhythm3>.x3{width:86%;align-self:flex-start}
  .room--rhythm3.alt>.x1{width:62%;align-self:flex-start}
  .room--rhythm3.alt>.x2{width:100%}
  .room--rhythm3.alt>.x3{width:62%;align-self:flex-end}
}

/* ---------- room hero (full-bleed cover + title; fixes the dead-gap defect) ---------- */
.room-hero{position:relative;height:78vh;min-height:460px;overflow:hidden}
.room-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:translateY(var(--py,0px))}
.room-hero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(16,12,10,.4) 0%,rgba(16,12,10,0) 32%,rgba(16,12,10,0) 55%,rgba(16,12,10,.55) 100%)}
.room-hero .tt{position:absolute;left:var(--sp-5);bottom:var(--sp-6);z-index:2;max-width:70%}
.room-hero .tt .no{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--or);text-shadow:0 1px 8px rgba(0,0,0,.6)}
.room-hero .tt h1{font-family:var(--serif);font-weight:400;font-size:clamp(40px,6.4vw,92px);line-height:1;margin-top:14px;text-shadow:0 2px 30px rgba(0,0,0,.7)}
.room-hero .tt p{font-family:var(--serif);font-size:16px;line-height:1.7;color:var(--bone);opacity:.92;max-width:60ch;margin-top:20px;text-shadow:0 1px 10px rgba(0,0,0,.6)}

@media(max-width:820px){
  .room-hero{height:88vh}
  .room-hero img{object-position:var(--hero-mob-pos,50% 35%)}
  .room-hero .tt{left:20px;right:20px;bottom:var(--sp-5);max-width:none}
  .room-hero .tt h1{font-size:clamp(34px,9vw,52px)}
}

/* shop entry — image-led room, not a text-only generic template opener.
   Structure and commerce logic below (#shop-groups, the acquire modal,
   pricing) are untouched. */
.shop-hero{position:relative;overflow:hidden;border-radius:3px;min-height:380px;height:52vh;margin-top:var(--sp-6)}
.shop-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:40% 45%}
.shop-hero::before{content:"";position:absolute;inset:0;pointer-events:none;
  /* 2026-11-16 — was lightest (.25) right around 30% down, which is
     roughly where the title/intro sit — fine on a dark photo, nearly
     invisible on a bright one (e.g. this pale rock/sand shot). No more
     dip: darkens steadily from top to bottom instead. */
  background:linear-gradient(180deg,rgba(16,12,10,.55) 0%,rgba(16,12,10,.72) 45%,rgba(16,12,10,.97) 100%)}
.room-confident{position:relative;z-index:1;padding:0 var(--sp-6) var(--sp-7);display:flex;flex-direction:column;justify-content:flex-end;height:100%;text-align:center;margin:0 auto;max-width:720px}
.room-confident::before{content:"";display:block;width:54px;height:2px;background:var(--or);margin:0 auto var(--sp-4)}
.room-confident .k{letter-spacing:.36em;font-size:13px;text-shadow:0 1px 3px rgba(0,0,0,.9),0 1px 10px rgba(0,0,0,.8)}
.room-confident h1{font-size:clamp(42px,6.6vw,76px)!important;text-shadow:0 1px 4px rgba(0,0,0,.85),0 2px 24px rgba(0,0,0,.7)}
.room-confident p{font-size:17px!important;opacity:1!important;text-shadow:0 1px 3px rgba(0,0,0,.9),0 1px 12px rgba(0,0,0,.85)}
@media(max-width:820px){ .shop-hero{height:60vh;min-height:320px;margin-top:var(--sp-4)} .room-confident{padding:0 var(--sp-4) var(--sp-6)} }

/* shipping/terms line: moved OFF the photo entirely (was set in --ash over
   a busy background, illegible) — plain dark background below the hero,
   same conventions as .shop-dark-note just above it in the page. Also
   gives the eyebrow + title room to breathe inside the hero without
   crowding into the image's busier upper portion. */
.shop-terms-standalone{max-width:640px;margin:var(--sp-5) auto var(--sp-6);text-align:center;font-size:13px;letter-spacing:.02em;color:var(--ash);line-height:1.6}

/* home hero: single pick, mobile-intentional crop. The old scroll-cue is
   redundant now that the corner index always offers a way into the series,
   and on short mobile viewports it collided with the headline — drop it. */
@media(max-width:820px){
  .hero .frame img{object-position:var(--hero-mob-pos,50% 38%)}
  .hero .scroll{display:none}
}

/* home hero: the corner "now" badge (bottom-right) collided with the fixed
   index pill — give it real clearance above it — and both it and the
   eyebrow kicker were 12px with only a soft shadow, unreadable against a
   bright photo. A scrim makes both legible regardless of what's behind
   them. Scoped to home.html — rooms.css is the only place this rule can
   match, and after-dark.html (same .hero markup) doesn't load rooms.css. */
.hero .cap .k{background:rgba(10,7,5,.4);display:inline-block;padding:4px 10px;border-radius:2px;backdrop-filter:blur(2px)}
.hero .now{bottom:112px;background:rgba(10,7,5,.45);padding:10px 14px;border-radius:3px;backdrop-filter:blur(3px)}
.hero .now .t{font-size:13px;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.hero .now .s{font-size:12.5px;text-shadow:0 1px 8px rgba(0,0,0,.6);opacity:.88}
@media(max-width:820px){ .hero .now{display:none} }

/* mobile: nudge the first room down just enough to clear the fixed corner
   index pill at initial scroll (it sat on top of the curatorial opener
   line on short viewports). Desktop spacing — and the dead-gap fix — is
   untouched. */
@media(max-width:820px){
  .room-first{padding-top:calc(var(--sp-6) + var(--sp-5))}
}

/* ---------- trunk / branch (home.html) ----------
   Trunk photos render as ordinary .room/.reveal-img primitives above
   (js/art-trunk.js) — no new CSS needed for the trunk itself. This is
   just the branch overlay's own chrome: the full-screen panel and its
   persistent back control (the label itself is i18n'd, see branch_back
   in js/art-i18n.js — never the literal word "Trunk" to a visitor). */
.branch-overlay{position:fixed;inset:0;z-index:92;background:var(--nuit);overflow-y:auto;
  opacity:0;pointer-events:none;transition:opacity .35s ease}
.branch-overlay.open{opacity:1;pointer-events:auto}
.branch-backbar{position:sticky;top:0;z-index:2;padding:var(--sp-4) var(--sp-5);
  background:linear-gradient(180deg,rgba(8,6,4,.92),rgba(8,6,4,0))}
.branch-back{background:rgba(16,12,10,.74);border:1px solid rgba(237,230,218,.2);border-radius:30px;
  color:var(--bone);font-family:var(--sans);font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  padding:12px 18px;cursor:pointer;transition:border-color .3s ease,color .3s ease}
.branch-back:hover{border-color:var(--or);color:var(--or)}
.branch-wrap{max-width:1500px;margin:0 auto;padding:0 var(--sp-5) var(--sp-7)}
.branch-related-h{font-family:var(--sans);font-size:11px;letter-spacing:.3em;text-transform:uppercase;
  color:var(--or);text-align:center;margin:var(--sp-6) 0 var(--sp-5)}

/* real description/context/statement for the 3 anchor projects — a
   paragraph, not a caption: centered, readable measure, generous
   line-height. Distinct class from .room-opener (kept for other uses)
   so a future change to one doesn't silently affect the other. */
.branch-statement{max-width:640px;margin:0 auto}
.branch-statement p + p{margin-top:1.1em}
.branch-statement p{font-family:var(--serif);font-size:16px;line-height:1.75;color:var(--bone);opacity:.92;
  text-align:left}

/* Only 3 of the 20 trunk photos go deeper (js/art-trunk.js's has-branch
   check) — without any mark, clicking is a guess and most clicks
   (correctly) show nothing, reading as broken rather than "most photos
   are singular." A quiet dot, not a badge — discoverable on hover/focus,
   not a loud UI chrome element competing with the photo. */
.reveal-img.has-branch{cursor:pointer}
.reveal-img .branch-mark{position:absolute;top:12px;right:12px;width:7px;height:7px;border-radius:50%;
  background:var(--or);opacity:.55;transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.reveal-img.has-branch:hover .branch-mark,.reveal-img.has-branch:focus-visible .branch-mark{opacity:1;transform:scale(1.3)}
/* Touch devices never fire :hover, so the hover-reveal above never shows —
   the dot would otherwise be the ONLY signal a photo goes deeper, and at
   7px/55% opacity it reads as "nothing here" rather than "most photos are
   singular." Raise the resting state on touch only; desktop keeps the
   quiet hover-reveal unchanged. */
@media (hover:none){
  .reveal-img .branch-mark{width:9px;height:9px;opacity:.85}
}

/* Branch title (2026-11-24): the two named current projects get their name
   set above their trunk anchor photo — not over it — like the wall label
   you read before stepping into a gallery room, the image itself the room
   beyond the threshold. A thin vertical rule stands in for that threshold;
   the eyebrow + serif title below it echo the same eyebrow+heading grammar
   already used in .room-opener. */
.branch-title{display:block;text-align:center;padding:0 var(--sp-4) var(--sp-4)}
.branch-title .rule{display:block;width:1px;height:26px;margin:0 auto 12px;
  background:linear-gradient(180deg,rgba(198,146,78,.9),rgba(198,146,78,.15))}
.branch-title .rk{font-family:var(--sans);font-weight:400;font-size:11px;letter-spacing:.34em;
  text-transform:uppercase;color:var(--or)}
.branch-title h2{font-family:var(--serif);font-weight:400;font-size:clamp(26px,3.6vw,48px);line-height:1.08;
  margin-top:10px;color:var(--bone)}
@media(max-width:640px){
  .branch-title{padding:0 var(--sp-3) var(--sp-3)}
  .branch-title h2{font-size:clamp(21px,6.4vw,32px)}
}

/* "surélévation" hover (2026-11-11): the trunk photo lifts up-left on
   hover, uncovering 1-2 thin slivers of its branch's next photos sitting
   behind it, like a lifted card in a deck. Extends has-branch — the wrapper
   only ever exists around a .has-branch figure (see js/art-trunk.js). Pure
   transform (no layout properties), so sibling rooms never shift: the
   room's own box height is already set by the figure's natural (untransformed)
   size, and a transform never participates in layout/reflow. All three
   layers hold translate(0,0) at rest and only move on :hover/:focus-within,
   so nothing peeks out until the reveal is actually triggered. */
.trunk-stack{position:relative}
.trunk-stack figure.has-branch{position:relative;z-index:3;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.trunk-stack .stack-sliver{position:absolute;inset:0;overflow:hidden;border-radius:2px;
  box-shadow:-3px 4px 14px rgba(0,0,0,.4);pointer-events:none;
  transition:transform .45s cubic-bezier(.22,1,.36,1),box-shadow .45s ease}
.trunk-stack .stack-sliver img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.trunk-stack .stack-sliver.s1{z-index:2}
.trunk-stack .stack-sliver.s2{z-index:1}
/* 2026-11-13, Guillaume's explicit call: always show this hover lift,
   even for visitors whose OS/browser requests reduced motion (no longer
   gated behind prefers-reduced-motion — it was, by original design). */
.trunk-stack:hover figure.has-branch,.trunk-stack:focus-within figure.has-branch{transform:translate(-11px,-11px)}
/* 2026-11-15 — Guillaume: a slight glow on the slivers as they peek out,
   to separate them from the page's own near-black background — the dark
   drop-shadow alone barely reads against --nuit. Added only on reveal
   (not at rest, where the sliver sits fully hidden under the photo
   anyway), as a second, soft rim-light shadow — the site's own bone/cream
   tone, low opacity — alongside the existing depth shadow, not replacing
   it. */
.trunk-stack:hover .stack-sliver.s1,.trunk-stack:focus-within .stack-sliver.s1{transform:translate(9px,9px);box-shadow:-3px 4px 14px rgba(0,0,0,.4), 0 0 32px rgba(237,230,218,.38)}
.trunk-stack:hover .stack-sliver.s2,.trunk-stack:focus-within .stack-sliver.s2{transform:translate(17px,17px);box-shadow:-3px 4px 14px rgba(0,0,0,.4), 0 0 32px rgba(237,230,218,.38)}

/* ---------- full-screen scroll-snap trunk sequence (2026-11-11) ----------
   oeuvre-actuelle.html / autres-travaux.html ONLY (body.trunk-snap, set in
   those two files) — replaces the room/grid visual system there with one
   photo per full screen, real aspect ratio, never cropped/stretched.
   gallery-*.html pages never get this class, so their .room grid is
   byte-for-byte unaffected.
   - scroll-snap-type lives on body (the actual scrolling box for normal
     page scroll) — it only activates snapping for descendants that opt in
     via scroll-snap-align, so the hero above and the after-dark teaser
     tile below the sequence (plain .room--detail, no .trunk-screen class)
     keep scrolling past freely, exactly as before.
   - Each screen is a flex column that centers the figure (+ its cartel)
     as one unit — min-height:100vh instead of height, so a long caption
     never gets clipped, it just pushes the screen taller than one
     viewport on that one occasion rather than overlapping the photo.
   - Sizing is pure CSS (viewport-relative units + the width/height HTML
     attributes already set from js/room-dims.js, which give the browser
     the real aspect ratio before the image loads) — no JS pixel sizing
     here on purpose, see the sizeFigures() guard in js/art-trunk.js: a
     one-time inline px size would not track a later resize/rotation,
     whereas max-width/max-height in vw/vh always does. */
body.trunk-snap{scroll-snap-type:y mandatory}
.trunk-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  position:relative;padding:var(--sp-6) var(--sp-5);scroll-snap-align:start;scroll-snap-stop:always}
.trunk-screen>figure,.trunk-screen>.trunk-stack{display:inline-block;max-width:100%}
.trunk-screen figure img{display:block;width:auto;height:auto;max-width:88vw;max-height:88vh;margin:0 auto;object-fit:contain}
@media(max-width:820px){
  .trunk-screen{padding:var(--sp-6) var(--sp-4)}
  .trunk-screen figure img{max-width:92vw;max-height:76vh}
}

/* ---------- persistent right-side nav (2026-11-12) ----------
   oeuvre-actuelle.html / autres-travaux.html ONLY — the scroll-snap
   sequence means a visitor deep in it never sees the top .rbar/idx-fab
   again without scrolling all the way back up, so this stays on screen
   throughout. Narrow on purpose (vertical text, not a wide label column)
   so it sits inside the margin .trunk-screen's own centered photo already
   leaves (max-width:88vw → ~6vw clear on each side on desktop, comfortably
   more than this rail's own width) rather than overlapping it — and it's
   non-interactive everywhere except its own links/button
   (pointer-events only on the rail itself, nothing it needs to block).
   z-index 65: above ordinary page content, below .branch-overlay (92) and
   .idx-overlay (95) so both still fully cover it when open, same as the
   existing .rbar (70) relationship — this just sits a little lower so it
   never competes with either overlay's own controls.
   Mobile (<=820px): hidden — the existing .idx-fab + .idx-overlay (same
   links, already reachable, already tested on mobile) is the collapsed
   form here rather than a second new toggle; adding another fixed corner
   element on an already-tight 375px viewport would be clutter for
   something that already has a working mobile answer. */
/* 2026-11-15 — Guillaume: 25% larger, white background, dark letters —
   "so it's more visible" (was a dark, semi-transparent chip blending into
   this dark-ground site; now a solid light panel that reads at a glance
   regardless of what photo is behind it). Every size below is the old
   value *1.25. */
.side-nav{position:fixed;top:50%;left:10px;transform:translateY(-50%);z-index:65;
  display:flex;flex-direction:column;align-items:center;gap:26px;
  background:linear-gradient(165deg,#fffefc,rgba(250,248,244,.95) 55%,rgba(240,236,228,.92));
  padding:26px 14px;border-radius:36px;
  border:1px solid rgba(16,12,10,.1);box-shadow:0 4px 18px rgba(0,0,0,.25);
  /* 2026-11-16 — on the left; max-height+scroll (not shrinking the text)
     is what keeps this clear of the header/footer on short viewports, so
     the whole rail could then go 30% larger without needing to fit
     unscrolled. direction:rtl is the standard trick for putting a
     scrollbar on an element's LEFT edge instead of the browser-default
     right — reset to ltr on the labels below so their own text/align
     isn't reversed by it. */
  direction:rtl;max-height:calc(100vh - 170px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--or) transparent}
.side-nav::-webkit-scrollbar{width:5px}
.side-nav::-webkit-scrollbar-track{background:transparent}
.side-nav::-webkit-scrollbar-thumb{background:var(--or);border-radius:3px}
.side-nav a,.side-nav button{direction:ltr;writing-mode:vertical-rl;text-orientation:mixed;
  font-family:var(--sans);font-weight:700;font-size:16px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--nuit);opacity:.82;text-decoration:none;background:none;border:none;cursor:pointer;
  padding:3px 0;white-space:nowrap;transition:opacity .25s ease,color .25s ease}
.side-nav a:hover,.side-nav a:focus-visible,.side-nav button:hover,.side-nav button:focus-visible{opacity:1;color:var(--or)}
.side-nav .side-nav-afterdark{color:var(--braise);opacity:.9}
.side-nav .side-nav-afterdark:hover,.side-nav .side-nav-afterdark:focus-visible{opacity:1;color:var(--braise)}
/* The rail's height is driven by its longest labels' text length (vertical
   writing mode), not by font-size alone — at the larger/bolder size above
   it's ~848px tall and centers via top:50%/translateY(-50%), so it runs
   off both the top and bottom edge on the many common laptops around
   768-800px tall. Tighten gap/padding first (not font-size, the main
   "more visible" lever); font-weight:700 alone added enough per-glyph
   length that gap/padding cuts stopped being enough on their own (measured
   736px at weight:400, back up to 848px at weight:700, same gap/padding) —
   a small font-size trim on top gets it back under 768px with margin. */
@media (max-height:820px){
  .side-nav{gap:4px;padding:8px 8px}
  .side-nav a,.side-nav button{font-size:11px}
}

/* 2026-11-15 — "Portfolio" side-nav entry: asks EN/FR/ES, each downloading
   that language's dossier PDF. position:fixed + JS-positioned (js/art-home.js)
   rather than nested in the flex column, so it doesn't disturb the rail's
   own layout when closed (display:none). */
.portfolio-pick{position:fixed;z-index:70;background:rgba(250,248,244,.97);
  border:1px solid rgba(16,12,10,.12);border-radius:14px;padding:10px;
  box-shadow:0 4px 18px rgba(0,0,0,.3);display:none;flex-direction:column;gap:4px;min-width:64px}
.portfolio-pick.open{display:flex}
.portfolio-pick .q{font-family:var(--sans);font-size:9px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--nuit);opacity:.6;text-align:center;margin-bottom:2px;white-space:nowrap}
.portfolio-pick a{font-family:var(--sans);font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--nuit);text-decoration:none;text-align:center;padding:7px 10px;border-radius:8px;
  transition:background .2s ease,color .2s ease}
.portfolio-pick a:hover,.portfolio-pick a:focus-visible{background:var(--nuit);color:var(--bone)}
@media(max-width:820px){ .side-nav{display:none} }

/* 2026-11-16 — the home hero's caption (.hero .cap, css/art.css) sits at
   left:40px, fine when nothing else lives on the left edge; the side-nav
   above it extends out to ~75px (more since the 30% enlargement), so the
   two were overlapping — the title rendering underneath/behind the rail.
   Only scoped here (rooms.css loads only on the pages that also have the
   side-nav); after-dark.html/index.html keep art.css's own left:40px. */
.hero .cap{left:110px}
@media(max-width:820px){ .hero .cap{left:20px} }

/* 2026-11-17 — same collision, different spots: every other block that
   inherits art.css's base 40px left padding/position still started right
   under the side-nav once scrolled to — the "Oeuvre actuelle" section
   heading (.sect), the shop page's own wrapper (.shop), and the footer
   (all 4 side-nav pages have one). Fixed at the source instead of
   waiting for each one to get reported: anything using that 40px edge
   on these pages gets the same 110px clearance, only above 820px where
   the side-nav is actually visible. */
.sect{padding-left:110px}
.shop{padding-left:110px}
footer{padding-left:110px}
@media(max-width:820px){ .sect{padding-left:20px} .shop{padding-left:20px} footer{padding-left:40px} }

/* ---------- expositions.html ---------- */
.expo-main{max-width:720px;margin:0 auto;padding-top:var(--sp-6)}
.expo-head .room-opener{max-width:none}
.expo-card h2{font-family:var(--serif);font-weight:400;font-style:italic;font-size:clamp(28px,4vw,42px);color:var(--bone)}
.expo-venue{font-family:var(--sans);font-size:13px;letter-spacing:.08em;color:var(--or);margin-top:var(--sp-3)}
.expo-context{font-family:var(--serif);font-size:16px;line-height:1.6;color:var(--bone);opacity:.82;margin-top:var(--sp-4);max-width:56ch}
.expo-facts{margin-top:var(--sp-6);padding-top:var(--sp-5);border-top:1px solid rgba(237,230,218,.14);display:grid;grid-template-columns:1fr;gap:var(--sp-2) 0}
.expo-facts dt{font-family:var(--sans);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ash);margin-top:var(--sp-4)}
.expo-facts dt:first-child{margin-top:0}
.expo-facts dd{font-family:var(--serif);font-size:15px;line-height:1.6;color:var(--bone);opacity:.92;margin-top:4px}
.expo-statement{max-width:620px}
.expo-gloss{margin-top:var(--sp-5);padding-top:var(--sp-5);border-top:1px solid rgba(237,230,218,.1)}
.expo-gloss p{font-family:var(--serif);font-style:italic;font-size:16px;line-height:1.6;color:var(--ash)}
.expo-cross p{font-family:var(--serif);font-size:16px;line-height:1.7;color:var(--bone);opacity:.88;max-width:58ch}
.expo-cross a{color:var(--or);text-decoration:underline;text-underline-offset:3px}
.expo-cross a:hover{color:var(--bone)}
.expo-note{margin-top:var(--sp-4);font-family:var(--sans);font-size:12.5px;color:var(--ash);font-style:normal}
@media(max-width:820px){ .expo-main{padding:var(--sp-6) var(--sp-4) 0} }
