.pack-surface, [data-pack-turn] {
  position: relative;
  display: block;
  aspect-ratio: 1;
  isolation: isolate;
  --pack-x: 0%; --pack-y: 0%;
}
.pack-surface > img, [data-pack-turn] > img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.pack-atlas-ready::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--pack-atlas) var(--pack-x) var(--pack-y) / 400% 400% no-repeat;
}
.pack-atlas-ready > img { visibility: hidden; }
.edition-model.pack-atlas-ready[data-angle="0"]::after { display: none; }
.edition-model.pack-atlas-ready[data-angle="0"] > img { visibility: visible; }
.catalog-section .overline span { background: #987538; }
.product-image > .pack-surface { width: 100%; height: 100%; max-width: 100%; aspect-ratio: 1; }
.product-image:has(.pack-surface) { container-type: size; }
.product-image > .pack-surface { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
.store-page .product-card .product-image .pack-surface img { transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  [data-pack-turn].pack-atlas-ready::after { display: none; }
  [data-pack-turn].pack-atlas-ready > img { visibility: visible; }
}
.pack-inspect {
  background: #fffdf8; border: 1px solid #d5c8aa; border-radius: 9px;
  margin-bottom: 20px; overflow: hidden; color: #30291d;
}
.pack-window {
  position: relative; isolation: isolate; overflow: hidden; height: clamp(244px, 34vh, 340px);
  background: radial-gradient(ellipse at 50% 40%, #fffcf3 20%, #e5d7b9 75%, #cfc1a4);
}
.pack-window model-viewer, .pack-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.pack-window model-viewer { opacity: 0; pointer-events: none; z-index: 1; touch-action: pan-y; --poster-color: transparent; --progress-bar-color: #82591e; }
.pack-window model-viewer.pack-model-ready { opacity: 1; pointer-events: auto; }
.pack-fallback { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; min-width: 0; container-type: size; touch-action: pan-y; cursor: grab; }
.pack-fallback[hidden] { display: none; }
.pack-fallback:active { cursor: grabbing; }
.pack-fallback .pack-surface { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
.pack-indicator {
  position: absolute; right: 12px; top: 10px; z-index: 2; pointer-events: none;
  padding: 2px 7px; border: 1px solid #a4926e; color: #4a3a1f; border-radius: 99px;
  font: 650 12px/1.5 var(--body); background: #fffcf2dd;
}
.pack-toolbar { display: flex; justify-content: center; align-items: stretch; gap: 4px; padding: 8px 8px 2px; }
.pack-toolbar button {
  min-width: 44px; min-height: 44px; padding: 5px 11px; background: #fff;
  color: #493416; border: 1px solid #cdbb97; border-radius: 4px; font: 660 14px/1.2 var(--body);
}
.pack-toolbar button:hover { background: #f1e6cf; }
.pack-hint, .pack-note { font-size: 13px; line-height: 1.45; color: #5f5342; padding: 8px 14px; }
.pack-note { border-top: 1px solid #e3d9c6; }
.pack-label { padding: 0 14px; }
.pack-label summary, .pack-label a { display: list-item; width: fit-content; min-height: 44px; padding-block: 11px; cursor: pointer; font-weight: 650; color: #614917; font-size: 14px; }
.pack-label a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.flat-label { max-width: 100%; overflow: auto; border: 1px solid #e1d5bc; }
.flat-label img { width: max(100%, 1050px); max-width: none; height: auto; display: block; }
.detail-layout { grid-template-columns: 1.15fr 1fr; }
.detail-visual { min-width: 0; }
.detail-bar { background: #252016; color: #fbf4e3; }
#detail-reference::before { background: #d1aa62; }
.dialog.product-dialog { color: #282419; background: #fffdf8; border-color: #b4a17c; }
.product-dialog::backdrop { background: #171309bd; }
.detail-close:is(:hover,:focus-visible) { background: #463c29; }
.detail-block h3,.detail-kicker,.detail-transcript,.detail-source { color: #685027; }
.detail-play { background: #785720; color: #fff; }
.detail-play:hover { background: #5f451c; }
.detail-block + .detail-block,.detail-footer { border-color: #ddd4c3; }
.product-dialog :focus-visible { outline-color: #926518; }
.detail-footer .button { background: #2f291d; }
.body-studio { background: #211d17; color: #fffbf0; }
.studio-inner {
  display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(25px, 6vw, 88px);
  align-items: center; padding-block: clamp(58px, 8vw, 124px);
}
.studio-copy h2 { max-width: 10ch; font: 700 clamp(50px, 6.6vw, 100px)/.89 var(--title); letter-spacing: -.035em; margin: 10px 0 20px; }
.studio-kicker { color: #edd498; font-size: 14px; font-weight: 650; }
.studio-copy p:not(.studio-kicker) { max-width: 45ch; color: #e2d7c2; font-size: clamp(15px, 1.3vw, 18px); }
.studio-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.studio-choices button, .app-explore-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border-radius: 4px; border: 1px solid #968561; background: #332c21; color: #f7edda; font-weight: 650;
}
.studio-choices button[aria-pressed="true"] { border-color: #f2dcac; background: #f2dcac; color: #282012; }
.studio-film { margin: 0; min-width: 0; }
.studio-film video { width: 100%; height: auto; aspect-ratio: 16/9; background: #17130e; }
.studio-film figcaption { margin-top: 12px; padding-left: 12px; border-left: 2px solid #cfad6d; color: #dfd1b8; font-size: 14px; }
.body-studio :focus-visible, .app-explore-links a:focus-visible { outline-color: #f1cc84; }
.app-explore-links { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 14px 10px 0 0; }
.app-explore-links a { text-underline-offset: 4px; }
.site-header .nav-toggle { display: none; }
@media (max-width: 800px) {
  body .site-header .nav { gap: 8px; }
  .site-header .nav-toggle {
    display: grid; place-items: center; min-width: 44px; min-height: 44px;
    padding: 0; color: #49391c; border: 1px solid #c8bca3; background: #fffdfa;
    border-radius: 50%; font: 20px/1 var(--body);
  }
  body .site-header .top-links { display: none; }
  body .site-header[data-nav-open] .top-links {
    display: grid; position: absolute; inset: 100% 0 auto; gap: 0;
    padding: 6px var(--gutter); border-bottom: 1px solid #c8bca3;
    background: #fffdfa; color: #292419; box-shadow: 0 12px 22px #3325101a;
  }
  body .site-header[data-nav-open] .top-links a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 520px) {
  body .site-header .nav-actions { gap: 4px; }
  body .site-header .bag-label, body .site-header .nav-install span:last-child { display: none; }
  body .site-header .nav-install .icon { display: inline-block; }
  body .site-header .nav-install, body .site-header .nav-bag { min-width: 44px; min-height: 44px; padding: 0 7px; gap: 3px; }
  .dialog.product-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
}
@media (max-width: 360px) {
  body .site-header .nav { width: calc(100% - 16px); gap: 4px; }
  body .site-header .brand { font-size: 22px; gap: 4px; }
  body .site-header .brand-emblem { width: 27px; height: 27px; }
}
@media (max-width: 760px) {
  .studio-inner, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-copy h2 { max-width: 13ch; }
}
