/* R82 — 비움 → 채움 → 투명의 전시 (loaded last)
   One fixed layer carries PUR-V7, PUR-V6 and COL-01; the purity stage carries the words.
   Three type gestures, never repeated:  비움 = the line settles with the water (displacement → still, centred)
                                          채움 = outlined letters fill with ink as the glass fills (bottom → top, right sky)
                                          맛   = light wipes each line in (diagonal, after the glass is full)
   Transitions: 비움 → 채움 through white light (the emptied water becomes a blank page); 채움 → RED·BLUE through a column of
   morning light that hides the glass before the bottles appear in the same place (no double image, no morph). */

.r82-defs{position:absolute;width:0;height:0;overflow:hidden}
.r82-cine{display:none}
.purity.r82{--ink:#172D3C;--ink-2:#3D5464;--gold:#B8925A}

/* ── shared type ── */
.pu-eyebrow{margin:0;font:400 13px/1.2 var(--sans);letter-spacing:.06em;color:var(--ink-2)}
.pu-k1{margin:0;font:300 clamp(44px,4.9vw,92px)/1.12 var(--serif);letter-spacing:-.04em;color:var(--ink);word-break:keep-all}
.pu-s1sub{margin:0;display:flex;flex-direction:column;align-items:center;gap:20px}
.pu-s1sub__rule{display:block;width:112px;height:1px;background:linear-gradient(90deg,rgba(184,146,90,0),var(--gold) 30%,var(--gold) 70%,rgba(184,146,90,0))}
.pu-s1sub__t{font:400 clamp(16px,1.22vw,20px)/1.6 var(--sans);letter-spacing:-.005em;color:var(--ink);word-break:keep-all}
.purity.r82 .pu-more{margin-top:30px}
.pu-k2{margin:0;font:400 clamp(38px,3.6vw,68px)/1.13 var(--serif);letter-spacing:-.035em;color:var(--ink)}
.pu-k2__l{display:block;position:relative;white-space:nowrap}
.pu-s2sub{margin:28px 0 0;font:400 clamp(16px,1.2vw,20px)/1.75 var(--sans);color:var(--ink);word-break:keep-all}
.pu-s2sub .ln{display:block}
.pu-t{margin:0;font:300 clamp(36px,3.4vw,62px)/1.14 var(--serif);letter-spacing:-.035em;color:var(--ink);white-space:nowrap}
.pu-t--2{margin-left:.8em}
.purity.r82 .pu-words{list-style:none;margin:30px 0 0 .8em;padding:0;display:flex;flex-wrap:wrap;align-items:center;row-gap:10px}
.purity.r82 .pu-words li{display:flex;align-items:center;font:400 clamp(16px,1.25vw,20px)/1.2 var(--sans);letter-spacing:-.01em;color:var(--ink);white-space:nowrap}
.purity.r82 .pu-words li+li::before{content:"";width:1px;height:.9em;margin:0 clamp(14px,1.3vw,22px);background:rgba(23,45,60,.34)}
.pu-credit{margin:0;font:400 11px/1.4 var(--sans);color:rgba(23,45,60,.66)}

/* ═════════ static exhibition (reduced motion / no JS): the last frames, words beside them ═════════ */
html:not(.cine) .purity.r82{background:#F5F6F4}
html:not(.cine) .purity.r82 .stage{display:block;padding:0}
html:not(.cine) .purity.r82 .pu-s{padding:clamp(56px,9vh,110px) var(--pad-x)}
html:not(.cine) .pu-s::before{content:"";display:block;aspect-ratio:16/9;margin-bottom:40px;background:center/cover no-repeat}
html:not(.cine) .pu-empty::before{background-image:url(../img/r82/pur-v7-pc-last.jpg)}
html:not(.cine) .pu-fill::before{background-image:url(../img/r82/pur-v6-pc-last.jpg)}
html:not(.cine) .pu-empty{text-align:center;display:flex;flex-direction:column;align-items:center;gap:22px}
html:not(.cine) .pu-fill{display:grid;gap:28px}
html:not(.cine) .pu-k2__l{white-space:normal}
html:not(.cine) .pu-t{white-space:normal}
html:not(.cine) .pu-credit{padding:0 var(--pad-x) 40px}
@media (max-width:760px),(max-aspect-ratio:4/5){
  html:not(.cine) .pu-s::before{aspect-ratio:4/5}
  html:not(.cine) .pu-empty::before{background-image:url(../img/r82/pur-v7-m-last.jpg)}
  html:not(.cine) .pu-fill::before{background-image:url(../img/r82/pur-v6-m-last.jpg);background-position:50% 70%}
  .pu-k1__w{display:block}
}

/* ═════════ cinematic ═════════ */
.cine .purity.r82{--len:600vh;background:transparent}
.cine .purity.r82 .stage{background:transparent}
.cine .purity.r82 .pu-s{position:absolute;inset:0}

/* the fixed layer */
.cine .r82-cine{display:block;position:fixed;inset:0;visibility:hidden;pointer-events:none;overflow:hidden;background:#F4F5F3;contain:strict}
.cine .r82-cine.is-on{visibility:visible}
.r82-v,.r82-col img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.r82-col{position:absolute;inset:0}
.r82-v7{opacity:var(--o7,1)}
.r82-v6{opacity:var(--o6,0);transform:scale(calc(1 + var(--sz6,0) * .035));transform-origin:50% 62%}
.r82-col{opacity:var(--oc,0)}
.r82-col img{transform:scale(calc(1.02 - var(--cz,0) * .02));transform-origin:50% 62%}
/* 비움 → 채움: the emptied water becomes a page of light */
.r82-veil{position:absolute;inset:0;opacity:var(--veil,0);
  background:radial-gradient(60% 70% at 12% 18%,#FFF7E8 0%,rgba(255,247,232,0) 70%),linear-gradient(180deg,#F8F8F5 0%,#F1F4F5 100%)}
/* 채움 → RED·BLUE: a column of morning light stands where the glass is, and the bottles are found inside it */
.r82-beam{position:absolute;left:50%;top:-30%;width:max(46vw,540px);height:160%;transform:translateX(-50%) scaleX(calc(.7 + var(--beam,0) * .3));opacity:var(--beam,0);
  background:radial-gradient(50% 50% at 50% 52%,#FFFDF7 0%,rgba(255,251,241,.98) 57%,rgba(255,246,228,.55) 78%,rgba(255,244,224,0) 100%);filter:blur(6px)}
.r82-beam::before{content:"";position:absolute;left:-120%;right:-120%;top:10%;bottom:10%;opacity:.5;
  background:radial-gradient(50% 46% at 50% 54%,rgba(255,248,234,.9),rgba(255,248,234,0) 100%)}

/* 비움 — centred; the line settles with the water */
.cine .pu-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:clamp(112px,21vh,240px) var(--pad-x) 0}
.cine .pu-empty .pu-eyebrow{opacity:var(--e0,0);margin-bottom:26px}
.cine .pu-k1{opacity:var(--e1,0);letter-spacing:calc(-.04em + (1 - var(--st,0)) * .05em);
  filter:url(#pu-calm) blur(calc((1 - var(--st,0)) * 2.4px))}
.cine .pu-k1.is-calm{filter:none}
.cine .pu-s1sub{margin-top:36px}
.cine .pu-s1sub__rule{transform:scaleX(var(--e2,0));opacity:var(--e2,0)}
.cine .pu-s1sub__t{display:block;clip-path:inset(0 0 calc((1 - var(--e3,0)) * 100%) 0);transform:translateY(calc((1 - var(--e3,0)) * -.5em));opacity:var(--e3,0)}
.cine .purity.r82 .pu-more{opacity:var(--e3,0);transform:translateY(calc((1 - var(--e3,0)) * 6px))}
.cine .pu-empty{opacity:calc(.2 + var(--o1,1) * .8)}

/* 채움 — the right-hand sky; outlined while empty, filled from the bottom as the water rises */
.cine .pu-fill .pu-eyebrow--fill{position:absolute;left:64%;top:clamp(96px,14vh,150px);opacity:var(--f0,0)}
.cine .pu-k2{position:absolute;left:64%;top:calc(clamp(96px,14vh,150px) + 34px);opacity:var(--f1,0)}
.cine .pu-k2__l{color:transparent;-webkit-text-stroke:1px rgba(23,45,60,calc(var(--f0,0) * .62))}
.cine .pu-k2__l::after{content:attr(data-t);position:absolute;inset:0;color:var(--ink);-webkit-text-stroke:0;
  clip-path:inset(calc((1 - var(--lf,0)) * 100%) 0 0 0)}
.cine .pu-k2__l:nth-child(2){--lf:clamp(0, var(--fl,0) * 1.9, 1)}
.cine .pu-k2__l:nth-child(1){--lf:clamp(0, var(--fl,0) * 1.9 - .9, 1)}
.cine .pu-s2sub{position:absolute;left:64%;top:calc(clamp(96px,14vh,150px) + 34px + clamp(38px,3.6vw,68px) * 2.26);margin-top:30px;width:min(28vw,420px);
  opacity:var(--f2,0);filter:blur(calc((1 - var(--f2,0)) * 5px))}
/* 맛 — after the glass is full: the same sky, a diagonal, wiped in by light */
.cine .pu-taste{position:absolute;left:60%;top:clamp(120px,20vh,210px)}
.cine .pu-t--1{--t:var(--g1,0)}
.cine .pu-t--2{--t:var(--g2,0)}
.cine .pu-t{-webkit-mask-image:linear-gradient(90deg,#000 calc(var(--t) * 116% - 16%),transparent calc(var(--t) * 116%));mask-image:linear-gradient(90deg,#000 calc(var(--t) * 116% - 16%),transparent calc(var(--t) * 116%))}
.cine .purity.r82 .pu-words li:nth-child(1){opacity:var(--w0,0)}
.cine .purity.r82 .pu-words li:nth-child(2){opacity:var(--w1,0)}
.cine .purity.r82 .pu-words li:nth-child(3){opacity:var(--w2,0)}
.cine .pu-credit{position:absolute;left:var(--pad-x);bottom:14px;opacity:var(--cr,0);z-index:4}
.cine .purity.r82 .pu-review{position:absolute;left:var(--pad-x);bottom:34px;margin:0;z-index:5}

/* collection: COL-01 is the layer itself; the key words stand where the water words stood */
.cine .r82-keyshot{display:none}
.cine .room5 .r5-key__text{left:66%;right:auto;top:clamp(130px,22vh,230px);bottom:auto;width:min(24vw,400px)}

/* PC narrow and short: keep the words clear of the room index and the glass */
@media (min-width:761px) and (max-width:1279px) and (min-aspect-ratio:4/5){
  .cine .pu-fill .pu-eyebrow--fill,.cine .pu-k2,.cine .pu-s2sub{left:63%}
  .cine .pu-taste{left:60%}
  .pu-k2{font-size:clamp(34px,3.7vw,46px)}
  .cine .pu-s2sub{top:calc(clamp(96px,14vh,150px) + 34px + clamp(34px,3.7vw,46px) * 2.26);width:calc(38vw - 150px)}
  .pu-t{font-size:clamp(34px,3.5vw,44px)}
  .pu-t--2{margin-left:.6em}
  .purity.r82 .pu-words{margin-left:.6em;flex-direction:column;align-items:flex-start}
  .purity.r82 .pu-words li+li::before{display:none}
  .cine .room5 .r5-key__text{left:65%;width:calc(35vw - 150px)}
}
@media (min-width:761px) and (max-height:760px) and (min-aspect-ratio:4/5){
  .cine .pu-empty{padding-top:clamp(88px,15vh,140px)}
  .pu-k1{font-size:clamp(40px,4.4vw,72px)}
}

/* ── phones and portrait tablets: the glass stands in the middle; words above the glass or on the stone below it ── */
@media (max-width:760px),(max-aspect-ratio:4/5){
  .cine .purity.r82{--len:560vh}
  .r82-v6,.r82-col img{object-position:50% 100%}
  .r82-beam{width:130vw}
  .pu-k1__w{display:block}
  .cine .pu-empty{padding:max(104px,17vh) 24px 0}
  .pu-k1{font-size:clamp(34px,9.4vw,46px);line-height:1.16}
  .pu-s1sub__t{font-size:15.5px}
  .cine .pu-s1sub{margin-top:28px}
  .purity.r82 .pu-more{margin-top:22px}
  /* 채움: the outlined words wait on the stone below the glass, and fill there */
  .cine .pu-fill .pu-eyebrow--fill{left:24px;top:auto;bottom:calc(max(26px,4vh) + clamp(30px,8.4vw,40px) * 2.3 + 14px)}
  .cine .pu-k2{left:24px;top:auto;bottom:max(26px,4vh)}
  .pu-k2{font-size:clamp(30px,8.4vw,40px)}
  .cine .pu-fill .pu-eyebrow--fill{color:var(--ink);text-shadow:0 0 12px rgba(255,250,240,.9)}
  .cine .pu-k2{text-shadow:0 0 18px rgba(255,248,236,.55)}
  .cine .pu-s2sub{left:24px;right:24px;top:max(92px,12vh);width:auto;margin:0}
  .pu-s2sub{font-size:16px;line-height:1.7}
  .cine .pu-taste{inset:0}
  .cine .pu-t--1{position:absolute;left:24px;top:max(92px,12vh)}
  .cine .pu-t--2{position:absolute;left:24px;top:calc(max(92px,12vh) + clamp(32px,8.8vw,42px) * 1.2);margin-left:1em}
  .pu-t{font-size:clamp(32px,8.8vw,42px)}
  .cine .purity.r82 .pu-words{position:absolute;left:24px;right:24px;bottom:max(30px,4.6vh);margin:0}
  .purity.r82 .pu-words li{font-size:16px}
  .cine .pu-credit{left:24px;right:24px;bottom:6px;font-size:10px;text-align:left}
  .cine .room5 .r5-key__text{left:24px;right:24px;top:max(92px,12vh);width:auto}
}
@media (max-width:400px){
  .purity.r82 .pu-words{column-gap:14px}
  .purity.r82 .pu-words li+li::before{display:none}
}
/* 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-fill .pu-eyebrow--fill,.cine .pu-k2,.cine .pu-s2sub,.cine .pu-t--1,.cine .pu-t--2,.cine .purity.r82 .pu-words,.cine .room5 .r5-key__text{left:var(--pad-x)}
  /* the 9:16 frame is cropped top and bottom here: keep the glass and the bottles between the sky words and the stone words */
  .r82-v6,.r82-col img{object-position:50% 75%}
  .cine .pu-s2sub,.cine .pu-t--1,.cine .room5 .r5-key__text{top:84px}
  .cine .pu-t--2{top:calc(84px + clamp(32px,8.8vw,42px) * 1.2)}
}
/* short phones: the words on the stone sit a little lower and smaller */
@media (max-width:760px) and (max-height:700px){
  .pu-k2{font-size:28px}
  .cine .pu-k2{bottom:30px}
  .cine .pu-fill .pu-eyebrow--fill{bottom:calc(30px + 28px * 2.3 + 10px)}
  .pu-k1{font-size:32px}
  .cine .pu-empty{padding-top:84px}
  .pu-t{font-size:30px}
  .cine .purity.r82 .pu-words{bottom:30px}
}
