/* Crank and Canvas – Custom Commission
   Loaded by custom.html on top of styles.css + catalog.css.

   Direction: the site's white gallery language, with Apple-style pacing.
   Monochrome ink on white so the client canvases carry the colour.
   Shape system: all-sharp (radius 0), same as the rest of the site.
   Type: Cormorant Garamond (brand display) + Geist (UI/body).
   Motion: native CSS scroll-driven animations (animation-timeline) where
   supported, IntersectionObserver fallback elsewhere. Everything collapses to
   static under prefers-reduced-motion. */

.cc h1,
.cc h2,
.cc h3,
.cc legend,
.cx-option-title,
.cx-summary-total strong {
  font-variant-numeric: lining-nums;
}

.cc {
  /* Same values as styles.css / catalog.css / pages.css */
  --cx-bg: #ffffff;
  --cx-bg-2: #fafafa;
  --cx-bg-3: #f5f5f5;
  --cx-line: #e8e8e8;
  --cx-line-2: #8f8f8c;   /* 3:1 on white, for input and control boundaries */
  --cx-text: #1a1a1a;
  --cx-text-2: #666666;
  --cx-text-3: #767676;   /* 4.5:1 on white */
  --cx-error: #b3261e;
  --cx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cx-gutter: clamp(1rem, 4vw, 3rem);
  --cx-max: 1320px;
  --nav-h: 73px;

  color-scheme: light;
  background: var(--cx-bg);
  color: var(--cx-text);
  interpolate-size: allow-keywords;
}

@media (max-width: 640px) {
  .cc { --nav-h: 61px; }
}

.cc ::selection {
  background: var(--cx-text);
  color: var(--cx-bg);
}

.cc :focus-visible {
  outline: 1.5px solid var(--cx-text);
  outline-offset: 4px;
}

.cc img {
  display: block;
  max-width: 100%;
}

/* ===== Nav + footer (site defaults, plus a current-page marker) ===== */
.cc .nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.cc .footer {
  margin-top: 0;
}

/* ===== Shared building blocks ===== */
.cx-wrap {
  max-width: var(--cx-max);
  margin-inline: auto;
  padding-inline: var(--cx-gutter);
}

.cx-section {
  padding-block: clamp(5rem, 11vw, 9.5rem);
}

.cx-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

.cx-h2 em {
  font-style: italic;
}

.cx-lead {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--cx-text-2);
  text-wrap: pretty;
}

/* Buttons: sharp, one solid + one hairline */
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.9rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--cx-bg);
  background: var(--cx-text);
  border: 1px solid var(--cx-text);
  cursor: pointer;
  transition: background 0.35s var(--cx-ease), color 0.35s var(--cx-ease),
              border-color 0.35s var(--cx-ease), transform 0.2s var(--cx-ease);
}

.cx-btn:hover {
  background: #333333;
  border-color: #333333;
}

.cx-btn:active {
  transform: scale(0.98);
}

.cx-btn--ghost {
  color: var(--cx-text);
  background: rgb(255 255 255 / 0.6);
  border-color: var(--cx-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cx-btn--ghost:hover {
  background: var(--cx-text);
  color: var(--cx-bg);
  border-color: var(--cx-text);
}

.cx-btn--block {
  width: 100%;
}

/* Under the page title: a direct route to the form, ahead of the canvas story */
.cx-intro-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 1.75rem;
}

.cx-intro-cta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cx-text-2);
}

#commission-form {
  scroll-margin-top: 5rem;
}

/* ===== Reveal on scroll (fallback path, set up by commission.js) ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .cx-rise {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--cx-ease), transform 1.1s var(--cx-ease);
    transition-delay: var(--d, 0ms);
  }
  .js .cx-rise.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ===== 4. The matching pair (bento) ===== */
.cx-pair-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cx-bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 1rem);
  height: clamp(34rem, 62vw, 50rem);
}

.cx-tile {
  position: relative;
  overflow: hidden;
  background: var(--cx-bg-3);
}

.cx-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--cx-ease);
}

.cx-tile:hover img {
  transform: scale(1.03);
}

