:root {
  --stage-scale: 1;
  --stage-w: 1672px;
  --stage-h: 941px;
  --ink: #2c251b;
  --muted: rgba(53, 43, 30, .72);
  --faint: rgba(83, 61, 35, .42);
  --blue: #082f68;
  --blue-2: #0c4b91;
  --gold: #a7731b;
  --gold-2: #d7a33a;
  --red: #9f321f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, rgba(245, 213, 156, .2), transparent 36%),
    linear-gradient(135deg, #190f08, #3a2514 52%, #120b06);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

.viewport {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: auto;
}

.stage-shell {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
  flex: 0 0 auto;
}

.atelier-loader {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(58, 37, 20, 0.95) 0%, rgba(18, 11, 6, 0.98) 60%, #0a0603 100%),
    linear-gradient(135deg, #190f08, #3a2514 52%, #120b06);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .48);
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 900ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 900ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.stage-shell.is-loaded .atelier-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.loader-geometry {
  position: relative;
  width: 220px;
  height: 220px;
  max-width: 38vmin;
  max-height: 38vmin;
  display: grid;
  place-items: center;
}

.geometry-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 158, 52, 0.10) 0%, transparent 65%);
  animation: glow-breathe 5s ease-in-out infinite;
  pointer-events: none;
}

.geo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.geo-ring {
  fill: none;
  transform-origin: 150px 150px;
}

.geo-ring--outer {
  stroke-dasharray: 30 15;
  animation: ring-rotate-outer 28s linear infinite;
}

.geo-ring--mid {
  stroke-dasharray: 10 20;
  animation: ring-rotate-mid 20s linear infinite reverse;
}

.geo-ring--inner {
  stroke-dasharray: 6 12;
  animation: ring-rotate-inner 14s linear infinite;
}

.geo-spokes line {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: spoke-draw 2.8s ease-in-out infinite alternate;
  transform-origin: 150px 150px;
}

.geo-spokes line:nth-child(1) { animation-delay: 0s; }
.geo-spokes line:nth-child(2) { animation-delay: 0.35s; }
.geo-spokes line:nth-child(3) { animation-delay: 0.7s; }
.geo-spokes line:nth-child(4) { animation-delay: 1.05s; }
.geo-spokes line:nth-child(5) { animation-delay: 1.4s; }
.geo-spokes line:nth-child(6) { animation-delay: 1.75s; }
.geo-spokes line:nth-child(7) { animation-delay: 2.1s; }
.geo-spokes line:nth-child(8) { animation-delay: 2.45s; }

.geo-diamond path {
  stroke-dasharray: 510;
  stroke-dashoffset: 510;
  animation: diamond-draw 3.5s ease-in-out infinite alternate;
  transform-origin: 150px 150px;
}

.geo-center {
  animation: center-pulse 2.5s ease-in-out infinite;
  transform-origin: 150px 150px;
}

.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.loader-particles span {
  position: absolute;
  border-radius: 50%;
  background: #f4ce69;
  box-shadow: 0 0 6px 1px rgba(244, 206, 105, 0.35);
  opacity: 0;
  animation: float-up 5s ease-out infinite;
}

.loader-particles span:nth-child(1)  { left: 46%; top: 58%; width: 2px; height: 2px; animation-duration: 4.2s; animation-delay: 0s; }
.loader-particles span:nth-child(2)  { left: 54%; top: 56%; width: 3px; height: 3px; animation-duration: 3.8s; animation-delay: 0.4s; }
.loader-particles span:nth-child(3)  { left: 48%; top: 62%; width: 2px; height: 2px; animation-duration: 5.1s; animation-delay: 0.8s; }
.loader-particles span:nth-child(4)  { left: 52%; top: 60%; width: 2px; height: 2px; animation-duration: 4.5s; animation-delay: 1.2s; }
.loader-particles span:nth-child(5)  { left: 44%; top: 54%; width: 3px; height: 3px; animation-duration: 3.5s; animation-delay: 0.2s; }
.loader-particles span:nth-child(6)  { left: 56%; top: 54%; width: 2px; height: 2px; animation-duration: 4.8s; animation-delay: 1.6s; }
.loader-particles span:nth-child(7)  { left: 50%; top: 64%; width: 2px; height: 2px; animation-duration: 3.2s; animation-delay: 0.6s; }
.loader-particles span:nth-child(8)  { left: 42%; top: 60%; width: 2px; height: 2px; animation-duration: 5.4s; animation-delay: 2.0s; }
.loader-particles span:nth-child(9)  { left: 58%; top: 62%; width: 2px; height: 2px; animation-duration: 4.0s; animation-delay: 1.0s; }
.loader-particles span:nth-child(10) { left: 49%; top: 52%; width: 3px; height: 3px; animation-duration: 3.6s; animation-delay: 0.3s; }
.loader-particles span:nth-child(11) { left: 47%; top: 66%; width: 2px; height: 2px; animation-duration: 4.6s; animation-delay: 2.4s; }
.loader-particles span:nth-child(12) { left: 53%; top: 52%; width: 2px; height: 2px; animation-duration: 5.0s; animation-delay: 1.8s; }
.loader-particles span:nth-child(13) { left: 41%; top: 56%; width: 2px; height: 2px; animation-duration: 3.9s; animation-delay: 0.9s; }
.loader-particles span:nth-child(14) { left: 59%; top: 58%; width: 2px; height: 2px; animation-duration: 4.3s; animation-delay: 2.8s; }
.loader-particles span:nth-child(15) { left: 45%; top: 50%; width: 2px; height: 2px; animation-duration: 5.2s; animation-delay: 1.4s; }
.loader-particles span:nth-child(16) { left: 55%; top: 50%; width: 3px; height: 3px; animation-duration: 3.3s; animation-delay: 0.5s; }
.loader-particles span:nth-child(17) { left: 43%; top: 64%; width: 2px; height: 2px; animation-duration: 4.1s; animation-delay: 2.2s; }
.loader-particles span:nth-child(18) { left: 57%; top: 64%; width: 2px; height: 2px; animation-duration: 4.9s; animation-delay: 1.1s; }
.loader-particles span:nth-child(19) { left: 51%; top: 68%; width: 2px; height: 2px; animation-duration: 3.7s; animation-delay: 0.7s; }
.loader-particles span:nth-child(20) { left: 49%; top: 48%; width: 2px; height: 2px; animation-duration: 5.5s; animation-delay: 3.0s; }

.loader-text {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 24px;
}

.loader-text::before,
.loader-text::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, rgba(244, 206, 105, 0.35), transparent);
}

.loader-text::after {
  margin: 14px auto 0;
}

.loader-text p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f4ce69;
  text-shadow: 0 0 20px rgba(244, 206, 105, .36), 0 2px 0 rgba(75, 44, 12, .7);
}

.stage {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: scale(var(--stage-scale));
  transform-origin: top left;
  overflow: hidden;
  opacity: 0;
  background-image: url("assets/processed/stage-desktop.webp");
  background-size: 100% 100%;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .48);
  transition: opacity 220ms ease;
}

