@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600&display=swap');
:root{color-scheme:light;--ink:#233245;--gold:#9b7842;--paper:#f4f0eb;--line:rgba(35,50,69,.2)}
*{box-sizing:border-box}html{background:var(--paper);scrollbar-width:thin;scrollbar-color:#b4a181 var(--paper)}body{margin:0;color:var(--ink);font-family:Arial,'Malgun Gothic',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:6px}button{border:0}#journey{height:650vh;height:650svh}.stage{height:100vh;height:100svh;position:sticky;top:0;overflow:hidden;isolation:isolate;background:var(--paper)}.film{position:absolute;inset:0;z-index:-2;background:#eee8e1}.film video,.poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.film video{opacity:0;transition:opacity .2s linear}.film video.active{opacity:1}.poster{opacity:1}.film:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(250,248,244,.6),transparent 37%,transparent 70%,rgba(250,248,244,.26)),linear-gradient(0deg,rgba(244,240,235,.9),transparent 18%,transparent 85%,rgba(244,240,235,.68))}.header{position:absolute;left:4%;right:4%;top:30px;display:flex;align-items:center;justify-content:space-between;gap:24px}.wordmark{text-decoration:none;color:var(--ink);font-size:25px;letter-spacing:.16em;font-weight:700}.wordmark span{display:block;font-size:12px;font-weight:400;letter-spacing:.14em;margin-top:7px}.edition{font-size:12px;letter-spacing:.2em;display:flex;align-items:center;gap:16px}.edition i{width:5px;height:5px;background:var(--gold);transform:rotate(45deg)}.motion{background:rgba(255,255,255,.6);padding:11px 15px;border:1px solid var(--line);border-radius:30px;font-size:14px;display:flex;gap:9px;align-items:center}.portrait-label{position:absolute;top:30%;left:4%;font-size:11px;letter-spacing:.19em;display:flex;flex-direction:column;align-items:flex-start;gap:16px}.hairline{width:36px;height:1px;background:var(--gold)}.identity{position:absolute;left:9%;bottom:24%;pointer-events:none;transition:opacity .35s,transform .35s}.eyebrow{font-size:12px;letter-spacing:.2em;margin:0 0 20px;color:#756347}h1{font-family:'Noto Serif KR',Georgia,serif;font-weight:500;font-size:clamp(32px,4vw,62px);letter-spacing:-.06em;line-height:1.4;margin:0;text-shadow:0 2px 20px #faf7f1}h1 span{font-family:Arial,sans-serif;display:block;font-size:12px;letter-spacing:.24em;margin-top:20px;font-weight:400}.caption{position:absolute;right:7%;bottom:27%;min-width:150px}.caption>span{font-size:12px;letter-spacing:.18em;color:#76674e}.caption h2{font-family:'Noto Serif KR',Georgia,serif;font-size:25px;font-weight:500;margin:16px 0 12px}.caption p{font-size:14px;letter-spacing:.04em;margin:0;color:#555e68}.stage[data-scene="1"] .identity{opacity:.6;transform:translateX(-15px)}.stage[data-scene="2"] .identity{opacity:.6;transform:translateX(-15px)}.footer{position:absolute;bottom:34px;left:4%;right:4%;display:flex;justify-content:space-between;align-items:center;gap:20px}.scroll-hint{font-size:12px;display:flex;gap:14px;align-items:center;white-space:nowrap}.scroll-line{height:30px;width:1px;background:var(--gold);position:relative}.scroll-line:after{content:'';position:absolute;bottom:0;left:-2px;width:5px;height:5px;border-right:1px solid var(--gold);border-bottom:1px solid var(--gold);transform:rotate(45deg)}.chapters{display:flex;gap:24px}.chapters button{background:none;padding:12px 0;border-bottom:1px solid transparent;opacity:.55;font-size:14px;white-space:nowrap}.chapters button span{font-size:11px;margin-right:7px}.chapters button[aria-current]{opacity:1;border-color:var(--gold)}.test-label{font-size:11px;letter-spacing:.15em}.progress-track{height:3px;position:absolute;bottom:0;left:0;right:0;background:#d9d1c6}#progress{height:100%;width:100%;background:var(--gold);transform-origin:left;transform:scaleX(0)}.loading{position:absolute;inset:0;background:var(--paper);display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;z-index:8;transition:opacity .5s;font-size:14px;letter-spacing:.12em}.loading.done{opacity:0;pointer-events:none}.loading-diamond{color:var(--gold);font-size:36px}.resume{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 22px;border-radius:30px;background:var(--ink);color:white;z-index:10}.error{position:absolute;left:20px;right:20px;bottom:105px;background:#fff8ef;border:1px solid #b3875a;padding:15px;z-index:12;font-size:14px}.motion:hover,.chapters button:hover{opacity:1;background:rgba(255,255,255,.3)}
@media(min-aspect-ratio:19/9){.identity{left:12%}.caption{right:12%}}
@media(max-width:800px){.header{top:23px;left:6%;right:6%}.wordmark{font-size:21px}.edition{display:none}.film video,.poster{object-fit:contain}.film:after{background:linear-gradient(0deg,rgba(244,240,235,.9),transparent 25%,transparent 80%,rgba(244,240,235,.5))}.portrait-label{top:17%;left:6%;flex-direction:row;align-items:center;font-size:10px;gap:12px}.portrait-label span:last-child{display:none}.identity{left:7%;bottom:auto;top:23%}h1{font-size:30px;line-height:1.2}h1 br{display:none}h1 span{font-size:10px;margin-top:12px}.eyebrow{font-size:10px;margin-bottom:12px}.caption{right:7%;bottom:22%;min-width:0;text-align:right}.caption h2{font-size:22px;margin:10px 0}.caption p{font-size:13px}.footer{bottom:22px;left:6%;right:6%;flex-direction:column;gap:18px}.chapters{gap:24px;order:-1}.chapters button{font-size:13px}.test-label{display:none}.scroll-hint{font-size:11px}.scroll-line{height:18px}.stage[data-scene] .identity{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.stage:before{content:'';position:absolute;inset:15px;pointer-events:none;border:1px solid rgba(155,120,66,.22);z-index:2}.header{top:37px}.wordmark{font-family:Georgia,'Times New Roman',serif;letter-spacing:.15em;font-size:26px;font-weight:400}.wordmark span{font-family:Arial,'Malgun Gothic',sans-serif;font-size:11px;letter-spacing:.2em}.film:after{background:linear-gradient(90deg,rgba(250,248,244,.86) 0%,rgba(250,248,244,.65) 22%,transparent 41%,transparent 66%,rgba(250,248,244,.72) 91%),linear-gradient(0deg,rgba(244,240,235,.95),transparent 19%,transparent 83%,rgba(244,240,235,.65))}.identity{left:7%;bottom:28%}h1{font-size:clamp(40px,4.2vw,66px);font-weight:400;color:#24334a;line-height:1.5;letter-spacing:-.055em}h1 span{font-size:10px;letter-spacing:.22em}.portrait-label{top:24%;font-size:10px}.profile{position:absolute;right:6.5%;top:32%;width:215px}.occupation{font-family:'Noto Serif KR',Batang,serif;font-size:29px;line-height:1.65;margin:0 0 28px;letter-spacing:-.045em}.facts{display:flex;gap:28px;margin:0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.facts dt,.hobby>span{font-size:12px;color:#74674f;margin-bottom:11px}.facts dd{font-size:17px;margin:0}.hobby{padding-top:23px;display:flex;gap:27px}.hobby>span{padding-top:5px;white-space:nowrap}.hobby p{margin:0;line-height:1.85;font-size:14px}.caption{bottom:19%;right:6.5%}.stage[data-scene="0"] .caption{display:none}.stage[data-scene="1"] .identity,.stage[data-scene="2"] .identity{top:132px;bottom:auto;opacity:1;transform:none}.stage[data-scene="1"] h1,.stage[data-scene="2"] h1{font-size:29px;line-height:1.3}.stage[data-scene="1"] h1 br,.stage[data-scene="2"] h1 br{display:none}.stage[data-scene="1"] h1 span,.stage[data-scene="2"] h1 span{margin-top:12px}.stage[data-scene="1"] .identity .eyebrow,.stage[data-scene="2"] .identity .eyebrow{display:none}.stage[data-scene="1"] .portrait-label,.stage[data-scene="2"] .portrait-label{display:none}.story{position:absolute;left:7%;top:35%;width:27%;max-width:380px}.story h2{font-family:'Noto Serif KR',Batang,serif;font-weight:400;letter-spacing:-.05em;line-height:1.65;font-size:clamp(23px,2vw,31px);margin:0 0 23px}.story>p:not(.eyebrow){font-family:'Noto Serif KR',Batang,serif;font-size:16px;line-height:2;word-break:keep-all;overflow-wrap:break-word;margin:0 0 14px;color:#354052}.story .eyebrow{font-size:11px;margin:0 0 22px;letter-spacing:.17em}.quote-mark{position:absolute;left:-27px;top:29px;color:#a38854;font-family:Georgia,serif;font-size:62px;opacity:.6}.story-rule{display:block;width:48px;height:1px;background:var(--gold);margin-top:26px}.tilde{font-family:Georgia,serif;margin-left:5px}.scene-panel[hidden]{display:none}.scene-panel:not([hidden]){animation:copy-in .5s ease both}.footer{bottom:37px}.chapters button{font-size:13px;letter-spacing:.03em}@keyframes copy-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:801px) and (max-height:760px){.story{top:32%;width:28%;max-width:400px}.story h2{font-size:24px;line-height:1.4;margin-bottom:16px}.story>p:not(.eyebrow){line-height:1.8;font-size:15px}.story .eyebrow{margin-bottom:15px}.story-rule{margin-top:15px}.stage[data-scene="1"] .identity,.stage[data-scene="2"] .identity{top:115px}.portrait-label{top:25%}.profile{top:29%}.occupation{font-size:25px;margin-bottom:17px}.facts{padding:15px 0}.hobby{padding-top:17px}}
@media(max-width:800px){.stage:before{inset:10px}.header{top:27px;left:7%;right:7%}.wordmark{font-size:21px}.motion{padding:9px 12px}.motion span{font-size:12px}.portrait-label{display:none}.film video,.poster{top:22%;height:42%;object-fit:contain}.film{background:#f3efe9}.film:after{background:linear-gradient(0deg,#f3efe9 0%,rgba(243,239,233,.65) 30%,transparent 42%,transparent 65%,#f3efe9 86%)}.identity,.stage[data-scene="1"] .identity,.stage[data-scene="2"] .identity{top:14%;left:8%;bottom:auto;opacity:1;transform:none}h1,.stage[data-scene="1"] h1,.stage[data-scene="2"] h1{font-size:29px;line-height:1.25}h1 br{display:none}h1 span,.stage[data-scene="1"] h1 span,.stage[data-scene="2"] h1 span{font-size:9px;letter-spacing:.16em;margin-top:10px}.identity .eyebrow{display:none}.profile{top:63%;left:8%;right:8%;width:auto;display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.profile .eyebrow{grid-column:1/-1;font-size:10px;margin-bottom:12px}.occupation{font-size:23px;line-height:1.5;margin:0;grid-row:2/4}.facts{gap:20px;border-top:0;padding:0 0 13px;justify-content:space-between}.facts dt{font-size:11px;margin-bottom:6px}.facts dd{font-size:15px}.hobby{padding-top:12px;gap:18px}.hobby>span{font-size:11px}.hobby p{font-size:12px;line-height:1.7}.story{top:57%;left:8%;width:84%;max-width:none}.story .eyebrow{font-size:10px;margin-bottom:11px}.story h2{font-size:23px;line-height:1.5;margin-bottom:13px}.story h2 br{display:none}.story>p:not(.eyebrow){font-size:15px;line-height:1.85;margin-bottom:10px}.quote-mark{left:-17px;top:20px;font-size:39px}.story-rule{display:none}.caption{display:none}.footer{left:7%;right:7%;bottom:23px;gap:12px}.scroll-hint{display:none}.chapters{width:100%;justify-content:space-between;gap:10px}.chapters button{font-size:12px;padding:10px 0}.stage[data-scene="1"] .film video,.stage[data-scene="1"] .poster,.stage[data-scene="2"] .film video,.stage[data-scene="2"] .poster{top:21%;height:34%}}
@media(max-width:800px) and (max-height:760px){.story{top:53%}.story h2{font-size:20px;margin-bottom:9px}.story>p:not(.eyebrow){font-size:14px;line-height:1.7}.story .eyebrow{margin-bottom:8px}.stage[data-scene="1"] .film video,.stage[data-scene="2"] .film video{height:30%}.profile{top:61%}.identity,.stage[data-scene="1"] .identity,.stage[data-scene="2"] .identity{top:15%}.footer{bottom:18px}.hobby p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.scene-panel:not([hidden]){animation:none}}
.loading.done{visibility:hidden;transition:opacity .5s,visibility 0s .5s}
@media(max-width:800px) and (max-height:760px){.story{top:48%}.stage[data-scene="1"] .film video,.stage[data-scene="1"] .poster,.stage[data-scene="2"] .film video,.stage[data-scene="2"] .poster{top:23%;height:23%}}

/* Member navigation lives outside the portrait, leaving the artwork unobstructed. */
:root { --rail-width: 170px; }
html { overflow-anchor: none; }
#journey { margin-left: var(--rail-width); height: 360svh; }
.character-rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail-width); z-index: 20;
  background: #202d40; color: #f5f1e9; border-right: 1px solid #b79a63;
  padding: 37px 18px 24px; display: flex; flex-direction: column;
}
.rail-brand { color: inherit; text-decoration: none; font: 19px Georgia, serif; letter-spacing: .12em; }
.rail-brand span { display: block; font: 11px Arial,'Malgun Gothic',sans-serif; margin-top: 10px; letter-spacing: .1em; color: #b9bcc3; }
.rail-heading { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .16em; color: #c6b181; margin: 56px 0 18px; }
.rail-heading span { color: #aeb5c0; }
#character-list { overflow-y: auto; }
.character-card { display: flex; flex-direction: column; align-items: center; gap: 13px; width: 100%; padding: 15px 8px; background: transparent; border: 1px solid transparent; border-radius: 3px; color: inherit; }
.character-card[aria-pressed="true"] { border-color: #ad9567; background: #2a384c; }
.character-card:hover { background: #334158; }
.character-card img { width: 86px; height: 104px; object-fit: cover; border-radius: 48% 48% 2px 2px; border: 1px solid #bca679; }
.character-card strong { font: 500 14px/1.65 'Noto Serif KR',Batang,serif; text-align: center; word-break: keep-all; }
.member-badge { font-size: 10px; letter-spacing: .18em; color: #d9c39a; border: 1px solid #6a604f; padding: 3px 7px; }
.next-member { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #4d5969; color: #aab3c1; margin-top: 19px; padding: 18px 4px; }
.next-member>span { font-size: 22px; font-weight: 300; }
.next-member p { margin: 0; font-size: 12px; line-height: 1.9; }
.next-member small { font-size: 11px; color: #8792a2; }
.rail-bottom { margin-top: auto; padding-top: 25px; font-size: 9px; line-height: 1.9; letter-spacing: .15em; color: #8995a7; }
.header { justify-content: space-between; }
.edition { font-size: 10px; gap: 12px; }
.edition span { font-size: 10px; color: #84704d; }
.portrait-label { display: none; }
.identity { left: 5%; }
.story { left: 5%; width: 29%; }
.profile { width: 200px; right: 5%; }
.occupation { word-break: keep-all; }
.caption { right: 5%; }
.footer { left: 5%; right: 5%; }
.test-label { display: none; }
.transition-status { position: absolute; bottom: 89px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; color: #625943; background: rgba(250,248,244,.88); border: 1px solid rgba(155,120,66,.23); border-radius: 20px; padding: 8px 16px; white-space: nowrap; }
.chapters button.requested { opacity: 1; }
.stage[data-mode="transition"] .chapters button.requested { border-bottom: 1px dashed var(--gold); }
.stage[data-mode="transition"] .scene-panel { transition: opacity .25s; }
.film video { transition: opacity .13s linear; }
.stage[data-clip] .poster { opacity: 0; }
.scene-panel { pointer-events: none; }
.story h2 { word-break: keep-all; overflow-wrap: break-word; }
.occupation { max-width: 6em; }
@media (min-width: 801px) and (max-width: 1250px) {
  :root { --rail-width: 138px; }
  .character-rail { padding-left: 12px; padding-right: 12px; }
  .rail-brand { font-size: 16px; }
  .character-card img { width: 72px; height: 86px; }
  .profile { width: 160px; }
  .facts { gap: 20px; }
  .occupation { font-size: 24px; }
  .story { width: 30%; }
  .story h2 { font-size: 23px; }
  .story>p:not(.eyebrow) { font-size: 15px; line-height: 1.85; }
  .scroll-hint { display: none; }
  .footer { justify-content: center; }
}
@media (max-width: 800px) {
  :root { --rail-width: 76px; }
  .character-rail { padding: 26px 7px 17px; }
  .rail-brand { font-size: 11px; letter-spacing: .035em; }
  .rail-brand span { font-size: 9px; line-height: 1.7; margin-top: 6px; letter-spacing: 0; word-break: keep-all; }
  .rail-heading { font-size: 9px; letter-spacing: .03em; margin: 34px 0 13px; }
  .rail-heading span { display: none; }
  .character-card { padding: 8px 4px; gap: 9px; }
  .character-card img { width: 46px; height: 59px; }
  .character-card strong { font-size: 11px; line-height: 1.6; }
  .member-badge { font-size: 8px; padding: 2px 4px; }
  .next-member { flex-direction: column; gap: 3px; padding: 12px 1px; }
  .next-member p { font-size: 10px; text-align: center; }
  .next-member small { font-size: 9px; }
  .rail-bottom { font-size: 8px; letter-spacing: .04em; word-break: break-word; }
  .stage:before { inset: 7px; }
  .header { top: 22px; right: 7%; left: 7%; justify-content: flex-end; }
  .edition { display: none; }
  .identity,.stage[data-scene="1"] .identity,.stage[data-scene="2"] .identity { top: 13%; left: 7%; }
  h1,.stage[data-scene="1"] h1,.stage[data-scene="2"] h1 { font-size: 25px; }
  h1 span,.stage[data-scene="1"] h1 span,.stage[data-scene="2"] h1 span { font-size: 8px; letter-spacing: .06em; }
  .film video,.poster,.stage[data-scene="1"] .film video,.stage[data-scene="1"] .poster,.stage[data-scene="2"] .film video,.stage[data-scene="2"] .poster { top: 22%; height: 30%; object-fit: contain; }
  .story { top: 53%; left: 7%; width: 86%; }
  .story h2 { font-size: 20px; line-height: 1.5; margin-bottom: 12px; }
  .story>p:not(.eyebrow) { font-size: 14px; line-height: 1.8; }
  .profile { top: 58%; left: 7%; right: 7%; width: auto; column-gap: 15px; }
  .occupation { font-size: 21px; }
  .facts { gap: 12px; }
  .facts dt { font-size: 10px; }
  .facts dd { font-size: 14px; }
  .hobby { gap: 10px; }
  .hobby p { font-size: 11px; }
  .chapters button { font-size: 11px; }
  .chapters button span { display: block; font-size: 9px; margin: 0 0 5px; }
  .transition-status { bottom: 81px; font-size: 10px; }
}
@media (max-width: 800px) and (max-height: 760px) {
  .film video,.poster,.stage[data-scene="1"] .film video,.stage[data-scene="1"] .poster,.stage[data-scene="2"] .film video,.stage[data-scene="2"] .poster { top: 22%; height: 23%; }
  .story { top: 46%; }
  .story h2 { font-size: 17px; margin-bottom: 9px; }
  .story>p:not(.eyebrow) { font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
  .story .eyebrow { font-size: 9px; }
  .profile { top: 54%; }
}
@media (min-width:500px) and (max-width:800px) and (max-height:760px) {
  .film video,.poster,.stage[data-scene="1"] .film video,.stage[data-scene="1"] .poster,.stage[data-scene="2"] .film video,.stage[data-scene="2"] .poster { top:21%; height:32%; }
  .story { top:55%; }
  .story>p:not(.eyebrow) {font-size:14px;line-height:1.8;}
  .profile {top:59%;}
}

/* The canvas has exactly the same geometry as all three idle videos. */
#journey {height: 720svh;}
.film canvas {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .10s linear;}
.film canvas.active {opacity:1;}
@media(max-width:800px){.film canvas{top:22%;height:30%;}}
@media(max-width:800px) and (max-height:760px){.film canvas{top:22%;height:23%;}}
@media(min-width:500px) and (max-width:800px) and (max-height:760px){.film canvas{top:21%;height:32%;}}
@media(prefers-reduced-motion:reduce){.film canvas{transition:none;}}

/* Keep the portrait visible while scroll frames download in the background. */
.loading{inset:auto auto 88px 50%;transform:translateX(-50%);max-width:calc(100% - 32px);flex-direction:row;gap:9px;padding:10px 17px;border:1px solid var(--line);border-radius:24px;background:var(--paper);font-size:12px;letter-spacing:.02em;white-space:nowrap;pointer-events:none;box-shadow:0 3px 20px #00000008}
.loading-diamond{font-size:20px;line-height:1}
.chapters button:disabled{cursor:wait;opacity:.35}
@media(max-width:800px){.loading{bottom:81px;font-size:10px;padding:8px 12px}}
