/* Every treatment is scoped to its harness option. Zero inherits nothing here. */

/* Shared coverflow refinements. The source still places every .cn9-card. */
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel {
  --hus-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  min-inline-size: 0;
  max-inline-size: 100%;
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel .cn9-ctl {
  display: none !important;
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel .cn9-card {
  transition-property: transform, opacity !important;
  transition-duration: .32s !important;
  transition-timing-function: var(--hus-ease) !important;
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel .cn9-in {
  transition: transform .24s var(--hus-ease), opacity .24s var(--hus-ease);
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel .cn9-face {
  position: relative;
  overflow: hidden;
  min-block-size: 44px;
  min-inline-size: 44px;
  transition: transform .18s var(--hus-ease);
  -webkit-tap-highlight-color: transparent;
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel .cn9-face:focus-visible {
  outline: 3px solid oklch(72% .11 82);
  outline-offset: -4px;
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel .hus-front .cn9-face:active {
  transform: scale(.985);
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-card-glint {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
/* A keyboard pause affordance, without adding a visible control strip. */
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-motion-toggle {
  position: absolute;
  inset-inline-start: 8px;
  inset-block-start: 8px;
  z-index: 40;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-motion-toggle:focus-visible {
  inline-size: auto;
  block-size: auto;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  clip-path: none;
  background: oklch(97% .015 80);
  color: oklch(35% .08 340);
  outline: 2px solid oklch(66% .1 80);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}

/* 4: a fast, clean landing and one satin pass, with no extra furniture. */
html[data-up-carousel="4"] #r2cHero .hus-carousel .cn9-card {
  transition-duration: .28s !important;
}
html[data-up-carousel="4"] #r2cHero .hus-carousel .cn9-in {
  animation: none !important;
}
html[data-up-carousel="4"] #r2cHero .hus-carousel .hus-front .cn9-in {
  box-shadow: 0 0 0 1px oklch(77% .1 82), 0 12px 22px -14px oklch(30% .07 340 / .45);
}
html[data-up-carousel="4"] #r2cHero .hus-card-glint {
  background: linear-gradient(110deg, transparent 24%, oklch(98% .015 80 / .48) 49%, transparent 70%);
}

/* 5: photographic focus, with a small mouse-only tilt, never new card placement. */
html[data-up-carousel="5"] #r2cHero .hus-carousel .cn9-in {
  animation: none !important;
  transform: perspective(900px) rotateX(var(--hus-x, 0deg)) rotateY(var(--hus-y, 0deg));
  opacity: .86;
}
html[data-up-carousel="5"] #r2cHero .hus-carousel .hus-front .cn9-in {
  opacity: 1;
  box-shadow: 0 0 0 1px oklch(82% .065 80), 0 18px 28px -18px oklch(30% .07 340 / .6);
}
html[data-up-carousel="5"] #r2cHero .hus-card-glint {
  opacity: .45;
  box-shadow: inset 0 0 0 1px oklch(96% .02 80 / .5);
}
html[data-up-carousel="5"] #r2cHero .hus-carousel .cn9-face:is(:hover, :focus-visible) .hus-card-glint {
  opacity: .8;
  transition: opacity .2s var(--hus-ease);
}

/* 6: the peeking cards answer the pointer; a fine edge catches as the front changes. */
html[data-up-carousel="6"] #r2cHero .hus-carousel .cn9-in {
  animation: none !important;
}
html[data-up-carousel="6"] #r2cHero .hus-carousel .hus-front .cn9-in {
  box-shadow: 0 0 0 1px oklch(71% .08 80), 0 14px 24px -16px oklch(30% .07 340 / .55);
}
html[data-up-carousel="6"] #r2cHero .hus-card-glint {
  box-shadow: inset 2px 0 oklch(97% .025 80 / .8), inset -2px 0 oklch(97% .025 80 / .8);
}
html[data-up-carousel="6"] #r2cHero .hus-explore {
  display: block;
  margin-block-start: 6px;
  text-align: center;
  font: inherit;
  font-size: .65rem;
  letter-spacing: .025em;
  color: oklch(43% .045 340);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  html[data-up-carousel="6"] #r2cHero .hus-carousel .cn9-card:not(.is-front):hover .cn9-in {
    transform: translateY(-2px) scale(1.015);
  }
  html[data-up-carousel="6"] #r2cHero .hus-carousel .hus-front .cn9-face:hover {
    transform: scale(1.008);
  }
}