.stage.is-ready {
  opacity: 1;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes ring-rotate-outer {
  to { stroke-dashoffset: -45; }
}

@keyframes ring-rotate-mid {
  to { stroke-dashoffset: -30; }
}

@keyframes ring-rotate-inner {
  to { stroke-dashoffset: -18; }
}

@keyframes spoke-draw {
  0% { stroke-dashoffset: 140; opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes diamond-draw {
  0% { stroke-dashoffset: 510; opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 0.9; }
}

@keyframes center-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes float-up {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-70px) scale(0.3); opacity: 0; }
}

@keyframes text-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes seal-pulse {
  0% {
    filter: drop-shadow(0 12px 10px rgba(55, 32, 6, .42)) drop-shadow(0 0 18px rgba(217, 158, 52, .24));
  }
  50% {
    filter: drop-shadow(0 12px 10px rgba(55, 32, 6, .42)) drop-shadow(0 0 32px rgba(229, 185, 86, .65));
  }
  100% {
    filter: drop-shadow(0 12px 10px rgba(55, 32, 6, .42)) drop-shadow(0 0 18px rgba(217, 158, 52, .24));
  }
}

.seal.is-pulsing {
  animation: seal-pulse 700ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .atelier-loader,
  .geometry-glow,
  .geo-ring,
  .geo-spokes line,
  .geo-diamond path,
  .geo-center,
  .loader-particles span,
  .loader-text p {
    animation: none !important;
  }

  .stage,
  .atelier-loader {
    transition: none;
  }

  .geo-spokes line {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }

  .geo-diamond path {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }

  .geometry-glow {
    opacity: 0.6 !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }
}

.stage::before {
  content: "";
  position: absolute;
  inset: 92px 428px 105px 428px;
  border-left: 1px solid rgba(92, 64, 33, .38);
  border-right: 1px solid rgba(92, 64, 33, .38);
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(88, 53, 21, .12), transparent 13%, transparent 86%, rgba(88, 53, 21, .11)),
    radial-gradient(circle at 76% 69%, rgba(213, 163, 58, .18), transparent 17%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.initial {
  position: absolute;
  left: 116px;
  top: 56px;
  width: 92px;
  height: 116px;
  z-index: 9;
  display: grid;
  place-items: center;
  background: linear-gradient(#164283, #082b61);
  border: 6px double #ecc660;
  box-shadow: inset 0 0 0 3px rgba(255, 226, 134, .36), 0 4px 12px rgba(52, 33, 9, .35);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.initial:hover,
.initial:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 226, 134, .56), 0 0 0 2px rgba(229, 185, 86, .55), 0 6px 18px rgba(52, 33, 9, .45);
  transform: translateY(-2px);
  outline: none;
}

.initial span {
  color: #f4ce69;
  font-size: 92px;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 2px 0 #5f3707;
}

.left-panel {
  position: absolute;
  left: 151px;
  top: 221px;
  width: 248px;
  height: 465px;
  z-index: 5;
  border: 1px solid rgba(134, 91, 35, .43);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 212, .42);
}

.left-panel::before,
.work-rows::before,
.right-panel::before {
  position: absolute;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px rgba(255, 245, 213, .8);
}

.left-panel::before {
  content: "table of contents";
  left: 20px;
  right: 20px;
  top: -44px;
  padding: 0 0 10px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid rgba(157, 103, 22, .52);
}

.left-panel h1 {
  position: absolute;
  left: 64px;
  top: -115px;
  margin: 0;
  color: var(--blue);
  font-size: 29px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.left-panel > p {
  position: absolute;
  left: 64px;
  top: -80px;
  width: 218px;
  margin: 0;
  color: rgba(47, 38, 27, .82);
  font-size: 13px;
  line-height: 1.25;
}

.folio-list {
  position: absolute;
  inset: 0;
}

.folio {
  position: absolute;
  left: 10px;
  width: 228px;
  height: 68px;
  display: grid;
  grid-template-columns: 65px 1fr 26px;
  align-items: center;
  padding: 6px 10px 6px 10px;
  background: rgba(246, 231, 199, .45);
  border: 1px solid rgba(121, 82, 32, .48);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 226, .58), 3px 5px 10px rgba(92, 64, 29, .12);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.folio:nth-child(1) { top: 20px; }
.folio:nth-child(2) { top: 100px; }
.folio:nth-child(3) { top: 180px; }
.folio:nth-child(4) { top: 260px; }
.folio:nth-child(5) { top: 340px; }

.folio:hover,
.folio:focus-visible {
  transform: translateX(5px);
  filter: drop-shadow(0 0 10px rgba(215, 163, 58, .3));
  background: rgba(248, 232, 192, .62);
  outline: none;
}

.folio.is-selected {
  outline: 3px double var(--blue-2);
  background: rgba(246, 228, 186, .64);
}

.folio.is-selected::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 31px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--blue-2);
}

.folio__seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 5px rgba(50, 31, 11, .34));
}

.folio__seal img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.folio__copy {
  min-width: 0;
}

