/* R90.80 HERO · FILM · ENDING — candidate layer (design preview, awaiting review).
   Loaded after the approved stylesheets. Hero and Film keep the approved media, scripts and structure; this file only
   re-sets the type, the room around the screen and the poster. The Ending (.en) is a new section.
   Every rule is scoped by .hero--r90 / .film--r90 / .en, so a page without those classes is untouched.
   Night rooms (Hero, Film) keep silver lines; the Ending is the same horizon in the morning, with the brass line. */

.m-br{display:none}
/* candidate marker: always shown (the approved [data-preview-only] rule hides review notes, so the marker does not use it) */
.pv-note[data-candidate]{position:fixed;z-index:60;right:1.2vw;top:1.2vh;margin:0;padding:.5em .9em;font:400 12px/1.4 var(--sans);
  color:#172D3C;background:rgba(255,255,255,.8);border:1px solid rgba(23,45,60,.18);letter-spacing:.01em}
.pv-gap{display:grid;place-items:center;min-height:64vh;padding:8vh 9vw;background:linear-gradient(180deg,#F1E9DE,#E9DDCE)}
.pv-gap p{margin:0;max-width:34em;font:400 14px/1.8 var(--sans);color:rgba(23,45,60,.62);text-align:center;word-break:keep-all}

/* ───────────── HERO — one sentence above the horizon, its answer below it ───────────── */
.hero--r90 .hero__title{font-size:clamp(34px,4.7vw,84px);line-height:1.18;letter-spacing:-.022em}
.hero--r90 .hero__echo{margin:0;font:300 clamp(19px,2.05vw,36px)/1.45 var(--serif);letter-spacing:-.012em;color:rgba(243,242,236,.9);word-break:keep-all}
.hero--r90 .hero__sub{margin-top:clamp(12px,1.4vw,24px);color:rgba(184,198,200,.95)}
@media (prefers-reduced-motion:no-preference){
  .hero--r90 .hero__echo{animation:enter .9s var(--ease) .65s backwards}
}

/* ───────────── FILM — the room goes dark, the screen is the only light ───────────── */
.film--r90{isolation:isolate;background:linear-gradient(180deg,#050B11 0%,#07121B 50%,#081520 100%)}
.film--r90 .film__niche{background:radial-gradient(64% 24% at 50% 0%,rgba(243,242,236,.085),rgba(243,242,236,0) 72%)}
/* the wall catching the light of the screen */
.film--r90 .film__niche::after{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:150vh;height:128vh;transform:translate(-50%,-50%);pointer-events:none;
  background:radial-gradient(closest-side,rgba(104,128,148,.18) 0,rgba(104,128,148,.07) 44%,rgba(104,128,148,0) 100%)}
/* a hairline around the screen and its light on the floor */
.film--r90 .player__frame::before{content:"";position:absolute;inset:-13px;border:1px solid rgba(184,198,200,.2);pointer-events:none;transition:opacity .9s var(--ease)}
.film--r90 .player__frame::after{content:"";position:absolute;left:-6%;right:-6%;top:calc(100% + 13px);height:11vh;pointer-events:none;
  background:radial-gradient(50% 100% at 50% 0,rgba(150,172,188,.2),rgba(150,172,188,0) 72%);transition:opacity .9s var(--ease)}
.js .film--r90:not(.is-revealed) .player__frame::before,
.js .film--r90:not(.is-revealed) .player__frame::after{opacity:0}
.film--r90 .player.is-started .player__frame::after{opacity:.4}
.film--r90 .player__frame:fullscreen::before,.film--r90 .player__frame:fullscreen::after{display:none}

/* the wall label: Korean title first, the English name small under it (same pattern as the other rooms) */
.film--r90 .film__title{flex-direction:column;gap:clamp(10px,1.4vh,16px)}
.film--r90 .film__title-ko{font-size:clamp(32px,3.6vw,60px);line-height:1.24;letter-spacing:-.012em}
.film--r90 .film__title-en{font:300 clamp(14px,1.05vw,17px)/1.4 var(--sans);letter-spacing:.05em;color:#C6D2D4}
.js .film--r90:not(.is-revealed) .film__title-en{letter-spacing:.3em}
.film--r90 .player__title{font-weight:300;letter-spacing:.05em;text-transform:none}
@media (min-width:1024px){
  .film--r90 .film__side{justify-content:center;gap:clamp(30px,5vh,56px);padding:0}
  .film--r90 .film__meta{padding-top:clamp(22px,3.2vh,34px)}
}

/* ───────────── ENDING — the horizon of the first screen, in the morning ───────────── */
.en{--ink:#172D3C;--gold:#B8925A;--gold-d:#86663A;--navy:#081520;--hz:62.7;--sx:69%;--mx:var(--pad-x,7vw);
  --l:1;--s:1;--o1:1;--o2:1;--o3:1;
  position:relative;color:var(--ink);font-family:var(--sans);background:var(--navy);word-break:keep-all;overflow-wrap:break-word;white-space:normal}
.en *{box-sizing:border-box}
.en :where(h2,p,ol,ul){margin:0;padding:0}
.en :where(ol,ul){list-style:none}
.en__run{position:relative}
.en__stage{position:relative;height:100vh;height:100svh;min-height:560px;overflow:hidden;background:#F6ECDC}
.en.is-live .en__run{height:164vh;height:164svh}
.en.is-live .en__stage{position:sticky;top:0}

.en__sky{position:absolute;inset:0;
  background:linear-gradient(180deg,#B3C6DA 0%,#C6D4E2 22%,#DDE2E6 42%,#F0E8DC calc(var(--hz) * 1% - 6%),#F6ECDC calc(var(--hz) * 1%),#F6ECDC 100%)}
/* the sun: clipped at the horizon, so it rises from behind it */
.en__sun{position:absolute;left:0;right:0;top:0;height:calc(var(--hz) * 1%);overflow:hidden;pointer-events:none}
.en__sun i{position:absolute;left:var(--sx);top:100%;width:96vh;height:96vh;margin:-48vh 0 0 -48vh;border-radius:50%;
  background:radial-gradient(closest-side,#FFFEFA 0,#FFF8E8 4.4%,rgba(255,240,208,.86) 10%,rgba(255,232,194,.44) 27%,rgba(255,232,194,.13) 55%,rgba(255,232,194,0) 100%);
  transform:translate3d(0,calc((1 - var(--s)) * 8vh),0);opacity:calc(.3 + .7 * var(--s))}
.en__sea{position:absolute;left:0;right:0;bottom:0;top:calc(var(--hz) * 1%);overflow:hidden;background:#CBD6DB}
.en__sea i{position:absolute;display:block}
.en__tex{inset:0;background:url("../assets/img/r82/pur-v7-pc-last.jpg") 50% 30%/cover}
.en__haze{inset:0;background:linear-gradient(180deg,rgba(246,236,220,.82) 0,rgba(246,236,220,.3) 16%,rgba(246,236,220,0) 40%)}
.en__glint{left:var(--sx);top:0;width:34vh;height:70%;margin-left:-17vh;
  background:radial-gradient(50% 100% at 50% 0,rgba(255,248,234,.9) 0,rgba(255,244,226,.32) 38%,rgba(255,244,226,0) 100%);opacity:calc(var(--s) * .95)}
/* the water deepens towards the visitor and ends in the navy of the first screen */
.en__depth{inset:0;background:linear-gradient(180deg,rgba(8,21,32,0) 0,rgba(8,21,32,0) 42%,rgba(8,21,32,.38) 68%,rgba(8,21,32,.82) 88%,#081520 100%)}
/* the brass line of the gallery, now the horizon */
.en__line{position:absolute;left:0;right:0;top:calc(var(--hz) * 1%);height:1px;transform-origin:0 50%;transform:scaleX(var(--l));
  background:linear-gradient(90deg,rgba(184,146,90,0) 0,rgba(184,146,90,.8) 10%,#FFE9C4 var(--sx),rgba(184,146,90,.62) 90%,rgba(184,146,90,0) 100%)}

.en__above{position:absolute;left:var(--mx);right:var(--mx);bottom:calc((100 - var(--hz)) * 1% + clamp(20px,2.6vw,44px))}
.en__lead{font:300 clamp(18px,2.05vw,36px)/1.5 var(--serif);letter-spacing:-.012em;color:rgba(23,45,60,.84);opacity:var(--o1)}
.en__title{margin-top:.3em;font:300 clamp(34px,4.7vw,84px)/1.18 var(--serif);letter-spacing:-.022em;color:var(--ink);text-wrap:balance;
  opacity:var(--o2);transform:translate3d(0,calc((1 - var(--o2)) * 2.2vh),0)}
.en__below{position:absolute;left:var(--mx);right:var(--mx);top:calc(var(--hz) * 1% + clamp(24px,2.8vw,52px));opacity:var(--o3)}
.en__sign{font:500 clamp(16px,1.5vw,25px)/1.4 var(--serif);letter-spacing:.04em}
.en__sign span{font:300 max(12px,.72em)/1 var(--sans);letter-spacing:.05em;color:rgba(23,45,60,.64);margin-left:.9em}
.en__links{display:flex;flex-wrap:wrap;gap:0 2.1em;margin-top:clamp(10px,1.3vw,22px)}
.en__links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 0;font:500 clamp(14px,1.02vw,17px)/1 var(--sans);color:var(--ink);
  text-decoration:none;border-bottom:1px solid var(--gold-d);transition:border-color .25s,color .25s}
.en__links a:hover{border-bottom-color:var(--ink)}
.en a:focus-visible{outline:2px solid currentColor;outline-offset:5px}

.en__foot{position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:6vw;align-items:end;
  padding:clamp(30px,5.4vh,64px) var(--mx) clamp(34px,6vh,64px);background:var(--navy);color:#F3F2EC}
.en__logo{display:block;width:clamp(190px,17vw,300px);height:auto}
.en__index{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 1.7em}
.en__index a{display:inline-flex;align-items:center;min-height:44px;font:400 clamp(13px,.95vw,15px)/1 var(--sans);letter-spacing:.02em;
  color:rgba(184,198,200,.92);text-decoration:none;transition:color .25s}
.en__index a:hover{color:#F3F2EC}
.en__legal{grid-column:1 / -1;margin-top:clamp(16px,2.6vh,28px);padding:.7em 1em;font:400 12px/1.6 var(--sans);color:rgba(243,242,236,.86);
  border:1px dashed rgba(184,198,200,.4)}

/* ───────────── phone and upright screens ───────────── */
@media (max-width:760px),(max-aspect-ratio:4/5){
  .en{--hz:52;--sx:63%}
}
@media (max-width:760px){
  .m-br{display:inline}
  .hero--r90 .hero__title{font-size:clamp(28px,8.5vw,40px);line-height:1.3;letter-spacing:-.02em}
  .hero--r90 .hero__title span{display:block}
  .hero--r90 .hero__title span:first-child::after{content:none}
  .hero--r90 .hero__echo{font-size:clamp(17px,5.2vw,23px);line-height:1.5}
  .hero--r90 .hero__sub{margin-top:12px}

  /* the poster is always whole on a phone: 86% of the width, never a thin strip.
     With nothing left to open, the line of light that used to become the frame is not drawn on a phone. */
  .axis--r90{display:none!important}
  .film--r90 .player__frame{width:86vw;height:calc(86vw * 16 / 9);--clip:0%!important;--edge:0px!important}
  .film--r90 .player__frame::before{inset:-9px}
  .film--r90 .player__frame::after{top:calc(100% + 9px);height:8vh}
  .film--r90 .film__niche::after{width:130vw;height:150vw}

  .en{--mx:24px}
  .en__above{bottom:calc((100 - var(--hz)) * 1% + 28px)}
  .en__below{top:calc(var(--hz) * 1% + 30px)}
  .en__lead{font-size:clamp(16px,4.7vw,21px)}
  .en__title{font-size:clamp(28px,8.5vw,40px);line-height:1.3;letter-spacing:-.02em}
  .en__sign{font-size:17px}
  .en__sign span{display:block;margin:.7em 0 0}
  .en__links{flex-direction:column;align-items:flex-start;gap:0;margin-top:10px}
  .en__links a{font-size:15px}
  .en__tex{background-image:url("../assets/img/r82/pur-v7-m-last.jpg");background-position:50% 20%}
  .en__sun i{width:120vw;height:120vw;margin:-60vw 0 0 -60vw}
  .en__glint{width:46vw;margin-left:-23vw}
  .en__foot{grid-template-columns:1fr;row-gap:20px;align-items:start}
  .en__index{justify-content:flex-start;gap:0 1.4em}
  .en__index a{font-size:14px}
}

@media (prefers-reduced-motion:reduce){
  .en__title{transform:none}
  .film--r90 .player__frame::before,.film--r90 .player__frame::after{transition:none}
}
