/* JS adds this only for an eligible first home visit. No JS: no veil. */
html[data-brand-entering] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(ellipse at 50% 46%, var(--surface), transparent 65%), var(--canvas);
  opacity: var(--brand-veil-opacity, 1);
  pointer-events: auto;
}
[data-brand-original] { visibility: hidden; }
html[data-brand-exiting] body::before { transition: opacity 240ms ease-out; }
.brand-entry-controls {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  pointer-events: none;
  outline: none;
  opacity: 1;
  transition: opacity 240ms ease-out;
}
.brand-entry-controls[data-leaving] { opacity: 0; }
.brand-entry-controls::backdrop { background: transparent; pointer-events: none; }
.brand-entry-controls button {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  color: var(--ink);
  font: 500 14px/1.5 var(--font-body);
  pointer-events: auto;
  cursor: pointer;
}
.brand-entry-skip { top: max(20px, env(safe-area-inset-top)); }
.brand-entry-dismiss { bottom: max(20px, env(safe-area-inset-bottom)); }
.brand-entry-controls button:hover { background: var(--surface); }
.brand-entry-controls button:active { transform: scale(.98); }
.brand-entry-controls button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.brand-entry-clone {
  position: fixed;
  z-index: 10001;
  transform-origin: top left;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
  transition: opacity 240ms ease-out;
}
.brand-entry-clone .brand-entry-note {
  display: block;
  overflow: hidden;
}
.brand-entry-face {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: inherit;
  isolation: isolate;
}
/* A temporary optical surface frames the real artwork without refracting text. */
.brand-entry-face::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -14px -18px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--glass-clear), transparent 75%);
  box-shadow: 0 8px 28px var(--shade), 0 0 0 .3px var(--line), inset 0 .35px 0 var(--highlight), inset 0 -.35px 0 var(--rim);
  opacity: 0;
}
.brand-entry-face::after {
  content: '';
  position: absolute;
  inset: -14px -18px;
  border-radius: 24px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, var(--rim) 49%, transparent 65%);
  background-size: 240% 100%;
  opacity: 0;
}
.brand-entry-clone[data-phase="reveal"] .brand-entry-face {
  animation: brand-materialize 650ms cubic-bezier(.22, 1, .36, 1) both;
}
.brand-entry-clone[data-phase="reveal"] .brand-entry-face::before {
  animation: brand-glass-in 650ms ease-out both;
}
.brand-entry-clone[data-phase="reveal"] .brand-entry-face::after {
  animation: brand-light-pass 650ms ease-in-out both;
}
.brand-entry-clone[data-phase="hold"] .brand-entry-face::before { opacity: 1; }
.brand-entry-clone[data-phase="dock"] .brand-entry-face::before {
  animation: brand-glass-out 220ms ease-out both;
}
@keyframes brand-materialize {
  from { opacity: 0; filter: blur(1.5px); transform: translateY(3px) scale(.98); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}
@keyframes brand-glass-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes brand-glass-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes brand-light-pass {
  0% { background-position: 100% 0; opacity: 0; }
  30% { opacity: .5; }
  100% { background-position: 0% 0; opacity: 0; }
}
.search-filters[data-filter-moving] { overflow: hidden; will-change: height; }
.search-filters[data-filter-moving] > summary { position: relative; z-index: 1; }
.search-filters > summary[aria-expanded="false"] > .icon:last-child { transform: rotate(0); }
.search-filters > summary[aria-expanded="true"] > .icon:last-child { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  html[data-brand-entering] body::before, .brand-entry-clone { display: none; }
  [data-brand-original] { visibility: visible; }
}