.folio strong {
  display: block;
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.folio em {
  display: block;
  margin-top: 6px;
  color: rgba(45, 36, 26, .82);
  font-size: 12px;
  line-height: 1.05;
  font-style: normal;
}

.folio__number {
  color: #a06812;
  font-size: 20px;
  text-align: right;
}

.work-rows {
  position: absolute;
  left: 455px;
  top: 181px;
  width: 704px;
  height: 562px;
  z-index: 6;
  border: 1px solid rgba(113, 77, 32, .42);
  box-shadow: inset 0 0 0 1px rgba(255, 242, 211, .35);
}

.work-rows::before {
  content: "works catalogue";
  top: -40px;
  left: 192px;
  font-size: 17px;
}

.work-row {
  position: absolute;
  left: 13px;
  top: calc(24px + var(--row-index) * 139px);
  width: 678px;
  height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  column-gap: 10px;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(105, 79, 40, .3);
  background: rgba(244, 229, 198, .16);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.work-row.is-selected {
  outline: 4px double var(--blue-2);
  background: rgba(245, 229, 190, .38);
}

.work-row:hover {
  transform: translateX(4px);
  background: rgba(247, 230, 190, .32);
  box-shadow: 0 5px 16px rgba(78, 49, 18, .12);
}

.select-work {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 9px 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.preview-frame {
  position: relative;
  width: 174px;
  height: 103px;
  display: block;
  padding: 6px;
  background: #f2deaa;
  border: 4px ridge #b5812b;
  box-shadow: 0 4px 10px rgba(39, 25, 10, .25), inset 0 0 0 2px rgba(13, 42, 86, .86);
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.04);
}

.work-copy {
  min-width: 0;
  display: block;
}

.kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--blue-2);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.work-copy strong {
  display: block;
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-copy span:not(.kicker) {
  display: block;
  color: rgba(37, 32, 25, .82);
  font-size: 12px;
  line-height: 1.25;
}

.work-copy small {
  display: block;
  margin-top: 11px;
  color: rgba(51, 43, 32, .68);
  font-size: 8px;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
}

.provenance {
  /* Removed for now due to styling preference. Keep the markup and folio-tag.png asset so the provenance card can return later. */
  display: none;
  width: 66px;
  height: 92px;
  padding: 10px 6px;
  text-align: center;
  color: #4c351e;
  background: url("assets/processed/folio-tag.png") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
}

.provenance b,
.provenance i,
.provenance em,
.provenance span {
  display: block;
  font-style: normal;
  line-height: 1.05;
}

.provenance b {
  font-size: 11px;
}

.provenance i,
.provenance em {
  margin-top: 3px;
  font-size: 10px;
}

.provenance span {
  margin-top: 8px;
  font-size: 11px;
}

.visit {
  width: 84px;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

.visit:hover,
.visit:focus-visible {
  transform: scale(1.05);
  filter: drop-shadow(0 0 9px rgba(229, 181, 76, .55));
  outline: none;
}

.visit img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
}

.visit span {
  margin-top: -8px;
}

.work-rows--all {
  height: 562px;
  overflow: hidden;
}

.work-rows--all::before {
  content: "complete register";
}

.work-row--list {
  left: 13px;
  top: calc(18px + var(--row-index) * 52px);
  width: 678px;
  height: 49px;
  grid-template-columns: minmax(0, 1fr) 66px;
}

.work-row--list.is-selected {
  outline-width: 3px;
}

.select-work--list {
  grid-template-columns: 42px minmax(0, 1fr) 120px;
  column-gap: 11px;
  padding: 6px 9px;
}

.list-folio {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #f1ca6a;
  font-size: 11px;
  font-weight: 700;
  background: radial-gradient(circle at 35% 25%, #245aa0, #082f68 65%, #041b3e);
  border: 2px solid #c9912e;
  border-radius: 50%;
}

.work-row--list .kicker {
  margin-bottom: 3px;
  font-size: 9px;
}

.work-row--list .work-copy strong {
  display: block;
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: baseline;
}

.work-row--list .work-copy span:not(.kicker) {
  display: block;
  font-size: 11px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-medium {
  color: rgba(56, 45, 33, .67);
  font-size: 9px;
  line-height: 1.15;
  text-transform: uppercase;
}

.visit--list {
  width: 62px;
  font-size: 9px;
}

.visit--list img {
  width: 42px;
  height: 42px;
}

.visit--list span {
  display: none;
}

.right-panel {
  position: absolute;
  right: 105px;
  top: 156px;
  width: 336px;
  height: 646px;
  z-index: 5;
  padding: 58px 31px 0;
  border: 1px solid rgba(104, 73, 34, .54);
  box-shadow: inset 0 0 0 1px rgba(255, 239, 200, .4);
}

.right-panel::before {
  content: none;
  display: none;
  top: -10px;
  left: 92px;
  font-size: 17px;
  background: rgba(235, 214, 176, .38);
  padding: 0 10px;
}

.right-panel__ornament {
  display: none;
}

.right-panel h2 {
  display: none;
}

.dossier h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 31px;
  line-height: 1.02;
}

.dossier__folio {
  display: none;
}

.dossier__original {
  margin: -5px 0 10px;
  color: var(--gold);
  font-size: 16px;
}

.dossier__line {
  margin: 0 0 26px;
  color: rgba(37, 32, 25, .82);
  font-size: 17px;
  line-height: 1.28;
}

.dossier h4 {
  margin: 17px 0 7px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dossier__note {
  margin: 0;
  color: rgba(42, 34, 25, .84);
  font-size: 13px;
  line-height: 1.34;
}

.dossier__url {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.25;
}

.dossier__url a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 59, 112, .34);
}

.dossier__url a:hover,
.dossier__url a:focus-visible {
  color: #8f2f1f;
  border-bottom-color: currentColor;
  outline: none;
}

.dossier dl {
  margin: 22px 0 0;
}

.dossier div {
  display: grid;
  grid-template-columns: 82px 1fr;
  min-height: 30px;
  align-items: center;
  border-top: 1px solid rgba(120, 82, 35, .24);
}

.dossier dt {
  color: #70511f;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dossier dd {
  margin: 0;
  color: rgba(52, 43, 32, .74);
  font-size: 12px;
}

.dossier__actions {
  display: none;
}

.archive-strip {
  display: none;
}

.seal {
  position: absolute;
  right: 250px;
  bottom: 62px;
  z-index: 8;
  width: 174px;
  filter: drop-shadow(0 12px 10px rgba(55, 32, 6, .42)) drop-shadow(0 0 18px rgba(217, 158, 52, .24));
}

.seal::after {
  content: "";
}

.seal-link,
.ribbon-link {
  position: absolute;
  z-index: 14;
  display: block;
  text-decoration: none;
  outline: none;
}

.seal-link {
  right: 250px;
  bottom: 62px;
  width: 174px;
  height: 174px;
  border-radius: 50%;
}

.ribbon-link {
  left: 410px;
  bottom: 83px;
  width: 790px;
  height: 74px;
  box-shadow: inset 0 0 0 1px rgba(229, 185, 86, .25);
}

.seal-link:hover,
.seal-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(229, 185, 86, .58), 0 0 22px rgba(196, 132, 24, .44);
}

.ribbon-link:hover,
.ribbon-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(229, 185, 86, .58), 0 0 22px rgba(196, 132, 24, .44);
}

