:root { --paper: #efede4; --frame-margin: clamp(.45rem, 1.5vw, 1.4rem); }
body { background: #0c0c0b; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.archive-frame {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 2 * var(--frame-margin));
  width: min(calc(100% - 2 * var(--frame-margin)), 106rem);
  margin: var(--frame-margin) auto;
  background: var(--paper);
  border-radius: clamp(1.1rem, 2.8vw, 2.9rem);
  overflow: clip;
}
.archive-frame .wrap { width: calc(100% - clamp(1.5rem, 5vw, 5rem)); }
.archive-frame main { display: flex; flex: 1; min-height: 0; }
.archive-header { min-height: clamp(3.6rem, 5vw, 4.8rem); grid-template-columns: 1fr auto 1fr; border: 0; }
.archive-header nav { font-size: .74rem; gap: .8rem; }
.archive-header .brand-mark { width: 2rem; height: 2rem; }
.archive-header .brand strong { font-size: 1.15rem; }
.archive-header .brand small { color: var(--cobalt); font-size: .48rem; }
.archive-header .direct-link { border-color: transparent; padding-inline: .34rem; min-height: 2.55rem; font-size: .7rem; }
.archive-header .direct-telephone { color: var(--cobalt); background: transparent; }
.archive-header .direct-telephone img { filter: none; }
.archive-header .direct-link:hover { border-color: var(--cobalt); background: transparent; color: var(--cobalt); }

.shelf { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; flex: 1; width: 100%; border: 0; }
.shelf-drawer { position: absolute; inset: 0 auto auto 0; z-index: 100; text-align: start; }
.shelf-drawer > summary { width: max-content; margin-inline-start: auto; list-style: none; color: var(--cobalt); font-size: .72rem; padding: .3rem .45rem; cursor: pointer; }
.shelf-drawer > summary::-webkit-details-marker { display: none; }
.shelf-drawer-body { max-width: min(37rem, calc(100vw - 3rem)); padding: .6rem; background: rgb(250 248 241 / .94); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: .4rem; }
.shelf-drawer-body .format-filter { margin-block: .25rem; }
.shelf-drawer-body .format-shortcuts { margin-block-start: .25rem; }
.cover-shelf { display: grid; align-items: center; min-width: 0; min-height: clamp(18rem, 48vw, 35rem); }
.cover-shelf::before { inset: 26% 0 0; background: radial-gradient(ellipse at 50% 82%, #d6d0c1, transparent 69%); }
.stage-word { position: absolute; top: 10%; z-index: -1; color: #c5c6cb; font: 700 clamp(3.2rem, 10vw, 10rem)/.93 var(--serif); writing-mode: vertical-rl; pointer-events: none; }
.stage-word-start { right: 0; }
.stage-word-end { left: 0; transform: rotate(180deg); }
.cover-shelf .shelf-viewport { align-self: end; }
.shelf-track { padding: 0; }
.shelf.enhanced .shelf-track { min-height: clamp(21rem, 45vw, 34.5rem); }
.shelf.enhanced .shelf-slide { position: relative; z-index: var(--depth, 1); flex-basis: 6.35%; height: clamp(20rem, 42vw, 32.5rem); padding: 0; }
.shelf.enhanced .shelf-slide .tape {
  --poster-width: clamp(9rem, 17.8vw, 17.3rem);
  position: absolute;
  inset: auto auto .7rem 50%;
  width: var(--poster-width);
  transform-origin: center bottom;
  transform: translateX(calc(-50% + var(--spread, 0px))) translateY(calc(-1 * var(--rise, 0px))) rotateY(var(--angle, 0deg)) scale(var(--shrink, 1));
  opacity: 1;
}
.shelf.enhanced .shelf-slide.selected .tape { transform: translateX(-50%); }
.shelf.enhanced .shelf-slide.far .tape { filter: saturate(.78); }
.shelf.enhanced .shelf-slide:not(.selected) .tape-label { min-height: 5.35rem; }
.shelf.enhanced .shelf-slide:not(.selected) .tape-label strong { font-size: 1.05rem; }
.tape { aspect-ratio: .54; box-shadow: .2rem .45rem 1.15rem rgb(35 30 17 / .21); }
.tape[data-format="short"] { --sleeve: #603427; }
.shelf-controls { grid-template-columns: 1fr minmax(0, 2.4fr) 1fr; width: 100%; max-width: 37rem; min-height: 6.7rem; align-self: start; padding: 0; margin: 0 auto clamp(.45rem, 2vh, 1.4rem); }
.shelf-selection { background: transparent; border: 0; backdrop-filter: none; }
.current-title { font: 600 clamp(1.5rem, 3vw, 2.75rem)/1.1 var(--serif); }
.current-format { font-size: .68rem; color: var(--cobalt); }
.shelf-count { font-size: .62rem; }
.shelf-controls .arrow { background: transparent; border-color: transparent; }
.shelf-controls .arrow:hover { border-color: var(--cobalt); }
.archive-timeline { position: relative; justify-content: space-between; gap: .2rem; padding-block: .2rem .1rem; border-block-start: 1px solid #8f97b7; }
.archive-timeline::before { position: absolute; inset: 0 0 auto; height: .32rem; background: repeating-linear-gradient(90deg, transparent 0 2.3%, #9ca3bb 2.3% calc(2.3% + 1px)); content: ""; pointer-events: none; }
.archive-timeline button { position: relative; padding: .15rem .32rem; min-height: 2.5rem; color: var(--cobalt); font-size: .68rem; }
.archive-timeline button[aria-pressed="true"] { border-color: transparent; background: transparent; }
.archive-timeline button[aria-pressed="true"]::before { position: absolute; inset: -.45rem 50% auto auto; width: .4rem; height: .4rem; border-radius: 50%; background: var(--cobalt); content: ""; }
.archive-timeline > span { font-size: .65rem; }
.shelf-ruler { color: var(--cobalt); border: 0; font-size: .66rem; padding: .3rem 0 .72rem; }
.shelf-ruler span[lang] { font-size: .55rem; }
.archive-support { margin-block-start: 2rem; padding: 1rem clamp(1rem, 3vw, 3.5rem) .1rem; background: var(--paper); border-radius: 1.5rem; }
.archive-support .role-section { margin-block-start: 1rem; }
.archive-footer, .studio-tracking { color: #ddd9ca; }
.studio-tracking form, .studio-tracking .tracking-result { color: var(--white); }

.work-sheet {
  width: min(calc(100% - 2 * var(--frame-margin)), 106rem);
  height: calc(100svh - 2 * var(--frame-margin));
  max-height: none;
  border: 0;
  border-radius: clamp(1.1rem, 2.8vw, 2.9rem);
  background: var(--paper);
}
.work-sheet::backdrop { background: #0c0c0b; backdrop-filter: none; }
.sheet-body { display: flex; flex-direction: column; min-height: 100%; padding: clamp(1rem, 3.2vw, 3.2rem); }
.sheet-top { flex-direction: row; border: 0; padding: 0; margin: 0; }
.sheet-top button { min-height: 2.2rem; border-color: var(--ink); font-size: .72rem; }
.sheet-layout { flex: 1; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 2rem; padding-block: clamp(1rem, 3vw, 2.75rem); }
.sheet-media { display: grid; place-items: center; background: transparent; color: var(--ink); }
.sheet-media .sheet-poster { width: min(100%, clamp(14rem, 24vw, 25rem)); display: grid; place-items: stretch; cursor: pointer; text-align: start; color: var(--sleeve-ink); background: var(--sleeve); }
.sheet-poster .tape-art img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.sheet-poster .tape-label strong { font-size: clamp(1.2rem, 2.5vw, 2.1rem); }
.sheet-media.showing-file { background: var(--navy); color: var(--white); }
.sheet-copy { justify-self: end; width: min(100%, 30rem); }
.sheet-copy h2 { color: var(--cobalt); font-size: clamp(2rem, 4vw, 4.65rem); line-height: 1.16; }
.sheet-format { font-size: .75rem; }
.sheet-copy dl { border: 0; padding-block-start: .18rem; }
.sheet-copy dd, .sheet-synopsis { font-size: .87rem; }
.sheet-play { min-height: var(--touch); color: var(--cobalt); background: transparent; border: 1px solid var(--cobalt); padding: .3rem .85rem; font-size: .82rem; }
.sheet-play:hover { background: var(--cobalt); color: var(--white); }
.edition-drawer { margin-block-start: .75rem; }
.edition-drawer summary { cursor: pointer; font-size: .78rem; color: var(--muted); }

@media (max-width: 900px) {
  .shelf.enhanced .shelf-slide { flex-basis: 8.7%; }
  .shelf.enhanced .shelf-slide .tape { --poster-width: clamp(8rem, 22vw, 14rem); }
}
@media (max-width: 650px) {
  .archive-header { grid-template-columns: 1fr auto; gap: 0 .35rem; min-height: 0; padding-top: .45rem; }
  .archive-header nav { grid-row: 2; grid-column: 1 / -1; }
  .archive-header .direct-links { gap: .15rem; }
  .archive-header .direct-link { min-width: 2.45rem; padding-inline: .2rem; }
  .shelf-drawer { inset-block-start: .2rem; }
  .cover-shelf { min-height: 18rem; }
  .shelf.enhanced .shelf-track { min-height: 24rem; }
  .shelf.enhanced .shelf-slide { height: 23.5rem; flex-basis: 15%; }
  .shelf.enhanced .shelf-slide .tape { --poster-width: min(52vw, 12.2rem); inset-block-end: .8rem; }
  .stage-word { font-size: 3.65rem; top: 13%; }
  .shelf-controls { min-height: 5.65rem; margin-block-end: .45rem; }
  .archive-timeline { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .archive-timeline > span { flex: 0 0 auto; }
  .shelf-ruler { font-size: .61rem; }
  .sheet-layout { grid-template-columns: 1fr; align-content: start; gap: 1.15rem; }
  .sheet-media .sheet-poster { width: min(57vw, 15rem); }
  .sheet-copy { justify-self: stretch; }
}