.cx-tile--wall   { grid-column: 1; grid-row: 1 / 3; }
.cx-tile--cars   { grid-column: 2; grid-row: 1 / 3; }
.cx-tile--c63    { grid-column: 3; grid-row: 1; }
.cx-tile--sl65   { grid-column: 3; grid-row: 2; }

.cx-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgb(12 12 12 / 0.72), transparent);
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.4;
}

.cx-tile figcaption span {
  display: block;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .cx-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .cx-tile--wall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .cx-tile--cars { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .cx-tile--c63,
  .cx-tile--sl65 { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 4; }
}

/* ===== 2. Process ===== */
.cx-process-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.cx-steps {
  --node: 11px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  list-style: none;
}

.cx-steps::before,
.cx-steps::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2);
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cx-line-2);
}

.cx-steps::after {
  background: var(--cx-text);
  transform-origin: left;
  transform: scaleX(1);
}

@keyframes cx-draw-x {
  from { transform: scaleX(0); }
}

@keyframes cx-draw-y {
  from { transform: scaleY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cx-steps::after {
      animation: cx-draw-x linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 55%;
    }
  }
}

.cx-step {
  position: relative;
  padding-top: calc(var(--node) + 2rem);
}

.cx-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--node);
  height: var(--node);
  background: var(--cx-bg);
  border: 1px solid var(--cx-text);
  transform: rotate(45deg);
}

.cx-step h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
}

.cx-step p {
  margin-top: 0.75rem;
  max-width: 26ch;
  color: var(--cx-text-2);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .cx-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-left: 2.25rem;
  }
  .cx-steps::before,
  .cx-steps::after {
    top: 0;
    bottom: 0;
    left: calc(var(--node) / 2);
    right: auto;
    width: 1px;
    height: auto;
    transform-origin: top;
  }
  .cx-steps::after {
    animation-name: cx-draw-y !important;
  }
  .cx-step {
    padding-top: 0;
  }
  .cx-step::before {
    left: -2.25rem;
    top: 0.55rem;
  }
}

/* ===== 3. Commission form + live summary ===== */
.cx-order {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.cx-order-head {
  grid-column: 1 / -1;
}

.cx-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.cx-form fieldset + fieldset {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.cx-form legend {
  display: block;
  width: 100%;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--cx-line);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 300;
}

.cx-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

@media (max-width: 640px) {
  .cx-form .form-row {
    grid-template-columns: 1fr;
  }
}

.cx-form .form-group {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.cx-form .form-group > label,
.cx-form .field-label {
  display: block;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--cx-text-2);
}

.cx-form .form-optional {
  color: var(--cx-text-3);
}

.cx-form input:not([type="radio"]):not([type="file"]),
.cx-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--cx-text);
  background: var(--cx-bg-2);
  border: 1px solid var(--cx-line);
  border-radius: 0;
  transition: border-color 0.3s var(--cx-ease), background 0.3s var(--cx-ease);
}

.cx-form textarea {
  resize: vertical;
  min-height: 7rem;
  field-sizing: content;
}

.cx-form input::placeholder,
.cx-form textarea::placeholder {
  color: #6b6b6b; /* 4.9:1 on the #fafafa fields */
  opacity: 1;
}

.cx-form input:not([type="radio"]):not([type="file"]):hover,
.cx-form textarea:hover {
  border-color: var(--cx-line-2);
}

.cx-form input:not([type="radio"]):not([type="file"]):focus,
.cx-form textarea:focus {
  outline: none;
  border-color: var(--cx-text);
  background: var(--cx-bg-3);
}

.cx-form .form-hint {
  font-size: 0.8rem;
  color: var(--cx-text-3);
}

/* Promo code: typed in capitals; a valid code confirms its saving in the hint below */
.cx-form #cf-promo {
  font-size: 16px;   /* no iOS zoom on focus */
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-form .cx-promo-ok {
  color: var(--cx-text);
}

/* Labels that wrap whole controls must not inherit the site-wide
   ".form-group label" treatment (block, uppercase, tracked) */
.cx-form .form-group label.cx-option,
.cx-form .form-group label.cx-drop {
  margin: 0;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--cx-text);
}

.cx-form .form-group label.cx-option {
  display: grid;
}

.cx-form .form-group label.cx-drop {
  display: grid;
}

.cx-option > span:not(.cx-option-tick) {
  display: block;
}