.connectors {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.wire {
  fill: none;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.wire--gold {
  stroke: #9b6617;
}

.wire--blue {
  stroke: #183d74;
}

.manuscript-unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 21px;
  line-height: 1.5;
  text-align: center;
  padding: 40px;
}

.manuscript-unavailable p {
  margin: 0;
}

.wire--thin {
  stroke-width: 1.2;
  opacity: .72;
}

/* ---------- manuscript scrollbar (global) ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(92, 64, 33, .08);
  border-left: 1px solid rgba(134, 91, 35, .18);
}

::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(215, 163, 58, .78), rgba(167, 115, 27, .82));
  border: 1px solid rgba(76, 48, 10, .55);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 134, .22);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(229, 185, 86, .88), rgba(183, 129, 43, .9));
}

::-webkit-scrollbar-corner {
  background: rgba(92, 64, 33, .08);
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 115, 27, .82) rgba(92, 64, 33, .08);
}

/* ---------- scrollable all-works register ---------- */
.work-rows--scrollable {
  overflow-y: auto;
}

.work-rows--scrollable .work-row {
  position: relative;
  top: auto;
  left: auto;
  margin: 12px 13px 0;
  width: calc(100% - 26px);
}

.work-rows--scrollable .work-row:last-child {
  margin-bottom: 12px;
}

.stage[data-layout="tablet"] .work-rows--scrollable .work-row {
  margin: 10px 11px 0;
  width: calc(100% - 22px);
}

.stage[data-layout="mobile"] .work-rows--scrollable .work-row {
  margin: 6px 8px 0;
  width: calc(100% - 16px);
}

.stage[data-layout="tablet"] {
  background-image: url("assets/processed/stage-tablet.webp");
}

.stage[data-layout="tablet"]::before {
  inset: 112px 342px 98px 58px;
  border-left: 0;
  border-right: 1px solid rgba(92, 64, 33, .28);
}

.stage[data-layout="tablet"] .initial {
  left: 60px;
  top: 58px;
  width: 76px;
  height: 96px;
}

.stage[data-layout="tablet"] .initial span {
  font-size: 74px;
}

.stage[data-layout="tablet"] .left-panel {
  left: 70px;
  top: 208px;
  width: 248px;
  height: 418px;
}

.stage[data-layout="tablet"] .left-panel h1 {
  left: 82px;
  top: -126px;
}

.stage[data-layout="tablet"] .left-panel > p {
  left: 82px;
  top: -91px;
  width: 230px;
}

.stage[data-layout="tablet"] .left-panel::before {
  top: -46px;
}

.stage[data-layout="tablet"] .folio {
  left: 10px;
  width: 228px;
  height: 70px;
  grid-template-columns: 58px 1fr 22px;
}

.stage[data-layout="tablet"] .folio:nth-child(1) { top: 21px; }
.stage[data-layout="tablet"] .folio:nth-child(2) { top: 96px; }
.stage[data-layout="tablet"] .folio:nth-child(3) { top: 171px; }
.stage[data-layout="tablet"] .folio:nth-child(4) { top: 246px; }
.stage[data-layout="tablet"] .folio:nth-child(5) { top: 321px; }

.stage[data-layout="tablet"] .folio__seal {
  width: 54px;
  height: 54px;
}

.stage[data-layout="tablet"] .folio__seal img {
  width: 62px;
  height: 62px;
}

.stage[data-layout="tablet"] .folio strong {
  font-size: 16px;
}

.stage[data-layout="tablet"] .folio em {
  font-size: 12px;
}

.stage[data-layout="tablet"] .work-rows {
  left: 355px;
  top: 168px;
  width: 478px;
  height: 562px;
}

.stage[data-layout="tablet"] .work-rows::before {
  left: 118px;
}

.stage[data-layout="tablet"] .work-row {
  left: 11px;
  top: calc(22px + var(--row-index) * 132px);
  width: 454px;
  height: 112px;
  grid-template-columns: 1fr 68px;
}

.stage[data-layout="tablet"] .select-work {
  grid-template-columns: 128px minmax(0, 1fr);
  column-gap: 10px;
  padding: 9px 8px;
}

.stage[data-layout="tablet"] .preview-frame {
  width: 124px;
  height: 82px;
  padding: 4px;
}

.stage[data-layout="tablet"] .work-copy strong {
  font-size: 17px;
}

.stage[data-layout="tablet"] .work-copy span:not(.kicker) {
  font-size: 11px;
}

.stage[data-layout="tablet"] .work-copy small {
  font-size: 7px;
  white-space: normal;
  line-height: 1.2;
}

.stage[data-layout="tablet"] .provenance {
  width: 58px;
  height: 86px;
  padding: 10px 5px;
}

.stage[data-layout="tablet"] .provenance b,
.stage[data-layout="tablet"] .provenance span {
  font-size: 9px;
}

.stage[data-layout="tablet"] .provenance i,
.stage[data-layout="tablet"] .provenance em {
  font-size: 8px;
}

.stage[data-layout="tablet"] .visit {
  width: 66px;
}

.stage[data-layout="tablet"] .visit img {
  width: 58px;
  height: 58px;
}

.stage[data-layout="tablet"] .right-panel {
  right: 54px;
  top: 168px;
  width: 292px;
  height: 610px;
  padding: 52px 27px 0;
}

.stage[data-layout="tablet"] .right-panel::before {
  left: 68px;
}

.stage[data-layout="tablet"] .dossier h3 {
  font-size: 25px;
}

.stage[data-layout="tablet"] .dossier__line {
  font-size: 15px;
}

.stage[data-layout="tablet"] .seal {
  right: 142px;
  bottom: 54px;
  width: 142px;
}

.stage[data-layout="tablet"] .seal-link {
  right: 142px;
  bottom: 54px;
  width: 142px;
  height: 142px;
}

.stage[data-layout="tablet"] .ribbon-link {
  left: 306px;
  bottom: 72px;
  width: 566px;
  height: 54px;
}

.stage[data-layout="mobile"] {
  background-image: url("assets/processed/stage-mobile.webp");
}

.stage[data-layout="mobile"]::before {
  display: none;
}

.stage[data-layout="mobile"]::after {
  background: linear-gradient(90deg, rgba(90, 55, 22, .1), transparent 20%, transparent 80%, rgba(90, 55, 22, .1));
}

.stage[data-layout="mobile"] .initial {
  left: 34px;
  top: 31px;
  width: 62px;
  height: 78px;
  border-width: 4px;
}

.stage[data-layout="mobile"] .initial span {
  font-size: 60px;
}

.stage[data-layout="mobile"] .left-panel {
  left: 34px;
  top: 122px;
  width: 362px;
  height: 180px;
  border-color: rgba(134, 91, 35, .28);
}

.stage[data-layout="mobile"] .left-panel h1 {
  left: 74px;
  top: -92px;
  font-size: 27px;
}

.stage[data-layout="mobile"] .left-panel > p {
  left: 74px;
  top: -59px;
  width: 250px;
  font-size: 12px;
}

.stage[data-layout="mobile"] .left-panel::before {
  content: "contents";
  top: -29px;
  font-size: 12px;
  padding-bottom: 6px;
}

.stage[data-layout="mobile"] .folio-list {
  inset: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stage[data-layout="mobile"] .folio,
.stage[data-layout="mobile"] .folio:nth-child(n) {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  min-height: 56px;
  grid-template-columns: 45px 1fr 17px;
  padding: 5px 6px;
}

.stage[data-layout="mobile"] .folio.is-selected::after {
  display: none;
}

.stage[data-layout="mobile"] .folio__seal {
  width: 42px;
  height: 42px;
}

.stage[data-layout="mobile"] .folio__seal img {
  width: 49px;
  height: 49px;
}

.stage[data-layout="mobile"] .folio strong {
  font-size: 11px;
  line-height: 1.05;
}

.stage[data-layout="mobile"] .folio em {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.05;
}

.stage[data-layout="mobile"] .folio__number {
  font-size: 15px;
}

.stage[data-layout="mobile"] .work-rows {
  left: 34px;
  top: 326px;
  width: 362px;
  height: 292px;
}

.stage[data-layout="mobile"] .work-rows::before {
  top: -27px;
  left: 92px;
  font-size: 12px;
}

.stage[data-layout="mobile"] .work-row {
  left: 8px;
  top: calc(9px + var(--row-index) * 69px);
  width: 346px;
  height: 61px;
  grid-template-columns: 1fr 54px;
}

.stage[data-layout="mobile"] .select-work {
  grid-template-columns: 70px 1fr;
  column-gap: 8px;
  padding: 6px;
}

.stage[data-layout="mobile"] .preview-frame {
  width: 66px;
  height: 43px;
  padding: 3px;
  border-width: 2px;
}

.stage[data-layout="mobile"] .kicker,
.stage[data-layout="mobile"] .work-copy small,
.stage[data-layout="mobile"] .provenance {
  display: none;
}

.stage[data-layout="mobile"] .work-copy strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.stage[data-layout="mobile"] .work-copy span:not(.kicker) {
  font-size: 10px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage[data-layout="mobile"] .visit {
  width: 52px;
  font-size: 10px;
}

.stage[data-layout="mobile"] .visit img {
  width: 46px;
  height: 46px;
}

.stage[data-layout="mobile"] .visit span {
  margin-top: -7px;
}

.stage[data-layout="mobile"] .right-panel {
  left: 34px;
  right: auto;
  top: 644px;
  width: 362px;
  height: 194px;
  padding: 32px 23px 0;
}

.stage[data-layout="mobile"] .right-panel::before {
  content: none;
  display: none;
  top: -9px;
  left: 112px;
  font-size: 12px;
}

.stage[data-layout="mobile"] .dossier {
  max-height: 146px;
  overflow: hidden;
}

.stage[data-layout="mobile"] .dossier h3 {
  margin-bottom: 7px;
  font-size: 22px;
}

.stage[data-layout="mobile"] .dossier__original {
  display: none;
}

.stage[data-layout="mobile"] .dossier__line {
  margin-bottom: 10px;
  font-size: 13px;
}

.stage[data-layout="mobile"] .dossier h4,
.stage[data-layout="mobile"] .dossier__note,
.stage[data-layout="mobile"] .dossier__url,
.stage[data-layout="mobile"] .dossier dl {
  display: none;
}

.stage[data-layout="mobile"] .dossier__actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}

.stage[data-layout="mobile"] .dossier__actions a {
  padding: 7px 10px;
  border: 1px solid rgba(116, 75, 25, .4);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(243, 222, 181, .52);
}

.stage[data-layout="mobile"] .archive-strip {
  display: flex;
  gap: 3px;
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -34px;
}

.stage[data-layout="mobile"] .archive-strip button {
  width: 22px;
  height: 22px;
  color: #76521c;
  font-size: 9px;
  background: rgba(239, 214, 165, .55);
  border: 1px solid rgba(106, 72, 29, .34);
}

.stage[data-layout="mobile"] .archive-strip button.is-selected {
  color: #f4ce69;
  background: var(--blue);
}

.stage[data-layout="mobile"] .seal {
  right: 36px;
  bottom: 24px;
  width: 86px;
}

.stage[data-layout="mobile"] .seal-link {
  right: 36px;
  bottom: 24px;
  width: 86px;
  height: 86px;
}

.stage[data-layout="mobile"] .ribbon-link {
  left: 56px;
  bottom: 29px;
  width: 244px;
  height: 36px;
}

.stage[data-layout="tablet"] .work-row--list {
  top: calc(22px + var(--row-index) * 52px);
  height: 45px;
}

.stage[data-layout="tablet"] .select-work--list {
  grid-template-columns: 34px minmax(0, 1fr) 72px;
  column-gap: 8px;
  padding: 6px 8px;
}

.stage[data-layout="tablet"] .work-row--list .work-copy strong {
  font-size: 13px;
}

.stage[data-layout="tablet"] .work-row--list .work-copy span:not(.kicker) {
  font-size: 10px;
}

.stage[data-layout="tablet"] .list-medium {
  font-size: 8px;
}

.stage[data-layout="tablet"] .visit--list {
  width: 62px;
}

.stage[data-layout="tablet"] .visit--list img {
  width: 38px;
  height: 38px;
}

.stage[data-layout="mobile"] .work-rows--all {
  height: 292px;
}

.stage[data-layout="mobile"] .work-row--list {
  top: calc(8px + var(--row-index) * 27px);
  height: 24px;
}

.stage[data-layout="mobile"] .select-work--list {
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 6px;
  padding: 3px 6px;
}

.stage[data-layout="mobile"] .list-folio {
  width: 18px;
  height: 18px;
  font-size: 7px;
  border-width: 1px;
}

.stage[data-layout="mobile"] .work-row--list .kicker,
.stage[data-layout="mobile"] .list-medium {
  display: none;
}

.stage[data-layout="mobile"] .work-row--list .work-copy strong {
  display: block;
  margin: 0;
  font-size: 10px;
  line-height: 1;
}

.stage[data-layout="mobile"] .work-row--list .work-copy span:not(.kicker) {
  display: block;
  font-size: 8px;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stage[data-layout="mobile"] .visit--list {
  width: 48px;
}

.stage[data-layout="mobile"] .visit--list img {
  width: 25px;
  height: 25px;
}

/* ---------- visual rebuild pass ---------- */
:root {
  --ink: oklch(25% 0.027 73);
  --muted: oklch(35% 0.03 72 / .76);
  --faint: oklch(47% 0.05 76 / .36);
  --blue: oklch(30% 0.118 260);
  --blue-2: oklch(39% 0.132 253);
  --gold: oklch(57% 0.122 77);
  --gold-2: oklch(72% 0.13 82);
  --red: oklch(42% 0.12 35);
  --paper: oklch(88% 0.047 86);
  --paper-deep: oklch(77% 0.066 82);
  --focus-ring: oklch(48% 0.14 254);
}

html,
body {
  background:
    radial-gradient(circle at 50% 20%, oklch(65% 0.11 73 / .18), transparent 34%),
    radial-gradient(circle at 80% 80%, oklch(44% 0.12 262 / .18), transparent 28%),
    linear-gradient(135deg, oklch(15% 0.034 61), oklch(22% 0.045 61) 48%, oklch(11% 0.029 55));
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif CJK SC", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, oklch(8% 0.018 55 / .62), transparent 18%, transparent 82%, oklch(8% 0.018 55 / .62)),
    radial-gradient(circle at 50% 48%, transparent 42%, oklch(7% 0.02 52 / .42) 100%);
}

.viewport {
  padding: clamp(12px, 3vh, 38px) clamp(8px, 2vw, 36px);
}

.stage-shell::before,
.stage-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.stage-shell::before {
  inset: 4% 2% -3%;
  z-index: -2;
  background: radial-gradient(ellipse at center, oklch(5% 0.018 54 / .68), transparent 67%);
  filter: blur(20px);
}

.stage-shell::after {
  left: 2.5%;
  right: 2.5%;
  bottom: -11px;
  height: 18px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, oklch(63% 0.12 79 / .7), oklch(83% 0.09 85 / .82), oklch(63% 0.12 79 / .7), transparent);
  border-radius: 999px;
  filter: blur(.2px);
  opacity: .72;
}

.stage {
  box-shadow:
    0 44px 120px oklch(6% 0.02 54 / .58),
    0 8px 32px oklch(13% 0.04 64 / .5),
    inset 0 0 0 1px oklch(82% 0.1 84 / .32);
}

.stage::after {
  background:
    linear-gradient(90deg, oklch(34% 0.064 65 / .16), transparent 13%, transparent 86%, oklch(34% 0.064 65 / .15)),
    radial-gradient(circle at 73% 70%, oklch(74% 0.12 84 / .17), transparent 19%),
    radial-gradient(circle at 31% 28%, oklch(42% 0.15 258 / .08), transparent 16%);
}

.loader-text p {
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.left-panel h1 {
  letter-spacing: .065em;
}

.left-panel > p,
.folio em,
.work-copy span:not(.kicker),
.dossier__line,
.dossier__note,
.dossier dd {
  color: var(--muted);
}

.folio,
.work-row,
.right-panel {
  background:
    linear-gradient(135deg, oklch(91% 0.045 87 / .24), transparent 62%),
    oklch(88% 0.046 86 / .22);
}

.folio {
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1),
              filter 220ms cubic-bezier(.16, 1, .3, 1),
              background 220ms cubic-bezier(.16, 1, .3, 1),
              box-shadow 220ms cubic-bezier(.16, 1, .3, 1);
}

.folio:hover,
.folio:focus-visible {
  transform: translateX(7px);
  filter: drop-shadow(0 10px 14px oklch(25% 0.07 70 / .18)) drop-shadow(0 0 12px oklch(74% 0.13 84 / .26));
  background: oklch(91% 0.056 86 / .58);
}

.folio.is-selected {
  outline: 3px double var(--blue-2);
  background:
    radial-gradient(circle at 12% 50%, oklch(72% 0.13 83 / .22), transparent 38%),
    oklch(90% 0.06 84 / .68);
  box-shadow:
    inset 0 0 0 1px oklch(96% 0.035 88 / .72),
    0 7px 18px oklch(30% 0.07 69 / .16);
}

.work-row {
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1),
              background 260ms cubic-bezier(.16, 1, .3, 1),
              box-shadow 260ms cubic-bezier(.16, 1, .3, 1),
              outline-color 260ms cubic-bezier(.16, 1, .3, 1);
}

.stage.is-ready .work-row {
  animation: row-arrive 520ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--row-index) * 58ms);
}

