/* ═════════ R90.21 — ROOM 04 MANUFACTURING · three cinematic scenes (preview r90-mfg-21.html only; R90.20 stays in r90-mfg.css) ═════════
   HEAT → VAPOR → CONDENSATION & COLLECTION. Full-bleed approved footage, one phrase per scene.
   Scroll decides WHICH scene is on stage; the footage itself runs on its own clock (never scrubbed, never reversed).
   Scenes hand over with a 0.6 s dissolve (the new scene fades in on top of the old one, no dip to black).
   R90.21: larger PC phrases, no accumulated trail, shade only where the words sit, Korean step index,
   and the room's last part lies over the dark opening of the next room (물의 과학), so no empty navy stretch is scrolled. */

.mf3{--gold:#CDB68A;--gold-dim:rgba(205,182,138,.6);--silverblue:#AFC2CC;--quiet:rgba(190,206,215,.9);background:var(--ocean);color:var(--ivory)}

/* ── static exhibition (no JS / reduced motion): three stills in reading order ── */
.mf3 .stage{display:block;padding:clamp(72px,11vh,130px) 0 0}
.mf3-title{padding:0 var(--pad-x);margin:0 0 clamp(32px,5vh,56px);font:300 clamp(34px,3.8vw,64px)/1.25 var(--serif);letter-spacing:-.02em;color:var(--ivory);word-break:keep-all}
.mf3-scene{position:relative;margin:0 0 clamp(40px,6vh,72px)}
.mf3-video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0A1822}
.mf3-cap{display:block;margin:22px var(--pad-x) 0;font:300 clamp(28px,3vw,48px)/1.3 var(--serif);letter-spacing:-.015em;color:var(--ivory);word-break:keep-all}
.mf3-cap .mf3-now{display:block}
.mf3-axis{display:none}
.mf3-note{margin:0 var(--pad-x);font:400 13px/1.5 var(--sans);letter-spacing:.02em;color:rgba(243,242,236,.62)}
@media (max-width:760px){ .mf3-video{aspect-ratio:9/16;max-height:82vh} }

/* ═════════ cinematic ═════════ */
/* the last 50vh of the room lie over the opening of 물의 과학, whose first moments are plain deep water:
   the footage covers that dark stretch, and the room leaves just as the line of light rises (the next room's code is untouched) */