/* Option tiles (size + spec), selection shown with :has() */
.cx-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cx-options--sizes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .cx-options--sizes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cx-options--spec {
    grid-template-columns: 1fr;
  }
}

.cx-option {
  position: relative;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.25rem;
  background: var(--cx-bg-2);
  border: 1px solid var(--cx-line);
  cursor: pointer;
  transition: border-color 0.35s var(--cx-ease), background 0.35s var(--cx-ease);
}

.cx-option:hover {
  border-color: var(--cx-line-2);
}

.cx-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cx-option:has(input:checked) {
  border-color: var(--cx-text);
  background: var(--cx-bg-3);
}

.cx-option:has(input:focus-visible) {
  outline: 1.5px solid var(--cx-text);
  outline-offset: 3px;
}

.cx-option-tick {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  border: 1px solid var(--cx-line-2);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--cx-ease), border-color 0.3s var(--cx-ease);
}

.cx-option-tick svg {
  width: 12px;
  height: 12px;
  color: var(--cx-bg);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s var(--cx-ease), transform 0.4s var(--cx-ease);
}

.cx-option:has(input:checked) .cx-option-tick {
  background: var(--cx-text);
  border-color: var(--cx-text);
}

.cx-option:has(input:checked) .cx-option-tick svg {
  opacity: 1;
  transform: none;
}

.cx-option-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
}

.cx-options--spec .cx-option-title {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  padding-right: 1.75rem;
}

.cx-option-sub {
  font-size: 0.85rem;
  color: var(--cx-text-2);
  line-height: 1.5;
}

.cx-option-price {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Custom specs slide open (grid-rows trick, works everywhere) */
.cx-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.5s var(--cx-ease), opacity 0.4s ease, visibility 0.5s;
}

.cx-collapse > div {
  overflow: hidden;
}

.cx-collapse.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.cx-collapse .form-group {
  margin: 1.25rem 0 0;
}

/* Photo drop zone */
.cx-drop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  min-height: 7.5rem;
  background: var(--cx-bg-2);
  border: 1px dashed var(--cx-line-2);
  cursor: pointer;
  transition: border-color 0.3s var(--cx-ease), background 0.3s var(--cx-ease);
}

.cx-drop:hover,
.cx-drop:focus-within,
.cx-drop.is-dragging {
  border-color: var(--cx-text);
  background: var(--cx-bg-3);
}

.cx-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cx-drop-thumb {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--cx-line);
  overflow: hidden;
  color: var(--cx-text-2);
}

.cx-drop-thumb svg {
  width: 26px;
  height: 26px;
}

.cx-drop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-drop .file-field-text {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.cx-drop .file-field-text strong {
  font-weight: 400;
}

.cx-drop .file-field-name {
  font-size: 0.85rem;
  color: var(--cx-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Validation (hooks come from app.js: .is-invalid / .field-error / .is-nudged) */
.cx-form .field-error {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s var(--cx-ease), opacity 0.35s ease;
}

.cx-form .field-error > span {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--cx-error);
}

.cx-form .field-error svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.cx-form .form-group.is-invalid .field-error {
  grid-template-rows: 1fr;
  opacity: 1;
}

.cx-form .form-group.is-invalid input:not([type="radio"]),
.cx-form .form-group.is-invalid textarea,
.cx-form .form-group.is-invalid .cx-drop {
  border-color: var(--cx-error);
}

@keyframes cx-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  85% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .cx-form .form-group.is-nudged {
    animation: cx-nudge 0.42s var(--cx-ease);
  }
}

.cx-submit {
  margin-top: 1rem;
}

.cx-form-foot {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--cx-text-3);
  text-align: center;
}

/* Summary panel (frosted glass, web approximation, not Apple's native material) */
.cx-summary {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--cx-bg-2);
  border: 1px solid var(--cx-line);
  box-shadow: 0 30px 80px rgb(26 26 26 / 0.06);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

@media (prefers-reduced-transparency: reduce) {
  .cx-summary {
    background: var(--cx-bg-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.cx-summary-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cx-bg-3);
  view-transition-name: cx-preview;
}

.cx-summary-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-summary-preview img[data-placeholder] {
  object-position: 50% 30%;
}

.cx-summary h3 {
  margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cx-summary dl {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.cx-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.cx-summary dt {
  color: var(--cx-text-2);
}

.cx-summary dd {
  text-align: right;
}

.cx-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cx-line);
}

.cx-summary-total span {
  font-size: 0.9rem;
  color: var(--cx-text-2);
}

.cx-summary-total strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  view-transition-name: cx-price;
}