@keyframes row-arrive {
  from {
    opacity: 0;
    transform: translateY(11px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-row:hover {
  transform: translateX(6px);
  background:
    linear-gradient(90deg, oklch(86% 0.07 83 / .46), oklch(90% 0.045 86 / .2));
  box-shadow: 0 8px 20px oklch(26% 0.063 68 / .18);
}

.work-row.is-selected {
  outline: 4px double var(--blue-2);
  outline-offset: -2px;
  background:
    linear-gradient(90deg, oklch(84% 0.076 83 / .58), oklch(91% 0.052 87 / .34) 58%, oklch(56% 0.13 257 / .1)),
    oklch(90% 0.05 85 / .42);
  box-shadow:
    inset 0 0 0 1px oklch(96% 0.032 88 / .72),
    0 12px 28px oklch(25% 0.07 66 / .2);
}

.select-work:focus-visible,
.visit:focus-visible,
.dossier__actions a:focus-visible,
.dossier__url a:focus-visible,
.archive-strip button:focus-visible {
  outline: 3px double var(--focus-ring);
  outline-offset: 3px;
}

.preview-frame {
  background:
    linear-gradient(135deg, oklch(91% 0.074 86), oklch(78% 0.09 82));
  border-color: oklch(59% 0.12 76);
  box-shadow:
    0 5px 14px oklch(25% 0.055 68 / .28),
    inset 0 0 0 2px oklch(25% 0.12 258 / .82),
    inset 0 0 16px oklch(95% 0.04 88 / .18);
}

.preview-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background:
    linear-gradient(120deg, oklch(96% 0.035 88 / .28), transparent 38%),
    radial-gradient(circle at 78% 22%, oklch(76% 0.13 84 / .28), transparent 16%);
  mix-blend-mode: screen;
  opacity: .55;
}

.kicker {
  letter-spacing: .12em;
}

.work-copy strong {
  font-size: 22px;
  letter-spacing: .01em;
}

.work-copy span:not(.kicker) {
  font-size: 13px;
  line-height: 1.32;
}

.work-copy small {
  color: oklch(39% 0.035 73 / .7);
  font-size: 8.5px;
  letter-spacing: .11em;
}

.visit {
  min-width: 52px;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), filter 220ms cubic-bezier(.16, 1, .3, 1);
}

.visit:hover,
.visit:focus-visible {
  transform: translateY(-2px) scale(1.05);
}

.work-rows--all {
  overflow-y: auto;
  padding: 14px 0 18px;
  scrollbar-gutter: stable;
}

.work-rows--all::before {
  content: "complete register";
}

.work-rows--all .work-row--list {
  position: relative;
  top: auto;
  left: auto;
  width: calc(100% - 28px);
  height: 56px;
  margin: 0 14px 10px;
  grid-template-columns: minmax(0, 1fr) 66px;
}

.work-rows--all .work-row--list:last-child {
  margin-bottom: 14px;
}

@media (min-width: 701px) {
  .work-rows--all {
    scrollbar-width: thin;
    scrollbar-color: var(--blue) oklch(77% 0.066 82 / .45);
  }

  .work-rows--all::-webkit-scrollbar {
    width: 18px;
  }

  .work-rows--all::-webkit-scrollbar-track {
    background:
      radial-gradient(circle at 50% 16px, oklch(72% 0.13 82 / .5), transparent 16px),
      radial-gradient(circle at 50% calc(100% - 16px), oklch(72% 0.13 82 / .42), transparent 16px),
      repeating-linear-gradient(180deg, oklch(56% 0.116 75 / .22) 0 5px, transparent 5px 14px),
      linear-gradient(90deg, oklch(43% 0.09 73 / .28), oklch(90% 0.047 86 / .38), oklch(43% 0.09 73 / .28));
    border: 1px solid oklch(49% 0.08 75 / .45);
    border-radius: 999px;
    box-shadow:
      inset 0 0 0 1px oklch(96% 0.035 88 / .34),
      inset 0 10px 18px oklch(22% 0.05 70 / .14);
  }

  .work-rows--all::-webkit-scrollbar-thumb {
    min-height: 92px;
    background:
      url("assets/processed/atelier-seal-new.webp") center 11px / 28px 28px no-repeat,
      radial-gradient(circle at 50% 24px, oklch(84% 0.12 84 / .84), transparent 27px),
      linear-gradient(180deg, var(--blue-2), var(--blue) 44%, oklch(26% 0.11 260));
    border: 3px double oklch(74% 0.13 83 / .86);
    border-radius: 999px;
    box-shadow:
      inset 0 0 0 1px oklch(96% 0.04 88 / .25),
      0 0 12px oklch(70% 0.12 84 / .28);
  }

  .work-rows--all::-webkit-scrollbar-thumb:hover {
    background:
      url("assets/processed/enter-badge-new.webp") center 11px / 30px 30px no-repeat,
      radial-gradient(circle at 50% 24px, oklch(88% 0.11 86 / .92), transparent 29px),
      linear-gradient(180deg, oklch(43% 0.13 253), var(--blue), oklch(25% 0.11 260));
  }

  .work-rows--all::-webkit-scrollbar-button:single-button {
    height: 18px;
    background:
      radial-gradient(circle, oklch(78% 0.12 83 / .9) 0 4px, var(--blue) 5px 7px, transparent 8px),
      linear-gradient(180deg, oklch(89% 0.05 86 / .8), oklch(63% 0.1 78 / .34));
    border: 1px solid oklch(49% 0.08 75 / .38);
  }
}

.catalogue-scroll-rail {
  --thumb-h: 180px;
  --thumb-y: 0px;
  position: absolute;
  left: 1156px;
  top: 198px;
  z-index: 11;
  width: 30px;
  height: 512px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 220ms cubic-bezier(.16, 1, .3, 1), transform 220ms cubic-bezier(.16, 1, .3, 1);
}

.catalogue-scroll-rail.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.catalogue-scroll-rail::before {
  content: "";
  position: absolute;
  inset: 5px 8px;
  background:
    radial-gradient(circle at 50% 10px, oklch(82% 0.12 84 / .86) 0 4px, var(--blue) 5px 8px, transparent 9px),
    radial-gradient(circle at 50% calc(100% - 10px), oklch(82% 0.12 84 / .76) 0 4px, var(--blue) 5px 8px, transparent 9px),
    repeating-linear-gradient(180deg, transparent 0 10px, oklch(55% 0.11 76 / .28) 10px 13px, transparent 13px 22px),
    linear-gradient(90deg, oklch(36% 0.09 258 / .36), oklch(91% 0.048 86 / .5), oklch(36% 0.09 258 / .36));
  border: 1px solid oklch(47% 0.08 76 / .55);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px oklch(96% 0.035 88 / .36),
    0 0 12px oklch(23% 0.06 66 / .18);
}

.catalogue-scroll-rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(51% 0.09 76 / .6), transparent);
}

