@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --ink: #282722;
  --muted: #8a877e;
  --paper: #f8f7f3;
  --line: #e2dfd7;
  --accent: #6b7157
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, 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(--accent);
  outline-offset: 5px
}

header {
  height: 101px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  border-bottom: 1px solid var(--line)
}

.brand {
  color: inherit;
  text-decoration: none;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1
}

.brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  margin-top: 9px
}

.edition,
.live,
footer,
.eyebrow,
.stage-top,
.aside-bottom {
  font-size: 10px;
  letter-spacing: 1.8px
}

.edition {
  color: var(--muted)
}

.live {
  display: flex;
  gap: 9px;
  align-items: center
}

.live i,
.stage-top i {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--accent);
  display: inline-block
}

main {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 690px;
  height: calc(100svh - 145px);
  max-height: 1100px
}

aside {
  padding: 44px 30px 23px 42px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line)
}

.eyebrow {
  color: var(--muted)
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 47px;
  font-weight: 500;
  line-height: 1.12;
  margin: 20px 0
}

p.intro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 28px
}

.looks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px
}

.look {
  padding: 0;
  text-align: left;
  border: 1px solid var(--line);
  background: transparent;
  transition: border .2s, transform .2s
}

.look:hover {
  transform: translateY(-3px);
  border-color: var(--muted)
}

.look.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent)
}

.thumb {
  height: 184px;
  background: #eeece6;
  position: relative;
  overflow: hidden
}

.thumb model-viewer {
  width: 100%;
  height: 100%;
  pointer-events: none;
  --progress-bar-height: 0
}

.number {
  position: absolute;
  left: 9px;
  top: 10px;
  font-size: 9px;
  color: var(--muted)
}

.look-info {
  padding: 13px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.look-info b {
  display: block;
  font-size: 13px;
  font-weight: 500
}

.look-info small {
  display: block;
  font-size: 6px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 6px
}

.check {
  color: var(--accent);
  opacity: .3
}

.selected .check {
  opacity: 1
}

.aside-bottom {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 8px;
  color: var(--muted)
}

.stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #faf9f5, #eae7df);
  isolation: isolate
}

.stage-top {
  position: absolute;
  top: 29px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  color: #77776c
}

.stage-top i {
  margin-right: 7px
}

.big-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  transform: translateY(-4%);
  font-family: Georgia, serif;
  font-size: clamp(300px, 40vw, 660px);
  color: #dedbd1;
  opacity: .36;
  pointer-events: none
}

.platform {
  position: absolute;
  width: 44%;
  height: 9%;
  left: 28%;
  bottom: 15%;
  border: 1px solid #d2cec2;
  border-radius: 50%;
  background: #e3e0d6;
  opacity: .4
}

.viewers {
  position: absolute;
  inset: 45px 0 70px
}

.hero {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  --progress-bar-height: 0;
  transition: opacity .3s
}

.hero.active {
  opacity: 1;
  pointer-events: auto
}

.stage-caption {
  position: absolute;
  bottom: 66px;
  left: 33px;
  pointer-events: none
}

.stage-caption .eyebrow {
  font-size: 8px
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  margin: 8px 0 0
}

.controls {
  position: absolute;
  bottom: 72px;
  right: 32px;
  display: flex;
  gap: 8px
}

.controls button {
  border: 1px solid #d2cec2;
  background: #f8f7f399;
  border-radius: 30px;
  padding: 10px 14px;
  font-size: 16px;
  backdrop-filter: blur(10px)
}

.controls button span {
  font-size: 10px;
  margin-left: 4px
}

.controls button[aria-pressed=true] {
  background: var(--ink);
  color: var(--paper)
}

.hint {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .4px
}

.hint span {
  margin: 0 10px
}

.loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f7f3ee;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 12px;
  z-index: 4
}

.loading[hidden] {
  display: none
}

.spinner {
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 1s linear infinite
}

