/* r7.4 — 물의 본질: THE PURITY & THE PURE TASTE → RED·BLUE (loaded last)
   SCENE 01 is type-led: the dissolved substances are words suspended in a band of water; distillation lowers the water, the words stay.
   SCENE 02 sits on the shared light field (sunrise above the clouds — the colours and light direction of the approved pair shot),
   and the collection key arrives transparent on the same field, so the bottles come into focus inside one continuous light.
   Each scene has its own type gesture: 01 rises line by line (mask), 02 is wiped in by light from the left. */

:root{
  --sunrise:
    radial-gradient(38% 34% at 14% 46%,rgba(255,249,228,.95),rgba(255,249,228,0) 70%),
    radial-gradient(80% 32% at 40% 104%,rgba(247,247,242,.95),rgba(247,247,242,0) 78%),
    linear-gradient(180deg,rgba(160,192,211,.38),rgba(160,192,211,0) 42%),
    linear-gradient(100deg,#EEF1EF 0%,#DDE7EC 36%,#C2D5E0 70%,#ABC4D4 100%);
  --pu-ink:#22343F;
}

/* ── type ── */
.pu-key{margin:0;color:var(--marine)}
.pu-key__pre{display:block;margin-bottom:.55em;font:300 clamp(20px,1.7vw,28px)/1.4 var(--sans);letter-spacing:-.02em;color:var(--marine-2)}
.pu-key .ln{display:block;font:300 clamp(48px,5.2vw,88px)/1.14 var(--serif);letter-spacing:-.035em;padding-bottom:.04em;white-space:nowrap}
.pu-p,.pu-p p{margin:0;font:400 clamp(16px,1.15vw,18px)/1.8 var(--sans);color:var(--pu-ink);text-wrap:pretty;word-break:keep-all}
.pu-p--lead{font-size:clamp(17px,1.32vw,21px);line-height:1.72;color:var(--marine)}
.pu-p+.pu-p{margin-top:22px}
.pu-more{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:20px;padding:0 18px;font:500 14px/1 var(--sans);color:var(--marine);
  background:rgba(255,255,255,.9);border:1px solid rgba(23,45,60,.4);border-radius:999px;cursor:pointer;transition:background .25s,color .25s}
.pu-more::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--mineral)}
.pu-more:hover{background:var(--marine);color:#fff}
.pu-cap{margin:0;font:400 clamp(15px,1.05vw,17px)/1.6 var(--sans);color:var(--marine)}
.pu-cap .ln{display:block}
.pu-cap__2{color:#33495A}
.pu-solutes{list-style:none;margin:0;padding:0}
/* positions live here (rooms.js clears inline styles in the static mode) */
.pu-solutes li:nth-child(1){--x:36%;--y:30%;--z:.95;--d:11s}
.pu-solutes li:nth-child(2){--x:55%;--y:62%;--z:.8;--d:13s}
.pu-solutes li:nth-child(3){--x:70%;--y:26%;--z:.7;--d:10s}
.pu-solutes li:nth-child(4){--x:84%;--y:56%;--z:.6;--d:12s}
.pu-solutes li:nth-child(5){--x:46%;--y:80%;--z:.55;--d:14s}
.pu-solutes li{font:300 clamp(16px,1.3vw,21px)/1 var(--sans);letter-spacing:.02em;color:var(--marine);white-space:nowrap}
.pu-taste{margin:0;font:300 clamp(46px,4.7vw,82px)/1.12 var(--serif);letter-spacing:-.035em;color:var(--marine);white-space:nowrap}
.pu-feel{margin:22px 0 0;max-width:24em;font:400 clamp(16px,1.2vw,19px)/1.78 var(--sans);color:var(--pu-ink);text-wrap:pretty;word-break:keep-all}
.pu-words{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-wrap:wrap;align-items:center;row-gap:10px}
.pu-words li{display:flex;align-items:center;font:400 clamp(17px,1.35vw,22px)/1.2 var(--sans);letter-spacing:-.02em;color:var(--marine);white-space:nowrap}
.pu-words li+li::before{content:"";width:1px;height:.9em;margin:0 clamp(14px,1.4vw,22px);background:rgba(23,45,60,.32)}
.pu-slot{font:500 12px/1.5 var(--sans);color:var(--marine-2)}
.pu-review{font:400 12px/1.5 var(--sans);color:var(--marine-2)}
.lightfield{display:none}

/* ── static exhibition (reduced motion / no JS): two quiet blocks in flow ── */
html:not(.cine) .purity{background:var(--glacier)}
html:not(.cine) .purity .stage{display:block;padding:0}
html:not(.cine) .pu-s{padding:clamp(72px,11vh,130px) var(--pad-x)}
html:not(.cine) .pu-ground,html:not(.cine) .pu-vapor,html:not(.cine) .pu-glass__light,html:not(.cine) .pu-glass video{display:none}
html:not(.cine) .pu-one{display:flex;flex-direction:column;gap:36px}
html:not(.cine) .pu-water{order:3;position:relative;min-height:190px;padding:22px 24px;background:linear-gradient(180deg,#D3E6EF,#B2D0DF);border-top:1px solid #fff}
html:not(.cine) .pu-solutes li{position:absolute;left:var(--x);top:calc(40% + var(--y) * .5);opacity:var(--z)}
html:not(.cine) .pu-read{max-width:34em}
html:not(.cine) .pu-two{background:var(--sunrise)}
html:not(.cine) .pu-taste{white-space:normal}
html:not(.cine) .pu-col{margin-top:18px}

/* ═════════ cinematic ═════════ */
.cine .purity{--len:320vh;background:transparent}
.cine .purity .stage{background:transparent}
.cine .pu-s{position:absolute;inset:0}
.cine .pu-one{z-index:2}

/* the shared light field (fixed, behind the purity and collection stages; on only around the hand-over) */
.cine .lightfield{display:block;position:fixed;inset:0;visibility:hidden;pointer-events:none;background:var(--sunrise);overflow:hidden}
.cine .lightfield.is-on{visibility:visible}
.lightfield__sun{position:absolute;left:-10%;top:18%;width:60%;height:60%;background:radial-gradient(closest-side,rgba(255,244,214,.55),rgba(255,244,214,0));filter:blur(10px)}
.lightfield__caustics{position:absolute;inset:-10%;opacity:.55;mix-blend-mode:soft-light;
  background:radial-gradient(20% 12% at 30% 34%,rgba(255,255,255,.9),transparent 70%),radial-gradient(16% 10% at 66% 62%,rgba(255,255,255,.8),transparent 70%),radial-gradient(24% 14% at 52% 20%,rgba(255,255,255,.7),transparent 70%)}
@media (prefers-reduced-motion:no-preference){.lightfield__caustics{animation:pu-caustics 24s ease-in-out infinite alternate}}
@keyframes pu-caustics{to{transform:translate(4%,-3%) scale(1.06)}}

/* SCENE 01 — ground, water, vapour */
.cine .pu-ground{position:absolute;inset:0;opacity:var(--g,1);background:linear-gradient(180deg,#F5F9FB 0%,#EEF4F7 62%,#E4EEF3 100%)}
.cine .pu-water{position:absolute;left:0;right:0;bottom:0;height:calc(30% - var(--ds,0) * 18%);opacity:var(--o1,1);
  background:linear-gradient(180deg,rgba(198,224,238,.97) 0%,rgba(146,188,211,.97) 100%)}
.cine .pu-water::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,rgba(255,255,255,.3),#fff 24%,#fff 76%,rgba(255,255,255,.3));
  box-shadow:0 0 14px 2px rgba(255,255,255,.95),0 0 48px 8px rgba(196,228,242,.65)}
.cine .pu-cap{position:absolute;left:var(--pad-x);top:22px;opacity:var(--cp,0);width:min(30vw,420px)}
.cine .pu-cap__2{opacity:calc(1 - var(--ds,0))}
.cine .pu-solutes li{position:absolute;left:var(--x);top:var(--y);opacity:calc(var(--z) * var(--cp,0) * (.62 + var(--ds,0) * .38));transform:translateY(calc(var(--ds,0) * 8px))}
@media (prefers-reduced-motion:no-preference){.cine .pu-solutes li{animation:pu-drift var(--d) ease-in-out infinite alternate}}
@keyframes pu-drift{from{translate:0 -5px}to{translate:6px 5px}}
.cine .pu-vapor{position:absolute;left:18%;right:18%;bottom:24%;height:46%;pointer-events:none;opacity:var(--vo,0);
  background:radial-gradient(50% 50% at 50% 60%,rgba(255,255,255,.95),rgba(255,255,255,0) 72%);transform:translateY(calc(var(--vp,0) * -42%));filter:blur(8px)}

/* SCENE 01 — the question: one quiet line, then the question itself in two lines */
.cine .pu-key{position:absolute;left:var(--pad-x);top:clamp(92px,14vh,150px)}
.cine .pu-key__pre{opacity:var(--k0,0);transform:translateY(calc((1 - var(--k0,0)) * 10px))}
.cine .pu-key .ln:nth-of-type(2){--k:var(--k1,0)}
.cine .pu-key .ln:nth-of-type(3){--k:var(--k2,0)}
.cine .pu-key .ln{clip-path:inset(0 0 calc((1 - var(--k)) * 100%) 0);transform:translateY(calc((1 - var(--k)) * .35em));opacity:var(--k)}
/* the reading column: one paragraph arrives, the one before steps back */
.cine .pu-read{position:absolute;left:55%;top:clamp(150px,25vh,250px);width:min(28vw,420px,calc(45vw - 210px))}
.cine .pu-p{opacity:calc(var(--r) * (1 - var(--dd) * .6));transform:translateY(calc((1 - var(--r)) * 14px))}
.cine .pu-p:nth-child(1){--r:var(--r0,0);--dd:var(--d0,0)}
.cine .pu-p:nth-child(2){--r:var(--r1,0);--dd:var(--d1,0)}
.cine .pu-p:nth-child(3){--r:var(--r2,0);--dd:var(--d2,0)}

/* SCENE 02 — the glass (V6) and the light it stands in */
.cine .pu-glass{position:absolute;inset:0;opacity:var(--gl,0)}
.cine .pu-glass video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.cine .pu-glass.has-video video{display:block}
.cine .pu-glass.has-video .pu-glass__light{display:none}
.cine .pu-glass__light{position:absolute;left:50%;top:10%;bottom:6%;width:min(26vw,400px);transform:translateX(-50%) scale(calc(.94 + var(--gl,0) * .06));
  background:radial-gradient(46% 40% at 50% 62%,rgba(255,255,255,.9),rgba(255,255,255,0) 74%),linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.42) 50%,rgba(255,255,255,0));filter:blur(10px)}
.cine .pu-slot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:16em;padding:14px 16px;text-align:center;border:1px dashed rgba(23,45,60,.4)}
/* line 1 top-left, line 2 + reading lower-right: the glass stands on the diagonal between them */
.cine .pu-taste--a{position:absolute;left:var(--pad-x);top:clamp(96px,15vh,160px);--t:var(--ta,0)}
.cine .pu-col{position:absolute;right:clamp(210px,17vw,290px);bottom:clamp(64px,11vh,120px);width:min(34vw,500px)}
.cine .pu-taste--b{--t:var(--tb,0)}
.cine .pu-taste{-webkit-mask-image:linear-gradient(90deg,#000 calc(var(--t) * 114% - 14%),transparent calc(var(--t) * 114%));mask-image:linear-gradient(90deg,#000 calc(var(--t) * 114% - 14%),transparent calc(var(--t) * 114%));
  letter-spacing:calc(-.035em + (1 - var(--t)) * .03em)}
.cine .pu-feel{opacity:var(--tf,0);transform:translateY(calc((1 - var(--tf,0)) * 12px))}
.cine .pu-words li:nth-child(1){opacity:var(--w0,0)}
.cine .pu-words li:nth-child(2){opacity:var(--w1,0)}
.cine .pu-words li:nth-child(3){opacity:var(--w2,0)}
.cine .pu-review{position:absolute;left:var(--pad-x);bottom:10px;margin:0;z-index:5}

/* ── collection: arrives transparent on the same light; the pair sharpens out of its own light (no rectangle edge) ── */
.cine .room5{background:transparent}
.cine .room5 .stage{background:transparent}
.cine .r5-key .r5-ambient{opacity:calc(var(--kf,0) * .75)}
.cine .r5-shot--key{opacity:var(--kf,0);filter:blur(calc((1 - var(--kf,0)) * 12px));
  -webkit-mask-image:radial-gradient(50% 50% at 50% 50%,#000 56%,transparent 100%);mask-image:radial-gradient(50% 50% at 50% 50%,#000 56%,transparent 100%)}
.cine .r5-explore{background:#fff}

/* ── PC narrow (1024–1199): the reading column moves in a little ── */
@media (min-width:761px) and (max-width:1199px) and (min-aspect-ratio:4/5){
  .cine .pu-read{left:52%;width:calc(48vw - 200px)}
  .cine .pu-col{right:clamp(190px,19vw,240px);width:min(40vw,440px)}
}

/* ── phones and portrait tablets ── */
@media (max-width:760px),(max-aspect-ratio:4/5){
  .cine .purity{--len:310vh}
  .cine .pu-water{height:calc(38% - var(--ds,0) * 19%)}
  .cine .pu-cap{left:24px;right:24px;width:auto;top:18px}
  .cine .pu-solutes li{top:calc(40% + var(--my) * .52)}
  .cine .pu-solutes li:nth-child(1){left:6%;--my:18%}
  .cine .pu-solutes li:nth-child(2){left:52%;--my:70%}
  .cine .pu-solutes li:nth-child(3){left:38%;--my:36%}
  .cine .pu-solutes li:nth-child(4){left:80%;--my:14%}
  .cine .pu-solutes li:nth-child(5){left:10%;--my:84%}
  .cine .pu-key{left:24px;right:24px;top:max(76px,10vh)}
  .pu-key__pre{font-size:17px}
  .pu-key .ln{font-size:clamp(34px,9.4vw,46px);line-height:1.18}
  /* one paragraph at a time, in the same place */
  .cine .pu-read{left:24px;right:24px;width:auto;top:calc(max(76px,10vh) + 40px + clamp(34px,9.4vw,46px) * 2.5)}
  .cine .pu-p{position:absolute;left:0;right:0;top:0;opacity:calc(var(--r) * (1 - var(--dd)))}
  .cine .pu-p+.pu-p{margin-top:0}
  .pu-p,.pu-p p{font-size:16px;line-height:1.75}
  .pu-p--lead{font-size:17px}
  .cine .pu-vapor{left:6%;right:6%}
  .cine .pu-glass__light{width:62vw;top:24%;bottom:26%}
  .pu-taste{font-size:clamp(34px,9.6vw,46px)}
  .cine .pu-taste--a{left:24px;top:max(84px,11vh)}
  .cine .pu-col{left:24px;right:24px;width:auto;bottom:max(36px,6vh)}
  .cine .pu-taste--b{text-align:right}
  .pu-feel{margin-top:16px;font-size:16px;line-height:1.72}
  .pu-words{margin-top:18px}
  .pu-words li{font-size:17px}
  /* the pair on a phone: no hard top edge on the light */
  .cine .r5-shot--key{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 80%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 80%,transparent 100%)}
}
@media (max-width:400px){
  .pu-words{column-gap:16px}
  .pu-words li+li::before{display:none}
}
/* short phones */
@media (max-width:760px) and (max-height:700px){
  .cine .pu-key{top:68px}
  .pu-key__pre{font-size:15px}
  .pu-key .ln{font-size:30px}
  .cine .pu-read{top:calc(68px + 34px + 30px * 2.5)}
  .pu-p,.pu-p p,.pu-p--lead{font-size:15px;line-height:1.66}
  .pu-more{margin-top:12px;min-height:40px}
  .cine .pu-water{height:calc(30% - var(--ds,0) * 15%)}
  .cine .pu-cap__2{display:none}
  .pu-taste{font-size:32px}
}
/* portrait tablets: keep the page margin and stay clear of the room index */
@media (min-width:600px) and (max-aspect-ratio:4/5){
  .cine .pu-key,.cine .pu-cap,.cine .pu-taste--a{left:var(--pad-x)}
  .cine .pu-read,.cine .pu-col{left:var(--pad-x);right:clamp(24px,24vw,220px)}
}
/* short phones: when the water has fallen, the caption gives the words the room */
@media (max-width:760px) and (max-height:700px){
  .cine .pu-cap{opacity:calc(var(--cp,0) * (1 - var(--ds,0)))}
  .cine .pu-water{height:calc(30% - var(--ds,0) * 12%)}
}