.catalogue-scroll-rail__thumb {
  position: absolute;
  left: 1px;
  top: 0;
  width: 28px;
  height: var(--thumb-h);
  transform: translateY(var(--thumb-y));
  background:
    url("assets/processed/atelier-seal-new.webp") center 12px / 32px 32px no-repeat,
    radial-gradient(circle at 50% 28px, oklch(87% 0.12 84 / .9), transparent 33px),
    linear-gradient(180deg, oklch(43% 0.13 253), var(--blue) 48%, oklch(24% 0.11 260));
  border: 3px double oklch(74% 0.13 83 / .9);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px oklch(96% 0.04 88 / .3),
    0 0 14px oklch(70% 0.12 84 / .3),
    0 8px 12px oklch(23% 0.06 67 / .18);
}

.catalogue-scroll-rail__thumb::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 52px;
  bottom: 12px;
  background:
    repeating-linear-gradient(180deg, oklch(84% 0.12 84 / .72) 0 2px, transparent 2px 9px);
  border-radius: 999px;
  opacity: .76;
}

@media (min-width: 701px) {
  .work-rows--all {
    scrollbar-width: none;
  }

  .work-rows--all::-webkit-scrollbar {
    width: 0;
  }
}

.work-row--list .work-copy strong {
  font-size: 16px;
}