#retry {
  border: 0;
  border-bottom: 1px solid;
  background: none;
  padding: 0;
  font-size: 11px
}

footer {
  height: 44px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
  border-top: 1px solid var(--line)
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@media(min-width:1500px) {
  main {
    grid-template-columns: 400px 1fr
  }

  aside {
    padding-left: 55px;
    padding-right: 40px
  }

  .thumb {
    height: 220px
  }
}

@media(max-width:800px) {
  header {
    height: 77px;
    padding: 0 22px
  }

  .edition {
    display: none
  }

  .live {
    font-size: 7px;
    letter-spacing: 1px
  }

  .brand {
    font-size: 22px
  }

  main {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0
  }

  aside {
    order: 2;
    padding: 25px 22px;
    border-right: 0;
    border-top: 1px solid var(--line)
  }

  aside>.eyebrow {
    font-size: 9px
  }

  h1 {
    font-size: 30px;
    margin: 12px 0
  }

  h1 br {
    display: none
  }

  h1 br:after {
    content: ' '
  }

  p.intro {
    font-size: 11px;
    margin-bottom: 20px
  }

  .looks {
    max-width: 480px;
    gap: 16px
  }

  .thumb {
    height: 170px
  }

  .look-info small {
    font-size: 8px
  }

  .aside-bottom {
    padding-top: 25px;
    flex-direction: row;
    justify-content: space-between
  }

  .stage {
    height: 65svh;
    min-height: 420px;
    max-height: 700px
  }

  .stage-top {
    top: 20px;
    left: 22px;
    right: 22px;
    font-size: 8px
  }

  .stage-caption {
    left: 22px;
    bottom: 52px
  }

  h2 {
    font-size: 28px
  }

  .controls {
    right: 20px;
    bottom: 57px
  }

  .controls button {
    padding: 9px 11px
  }

  .controls button span {
    display: none
  }

  .viewers {
    inset: 30px 0 55px
  }

  .big-letter {
    font-size: 360px
  }

  .hint {
    bottom: 18px;
    font-size: 9px
  }

  footer {
    padding: 0 22px;
    font-size: 6px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }

  .spinner {
    animation: none
  }
}

.pending-thumb {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #999386;
  background: repeating-linear-gradient(135deg, #eeece6, #eeece6 5px, #e9e6df 5px, #e9e6df 6px)
}

.pending-thumb span {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 48px;
  opacity: .5
}

.pending-thumb small {
  font-size: 7px;
  letter-spacing: 1.5px
}

.pending-look {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center
}

.pending-look[hidden],
.controls[hidden],
.hint[hidden] {
  display: none
}

.pending-look h3 {
  font-family: Georgia, serif;
  font-size: clamp(35px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.05;
  margin: 23px 0
}

.pending-look p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted)
}

.pending-look button {
  margin-top: 15px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 25px;
  padding: 13px 22px;
  font-size: 11px
}

/* Scene selection: video is behind the transparent 3D canvases. */
main{grid-template-columns:310px minmax(0,1fr) 250px}
main>aside{padding-left:30px;padding-right:25px}
.scene-panel{padding:44px 25px;border-left:1px solid var(--line);background:var(--paper)}
.scene-panel h2{font-size:35px;line-height:1.13;margin:20px 0}
.scene-intro{font-size:11px;color:var(--muted);line-height:1.9;margin-bottom:25px}
.scene-card{display:block;width:100%;padding:0;background:none;border:1px solid var(--line);text-align:left;transition:border-color .2s}
.scene-card:hover,.scene-card[aria-pressed=true]{border-color:var(--accent)}
.scene-card[aria-pressed=true]{box-shadow:0 0 0 1px var(--accent)}
.scene-card-image{position:relative;display:block;height:145px;overflow:hidden;background:#ddd}
.scene-card img{width:100%;height:100%;object-fit:cover;display:block}
.scene-play{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:21px;text-shadow:0 1px 10px #000}
.scene-card-label{display:flex;align-items:center;justify-content:space-between;padding:17px 15px}
.scene-card-label small,.scene-en{display:block;letter-spacing:1.7px;font-size:8px;color:var(--muted)}
.scene-card-label strong{display:block;font-size:17px;font-weight:500;margin:8px 0}
.studio-button,.scene-sound{background:none;border:0;border-bottom:1px solid var(--line);padding:12px 0;font-size:10px;color:var(--muted);margin-top:12px}
.scene-sound{display:block}.scene-sound[hidden]{display:none}
.scene-status{font-size:10px;line-height:1.8;color:var(--muted);margin-top:20px}
.scene-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .35s}
.scene-shade{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(#0004,transparent 35%,#0007);transition:opacity .35s}
.stage.scene-active .scene-video,.stage.scene-active .scene-shade{opacity:1}
.stage.scene-active .big-letter,.stage.scene-active .platform{opacity:0}
.stage.scene-active .stage-top,.stage.scene-active .stage-caption,.stage.scene-active .stage-caption .eyebrow,.stage.scene-active .hint{color:#fff;text-shadow:0 1px 8px #0009}
.stage.scene-active .hero{background:transparent;--poster-color:transparent}
@media(min-width:1500px){main{grid-template-columns:350px minmax(0,1fr) 290px}.scene-panel{padding:44px 30px}.scene-card-image{height:180px}}
@media(min-width:801px) and (max-width:1100px){main{grid-template-columns:240px minmax(0,1fr) 200px}main>aside{padding:35px 18px}h1{font-size:35px}.thumb{height:150px}.scene-panel{padding:35px 18px}.scene-panel h2{font-size:29px}.scene-card-image{height:125px}.controls{right:16px}.controls button span{display:none}}
@media(max-width:800px){main>aside{padding:25px 22px}.scene-panel{order:3;padding:25px 22px;border-left:0;border-top:1px solid var(--line)}.scene-panel h2{font-size:28px}.scene-panel h2 br{display:none}.scene-card{max-width:420px}.scene-card-image{height:180px}.stage{flex-shrink:0}}

.film-play{position:absolute;top:60px;right:25px;z-index:5;border:1px solid #ffffff70;background:#282722bb;color:white;border-radius:25px;padding:11px 17px;font-size:11px;backdrop-filter:blur(12px)}
.film-play[hidden]{display:none}

/* Choice overlay (design C): Korean-only question over the dimmed film, two scene cards in 80% white glass. */
#journey-dialog{position:absolute;inset:0;margin:0;width:auto;height:auto;max-width:none;max-height:none;box-sizing:border-box;padding:24px;border:0;background:rgba(18,18,16,.48);color:#fff;z-index:10;overflow:auto;font-family:'DM Sans','Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif}
#journey-dialog[open]{display:grid;place-items:center;animation:journey-dim .3s ease both}
@keyframes journey-dim{from{background:rgba(18,18,16,0)}to{background:rgba(18,18,16,.48)}}
.journey-sheet{position:relative;width:min(660px,100%);display:flex;flex-direction:column;align-items:center;gap:26px}
.journey-message{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 44px;text-align:center;text-shadow:0 1px 12px rgba(0,0,0,.45)}
.journey-eyebrow{font-size:12px;letter-spacing:.4px;color:rgba(255,255,255,.88)}
#journey-dialog h2{font-family:inherit;font-size:clamp(22px,2.3vw,30px);font-weight:600;letter-spacing:-.3px;line-height:1.25;margin:0;color:#fff}
#journey-description{font-size:13px;line-height:1.5;color:rgba(255,255,255,.88);margin:0}
.journey-close{position:absolute;top:0;right:0;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background .15s}
.journey-close:hover{background:rgba(255,255,255,.32)}
.journey-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
.journey-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:100%}
.journey-choices[hidden]{display:none}
.journey-card{display:flex;flex-direction:column;padding:8px;border:0;border-radius:20px;background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);color:#282722;text-align:left;font-family:inherit;cursor:pointer;transition:transform .2s,box-shadow .2s;animation:journey-card-in .42s cubic-bezier(.2,.9,.3,1.1) both}
.journey-card+.journey-card{animation-delay:.07s}
@keyframes journey-card-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.journey-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(0,0,0,.35)}
.journey-card:focus-visible{outline:2px solid #fff;outline-offset:4px}
.journey-card img{display:block;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;border-radius:13px;background:#cfccc4}
.journey-card-label{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 8px 7px;font-size:17px;font-weight:600;line-height:1.2}
.journey-arrow{flex-shrink:0;width:34px;height:34px;border-radius:50%;background:#282722;color:#fff;display:grid;place-items:center;transition:background .2s}
.journey-card:hover .journey-arrow{background:#6b7157}
.journey-actions[hidden],#journey-result[hidden]{display:none}
#journey-result{font-size:12px;line-height:1.7}
.stage:has(#journey-dialog[open]) .stage-caption,.stage:has(#journey-dialog[open]) .controls,.stage:has(#journey-dialog[open]) .hint{visibility:hidden}
.stage:has(#journey-dialog[open]) .film-play{z-index:11}
@media(max-width:800px){#journey-dialog{padding:92px 16px 16px}.journey-sheet{width:min(420px,100%);gap:18px}.journey-message{padding:0 40px}.journey-choices{grid-template-columns:minmax(0,1fr);gap:10px}.journey-card{flex-direction:row-reverse;align-items:center;gap:12px;padding:6px;border-radius:16px}.journey-card+.journey-card{animation-delay:.06s}.journey-card img{width:104px;flex-shrink:0;aspect-ratio:16/9;border-radius:10px}.journey-card-label{flex:1;min-width:0;padding:0 2px 0 14px;font-size:16px}.journey-arrow{width:30px;height:30px}.film-play{right:20px;top:48px}}
@media(prefers-reduced-motion:reduce){#journey-dialog[open],.journey-card{animation:none}}

.brand{white-space:nowrap}

.scan-thumb{display:block;width:100%;height:100%;object-fit:contain;background:#cccac4}
@media(min-width:801px){main{min-height:900px}}

/* Scenes 2-3: placeholder stills play 3 s with a slow push-in until real footage replaces them.
   The extra scene cards reuse the original Scene #1 card design unchanged, stacked in the panel. */
.scene-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .35s;transform-origin:50% 50%}
.stage.scene-active.still-active .scene-still{opacity:1}
.scene-still.is-playing{animation:still-push var(--still-ms,3s) linear both}
.scene-still.is-paused{animation-play-state:paused}
@keyframes still-push{from{transform:scale(1)}to{transform:scale(1.06)}}
.scene-panel{overflow-y:auto}
@media(min-width:801px){main>aside{min-height:0;overflow-y:auto;scrollbar-width:thin}}
.scene-list{display:grid;gap:14px}
@media(prefers-reduced-motion:reduce){.scene-still.is-playing{animation:none}}
/* Films: sound toggle beside play/pause; the 3D avatar steps aside while a film or its choice is on screen */
.film-buttons{position:absolute;top:60px;right:25px;z-index:5;display:flex;gap:8px;align-items:center}
.film-buttons .film-play{position:static}
.film-sound{display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffff70;background:#282722bb;color:white;border-radius:25px;padding:10px 15px;font-size:11px;backdrop-filter:blur(12px)}
.film-sound[hidden]{display:none}
.film-sound .mute{display:inline}.film-sound .wave{display:none}
.film-sound.is-on .mute{display:none}.film-sound.is-on .wave{display:inline}
.stage:has(#journey-dialog[open]) .film-buttons{z-index:11}
.stage.scene-active .viewers,.stage.scene-active .stage-caption,.stage.scene-active .controls,.stage.scene-active .hint,.stage.scene-active .loading{visibility:hidden;opacity:0;pointer-events:none}
@media(max-width:800px){.film-buttons{right:20px;top:48px}}
