.artwork-page {
  --surface-page: #fcfbf8;
  --surface-section-light: #fcfbf8;
  --text-primary: #1b2c36;
  --text-secondary: #64665f;
  --text-action: #b72c27;
  --stroke-subtle: #dfddd6;
  --focus-color: #1b2c36;
  --detail-ease: cubic-bezier(.22, 1, .36, 1);
}
.artwork-page .site-header { animation: none; }
.artwork-page .frame { max-width: 1600px; }
.detail-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 28px 24px; font-size: 1.0625rem; color: var(--text-secondary); }
.detail-breadcrumbs a:hover { color: var(--text-action); }
.detail-breadcrumbs [aria-current] { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr); align-items: start; gap: clamp(35px, 5.4vw, 96px); padding-bottom: clamp(64px, 7vw, 112px); }
.detail-layout > * { min-width: 0; }
.detail-visual { position: relative; }
.detail-view-tabs { display: flex; align-items: center; gap: 30px; margin-bottom: 15px; }
.detail-view-tabs button { position: relative; min-height: 44px; border: 0; padding: 0; background: none; color: var(--text-secondary); font-size: 1.125rem; cursor: pointer; }
.detail-view-tabs button[aria-selected=true] { color: var(--text-primary); }
.detail-view-tabs button::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--detail-ease); }
.detail-view-tabs button[aria-selected=true]::after { transform: scaleX(1); }
.detail-page-work .selected-display { aspect-ratio: auto; height: clamp(400px, 66svh, 700px); padding: clamp(36px, 5vw, 82px); background: #f0efeb; }
.detail-page-work .selected-display img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-page-work .selected-scan-icon { opacity: 1; inset: 12px 12px auto auto; }
.detail-page-work .selected-name { display: none; }
.detail-page-work .selected-display.is-detail img { width: 100%; height: 100%; object-fit: cover; clip-path: none; }
.detail-page-work .selected-display.is-detail { padding: 0; }
.detail-page-work:has(.is-detail) .selected-zoom::before { clip-path: none; }
.detail-thumbnails { display: flex; align-items: start; gap: 12px; margin-top: 16px; }
.detail-thumb { width: 70px; padding: 0; border: 0; background: none; font-size: 1rem; color: var(--text-secondary); text-align: left; cursor: pointer; }
.detail-thumb span { display: block; margin-top: 5px; }
.detail-thumb-image { display: grid; place-items: center; height: 70px; padding: 10px; background: #f0efeb; border: 1px solid transparent; transition: border-color 250ms ease; }
.detail-thumb-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-thumb[aria-pressed=true] .detail-thumb-image { border-color: #1b2c36; }
.detail-thumb[data-view=detail] .detail-thumb-image { padding: 0; overflow: hidden; }
.detail-thumb[data-view=detail] img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb[data-view=space] .detail-thumb-image { padding: 0; }
.detail-image-note { margin-top: 20px; font-size: 1rem; color: var(--text-secondary); }
.detail-copy { padding-top: 73px; }
.detail-size { margin: 0 0 12px; color: var(--text-secondary); font-size: 1.3rem; }
.detail-year { margin-top: 16px; font-size: 1.3rem; }
.detail-copy > .detail-price { margin-top: 10px; }
.detail-facts { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px 20px; }
.detail-facts dt { color: var(--text-secondary); }
.detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.detail-artist { display: inline-flex; min-height: 32px; margin-bottom: 10px; font-size: 1.25rem; }
.detail-copy h1 { font-size: clamp(2.8rem, 4.35vw, 5rem); font-weight: 400; line-height: .99; letter-spacing: -.035em; text-wrap: balance; }
.detail-category { margin-top: 18px; font-size: 1.25rem; color: var(--text-secondary); }
.detail-caption-note { margin-top: 11px; max-width: 43ch; font-size: 1rem; line-height: 1.3; color: var(--text-secondary); }
.detail-description { margin-top: 26px; font-size: clamp(1.25rem, 1.45vw, 1.5rem); line-height: 1.36; }
.detail-purchase { margin-top: 27px; }
.detail-price { font-size: 2rem; line-height: 1.2; }
.detail-price-note { margin-top: 3px; font-size: 1rem; color: var(--text-secondary); }
.detail-primary { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 53px; padding: 11px 20px; margin-top: 19px; border: 1px solid #1b2c36; background: #1b2c36; color: #fff; font-size: 1.25rem; cursor: pointer; transition: background 250ms, border-color 250ms; }
.detail-primary:hover { background: #b72c27; border-color: #b72c27; }
.detail-primary[aria-disabled=true] { background: transparent; color: #1b2c36; }
.detail-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 18px; margin-top: 5px; }
.detail-actions button, .detail-question, .detail-inline-action { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; border: 0; padding: 0; background: none; font-size: 1.125rem; cursor: pointer; }
.detail-actions svg { width: 20px; height: 20px; }
.detail-actions [aria-pressed=true] svg { fill: currentColor; }
.detail-actions :is(button,a):hover, .detail-question:hover, .detail-inline-action:hover { color: var(--text-action); }
.detail-question { margin-block: 6px 20px; }
.detail-accordions { margin-top: 9px; }
.detail-accordions details { border-top: 1px solid var(--stroke-subtle); }
.detail-accordions details:last-child { border-bottom: 1px solid var(--stroke-subtle); }
.detail-accordions summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; min-height: 55px; font-size: 1.1875rem; cursor: pointer; }
.detail-accordions summary::-webkit-details-marker { display: none; }
.detail-accordions summary::after { content: '+'; font-size: 1.375rem; font-weight: 400; }
.detail-accordions details[open] summary::after { content: '−'; }
.detail-accordions details > :not(summary) { margin: 0 0 18px; font-size: 1.125rem; line-height: 1.4; }
.detail-accordions a { text-decoration: underline; text-underline-offset: 4px; }
.detail-story { padding-block: clamp(55px, 6vw, 96px); background: linear-gradient(#fcfbf8, #f8f6f0 70px, #f8f6f0 calc(100% - 60px), #fcfbf8); }
.detail-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(25px, 7vw, 110px); align-items: center; }
.detail-story h2 { max-width: 11ch; font-size: clamp(2.7rem, 4.5vw, 4.5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.detail-story p { max-width: 46ch; margin-top: 23px; font-size: 1.4rem; line-height: 1.4; }
.detail-story .detail-story-note { font-size: 1rem; color: var(--text-secondary); }
.detail-story-image { position: relative; display: block; width: 100%; aspect-ratio: 1.45; padding: 0; border: 0; background: #eae8e0; overflow: hidden; cursor: zoom-in; }
.detail-story-image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.65); }
.detail-story-image span { position: absolute; inset: auto 16px 14px auto; display: grid; place-items: center; width: 40px; height: 40px; background: rgb(252 251 248 / 85%); font-size: 1.4rem; }
.detail-related { padding-block: clamp(60px, 7vw, 112px); }
.detail-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 33px; }
.detail-section-head h2 { font-size: clamp(2.6rem, 4.5vw, 4.4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.detail-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(22px, 3.5vw, 55px); }
.detail-related-mat { display: grid; place-items: center; aspect-ratio: 1; background: #eeede8; padding: 15%; }
.detail-related-mat img { max-width: 100%; max-height: 100%; height: 100%; width: 100%; object-fit: contain; transition: transform 600ms var(--detail-ease); }
.detail-related a:hover img { transform: scale(1.018); }
.detail-related h3 { margin: 14px 0 4px; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 400; line-height: 1.1; }
.detail-related h3 span { font-size: 1.125rem; padding-left: 6px; }
.detail-related p { color: var(--text-secondary); font-size: 1.125rem; }
.detail-space-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #e7e3da; }
.detail-space-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-space-overlay { position: absolute; left: var(--room-x,50%); top: var(--room-y,42%); width: var(--room-size,30%); transform: translate(-50%,-50%); touch-action: none; cursor: grab; filter: drop-shadow(2px 6px 5px rgb(0 0 0 / 19%)); }
.detail-space-overlay:active { cursor: grabbing; }
.detail-space-overlay img { display: block; width: 100%; height: auto; pointer-events: none; }
.is-round-art { clip-path: var(--artwork-clip, ellipse(49% 46.6% at 51% 51.6%)); }
.detail-space-overlay.is-round-overlay img { clip-path: var(--artwork-clip, ellipse(49% 46.6% at 51% 51.6%)); }
.detail-space-options { display: flex; flex-wrap: wrap; gap: 5px 20px; align-items: center; margin-top: 11px; }
.detail-space-options button, .detail-upload { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; padding: 0; background: none; font-size: 1.125rem; cursor: pointer; }
.detail-space-options button[aria-pressed=true] { text-decoration: underline; text-underline-offset: 5px; }
.detail-upload:hover, .detail-space-options button:hover { color: var(--text-action); }
.detail-space-caption { margin-top: 8px; font-size: 1rem; color: var(--text-secondary); }
.detail-room-controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding-top: 14px; margin-top: 11px; border-top: 1px solid var(--stroke-subtle); }
.detail-room-controls label { display: grid; gap: 8px; font-size: 1rem; }
.detail-room-controls input { width: 100%; accent-color: #1b2c36; }
.detail-room-controls .detail-inline-action { grid-column: 1/-1; }
.detail-feedback { font-size: 1rem; color: var(--text-action); }
.detail-missing { min-height: 60vh; padding-block: 70px; }
.detail-missing h1 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; line-height: 1; margin-bottom: 30px; }
.detail-mobile-title { display: none; }
.detail-page-work, .detail-copy { animation: detail-enter 900ms var(--detail-ease) backwards; }
.detail-copy { animation-delay: 110ms; }
@keyframes detail-enter { from { opacity: 0; transform: translateY(9px); } }
.detail-room-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.detail-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.detail-upload:has(input:focus-visible) { outline: 1px solid currentColor; outline-offset: 5px; }
@media(min-width: 1100px) and (min-height: 1020px) { .detail-copy { position: sticky; top: 28px; } }
@media(max-width: 1000px) {
  .detail-layout { grid-template-columns: minmax(0,1.25fr) minmax(270px,1fr); gap: 28px; }
  .detail-copy h1 { font-size: 2.9rem; }
  .detail-page-work .selected-display { padding: 35px; height: 480px; }
  .detail-view-tabs { gap: 24px; }
}
@media(max-width: 740px) {
  .detail-breadcrumbs { padding-block: 17px; font-size: 1rem; gap: 8px; }
  .detail-breadcrumbs [aria-current] { max-width: 23ch; }
  .detail-layout { display: flex; flex-direction: column; gap: 0; padding-bottom: 44px; }
  .detail-visual, .detail-copy { width: 100%; }
  .detail-mobile-title { display: block; margin-bottom: 18px; }
  .detail-mobile-title p { font-size: 1.125rem; margin-bottom: 7px; }
  .detail-mobile-title .detail-mobile-name { font-size: clamp(2.35rem, 9vw, 3.5rem); font-weight: 400; line-height: 1.01; letter-spacing: -.03em; }
  .detail-copy { padding-top: 28px; }
  .detail-copy > .detail-artist { display: none; }
  .detail-copy > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .detail-category { margin-top: 0; }
  .detail-caption-note { max-width: none; }
  .detail-page-work .selected-display { height: min(116vw, 560px); min-height: 330px; padding: 11%; }
  .detail-page-work--landscape .selected-display { height: clamp(185px,70vw,360px); min-height: 0; padding: 8%; }
  .detail-view-tabs { margin-bottom: 12px; }
  .detail-description { margin-top: 19px; font-size: 1.35rem; }
  .detail-purchase { margin-top: 21px; }
  .detail-thumbnails { margin-top: 12px; }
  .detail-story-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-story h2 { max-width: 15ch; }
  .detail-story p { font-size: 1.3rem; }
  .detail-story-image { aspect-ratio: 1.3; }
  .detail-section-head { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 24px; }
  .detail-related-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-related-mat { aspect-ratio: 1.15; padding: 15%; }
  .detail-related h3 { font-size: 1.7rem; }
  .detail-space-stage { aspect-ratio: 16 / 9; }
  .detail-space-options { gap: 2px 15px; }
  .detail-room-controls { grid-template-columns: 1fr; gap: 13px; }
}
@media(prefers-reduced-motion: reduce) {
  .detail-page-work, .detail-copy { animation: none; }
  .artwork-page *, .artwork-page *::before, .artwork-page *::after { scroll-behavior: auto; transition-duration: 0s; }
}