.work-row--list .work-copy span:not(.kicker) {
  font-size: 11.5px;
}

.list-medium {
  letter-spacing: .08em;
}

.right-panel {
  padding-bottom: 120px;
  background:
    linear-gradient(180deg, oklch(91% 0.047 86 / .32), transparent 70%),
    oklch(88% 0.043 86 / .18);
}

.right-panel::before {
  letter-spacing: .16em;
}

.dossier {
  position: relative;
}

.dossier h3 {
  font-size: 34px;
  letter-spacing: -.01em;
}

.dossier__original {
  color: var(--gold);
  font-size: 17px;
}

.dossier__line {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.34;
}

.dossier__note {
  font-size: 14px;
  line-height: 1.48;
}

.dossier__url {
  font-size: 13.5px;
}

.dossier dl {
  margin-top: 20px;
}

.dossier dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
}

.dossier .dossier__actions {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid oklch(52% 0.07 75 / .28);
}

.dossier .dossier__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 8px 11px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, oklch(91% 0.06 86 / .72), oklch(82% 0.07 83 / .48));
  border: 1px solid oklch(52% 0.08 78 / .45);
  box-shadow: inset 0 0 0 1px oklch(96% 0.035 88 / .42);
}

.dossier .dossier__actions a:hover {
  color: var(--red);
  transform: translateY(-1px);
}

.archive-strip {
  display: none !important;
}

.seal {
  right: 76px;
  bottom: 6px;
  width: 118px;
  opacity: .96;
  filter:
    drop-shadow(0 18px 16px oklch(20% 0.055 65 / .38))
    drop-shadow(0 0 20px oklch(74% 0.12 84 / .28));
}

.seal-link,
.ribbon-link {
  display: none;
  pointer-events: none;
}

.wire {
  stroke-dasharray: 7 7;
  stroke-width: 2;
  animation: wire-drift 1600ms linear infinite;
}

@keyframes wire-drift {
  to { stroke-dashoffset: -14; }
}

.manuscript-unavailable {
  gap: 18px;
}

.manuscript-unavailable button {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  background: oklch(88% 0.053 84 / .76);
  border: 1px solid oklch(52% 0.08 78 / .45);
  cursor: pointer;
}

.stage[data-layout="tablet"] .work-rows {
  width: 490px;
}

.stage[data-layout="tablet"] .work-row {
  width: 466px;
  grid-template-columns: 1fr 62px;
}

.stage[data-layout="tablet"] .select-work {
  grid-template-columns: 136px minmax(0, 1fr);
}

.stage[data-layout="tablet"] .right-panel {
  right: 45px;
  width: 284px;
  height: 618px;
  padding: 50px 24px 110px;
}

.stage[data-layout="tablet"] .dossier h3 {
  font-size: 26px;
}

.stage[data-layout="tablet"] .dossier__line {
  font-size: 15.5px;
}

.stage[data-layout="tablet"] .dossier__note {
  font-size: 12.5px;
  line-height: 1.38;
}

.stage[data-layout="tablet"] .dossier .dossier__actions {
  margin-top: 14px;
  padding-top: 12px;
}

.stage[data-layout="tablet"] .seal {
  right: 38px;
  bottom: 18px;
  width: 78px;
}