/* Shared bar mechanics. Wrappers hug the existing tiles; the rail keeps its own sizing. */
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar {
  --hus-ease: cubic-bezier(.16, 1, .3, 1);
  --hus-cream: oklch(97% .015 80);
  --hus-plum: oklch(35% .08 340);
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar :is(.tb9-in, .tb9-rail) {
  min-inline-size: 0;
  max-inline-size: 100%;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar .hus-tile-trigger {
  appearance: none;
  display: block;
  flex: 0 0 auto;
  position: relative;
  min-inline-size: 44px;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar .hus-tile-trigger > .tb9-card {
  display: block;
  pointer-events: none;
  transform: var(--hus-rest, rotate(0deg)) translateY(var(--hus-lift, 0px)) scale(var(--hus-press, 1)) !important;
  transition: transform .24s var(--hus-ease), opacity .18s var(--hus-ease) !important;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar .hus-tile-trigger:active {
  --hus-press: .97;
  --hus-lift: 1px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar .hus-tile-trigger:focus-visible {
  outline: 3px solid oklch(68% .1 80);
  outline-offset: -3px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar .hus-tile-trigger[aria-expanded="true"] {
  --hus-lift: -2px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar .hus-selected {
  outline: 2px solid oklch(74% .11 80);
  outline-offset: -3px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar .hus-tile-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 20%, oklch(98% .015 80 / .55) 48%, transparent 74%);
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-menu-open .tb9-cards,
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar:focus-within .tb9-cards {
  animation-play-state: paused !important;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-logo {
  min-inline-size: 44px;
  min-block-size: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px oklch(75% .08 80), 0 3px 0 oklch(45% .045 340 / .18), 0 6px 12px -8px oklch(30% .07 340 / .45);
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order {
  min-block-size: 44px;
  min-inline-size: 44px;
  position: relative;
  background-color: var(--hus-plum);
  box-shadow: inset 0 1px 0 oklch(92% .02 80 / .2), 0 3px 0 oklch(25% .06 340 / .25);
  transition: transform .18s var(--hus-ease) !important;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order:active {
  transform: translateY(2px) scale(.99);
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order:focus-visible {
  outline: 3px solid oklch(72% .11 82);
  outline-offset: 2px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order :is(svg, .glz-hint, .glz-hint *) {
  animation: none !important;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order > svg {
  transition: transform .22s var(--hus-ease);
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order .glz-hint {
  opacity: 0;
  right: 0;
  bottom: -12px;
  max-inline-size: 100%;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order .glz-hint-ripple {
  opacity: 0;
}

/* 4: satin photos and a finely machined coin. */
html[data-up-bar="4"] #tb9Bar .hus-tile-trigger > .tb9-card {
  box-shadow: inset 0 0 0 1px oklch(94% .02 80 / .7), 0 5px 10px -7px oklch(30% .07 340 / .6);
}
html[data-up-bar="4"] #tb9Bar.hus-bar .tb9-order {
  background-image: linear-gradient(115deg, transparent, oklch(85% .045 80 / .1), transparent);
}

/* 5: warm gold edges, with the existing tile angles left intact. */
html[data-up-bar="5"] #tb9Bar .hus-tile-trigger > .tb9-card {
  box-shadow: 0 0 0 1px oklch(74% .11 80), 0 3px 0 oklch(66% .06 80 / .5);
}
html[data-up-bar="5"] #tb9Bar.hus-bar .tb9-logo {
  box-shadow: 0 0 0 2px oklch(77% .1 80), 0 0 0 4px oklch(93% .025 80), 0 4px 0 oklch(35% .06 340 / .2);
}
html[data-up-bar="5"] #tb9Bar.hus-bar .tb9-order {
  outline: 1px solid oklch(75% .09 80 / .65);
  outline-offset: -3px;
}

/* 6: a softer photo response and coin, with a quiet plum button face. */
html[data-up-bar="6"] #tb9Bar .hus-tile-trigger > .tb9-card {
  box-shadow: 0 4px 0 oklch(35% .06 340 / .12), 0 8px 12px -9px oklch(30% .07 340 / .6);
}
html[data-up-bar="6"] #tb9Bar .hus-tile-trigger .tb9-card img {
  transition: transform .3s var(--hus-ease);
}
html[data-up-bar="6"] #tb9Bar.hus-bar .tb9-logo {
  box-shadow: inset 0 0 0 2px oklch(96% .02 80), 0 0 0 1px oklch(73% .09 80), 0 5px 9px -6px oklch(30% .07 340 / .5);
}
@media (hover: hover) and (pointer: fine) {
  html:is([data-up-bar="4"], [data-up-bar="5"]) #tb9Bar .hus-tile-trigger:hover {
    --hus-lift: -2px;
  }
  html[data-up-bar="6"] #tb9Bar .hus-tile-trigger:hover .tb9-card img {
    transform: translateY(-1px) scale(1.025);
  }
  html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar .tb9-order:hover > svg {
    transform: translateX(3px);
  }
}

/* Compact tile-anchored dropdowns. Body portals cannot be cropped by the photo rail. */
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu {
  --hus-cream: oklch(97% .015 80);
  --hus-plum: oklch(35% .08 340);
  position: fixed;
  z-index: 2100;
  box-sizing: border-box;
  inline-size: min(25rem, calc(100% - 24px));
  max-inline-size: calc(100% - 24px);
  max-block-size: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid oklch(79% .05 80);
  border-radius: 18px;
  background: var(--hus-cream);
  color: var(--hus-plum);
  box-shadow: 0 14px 34px -14px oklch(25% .06 340 / .38);
  font: 500 .85rem/1.4 'DM Sans', sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu * {
  box-sizing: border-box;
  min-inline-size: 0;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline-start: 8px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-title {
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.2;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-close {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  border: 1px solid oklch(85% .025 80);
  border-radius: 50%;
  background: oklch(94% .025 80);
  color: var(--hus-plum);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-line {
  margin: 2px 8px 12px;
  color: oklch(43% .035 45);
  font-size: .8rem;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-items {
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 48px;
  padding: 8px;
  border-radius: 10px;
  color: var(--hus-plum);
  text-decoration: none;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-img {
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  object-fit: cover;
  border-radius: 9px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-copy {
  display: grid;
  flex: 1;
  gap: 2px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-label {
  font-weight: 700;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-sub {
  color: oklch(43% .035 45);
  font-size: .75rem;
  line-height: 1.45;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-arrow {
  flex: none;
  color: oklch(49% .065 80);
  font-size: 1rem;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-go {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  margin-block-start: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--hus-plum);
  color: var(--hus-cream);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu :is(a, button):focus-visible {
  outline: 2px solid oklch(62% .1 80);
  outline-offset: -2px;
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-link:is(:hover, :focus-visible) {
  background: oklch(93% .025 80);
}
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu-link:active {
  transform: scale(.985);
}
/* Satin: photo-led compact rows. */
html[data-up-bar="4"] .hus-menu-4 .hus-menu-link {
  background: oklch(95% .02 80);
}
html[data-up-bar="4"] .hus-menu-4 .hus-menu-img {
  border-radius: 50%;
}
/* Gold: an index of photo picks; longer factual rows remain full width. */
html[data-up-bar="5"] .hus-menu-5 {
  border-radius: 12px;
  border: 1px solid oklch(72% .09 80);
  box-shadow: inset 0 0 0 3px oklch(94% .03 80), 0 14px 30px -16px oklch(25% .06 340 / .45);
}
html[data-up-bar="5"] .hus-menu-5 .hus-kind-coins {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html[data-up-bar="5"] .hus-menu-5 .hus-kind-coins .hus-menu-link {
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
}
html[data-up-bar="5"] .hus-menu-5 .hus-kind-coins .hus-menu-copy {
  flex-basis: 100%;
  order: 2;
}
html[data-up-bar="5"] .hus-menu-5 .hus-kind-coins .hus-menu-arrow {
  margin-inline-start: auto;
}
html[data-up-bar="5"] .hus-menu-5 .hus-menu-item {
  border-bottom: 1px solid oklch(85% .035 80);
}
/* Soft Magnet: a slim inset quick menu, with a paper-stack depth cue. */
html[data-up-bar="6"] .hus-menu-6 {
  border-radius: 20px;
  box-shadow: 0 3px 0 -1px oklch(91% .025 80), 0 5px 0 -1px oklch(79% .04 80), 0 16px 28px -15px oklch(25% .06 340 / .4);
}
html[data-up-bar="6"] .hus-menu-6 .hus-menu-items {
  gap: 0;
  border: 1px solid oklch(88% .025 80);
  border-radius: 12px;
  padding: 3px;
  background: oklch(95% .02 80);
}
html[data-up-bar="6"] .hus-menu-6 .hus-menu-go {
  border-radius: 11px;
}

/* Freeze existing ambient loops too. No added animation loops in these options. */
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel:is(.hus-sleep, .hus-calm) *,
html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar:is(.hus-sleep, .hus-calm) * {
  animation-play-state: paused !important;
  transition: none !important;
}
html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel.hus-calm .cn9-in {
  transform: none !important;
}
html.glz-static:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel *,
html.glz-static:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar *,
html.glz-static:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel *,
  html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) #tb9Bar.hus-bar *,
  html:is([data-up-bar="4"], [data-up-bar="5"], [data-up-bar="6"]) .hus-menu * {
    animation: none !important;
    transition: none !important;
  }
  html:is([data-up-carousel="4"], [data-up-carousel="5"], [data-up-carousel="6"]) #r2cHero .hus-carousel .cn9-in {
    transform: none !important;
  }
}
