.site-header {
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.035);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* VESLEAF: headings rise one line; cards rise 50px with a staggered start. */
@keyframes riches-scroll-heading {
  from { opacity: 0; translate: 0 90%; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes riches-scroll-card {
  from { opacity: 0; translate: 0 50px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .riches-reveal-in.riches-heading-in:not(:target):not(:focus-within) {
    animation: riches-scroll-heading 1s cubic-bezier(.16, 1, .3, 1) both;
  }
  .riches-reveal-in.riches-card-in:not(:target):not(:focus-within) {
    animation: riches-scroll-card 500ms cubic-bezier(.25, .1, .25, 1) var(--riches-reveal-delay, 0ms) both;
  }
}

/* VESLEAF: one clipped oval swells in from below and drains out through the top. */
@property --riches-fill-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: -76%;
}

html[data-riches-liquid] :is(.button, [data-motion-button]) {
  --riches-liquid-base: var(--ink, #171717);
  --riches-liquid-ink: #fff;
  --riches-liquid-fill: #fff;
  --riches-liquid-active-ink: var(--ink, #171717);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--riches-liquid-base);
  color: var(--riches-liquid-ink);
  transform: none;
  transition: color 300ms cubic-bezier(.25, .1, .25, 1) 80ms, transform 160ms ease;
}
html[data-riches-liquid] :is(.button.outline, .button.light, [data-motion-button]) {
  --riches-liquid-base: #fff;
  --riches-liquid-ink: var(--ink, #171717);
  --riches-liquid-fill: var(--ink, #171717);
  --riches-liquid-active-ink: #fff;
}
@media (min-width: 901px) {
  html[data-riches-liquid] [data-motion-button][data-motion-button="dark"] {
    --riches-liquid-base: var(--ink, #171717);
    --riches-liquid-ink: #fff;
    --riches-liquid-fill: #fff;
    --riches-liquid-active-ink: var(--ink, #171717);
  }
}
html[data-riches-liquid] :is(.button, [data-motion-button])::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  border-radius: 50%;
  background: var(--riches-liquid-fill);
  transform: translate3d(0, var(--riches-fill-y), 0);
  pointer-events: none;
  z-index: -1;
}
html[data-riches-liquid] :is(.button, [data-motion-button])[data-riches-liquid-active] {
  background: var(--riches-liquid-base);
  color: var(--riches-liquid-active-ink);
  box-shadow: none;
}
html[data-riches-liquid] :is(.button, [data-motion-button]):active:not(:disabled) {
  transform: scale(.985);
}

/* Match the compact VESLEAF controls without replacing their pressed/selected styles. */
:is(.round, .tabs button, .product-code-option, .thumbnail) {
  transition: background-color 500ms cubic-bezier(.3, 1, .3, 1),
              border-color 500ms cubic-bezier(.3, 1, .3, 1),
              color 500ms cubic-bezier(.3, 1, .3, 1),
              transform 160ms ease;
}
:is(.round, .tabs button, .product-code-option, .thumbnail):active:not(:disabled) {
  transform: scale(.985);
}

.range-tile .range-caption svg {
  transition: transform 500ms cubic-bezier(.3, 1, .3, 1);
}
.range-tile:is(:hover, :focus-visible) .range-caption svg {
  transform: rotate(90deg);
}

@media (max-width: 660px) {
  .riches-reveal-in.riches-card-in:not(:target):not(:focus-within) {
    animation-delay: min(var(--riches-reveal-delay, 0ms), 120ms);
  }
}

@media (prefers-reduced-motion: reduce), print {
  .site-header, /* Match the compact VESLEAF controls without replacing their pressed/selected styles. */
:is(.round, .tabs button, .product-code-option, .thumbnail) {
  transition: background-color 500ms cubic-bezier(.3, 1, .3, 1),
              border-color 500ms cubic-bezier(.3, 1, .3, 1),
              color 500ms cubic-bezier(.3, 1, .3, 1),
              transform 160ms ease;
}
:is(.round, .tabs button, .product-code-option, .thumbnail):active:not(:disabled) {
  transform: scale(.985);
}

.range-tile .range-caption svg { transition: none; }
  .range-tile:is(:hover, :focus-visible) .range-caption svg { transform: none; }
  .riches-reveal-in:not(:target):not(:focus-within) { animation: none; }
  html[data-riches-liquid] :is(.button, [data-motion-button]) { transition: none; }
  @media (min-width: 901px) {
  html[data-riches-liquid] [data-motion-button][data-motion-button="dark"] {
    --riches-liquid-base: var(--ink, #171717);
    --riches-liquid-ink: #fff;
    --riches-liquid-fill: #fff;
    --riches-liquid-active-ink: var(--ink, #171717);
  }
}
html[data-riches-liquid] :is(.button, [data-motion-button])::before { display: none; }
}
