/* R90.93 — integration layer of the integrated candidate (r90-all-93.html). Nothing approved is changed.
   Written from r9092.css, which stays as it is for r90-all-92.html. What changed: the notes and numbers of 4 (물과 삶 is the
   R90.93 scene: 7.3 beats, the approved film of the glass figure), the selectors of 5, and 7 (new).
   2 neutral ground for the rooms written as stand-alone pages
   3 Story (R90.41) as a pinned stage   4 the joins Purity → 물과 삶 → Collection   5 upright tablets   6, 6b, 7 wide screens */


/* 2 — the candidate rooms were written on bare pages: give them the same ground here */
:where(.st41,.wl9,.co9,.tr9){font-size:16px;line-height:normal;letter-spacing:normal;font-weight:400;font-style:normal;text-align:left}
.st41 :is(h1,h2,h3,p,li){text-wrap:wrap}
:where(.wl9,.co9,.tr9) :is(h2,h3){text-wrap:wrap}
.st41 :focus-visible,.wl9 :focus-visible,.co9 :focus-visible{outline-color:#172D3C}
:where(.st41) figcaption{display:block;align-items:normal;gap:normal;margin-top:0;font:inherit;color:inherit;letter-spacing:inherit}
:where(.st41) figcaption::before{content:none}
.tr9 .tr9__clip img,.co9 .co9__key img,.wl9 .wl9__next img{max-width:none}

/* 3 — Story (R90.41 candidate): the gallery is a pinned stage and the walk follows the page's vertical scroll
       (r9093.js writes --track, --x, --r, --a, --b, --z and data-turn on the section). */
.st41{position:relative;display:block;--track:712}
.st41.is-live{height:calc(100vh + var(--track) * 1vh)}
.st41 .gallery{position:sticky;top:0;right:auto;bottom:auto;left:auto;width:100%;height:100vh}
.st41 .defs{position:absolute;width:0;height:0}

/* 4a — Purity → 물과 삶. Purity ends on the room of the two bottles (approved fixed layer). 물과 삶 is already pinned when
        that last frame is reached — invisible and click-through until then — and the dark studio comes up over the first
        0.45 beat: the bright room dims; then the figure of glass and the first words come out of the dark together
        (from beat .36), the figure still empty. */
.cine .wl9--join.is-live{margin-top:calc(-100 * var(--vh));background:transparent}
.cine .wl9--join.is-live .wl9__stage{opacity:calc(var(--b) * 2.2)}
/* the figure comes out of the dark once the room has dimmed; it is never laid over the bright room */
.cine .wl9--join.is-live .wl9__fig{opacity:calc(var(--fig) * clamp(0, (var(--b) - .36) * 5, 1))}

/* 4b — 물과 삶 → Collection. 물과 삶 ends on the picture the Collection begins with: the approved COL-01 room, framed one
        step closer than the wide view that closed Purity (same framing in r9093-wl.css and r9093-co.css). The Collection is
        pinned on top of it the moment the picture is complete (beat 6.92 of 7.3: 131.92 screen-percent before 물과 삶 ends)
        and only its words fade in. */
.wl9--join.is-live + .co9--join.is-live{margin-top:calc(-131.92 * var(--vh));background:transparent}
.wl9--join.is-live + .co9--join.is-live .co9__stage{opacity:calc(var(--b) * 9)}
.wl9--join.is-wait,.co9--join.is-wait{pointer-events:none}

/* 4c — where the room index and the in-page links enter these two rooms: where their first scene stands
        (물과 삶 at beat 0.66 — the words are there and the water has begun to rise; the Collection at beat 0.3),
        not the transparent start. */
.rv-anchor{position:absolute;left:0;top:0;width:1px;height:1px;pointer-events:none}
.cine .wl9--join.is-live > .rv-anchor{top:calc(55.44 * var(--vh))}
.wl9--join.is-live + .co9--join.is-live > .rv-anchor{top:calc(25.2 * var(--vh))}

/* 5 — upright tablets (wider than a phone, taller than wide): the room index stays on the right edge there (102px wide,
       14px from the edge). The words of the three new rooms keep 132px clear of it; pictures and the gold line still
       run to the edge. Stand-alone previews have no index and are not changed. */
@media (min-width:761px) and (max-aspect-ratio:1/1){
  .wl9--join .wl9__txt,.wl9--join .wl9__beat--choice .wl9__txt,.wl9--join .wl9__day,.wl9--join .wl9__trio,
  .wl9--join .wl9__taste,.wl9--join .wl9__links{right:132px}
  .co9--join .co9__beat--open,.co9--join .co9__beat--red,.co9--join .co9__beat--blue,.co9--join .co9__col{right:132px}
  .tr9 .tr9__in{padding-right:132px}
  .tr9 .tr9__rec:nth-child(even)::before{right:-132px}
}

/* 6 — wide screens: the room index stands at mid-height on the right edge, and its words begin 132px from that edge.
       The words of the Collection that sit on the right at the same height keep a clear gap from it:
       the BLUE text moves left (there is room beside the bottle), and the headlines beside the pair and the opening
       headline are sized so that their longest line ends before the index. On very wide screens nothing changes. */
@media (min-width:901px) and (min-aspect-ratio:1/1){
  .co9--join .co9__beat--blue{left:min(60vw,calc(100vw - 176px - min(31vw,30em)))}
  .co9--join .co9__beat--pair .co9__say,.co9--join .co9__sip{font-size:min(calc(4.5 * var(--vh)),2.75vw,calc((30vw - 164px) / 7.5))}
  .co9--join .co9__beat--open .co9__say{font-size:min(calc(5.6 * var(--vh)),3.5vw,calc((36vw - 148px) / 7.9))}
}

/* 6b — wide screens narrower than 16:10 (tablets held sideways, 4:3 and 3:2 windows): the room index needs its place too.
        Collection, last scene: the second column of words ends left of the index (--edge, read by r9093-co.css) and the
        headlines are sized to the column. Global Trust: the row of four ends before the index; the gold line still runs
        to the edge. 물과 삶: the three lines of the last beat end before the index. */
@media (min-width:901px) and (min-aspect-ratio:1/1){
  .co9--join{--edge:148px}
}
@media (min-width:901px) and (min-aspect-ratio:1/1) and (max-aspect-ratio:155/100){
  .co9--join .co9__beat--pair .co9__say,.co9--join .co9__sip{font-size:min(calc(4.5 * var(--vh)),2.75vw,calc(clamp(170px,19.5vw,22em) / 7.6))}
  .co9--join .co9__beat--open .co9__body{max-width:calc(36vw - 164px)}
  .tr9 .tr9__in{padding-right:max(var(--mx),164px)}
  .tr9 .tr9__rec:last-child::before{right:calc(-1 * max(var(--mx),164px))}
  /* the four names stay on one line each: the longest (about 10.7 em) fits its column */
  .tr9 .tr9__what{font-size:min(calc(2.85 * var(--vh)),calc((100vw - var(--mx) - max(var(--mx),164px) - 3 * var(--gap)) / 43.6))}
  .wl9--join .wl9__trio{right:max(var(--mx),164px)}
}

/* 7 — wide screens, 물과 삶: the glass figure stands on the right, where the room index is. The figure keeps this much of
       the right edge clear (r9093-wl.js reads --edge and moves the film left when a screen is too narrow for both). */
@media (min-width:901px) and (min-aspect-ratio:1/1){
  .wl9--join{--edge:176px}
}
