/* September 2026: scoped artist collections and editorial alignment. */
.landing-page .gallery-story__copy { min-width: 0; }
.gallery-page .gallery__heading { text-align: center; }
.gallery-page .gallery__heading h1 { margin-inline: auto; }
.landing-page #gallery-story-title { font-size: clamp(2rem, 4.1vw, 4.5rem); }
.landing-page #gallery-story-title .gallery-title__line {
  white-space: nowrap;
  color: #171719 !important;
  -webkit-text-fill-color: #171719 !important;
  background: none !important;
  filter: none !important;
  text-shadow: none !important;
}
.landing-page .lab-bridge__copy > p:last-child { font-weight: 600; }
@media (min-width: 981px) {
  .landing-page #gallery-story-title { font-size: clamp(3.25rem, 5.45vw, 5.5rem); }
  .landing-page .gallery-story__copy > p:not(.eyebrow) { color: rgba(255,255,255,.94) !important; font-weight: 600; line-height: 1.55; }
  .landing-page .idea__copy {
    align-self: start !important;
    margin-top: var(--idea-copy-offset, 2rem) !important;
    top: calc(7.5rem + var(--idea-copy-offset, 2rem)) !important;
  }
  .landing-page .gallery-rotation .gallery-story__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}
@media (max-width: 980px) {
  .landing-page #gallery-story-title {
    font-size: clamp(2.45rem, 10.5vw, 4.85rem);
    line-height: .91;
    letter-spacing: -.065em;
  }
  .landing-page .gallery-story__copy > p:not(.eyebrow) {
    color: #171719 !important;
    font-weight: 600;
    line-height: 1.55;
  }
}
.gallery-page .art-card__identity {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.gallery-page .art-card__identity > div { min-width: 0; }
.gallery-page .art-card__identity .art-card__avatar {
  position: static;
  width: 3.3rem;
  height: 3.3rem;
  aspect-ratio: 1;
  flex: 0 0 3.3rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  transform: none;
  margin: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
}
.gallery-page .art-card__identity h2 { font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.gallery-page .art-card__identity h2::before,
.product-sheet__author h3::before {
  content: "© ";
  color: #171719;
  font-size: .72em;
  font-weight: 400;
  opacity: .88;
  vertical-align: .08em;
}
.gallery-page .art-card__role { color: var(--gold) !important; font-size: .64rem !important; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.gallery-page .filter-price-toggle,
.gallery-page .filter-price-panel { display: none; }
.gallery-page .content-type-switch {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; gap: 0; width: 11.2rem; padding: .16rem; border: 1px solid rgba(255,255,255,.32); border-radius: 999px;
  background: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); backdrop-filter: blur(14px);
}
.gallery-page .filter-field__price { color: #fff; }
.gallery-page input[type="range"] { appearance: none; -webkit-appearance: none; height: .62rem; padding: 0; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: linear-gradient(90deg, #efc43e 0 var(--range-progress,100%), rgba(255,255,255,.16) var(--range-progress,100%) 100%); box-shadow: inset 0 1px 2px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.16); accent-color: #efc43e; cursor: pointer; }
.gallery-page input[type="range"]::-webkit-slider-runnable-track { height: .62rem; border-radius: 999px; background: transparent; }
.gallery-page input[type="range"]::-webkit-slider-thumb { width: 1rem; height: 1rem; margin-top: -.26rem; -webkit-appearance: none; appearance: none; border: 2px solid #fff0ab; border-radius: 50%; background: #efc43e; box-shadow: 0 2px 7px rgba(67,43,0,.25); }
.gallery-page input[type="range"]::-moz-range-track { height: .62rem; border-radius: 999px; background: rgba(255,255,255,.16); }
.gallery-page input[type="range"]::-moz-range-progress { height: .62rem; border-radius: 999px; background: #efc43e; }
.gallery-page input[type="range"]::-moz-range-thumb { width: .82rem; height: .82rem; border: 2px solid #fff0ab; border-radius: 50%; background: #efc43e; box-shadow: 0 2px 7px rgba(67,43,0,.25); }
.gallery-page .content-type-switch::before { position: absolute; inset: .16rem auto .16rem .16rem; width: calc(50% - .16rem); border-radius: 999px; background: linear-gradient(135deg,#ffe781,#d7a616 70%,#a46c00); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 .25rem .7rem rgba(0,0,0,.16); content: ""; transform: translateX(var(--switch-x, 0)); transition: transform 620ms cubic-bezier(.16,1,.3,1), filter 420ms ease; }
.gallery-page .content-type-switch:has(button[data-content-type="artist"][aria-pressed="true"]) { --switch-x: 100%; }
.gallery-page .content-type-switch button { position: relative; z-index: 1; display: grid; min-width: 0; min-height: 2.35rem; place-items: center; border: 0; border-radius: 999px; padding: .42rem .35rem; background: transparent; color: rgba(255,255,255,.85); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; transition: color 300ms ease, transform 420ms cubic-bezier(.16,1,.3,1); }
.gallery-page .content-type-switch button[aria-pressed="true"] { color: #171719; }
.gallery-page .content-type-switch button:active { transform: scale(.96); }
.gallery-page .filters.is-category-exiting .category-filter__primary .filter-chip { pointer-events: none; animation: category-label-out 170ms cubic-bezier(.45,0,.2,1) both; }
.gallery-page .filters.is-category-entering .category-filter__primary .filter-chip { animation: category-label-in 520ms cubic-bezier(.16,1,.3,1) both; }
.gallery-page .filters.is-category-entering .category-filter__primary .filter-chip:nth-child(2) { animation-delay: 35ms; }
.gallery-page .filters.is-category-entering .category-filter__primary .filter-chip:nth-child(3) { animation-delay: 70ms; }
@keyframes category-label-out { to { opacity: 0; filter: blur(4px); transform: translate3d(0,-.75rem,0) scale(.96); } }
@keyframes category-label-in { from { opacity: 0; filter: blur(5px); transform: translate3d(0,.8rem,0) scale(.96); } 65% { filter: blur(0); } to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); } }
.gallery-page .filter-chip.is-active {
  border-color: rgba(255,242,186,.92);
  background:
    radial-gradient(circle at 25% -30%, rgba(255,255,255,.55), transparent 44%),
    linear-gradient(135deg, #f7dc70 0%, #d8a91b 60%, #9d6500 100%);
  color: #171719;
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 .38rem .9rem rgba(89,57,0,.22);
}
.product-sheet__visual { min-width: 0; align-content: start; }
.product-sheet__sections {
  display: flex;
  justify-self: center;
  align-items: center;
  width: min(100%, 25rem);
  padding: .3rem;
  gap: .3rem;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 5px 18px rgba(0,0,0,.07);
  backdrop-filter: blur(16px);
}
.product-sheet__sections button {
  flex: 1;
  min-width: 0;
  padding: .7rem .6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #343434;
  font: inherit;
  font-weight: 650;
  font-size: .86rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.product-sheet__sections button[aria-pressed="true"] { background: #303134; color: white; }
.product-sheet__sections button:focus-visible,
.product-sheet__variants button:focus-visible { outline: 2px solid #997315; outline-offset: 3px; }
.product-sheet__variants {
  display: grid;
  grid-template-columns: repeat(var(--variant-count, 2), minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
}
.product-sheet__variants button {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: .45rem;
  padding: .4rem;
  min-width: 0;
  border-radius: 14px;
  color: #242424;
}
.product-sheet__variants button img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 7rem;
  object-fit: cover;
  border-radius: 10px;
}
.product-sheet__variants button span { font-size: .78rem; padding: 0 .25rem .25rem; }
.product-sheet__buy:disabled { cursor: not-allowed; }
.product-sheet__whatsapp {
  display: inline-flex;
  width: 100%;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  box-sizing: border-box;
  margin-top: .65rem;
  border: 1px solid rgba(211,164,27,.72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,248,218,.46));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 .55rem 1.3rem rgba(115,82,7,.1);
  color: #9c6900;
  font-size: .84rem;
  font-weight: 800;
  text-align: center;
  transition: transform 360ms cubic-bezier(.16,1,.3,1), box-shadow 360ms ease, background 360ms ease;
}
.product-sheet__whatsapp svg { width: 1.12rem; height: 1.12rem; flex: 0 0 auto; fill: currentColor; }
.product-sheet__whatsapp:hover,
.product-sheet__whatsapp:focus-visible { background: linear-gradient(135deg, #fff, rgba(255,237,154,.72)); box-shadow: inset 0 1px 0 #fff, 0 .8rem 1.65rem rgba(115,82,7,.16); transform: translateY(-.16rem); }
.product-sheet__whatsapp:active { transform: scale(.985); }
.product-sheet__demo-note { margin: .7rem 0 0; font-size: .8rem; line-height: 1.5; color: #555; }
.product-sheet__demo-note[hidden] { display: none; }
/* Gold CTA in the gallery section, matched to the hero material. */
.landing-page .gallery-rotation__cta {
  border-color: rgba(255,242,186,.88);
  background:
    radial-gradient(circle at 22% -28%, rgba(255,255,255,.58), transparent 44%),
    linear-gradient(135deg, #f4d96f 0%, #d7a91c 57%, #9b6500 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(72,44,0,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 .7rem 1.6rem rgba(100,67,0,.24);
}
.landing-page .gallery-rotation__cta:hover,
.landing-page .gallery-rotation__cta:focus-visible {
  color: #171719;
  background:
    radial-gradient(circle at 25% 0%, rgba(255,255,255,.68), transparent 45%),
    linear-gradient(135deg, #ffec91 0%, #e0b42a 58%, #ac7200 100%);
  text-shadow: none;
}
@media (min-width: 1181px) {
  .gallery-page .filters {
    width: min(calc(100% - 2rem), 70rem);
    margin-inline: auto;
    padding-inline: 1.25rem;
    box-sizing: border-box;
  }
  .gallery-page .filters__row {
    display: grid;
    width: min(100%, 66.5rem);
    margin-inline: auto;
    grid-template-columns: 12rem 28rem 24rem;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
  }
  .gallery-page .content-type-switch { width: 12rem; }
  .gallery-page .category-filter { display: block; min-width: 0; padding: 0; border: 0; }
  .gallery-page .category-filter__primary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: .55rem;
  }
  .gallery-page .category-filter .filter-chip {
    width: 100%;
    min-width: 0;
    padding-inline: .55rem;
  }
  .gallery-page .filter-field--range {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
    grid-template-rows: auto 1rem;
    gap: .35rem;
  }
  .gallery-page .filter-field--range input[type="range"] { width: 100% !important; max-width: none !important; }
  .gallery-page .filters__row > .filter-field--range { grid-column: 3; }
  .gallery-page .filter-price-toggle, .gallery-page .filter-price-panel { display: none; }
}

/* A gold perimeter makes the selected object tangible without adding visual noise. */
.gallery-page .art-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(23,23,25,.13);
  transition: opacity 280ms ease, transform 550ms var(--ease), box-shadow 550ms ease, border-color 360ms ease;
}
.gallery-page .art-card::after {
  position: absolute;
  z-index: 20;
  inset: -1px;
  box-sizing: border-box;
  border: 3px solid var(--card-outline, transparent);
  border-radius: calc(var(--radius) + 1px);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: border-color 240ms ease, opacity 240ms ease;
}
.gallery-page .art-card:hover,
.gallery-page .art-card:focus-within {
  --card-outline: #d99c00;
  border-color: #d99c00;
  box-shadow: 0 1.6rem 3.9rem rgba(133,91,0,.17);
}
.gallery-page .art-card:hover::after,
.gallery-page .art-card:focus-within::after { opacity: 1; }
.gallery-page .art-card:active { --card-outline: #f3bd18; border-color: #f3bd18; box-shadow: 0 1.1rem 2.8rem rgba(133,91,0,.16); }

/* Visible provenance on every public artwork preview. */
.gallery-page .art-card__media,
.product-sheet__media,
.product-sheet__variants button,
.art-lightbox__content {
  position: relative;
}
.gallery-page .art-card__media::after,
.product-sheet__media::after,
.product-sheet__variants button::after,
.art-lightbox::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,250,231,.46);
  background: none !important;
  content: "stampafineart.art";
  font: 750 clamp(.82rem, 2.2vw, 1.55rem)/1 Inter, sans-serif;
  letter-spacing: .17em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
  text-transform: uppercase;
  transform: rotate(-28deg);
}
.product-sheet__variants button::after { font-size: clamp(.46rem, 1vw, .7rem); }

/* Keep the full-screen artwork proportionate to the actual viewport. */
.art-lightbox {
  padding: clamp(4.5rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 5rem);
  box-sizing: border-box;
}
.art-lightbox > img {
  width: auto;
  height: auto;
  max-width: min(88vw, 78rem);
  max-height: 78vh;
  object-fit: contain;
}
@media (max-width: 760px) {
  .art-lightbox { padding: 4.5rem 1.1rem 2rem; }
  .art-lightbox > img { max-width: 92vw; max-height: 72vh; }
}

/* Desktop cards: the identity fills the body optically, leaving equal top and bottom breathing room. */
@media (min-width: 761px) {
  .gallery-page .art-card__body {
    min-height: 0;
    padding: 1.15rem;
  }
  .gallery-page .art-card__identity .art-card__avatar {
    width: 3.55rem;
    height: 3.55rem;
    flex-basis: 3.55rem;
  }
  .gallery-page .art-card__identity h2 { font-size: clamp(1.35rem, 1.9vw, 1.78rem); }
}

/* The gallery changes language with a soft exit and a staggered, blurred arrival. */
.gallery-page .art-grid.is-content-exiting .art-card:not([hidden]) {
  animation: gallery-card-out 170ms cubic-bezier(.45,0,.2,1) both;
}
.gallery-page .art-grid.is-content-entering .art-card:not([hidden]) {
  animation: gallery-card-in 520ms cubic-bezier(.16,1,.3,1) both;
}
.gallery-page .art-grid.is-content-entering .art-card:nth-child(2) { animation-delay: 55ms; }
@keyframes gallery-card-out {
  to { opacity: 0; filter: blur(6px); transform: translate3d(0,-.75rem,0) scale(.985); }
}
@keyframes gallery-card-in {
  from { opacity: 0; filter: blur(7px); transform: translate3d(0,.9rem,0) scale(.98); }
  65% { filter: blur(0); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* One restrained motion language for navigation, cards and controls. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 720ms ease, transform 880ms cubic-bezier(.16,1,.3,1); }
  .site-header, .primary-nav, .button, .header-cta, .gallery-rotation__cta, .lab-bridge__cta, .product-sheet__buy, .art-card__purchase button { transition-timing-function: cubic-bezier(.16,1,.3,1); }
  .primary-nav a, .art-card, .process-card, .contact-card { will-change: transform; }
  .art-card:hover, .process-card:hover, .contact-card:hover { transform: translate3d(0,-.42rem,0); }
  .product-sheet__variants button { transition: transform 420ms cubic-bezier(.16,1,.3,1), border-color 320ms ease, box-shadow 420ms ease; }
  .product-sheet__variants button:hover { transform: translate3d(0,-.18rem,0); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page .content-type-switch::before,
  .gallery-page .content-type-switch button,
  .gallery-page .filters.is-category-exiting .category-filter__primary .filter-chip,
  .gallery-page .filters.is-category-entering .category-filter__primary .filter-chip { animation: none; transition: none; }
}
@media (min-width: 761px) {
  .product-sheet__layout {
    grid-template-areas:
      "visual details"
      "visual author"
      "visual purchase";
    grid-template-rows: auto auto auto;
  }
  .product-sheet__author {
    align-self: start;
    margin-top: 0;
  }
  .product-sheet__purchase-form { margin-top: 0; }
}
.product-sheet__visual,
.product-sheet__media,
.product-sheet__variants { width: 100%; max-width: 100%; box-sizing: border-box; }
.product-sheet__variants > button { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 760px) {
  .gallery-page .gallery__heading { text-align: center; }
  .gallery-page .filters { position: relative; height: 7.9rem; min-height: 7.9rem; padding: .8rem; box-sizing: border-box; overflow: hidden; }
  .gallery-page .filters__row { height: 100%; grid-template-columns: minmax(0,1fr) auto; align-content: center; row-gap: .65rem; align-items: center; }
  .gallery-page .category-filter { grid-column: 1 / -1; grid-row: 2; }
  .gallery-page .content-type-switch { width: 100%; min-width: 0; box-sizing: border-box; justify-self: stretch; }
  .gallery-page .content-type-switch button { min-height: 2.65rem; font-size: .76rem; }
  .gallery-page .filter-field--range { display: none; }
  .gallery-page .filter-price-toggle { display: inline-flex; align-items: center; justify-content: center; width: 7.2rem; min-width: 7.2rem; min-height: 2.65rem; padding: 0; box-sizing: border-box; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
  .gallery-page .content-type-switch,
  .gallery-page .filter-price-toggle { position: relative; z-index: 4; pointer-events: auto; touch-action: manipulation; }
  .gallery-page .category-filter { position: relative; z-index: 1; }
  .gallery-page .filter-price-panel { position: absolute; z-index: 2; inset: .7rem .9rem; display: grid; align-content: center; justify-items: center; gap: .42rem; width: auto; padding: 0; box-sizing: border-box; animation: price-panel-in 420ms cubic-bezier(.16,1,.3,1) both; }
  .gallery-page .filter-price-panel[hidden] { display: none; }
  .gallery-page .filter-price-panel > p { display: flex; align-items: baseline; justify-content: center; gap: .35rem; margin: 0 0 .1rem; color: #fff; font-size: 1rem; font-weight: 850; transform: translateY(-.12rem); }
  .gallery-page .filter-price-panel output { color: #fff; font-size: .9rem; font-weight: 850; }
  .gallery-page .filter-price-panel input { width: 100%; margin: 0; }
  .gallery-page .filter-price-panel button { width: 7.2rem; min-width: 7.2rem; min-height: 2.2rem; margin-top: .1rem; padding: 0; box-sizing: border-box; border: 1px solid rgba(255,242,186,.88); border-radius: 999px; background: linear-gradient(135deg,#f7dc70,#d8a91b 60%,#9d6500); color: #fff; text-shadow: 0 1px 2px rgba(68,43,0,.38); font: inherit; font-size: .75rem; font-weight: 850; cursor: pointer; }
  .gallery-page .filters.is-price-open { height: 7.9rem; min-height: 7.9rem; }
  .gallery-page .filters.is-price-open .filters__row > :not(.filter-price-panel) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-.35rem); transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms; }
  .gallery-page .filters__results { grid-column: 1 / -1; grid-row: 3; }
}
@keyframes price-panel-in { from { opacity: 0; filter: blur(5px); transform: translateY(.6rem) scale(.98); } to { opacity: 1; filter: blur(0); transform: none; } }
@media (max-width: 980px) {
  .product-sheet__layout { grid-template-areas: "visual" "author" "details" "purchase"; row-gap: 1rem; }
  .product-sheet__author { margin: 0; }
}
@media (max-width: 760px) {
  .landing-page .gold-flow {
    background:
      radial-gradient(ellipse 105% 30% at 50% 9%, rgba(255,244,187,.42), transparent 78%),
      radial-gradient(ellipse 92% 32% at 10% 51%, rgba(244,203,65,.2), transparent 79%),
      radial-gradient(ellipse 94% 31% at 90% 84%, rgba(132,88,0,.12), transparent 82%),
      linear-gradient(180deg in oklab,
        var(--art-ivory-soft) 0%,
        #f4e3a0 11%,
        #e6bd32 33%,
        #d4a51c 53%,
        #e6bf43 71%,
        #f1dd9d 89%,
        var(--art-ivory) 100%);
  }
  .gallery-page .art-card__body { padding: .9rem; gap: .6rem; }
  .gallery-page .art-card__identity { gap: .6rem; }
  .gallery-page .art-card__identity .art-card__avatar { width: 2.6rem; height: 2.6rem; flex-basis: 2.6rem; }
  .gallery-page .art-card__identity h2 { font-size: 1.08rem; line-height: 1.18; }
  .gallery-page .art-card__identity p { font-size: .73rem; line-height: 1.4; }
  .gallery-page .art-card__purchase button { min-width: 0; padding-inline: .85rem; }
  .product-sheet__sections button { padding: .65rem .4rem; font-size: .8rem; }
}

/* Responsive hero sources: desktop stays detailed, the mobile image is lighter. */
.landing-page .hero__media { background-image: url("../images/grano-e-cielo-andrea-optimized.jpg") !important; }
@media (max-width: 760px) {
  .landing-page .hero__media { background-image: url("../images/paesaggio-1-mobile-optimized.jpg") !important; }
}

/* Andrea Fadini: gallery-grade switches and a compact, scrollable work rail. */
.gallery-page .product-sheet__close {
  border-color: rgba(255,255,255,.68);
  background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(231,226,214,.5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), inset 0 -1px 0 rgba(255,255,255,.28), 0 .5rem 1.25rem rgba(33,29,20,.16);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(.16,1,.3,1);
}
.gallery-page .product-sheet__close:hover,
.gallery-page .product-sheet__close:focus-visible {
  border-color: rgba(137, 91, 0, .72);
  background: linear-gradient(145deg, #f9e58c 0%, #d9a914 55%, #a66a00 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), inset 0 -1px 0 rgba(104,65,0,.28), 0 .5rem 1.25rem rgba(100,64,0,.25);
  filter: saturate(1.1) brightness(1.03);
  transform: translateY(-.1rem) scale(1.05);
}
.gallery-page .product-sheet__close:active { transform: translateY(0) scale(.96); }
.gallery-page .product-sheet__close .product-sheet__close-stroke {
  background: #171719;
  box-shadow: 0 1px 0 rgba(255,255,255,.58);
  transition: none;
}
.gallery-page .product-sheet__close .product-sheet__close-stroke--first { transform: rotate(45deg); }
.gallery-page .product-sheet__close .product-sheet__close-stroke--second { transform: rotate(-45deg); }
.product-sheet__sections {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--section-count, 3), minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  isolation: isolate;
}
.product-sheet__sections::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: .3rem auto .3rem .3rem;
  width: calc((100% - .6rem) / var(--section-count, 3));
  border-radius: 999px;
  background: linear-gradient(135deg, #f8dd6f 0%, #dca80e 62%, #a46c00 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 .3rem .65rem rgba(139,91,0,.2);
  transform: translate3d(calc(var(--section-index, 0) * 100%), 0, 0);
  transition: transform 560ms cubic-bezier(.16,1,.3,1), width 420ms cubic-bezier(.16,1,.3,1);
}
.product-sheet__sections button,
.product-sheet__sections button[aria-pressed="true"] {
  position: relative;
  z-index: 1;
  background: transparent;
  color: #343434;
  transition: color 360ms cubic-bezier(.16,1,.3,1), transform 360ms cubic-bezier(.16,1,.3,1);
}
.product-sheet__sections button[aria-pressed="true"] { color: #171719; }
.product-sheet__variants-area {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
  gap: .5rem;
  align-items: center;
  width: 100%;
}
.product-sheet__variant-nav {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(44,44,46,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  color: #29292b;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform 280ms cubic-bezier(.16,1,.3,1), background 280ms ease, color 280ms ease, opacity 280ms ease;
}
.product-sheet__variant-nav:hover:not(:disabled),
.product-sheet__variant-nav:focus-visible { background: #e0af16; color: #171719; transform: scale(1.07); }
.product-sheet__variant-nav:disabled { opacity: .3; cursor: default; }
.product-sheet__variants {
  display: flex;
  gap: .65rem;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 0;
  padding: .12rem;
}
.product-sheet__variants::-webkit-scrollbar { display: none; }
.product-sheet__variants > button,
.product-sheet__variants > button:first-child {
  display: grid;
  grid-template-columns: 1fr;
  flex: 0 0 calc((100% - .65rem) / 2);
  width: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.product-sheet__variants > button img,
.product-sheet__variants > button:first-child img {
  width: 100%;
  height: auto;
  max-height: 7rem;
  aspect-ratio: 16 / 9;
}
.product-sheet__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-sheet__panel.is-variant-changing .product-sheet__media,
.product-sheet__panel.is-variant-changing .product-sheet__content,
.product-sheet__panel.is-variant-changing .product-sheet__purchase-form {
  animation: product-variant-arrival 460ms cubic-bezier(.16,1,.3,1) both;
}
.product-sheet__panel.is-variant-changing .product-sheet__variants button { animation: product-variant-arrival 520ms cubic-bezier(.16,1,.3,1) both; }
@keyframes product-variant-arrival {
  from { opacity: .18; filter: blur(5px); transform: translate3d(0,.55rem,0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); }
}
@media (max-width: 700px) {
  .product-sheet__variants-area { grid-template-columns: 2.15rem minmax(0, 1fr) 2.15rem; gap: .35rem; }
  .product-sheet__variant-nav { width: 2.15rem; height: 2.15rem; }
  .product-sheet__variants > button,
  .product-sheet__variants > button:first-child { flex-basis: 100%; grid-template-columns: 1fr; }
  .product-sheet__variants > button img,
  .product-sheet__variants > button:first-child img { width: 100%; height: auto; max-height: 8.2rem; aspect-ratio: 16 / 9; }
  .product-sheet__specs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .product-sheet__sections::before,
  .product-sheet__sections button,
  .product-sheet__variants,
  .product-sheet__variant-nav { transition: none; scroll-behavior: auto; }
  .product-sheet__panel.is-variant-changing .product-sheet__media,
  .product-sheet__panel.is-variant-changing .product-sheet__content,
  .product-sheet__panel.is-variant-changing .product-sheet__purchase-form,
  .product-sheet__panel.is-variant-changing .product-sheet__variants button { animation: none; }
}

/* Variants move only through the dedicated controls: no touch-scroll or clipped card. */
.product-sheet__variants-viewport {
  min-width: 0;
  overflow: hidden;
  padding: .12rem;
}
.product-sheet__variants {
  overflow: visible;
  padding: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 620ms cubic-bezier(.16,1,.3,1);
  touch-action: pan-y;
}
.product-sheet__variant-nav {
  border-color: rgba(168,119,0,.5);
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(236,224,180,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 .28rem .75rem rgba(30,25,12,.12);
}
.product-sheet__variant-nav span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding-bottom: .12em;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: .7;
}
.product-sheet__variant-nav:hover:not(:disabled),
.product-sheet__variant-nav:focus-visible {
  background: linear-gradient(145deg, #f9df73, #c58900);
  color: #171719;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 .35rem .9rem rgba(129,81,0,.22);
}
@media (prefers-reduced-motion: reduce) {
  .product-sheet__variants { transition: none; }
}

/* Keep the purchase action calm and readable; no bright liquid bloom crosses its label. */
.product-sheet__buy,
.product-sheet__buy:hover,
.product-sheet__buy:focus-visible,
.product-sheet__buy:active,
.product-sheet__buy.is-pointer-lit {
  border-color: rgba(255,239,174,.84);
  background:
    radial-gradient(circle at 24% -24%, rgba(255,255,255,.28), transparent 36%),
    linear-gradient(135deg, #f0d36b 0%, #c38d08 62%, #8b5a00 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(59,37,0,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 .85rem 1.75rem rgba(109,73,0,.24);
}
.product-sheet__buy > .sfa-pointer-light__glow { display: none !important; }
.product-sheet__title-row h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  letter-spacing: -.052em;
  line-height: .96;
  text-wrap: balance;
}
@media (max-width: 760px) {
  .product-sheet__title-row h2 {
    max-width: none;
    font-size: clamp(1.75rem, 7.8vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.045em;
  }
}

/* Desktop hierarchy: author below the work rail, purchase actions alongside the artwork details. */
@media (min-width: 981px) {
  .product-sheet__layout {
    grid-template-areas:
      "visual details"
      "author purchase";
    grid-template-rows: auto auto;
    align-items: start;
  }
  .product-sheet__author,
  .product-sheet__purchase-form {
    margin-top: 0;
  }
  .product-sheet__author { align-self: start; }
  .product-sheet__purchase-form {
    align-self: end;
    padding-top: 0;
  }
}