.cx-assure {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--cx-text-2);
}

.cx-assure li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5;
}

.cx-assure svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.1rem;
  color: var(--cx-text);
}

@media (max-width: 960px) {
  .cx-order {
    grid-template-columns: 1fr;
  }
  .cx-order-head {
    order: -2;
  }
  .cx-summary {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0 1.25rem;
    align-items: center;
  }
  .cx-summary-preview {
    grid-row: span 2;
    aspect-ratio: 1;
  }
  .cx-summary h3 {
    margin-top: 0;
    font-size: 1.5rem;
  }
  .cx-summary dl,
  .cx-summary-total {
    grid-column: 1 / -1;
  }
  /* Keep the summary compact above the form on small screens */
  .cx-assure {
    display: none;
  }
}

/* Success */
.cx-success {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  max-width: 34rem;
}

.cx-success:focus {
  outline: none;
}

.cx-success-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--cx-text);
}

.cx-success-mark svg {
  width: 24px;
  height: 24px;
}

.cx-success h3 {
  margin-top: 1.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.cx-success p {
  margin: 1rem 0 2rem;
  color: var(--cx-text-2);
  line-height: 1.65;
}

/* ===== 5. FAQ (exclusive <details> accordion) ===== */
.cx-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.cx-faq-list details {
  border-top: 1px solid var(--cx-line);
}

.cx-faq-list details:last-child {
  border-bottom: 1px solid var(--cx-line);
}

.cx-faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  cursor: pointer;
  list-style: none;
}

.cx-faq-list summary::-webkit-details-marker {
  display: none;
}

.cx-faq-list summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.5s var(--cx-ease);
}

.cx-faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.cx-faq-list details p {
  max-width: 58ch;
  padding-bottom: 1.75rem;
  color: var(--cx-text-2);
  line-height: 1.7;
}

/* Smooth open/close where ::details-content is supported */
.cx-faq-list details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.5s var(--cx-ease), content-visibility 0.5s allow-discrete;
}

.cx-faq-list details[open]::details-content {
  block-size: auto;
}

@media (max-width: 860px) {
  .cx-faq {
    grid-template-columns: 1fr;
  }
}

/* ===== View transitions (size swap, form -> success) ===== */
::view-transition-group(cx-price),
::view-transition-group(cx-preview) {
  animation-duration: 0.5s;
  animation-timing-function: var(--cx-ease);
}


/* ===== Custom page on the gallery wall (body.cc.cc-wall) =====
   Same slate wall as the homepage and shop (background from catalog.css).
   The page's own tokens flip to light ink; panels that were off-white become
   lighter tints of the wall. */
.cc.cc-wall {
  --cx-bg: #50545a;
  --cx-bg-2: rgb(255 255 255 / 0.06);
  --cx-bg-3: rgb(255 255 255 / 0.1);
  --cx-line: rgb(245 245 243 / 0.16);
  --cx-line-2: rgb(245 245 243 / 0.5);
  --cx-text: #f5f5f3;
  --cx-text-2: rgb(245 245 243 / 0.82);
  --cx-text-3: rgb(245 245 243 / 0.72);
  --cx-error: #ffb4ab;
  color-scheme: dark;
  background:
    radial-gradient(120% 70% at 20% 0%, #686c71 0%, rgb(104 108 113 / 0) 60%),
    #50545a;
  background-attachment: fixed;
}

/* Solid button: light on the wall, dark text */
.cc-wall .cx-btn {
  color: #1a1a1a;
}

.cc-wall .cx-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.cc-wall .cx-btn--ghost {
  color: var(--cx-text);
  background: rgb(255 255 255 / 0.06);
}

.cc-wall .cx-btn--ghost:hover {
  color: #1a1a1a;
}

.cc-wall .cx-form input::placeholder,
.cc-wall .cx-form textarea::placeholder {
  color: rgb(245 245 243 / 0.6);
}