.stage[data-layout="tablet"] .work-rows--all .work-row--list {
  height: 50px;
  margin: 0 12px 9px;
  width: calc(100% - 24px);
}

.stage[data-layout="tablet"] .catalogue-scroll-rail {
  left: 836px;
  top: 198px;
  height: 486px;
  width: 27px;
}

.stage[data-layout="tablet"] .catalogue-scroll-rail__thumb {
  width: 25px;
}

.stage[data-layout="tablet"] .select-work--list {
  grid-template-columns: 34px minmax(0, 1fr) 76px;
}

.stage[data-layout="mobile"] {
  background-image:
    url("assets/processed/stage-mobile.webp"),
    linear-gradient(180deg, oklch(88% 0.047 86), oklch(82% 0.057 82));
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: top center, center;
}

.stage[data-layout="mobile"] .initial {
  top: 30px;
}

.stage[data-layout="mobile"] .left-panel {
  top: 124px;
  height: 190px;
  background: oklch(89% 0.045 86 / .28);
}

.stage[data-layout="mobile"] .folio,
.stage[data-layout="mobile"] .folio:nth-child(n) {
  min-height: 60px;
  grid-template-columns: 45px 1fr 17px;
  padding: 6px 7px;
}

.stage[data-layout="mobile"] .folio strong {
  font-size: 11.5px;
}

.stage[data-layout="mobile"] .folio em {
  font-size: 9.5px;
}

.stage[data-layout="mobile"] .work-rows {
  top: 350px;
  height: 340px;
}

.stage[data-layout="mobile"] .work-row {
  top: calc(12px + var(--row-index) * 88px);
  height: 76px;
  grid-template-columns: 1fr 64px;
}

.stage[data-layout="mobile"] .select-work {
  grid-template-columns: 82px minmax(0, 1fr);
  column-gap: 9px;
  padding: 7px;
}

.stage[data-layout="mobile"] .preview-frame {
  width: 78px;
  height: 52px;
}

.stage[data-layout="mobile"] .work-copy strong {
  font-size: 15.5px;
  line-height: 1.05;
}

.stage[data-layout="mobile"] .work-copy span:not(.kicker) {
  font-size: 11px;
  line-height: 1.22;
}

.stage[data-layout="mobile"] .visit {
  width: 64px;
}

.stage[data-layout="mobile"] .visit img {
  width: 48px;
  height: 48px;
}

.stage[data-layout="mobile"] .work-rows--all {
  height: 340px;
  padding-top: 8px;
}

.stage[data-layout="mobile"] .work-rows--all .work-row--list,
.stage[data-layout="mobile"] .work-row--list {
  top: auto;
  left: auto;
  width: calc(100% - 18px);
  height: 56px;
  margin: 0 9px 8px;
  grid-template-columns: minmax(0, 1fr) 56px;
}

.stage[data-layout="mobile"] .select-work--list {
  grid-template-columns: 25px minmax(0, 1fr);
  column-gap: 7px;
  padding: 7px 7px;
}

.stage[data-layout="mobile"] .work-row--list .work-copy strong {
  font-size: 13px;
  line-height: 1.08;
}

.stage[data-layout="mobile"] .work-row--list .work-copy span:not(.kicker) {
  font-size: 10px;
  line-height: 1.14;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.stage[data-layout="mobile"] .visit--list {
  width: 56px;
}

.stage[data-layout="mobile"] .visit--list img {
  width: 40px;
  height: 40px;
}

.stage[data-layout="mobile"] .right-panel {
  top: 716px;
  height: 278px;
  padding: 34px 24px 32px;
  background:
    linear-gradient(180deg, oklch(91% 0.045 86 / .46), oklch(87% 0.045 84 / .24));
}

.stage[data-layout="mobile"] .right-panel::before {
  left: 96px;
}

.stage[data-layout="mobile"] .dossier {
  max-height: none;
  overflow: visible;
}

.stage[data-layout="mobile"] .dossier h3 {
  font-size: 23px;
  line-height: 1.02;
}

.stage[data-layout="mobile"] .dossier__original {
  display: block;
  margin: -4px 0 7px;
  font-size: 13px;
}

.stage[data-layout="mobile"] .dossier__line {
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.28;
}

.stage[data-layout="mobile"] .dossier h4 {
  display: none;
}

.stage[data-layout="mobile"] .dossier__note {
  display: none;
}

.stage[data-layout="mobile"] .dossier__url,
.stage[data-layout="mobile"] .dossier dl {
  display: none;
}

.stage[data-layout="mobile"] .dossier .dossier__actions {
  position: static;
  display: flex;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid oklch(52% 0.07 75 / .22);
}

.stage[data-layout="mobile"] .dossier .dossier__actions a {
  min-height: 56px;
  padding: 11px 14px;
  font-size: 11px;
}

.stage[data-layout="mobile"] .seal {
  right: 38px;
  bottom: 26px;
  width: 74px;
}

.stage[data-layout="mobile"] .seal-link,
.stage[data-layout="mobile"] .ribbon-link {
  display: none;
}

.right-panel {
  padding-bottom: 34px;
  background:
    linear-gradient(180deg, oklch(94% 0.04 88 / .78), oklch(89% 0.045 86 / .7)),
    oklch(91% 0.04 86 / .68);
  box-shadow:
    inset 0 0 0 1px oklch(98% 0.028 88 / .5),
    0 8px 18px oklch(30% 0.055 72 / .12);
}

.right-panel .dossier {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.dossier .dossier__body {
  display: block;
  min-height: 0;
  overflow: auto;
  padding-right: 8px;
  border-top: 0;
  scrollbar-width: thin;
  scrollbar-color: oklch(52% 0.08 78 / .45) transparent;
}

.dossier .dossier__body::-webkit-scrollbar {
  width: 4px;
}

.dossier .dossier__body::-webkit-scrollbar-thumb {
  background: oklch(52% 0.08 78 / .45);
}

.dossier .dossier__actions {
  align-self: end;
  width: 100%;
  margin-top: 0;
  padding-top: 12px;
}

.dossier .dossier__actions a {
  justify-content: center;
}

.stage[data-layout="tablet"] .right-panel {
  padding-bottom: 30px;
}

.stage[data-layout="tablet"] .right-panel .dossier {
  gap: 12px;
}

.stage[data-layout="mobile"] .right-panel {
  padding-bottom: 24px;
}

.stage[data-layout="mobile"] .right-panel .dossier {
  max-height: none;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.stage[data-layout="mobile"] .dossier .dossier__body {
  overflow: hidden;
  padding-right: 0;
}

.stage[data-layout="mobile"] .dossier .dossier__actions {
  position: static;
  width: 100%;
  margin-top: 0;
  padding-top: 10px;
}

.stage[data-layout="mobile"] .dossier .dossier__actions a {
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .stage.is-ready .work-row,
  .wire {
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .viewport {
    place-items: start center;
  }
}
