.hero-scroll { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; font-size: 13px; }
.hero-scroll .ic { width: 14px; height: 14px; transition: transform .25s; }
.hero-scroll:hover .ic { transform: translateY(3px); }

.layer-edit { --cream: #fff1df; color: var(--cream); background: #381c23; }
.edit-shell { max-width: 1780px; margin: auto; padding: clamp(46px,5vw,84px) var(--edge); }
.edit-intro h2 { font: 450 clamp(66px,6.5vw,110px)/.9 var(--serif); letter-spacing: -.062em; }
.edit-intro h2 em { color: #ecc6ad; }
.edit-intro p { color: #e3d1c5; max-width: 38ch; margin-top: 17px; font-size: 15px; line-height: 1.55; }
.edit-pieces { margin-top: 28px; }
.edit-piece { border-top: 1px solid #fff1df38; }
.edit-piece:last-child { border-bottom: 1px solid #fff1df38; }
.piece-link { display: grid; grid-template-columns: 22px 1fr auto 14px; gap: 13px; align-items: center; min-height: 82px; padding: 12px 0; }
.piece-swatch { width: 22px; height: 32px; background: var(--sample); box-shadow: inset 0 0 0 1px #fff4df40; }
#note-sage { --sample: #a7b491; }
#note-ivory { --sample: #b3888d; }
#note-clay { --sample: #e3dac6; }
.piece-name { display: grid; gap: 3px; }
.piece-name strong { font: 500 clamp(22px,1.8vw,33px)/1.04 var(--serif); letter-spacing: -.029em; }
.piece-name small { font: 400 12px/1.4 var(--sans); color: #e0cbbf; }
.piece-price { font: 500 12px/1.35 var(--sans); white-space: nowrap; }
.piece-link > .ic { width: 14px; height: 14px; }
.piece-link:hover .piece-name strong, .piece-link:focus-visible .piece-name strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.layer-shot { position: relative; }
.layer-shot .room-shot { max-height: 65vh; object-fit: contain; }
.layer-shot .detail-slot { display: none; }
.edit-player { min-width: 0; position: relative; }
.layer-stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.43; background: #cbbcab; }
.layer-stage .layer-shot { position: absolute; inset: 0; pointer-events: none; }
.layer-stage .room-window, .layer-stage .room-shot, .layer-stage .detail-slot, .layer-stage .detail-slot img { position: absolute; top: 0; bottom: 0; height: 100%; max-height: none; }
.layer-stage .room-window { left: 0; width: 77%; overflow: hidden; clip-path: inset(0 var(--room-cut,100%) 0 0); }
.layer-stage .room-shot { width: 100%; object-fit: cover; }
.layer-stage .layer-shot[data-first] .room-window { clip-path: none; }
.layer-stage .detail-slot {
  display: block; right: 0; width: 23%; overflow: hidden;
  border-left: 3px solid #381c23; clip-path: inset(var(--detail-cut,100%) 0 0 0);
  transition: width .42s cubic-bezier(.22,.7,.25,1), border-width .3s;
}
.layer-stage .layer-shot[data-first] .detail-slot { clip-path: none; }
.layer-stage .detail-slot img { width: 100%; object-fit: cover; object-position: center; }
.layer-stage[data-detail] .detail-slot { width: 100%; border-left-width: 0; }
.stage-actions { position: absolute; z-index: 4; bottom: 15px; left: 15px; right: 15px; display: flex; align-items: end; justify-content: space-between; gap: 8px; pointer-events: none; }
.stage-actions > * { pointer-events: auto; }
.stage-shop {
  display: flex; gap: 20px; align-items: center; min-height: 54px; padding: 9px 14px;
  background: #fff6e9; color: #431d25; box-shadow: 0 3px 12px #301c1722;
}
.stage-shop span { display: grid; gap: 3px; }
.stage-shop strong { font: 550 14px/1.14 var(--sans); }
.stage-shop small { font: 450 11px/1.2 var(--sans); }
.stage-shop .ic, .detail-toggle .ic { width: 15px; height: 15px; }
.stage-shop:hover { background: white; }
.detail-toggle {
  display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 12px;
  background: #341e24ed; border: 1px solid #fff1df69; color: #fff6ea; font: 500 12px/1.2 var(--sans);
}
.detail-toggle:hover { background: #30151d; }
.layer-tabs { display: flex; gap: 12px; margin-bottom: 9px; }
.layer-tabs button {
  flex: 1; position: relative; min-height: 43px; display: flex; align-items: center; gap: 8px;
  text-align: left; color: #e1c9bd; border-top: 1px solid #f1deca60; font-size: 13px;
}
.layer-tabs button[aria-pressed=true] { color: #fff7eb; border-top: 2px solid currentColor; font-weight: 600; }
.layer-tabs button:hover { color: white; }
.edit-shell[data-ready] { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); grid-template-rows: auto auto; column-gap: clamp(30px,5vw,100px); align-content: center; }
.edit-shell[data-ready] .edit-player { grid-area: 1 / 1 / 3 / 2; align-self: center; }
.edit-shell[data-ready] .edit-intro { grid-area: 1 / 2; align-self: end; }
.edit-shell[data-ready] .edit-pieces { grid-area: 2 / 2; align-self: start; }
@media(min-width:761px) {
  .edit-player { display: flex; flex-direction: column; }
  .layer-tabs { order: 2; margin: 12px 0 0; }
}
@media(min-width:761px) and (max-width:1090px){
  .edit-shell[data-ready] { grid-template-columns: 1.1fr 1fr; column-gap: 30px; }
  .layer-stage { aspect-ratio: 1.15; }
  .piece-link { grid-template-columns: 14px 1fr auto 12px; gap: 9px; }
  .piece-swatch { width: 14px; height: 27px; }
  .stage-actions { left: 8px; right: 8px; bottom: 9px; }
}
@media(max-width:760px) {
  :root { scroll-behavior: auto; }
  .hero-scroll { font-size: 12px; }
  .edit-shell, .edit-shell[data-ready] { display: block; padding: 38px var(--edge) 34px; }
  .edit-intro h2 { font-size: clamp(53px,12.2vw,79px); }
  .edit-intro p { font-size: 14px; line-height: 1.45; margin-top: 11px; }
  .edit-player { margin-top: 18px; }
  .layer-tabs { margin: 0 0 3px; gap: 12px; }
  .layer-tabs button { min-height: 44px; font-size: 12px; }
  .layer-stage { margin-inline: calc(-1 * var(--edge)); aspect-ratio: 1.26; }
  .stage-actions { left: 12px; right: 12px; bottom: 11px; }
  .stage-shop { min-height: 49px; gap: 14px; padding: 8px 10px; }
  .stage-shop strong { font-size: 13px; }
  .detail-toggle { padding: 8px 10px; font-size: 11px; }
  .edit-pieces { margin-top: 16px; }
  .piece-link { grid-template-columns: 16px 1fr auto 13px; min-height: 66px; gap: 10px; padding: 10px 0; }
  .piece-swatch { width: 16px; height: 26px; }
  .piece-name strong { font-size: clamp(21px,4.85vw,28px); }
  .piece-name small { font-size: 11px; }
  .piece-price { font-size: 11px; }
}
@media(max-width:355px) {
  .piece-link { grid-template-columns: 10px 1fr auto 10px; gap: 7px; }
  .piece-swatch { width: 10px; }
  .piece-name strong { font-size: 19px; }
}
:root[data-motion-paused] .layer-stage .detail-slot { transition: none; }
@media(prefers-reduced-motion:no-preference) {
  :root[data-scroll-cinema] .edit-track[data-sequence]::after { content: ''; display: block; height: clamp(260px,54svh,460px); }
  :root[data-scroll-cinema] .edit-track[data-sequence] .edit-shell { position: sticky; top: var(--hold-top,0px); }
  :root[data-scroll-cinema] .edit-track[data-sequence] .layer-stage { max-height: 62svh; }
  :root[data-scroll-cinema] .layer-stage .room-shot { transform: translateX(calc(var(--track,0) * -1.6%)) scale(calc(1.055 + var(--track,0) * .025)); }
  :root[data-scroll-cinema] .hero > .film-visual { transform: translateY(calc(var(--hero-exit,0) * 6%)) scale(calc(1 + var(--hero-exit,0) * .09)); }
  :root[data-scroll-cinema] .hero-copy { opacity: calc(1 - var(--hero-exit,0) * .9); transform: translateY(calc(var(--hero-exit,0) * -48px)); }
  :root[data-scroll-cinema] .collection-card > div { clip-path: inset(var(--card-inset,0%) 0 0); transform: translateY(var(--card-offset,0px)); }
  :root[data-scroll-cinema] .collection-card img { transform: translateY(var(--card-pan,0%)) scale(1.09); transition: scale .5s; }
  :root[data-scroll-cinema] .collection-card:is(:hover,:focus-visible) img { scale: 1.035; }
}