.cine .mf3{--len:360vh;--overlap:50vh;background:transparent;z-index:2;margin-bottom:calc(var(--overlap) * -1)}
.cine .mf3 .stage{padding:0;background:var(--ocean)}
.cine .mf3 .stage.is-leaving{--fade:calc(var(--exit,0) * 26vh);                             /* only while leaving: the lower edge of the footage melts into the next room — no seam, no band */
  -webkit-mask-image:linear-gradient(180deg,#000 calc(100% - var(--fade)),transparent 100%);mask-image:linear-gradient(180deg,#000 calc(100% - var(--fade)),transparent 100%)}
.cine .mf3-scene{position:absolute;inset:0;margin:0;z-index:1;opacity:0;visibility:hidden;
  transition:opacity 0s linear .62s,visibility 0s linear .62s}               /* the old scene stays whole under the new one, then leaves */
.cine .mf3-scene.is-on{z-index:2;opacity:1;visibility:visible;transition:opacity .6s cubic-bezier(.4,0,.2,1)}
.cine .mf3-video{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;max-height:none;object-fit:cover}
.cine .mf3-scene::after{content:"";position:absolute;inset:0;pointer-events:none}   /* a soft local shade, only where the words sit — no bands */
.cine .mf3-scene--heat::after{background:radial-gradient(50% 54% at 20% 25%,rgba(8,21,32,.5),rgba(8,21,32,0) 72%)}
.cine .mf3-scene--vapor::after{background:radial-gradient(50% 40% at 20% 84%,rgba(8,21,32,.66),rgba(8,21,32,0) 74%)}
.cine .mf3-scene--coll::after{background:radial-gradient(42% 46% at 80% 25%,rgba(8,21,32,.5),rgba(8,21,32,0) 72%)}

/* one phrase per scene */
.cine .mf3-cap{position:absolute;z-index:3;margin:0;opacity:0;transition:opacity .25s linear}
.cine .mf3-scene.is-on .mf3-cap{opacity:1;transition:opacity .9s ease .42s}
.cine .mf3-now{display:block;text-shadow:0 1px 3px rgba(8,21,32,.35),0 2px 28px rgba(8,21,32,.55);clip-path:inset(-10% 100% -10% 0);transition:clip-path .2s linear}
.cine .mf3-scene.is-on .mf3-now{clip-path:inset(-10% -4% -10% 0);transition:clip-path 1.5s cubic-bezier(.3,.6,.2,1) .5s}

/* HEAT — in the dark above the gold curve of the steel */
.cine .mf3-cap--heat{left:var(--pad-x);top:19vh;font-size:clamp(44px,4.45vw,78px);line-height:1.18}
/* VAPOR — low, under the rising steam */
.cine .mf3-cap--vapor{left:var(--pad-x);bottom:15vh;font-size:clamp(40px,3.85vw,66px);line-height:1.18}
/* COLLECTION — high on the right, clear of the falling water */
.cine .mf3-cap--coll{right:clamp(96px,8vw,160px);top:15vh;text-align:right;font-size:clamp(40px,3.95vw,68px);line-height:1.2}
.cine .mf3-br{display:block}

/* the title opens the room over the first scene, then gives its place to the first phrase */
.cine .mf3-title{position:absolute;z-index:4;left:var(--pad-x);top:19vh;margin:0;padding:0;max-width:none;font-size:clamp(44px,4.6vw,80px);line-height:1.15;
  text-shadow:0 1px 3px rgba(8,21,32,.35),0 2px 30px rgba(8,21,32,.55);opacity:0;transition:opacity .5s ease}
.cine .mf3 .stage[data-state="0"] .mf3-title{opacity:1;transition:opacity .9s ease}
.cine .mf3 .stage[data-state="0"] .mf3-cap--heat{opacity:0;transition:opacity .25s linear}
.cine .mf3 .stage[data-state="0"] .mf3-cap--heat .mf3-now{clip-path:inset(-10% 100% -10% 0);transition:clip-path .2s linear}

/* step index: 01 열 · 02 증기 · 03 냉각·포집 — the step on stage in champagne gold and bright text, the others a quiet blue-grey */
.cine .mf3-axis{display:block;position:absolute;z-index:10;left:50%;bottom:clamp(22px,4.6vh,44px);transform:translateX(-50%);width:min(560px,44vw)}
.mf3-axis::before{content:"";position:absolute;left:-12%;right:-12%;top:-26px;bottom:-22px;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,rgba(8,21,32,.52),rgba(8,21,32,0))}                  /* a soft local shade for bright frames */
.mf3-axis__line{position:absolute;left:0;right:0;top:0;height:1px;background:rgba(175,194,204,.28)}
.mf3-axis__fill{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(var(--ax,0));background:var(--gold-dim)}
.mf3-axis ol{list-style:none;margin:0;padding:0;display:flex;justify-content:space-between;gap:20px}
.mf3-axis li{display:flex}
.mf3-axis button{position:relative;display:flex;align-items:baseline;gap:9px;min-height:44px;padding:14px 0 0;background:none;border:0;cursor:pointer;
  font:400 14px/1 var(--sans);letter-spacing:.02em;color:var(--quiet);text-shadow:0 1px 6px rgba(8,21,32,.95),0 0 2px rgba(8,21,32,.75);transition:color .4s}
.mf3-axis button b{font:500 11px/1 var(--sans);letter-spacing:.1em;font-variant-numeric:tabular-nums;color:inherit;opacity:.85;transition:color .4s,opacity .4s}
.mf3-axis button::before{content:"";position:absolute;left:0;top:-1px;width:18px;height:2px;background:var(--gold);transform:scaleX(0);transform-origin:0 50%;transition:transform .5s ease}
.mf3-axis button:hover,.mf3-axis button:focus-visible{color:rgba(243,242,236,.92)}
.mf3-axis button[aria-current="step"]{color:#F3F2EC}
.mf3-axis button[aria-current="step"] b{color:var(--gold);opacity:1}
.mf3-axis button[aria-current="step"]::before{transform:scaleX(1)}
.mf3-axis button:focus-visible{outline:1px solid var(--gold);outline-offset:4px}
.cine .mf3-note{position:absolute;z-index:10;left:var(--pad-x);bottom:clamp(22px,4.6vh,44px);margin:0;padding-top:14px;font-size:11px;letter-spacing:.04em;color:rgba(243,242,236,.55);text-shadow:0 1px 10px rgba(8,21,32,.9)}

/* ── reading panel: 제조 과정과 현장 기록 (wider than the other panels: it holds the field record) ── */
.panel--record{width:min(920px,100vw)}
.panel--record .panel__inner{padding-bottom:80px}
.rec-lede{margin-top:8px}
.rec-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:18px 0 10px}
.rec-grid figure{margin:0;min-width:0;grid-column:span 2}
.rec-grid .rec--wide{grid-column:span 6}
.rec-grid .rec--half{grid-column:span 3}
.rec-grid img,.rec-grid video{display:block;width:100%;height:auto;background:#E6ECEF}
.rec-grid .rec--tall img,.rec-grid .rec--tall video{aspect-ratio:4/5;object-fit:cover}
.rec-grid figcaption{margin-top:8px;font:400 14px/1.5 var(--sans);color:var(--marine-2)}
.rec-grid video:focus-visible{outline:2px solid var(--mineral);outline-offset:2px}
.rec-distinct{margin-top:20px!important;padding-top:16px;border-top:1px solid var(--hair);font-size:14px!important;color:var(--mineral-ink)!important}

/* ── phones and portrait tablets: the 9:16 masters — same composition, easier to read ── */
@media (max-width:760px), (max-aspect-ratio:4/5){
  .cine .mf3{--len:330vh}
  .cine .mf3-scene--heat::after{background:radial-gradient(110% 32% at 30% 15%,rgba(8,21,32,.58),rgba(8,21,32,0) 74%)}
  .cine .mf3-scene--vapor::after{background:radial-gradient(115% 30% at 30% 85%,rgba(8,21,32,.66),rgba(8,21,32,0) 74%)}
  .cine .mf3-scene--coll::after{background:radial-gradient(95% 24% at 78% 25%,rgba(8,21,32,.52),rgba(8,21,32,0) 74%)}
  .cine .mf3-title{left:24px;right:24px;top:12vh;font-size:clamp(30px,8.4vw,40px);font-weight:380}
  .cine .mf3-cap{font-weight:380}
  .cine .mf3-cap--heat{left:24px;right:24px;top:12vh;font-size:clamp(30px,8.4vw,40px)}
  .cine .mf3-cap--vapor{left:24px;right:24px;bottom:13vh;font-size:clamp(28px,7.8vw,38px)}
  .cine .mf3-cap--coll{left:auto;right:24px;top:20vh;font-size:clamp(28px,7.6vw,38px)}
  /* the 9:16 condenser fills the frame for the first 3.5 s: the phrase arrives with the water, not on the machine */
  .cine .mf3-scene--coll:not(.is-water) .mf3-cap{opacity:0;transition:opacity .25s linear}
  .cine .mf3-scene--coll:not(.is-water) .mf3-now{clip-path:inset(-10% 100% -10% 0);transition:clip-path .2s linear}
  .cine .mf3-axis{left:24px;right:24px;width:auto;transform:none;bottom:3.2vh}
  .mf3-axis::before{left:-24px;right:-24px}
  .mf3-axis button{gap:6px;font-size:13px}
  .cine .mf3-note{left:24px;bottom:auto;top:20px;padding:0;line-height:40px}
}
@media (min-width:761px) and (max-aspect-ratio:4/5){             /* portrait tablets: the room button stays bottom-right, so the index sits above it */
  .cine .mf3-axis{bottom:calc(clamp(20px,4vh,40px) + 64px)}
  .cine .mf3-note{top:auto;bottom:clamp(20px,4vh,40px);line-height:44px}
}
@media (max-width:380px){ .mf3-note__long{display:none} .mf3-axis button{font-size:12px} .cine .mf3-cap--coll{font-size:25px} }
@media (max-width:760px){
  .rec-grid{grid-template-columns:1fr}
  .rec-grid figure,.rec-grid .rec--wide,.rec-grid .rec--half{grid-column:1 / -1}
  .rec-grid .rec--tall img,.rec-grid .rec--tall video{aspect-ratio:auto}
}

/* the room button is shown by r90-mfg-21.js only while the stage is pinned (static mode: always visible) */
.cine .mf3-actions{opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s linear .4s}
.cine .mf3-actions.is-on{opacity:1;visibility:visible;transition:opacity .4s ease}
