/* Hover, cart ping, page motion — editorial */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.logo,
.catbtn,
.search input,
.btn,
.ghost,
.cart,
.acts button,
.icon-btn,
.cat,
.card,
.filters a,
.quick a:not(.chip),
.top nav a,
.fgrid a {
  transition:
    transform 0.22s cubic-bezier(.2, .8, .2, 1),
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    letter-spacing 0.22s ease,
    font-weight 0.18s ease;
}

.top nav a {
  position: relative;
  display: inline-block;
  font-weight: 500;
}
.top nav a::after { content: none; }
.top nav a:hover {
  transform: scale(1.05);
  font-weight: 650;
}
.fgrid a:hover { color: #111; padding-left: 4px; }

.logo:hover { transform: translateY(-1px); }
.logo:hover svg { filter: none; }

.catbtn {
  overflow: visible;
  isolation: isolate;
  background: none;
  --glint-base: #fff;
  --glint-hi: rgba(28, 93, 104, 0.38);
  --glint-blend: multiply;
  -webkit-text-fill-color: currentColor;
}
.catbtn::after { content: none; }
.catbtn:active { transform: none; }

.catbtn:hover,
.banner-copy .hero-acts .btn:hover,
.banner-copy .hero-acts .btn.ghost:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: none;
  background-image: none;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: none;
}
.catbtn:hover::after,
.banner-copy .hero-acts .btn:hover::after,
.banner-copy .hero-acts .btn.ghost:hover::after {
  content: attr(data-glint);
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  inset: unset;
  width: max-content;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 2;
  pointer-events: none;
  transform: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: nowrap;
  background-color: transparent;
  background-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 36%,
    var(--glint-hi) 50%,
    transparent 64%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: var(--glint-blend, overlay);
  animation: cat-text-glint 0.9s linear;
}

.search input { outline: none; }
.search input:hover { border-color: #bbb; }
.search input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55), transparent 62%);
  transform: translateX(-140%);
  pointer-events: none;
  z-index: 1;
}
.btn:hover {
  transform: none;
  box-shadow: none;
}
.btn:hover::after { animation: sheen 0.65s ease; }
.btn:active { transform: scale(.98); }

.btn.ghost,
.ghost {
  position: relative;
  overflow: hidden;
}
.btn.ghost::before,
.ghost::before { content: none; }

.acts button {
  position: relative;
  overflow: hidden;
}
.acts button:hover {
  border-color: #111;
  color: #111;
  transform: translateY(-1px);
}

.cart {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  letter-spacing: 0.01em;
}
.cart > * { position: relative; z-index: 1; }
.cart::before { display: none; }
.cart:hover {
  transform: none;
  box-shadow: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 8px 10px;
  font: inherit;
  color: inherit;
  position: relative;
  text-decoration: none;
  font-weight: 500;
}
.icon-btn .n {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: none;
}
.icon-btn::after { content: none; }
.icon-btn:hover {
  border-color: transparent;
  background: #fff;
  transform: scale(1.05);
  font-weight: 650;
}
.icon-btn:hover .n { background: transparent; color: inherit; }

.cart-head {
  border-color: transparent;
  background: #fff;
}
.cart-head:hover {
  background: #fff;
  color: inherit;
  border-color: transparent;
}
.cart-head:hover .n { background: transparent; color: inherit; }
.cart-head.ping { animation: cart-ping .55s cubic-bezier(.2, .8, .2, 1); }
.cart-head.ping .n { animation: badge-pop .45s cubic-bezier(.2, .8, .2, 1); }

.chip {
  transition: background 0.22s ease, box-shadow 0.22s ease;
}
.chip:hover,
.chip:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  transform: none;
}

.banner-copy .hero-acts .btn,
.banner-copy .hero-acts .btn.ghost {
  overflow: visible;
  isolation: isolate;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 2px 0;
  clip-path: none;
  border-radius: 0;
  font-weight: 700;
  --glint-base: var(--elmet-ink, #1c5d68);
  --glint-hi: rgba(255, 255, 255, 0.55);
  --glint-blend: overlay;
  -webkit-text-fill-color: currentColor;
}
.banner-copy .hero-acts .btn::before {
  content: none;
}
.banner-copy .hero-acts .btn::after {
  content: none;
  inset: unset;
  transform: none;
  animation: none;
  background: none;
}

.buy-acts .nameplate.ghost {
  overflow: visible;
  isolation: isolate;
  background: none;
  border: 0;
  box-shadow: none;
  clip-path: none;
  padding: 2px 0;
  --glint-base: var(--elmet-ink, #1c5d68);
  --glint-hi: rgba(255, 255, 255, 0.7);
  --glint-blend: overlay;
  -webkit-text-fill-color: currentColor;
  transform-origin: center left;
}
.buy-acts .nameplate.ghost::after { content: none; }
.buy-acts .nameplate.ghost:hover,
.buy-acts .nameplate.ghost:focus-visible {
  transform: scale(1.06);
  font-weight: 700;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: none;
}
.buy-acts .nameplate.ghost:hover::after,
.buy-acts .nameplate.ghost:focus-visible::after {
  content: attr(data-glint);
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  inset: unset;
  width: max-content;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 2;
  pointer-events: none;
  transform: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: nowrap;
  background-color: transparent;
  background-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 36%,
    var(--glint-hi) 50%,
    transparent 64%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: var(--glint-blend, overlay);
  animation: cat-text-glint 0.9s linear;
}

.cat-go::before {
  content: "";
  position: absolute;
  left: 0;
  right: 1.4em;
  bottom: 0;
  height: 1.5px;
  background: var(--elmet-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
}
.cat-go::after {
  content: "→";
  font-size: 12px;
  line-height: 1;
  transition: transform 0.22s cubic-bezier(.2, .8, .2, 1);
}
.cat-go:hover::before { transform: scaleX(1); }
.cat-go:hover::after { transform: translateX(5px); }

.more-chev {
  display: inline-flex;
  align-items: center;
}
.more-chev.left i { margin-right: -0.28em; }
.more-chev.right i { margin-left: -0.28em; }
.more-chev i {
  font-style: normal;
  font-weight: 500;
  animation: more-chev 1.15s ease-in-out infinite;
}
.more-chev.left i:nth-child(1) { animation-name: more-chev-l; animation-delay: 0s; }
.more-chev.left i:nth-child(2) { animation-name: more-chev-l; animation-delay: 0.14s; }
.more-chev.right i:nth-child(1) { animation-delay: 0s; }
.more-chev.right i:nth-child(2) { animation-delay: 0.14s; }
.more-cat.v-chev:hover .more-chev i { color: var(--elmet-red); }

.s-nav {
  transition: transform 0.22s cubic-bezier(.2, .8, .2, 1), box-shadow 0.22s ease;
}
.s-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 14px rgba(28, 93, 104, .28);
}
.s-nav:active { transform: translateY(-50%) scale(.96); }

.fly {
  position: fixed;
  z-index: 80;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #111;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .18);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s ease;
}

.cat {
  position: relative;
  overflow: hidden;
}
.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(142, 212, 225, .38) 100%);
  z-index: 0;
  transition: background .3s;
  pointer-events: none;
}
.cat::before {
  content: "";
  display: block;
  position: absolute;
  inset: 5px;
  z-index: 3;
  pointer-events: none;
  border-radius: 9px;
  border: 1px solid rgba(28, 93, 104, .28);
  transition: border-color .22s ease, box-shadow .28s cubic-bezier(.2, .8, .2, 1);
}
.cat b, .cat span, .cat-top, .cat ul, .cat-go, .cat-thumbs, .cat-rows, .cat-foot, .cat-board-top, .cat-board-previews, .cat-mini { position: relative; z-index: 1; }
.cat b {
  border-bottom: 2px solid var(--elmet-red);
  padding-bottom: 3px;
  align-self: flex-start;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
  color: #06181c;
  text-shadow: none;
}
.cat-board.cat::before {
  inset: 7px;
  border-radius: 12px;
}
.cat-board .cat-top b {
  font-size: 22px;
  letter-spacing: -.02em;
}
.cat:hover {
  transform: none;
  box-shadow: none;
}
.cat:hover::after { background: linear-gradient(180deg, rgba(255, 255, 255, .48) 0%, rgba(142, 212, 225, .44) 100%); }
.cat span { color: inherit; transition: color .22s, background .22s; }
.cat:hover span { color: inherit; }

.cat:hover::before {
  border-color: rgba(28, 93, 104, .5);
}

.dirs a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .28s ease, box-shadow .28s cubic-bezier(.2, .8, .2, 1), color .22s ease;
}
.dirs a strong,
.dirs a span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 0;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), color .22s ease;
}
.dirs a:hover { background: #fff; }
.dirs a:hover strong { border-bottom: 0; }

.dirs a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #8ed4e1 0%, #d8f1f6 55%, #fff 100%);
  transform: translateX(-102%);
  transition: transform .42s cubic-bezier(.2, .8, .2, 1);
}
.dirs a::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 50%;
  z-index: 1;
  color: var(--elmet-ink, #1c5d68);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: translate(10px, -50%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}
.dirs a:hover::before { transform: translateX(0); }
.dirs a:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}
.dirs a:hover strong,
.dirs a:hover span {
  transform: translateX(4px);
  color: var(--elmet-ink, #1c5d68);
}

.card {
  overflow: hidden;
  animation: rise .55s ease both;
}
.grid .card:nth-child(1) { animation-delay: .04s; }
.grid .card:nth-child(2) { animation-delay: .08s; }
.grid .card:nth-child(3) { animation-delay: .12s; }
.grid .card:nth-child(4) { animation-delay: .16s; }
.grid .card:nth-child(5) { animation-delay: .2s; }
.grid .card:nth-child(6) { animation-delay: .24s; }
.grid .card:nth-child(7) { animation-delay: .28s; }
.grid .card:nth-child(8) { animation-delay: .32s; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(20, 23, 28, .12);
  border-color: #c9b9a8;
}
.card .pic { overflow: hidden; }
.card .pic svg {
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .pic svg { transform: scale(1.06) rotate(-1.5deg); }
.card .ttl { transition: color .2s; }
.card:hover .ttl { color: #111; }
.filters a { border-left: 0; border-bottom: 1.5px solid transparent; padding-left: 0; padding-bottom: 2px; width: max-content; white-space: nowrap; }
.filters a:hover,
.filters a.on {
  border-bottom-color: var(--elmet-red);
  color: #111;
}

.nums > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  animation: rise .5s ease both;
}
.nums > div:nth-child(2) { animation-delay: .08s; }
.nums > div:nth-child(3) { animation-delay: .14s; }
.nums > div:nth-child(4) { animation-delay: .2s; }
.nums b { font-variant-numeric: tabular-nums; }

.trio > div {
  padding-right: 8px;
  border-top: 2px solid transparent;
  transition: border-color .25s, transform .22s;
}
.trio > div:hover {
  border-top-color: var(--elmet-red);
  transform: translateY(-3px);
}

.modal { backdrop-filter: blur(4px); }
.modal.on { animation: fade .2s ease; }
.sheet { animation: rise .28s cubic-bezier(.2, .8, .2, 1); }

@keyframes sheen {
  from { transform: translateX(-140%); }
  to { transform: translateX(140%); }
}
@keyframes cat-text-glint {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@keyframes more-chev {
  0%, 100% { opacity: 0.22; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2px); }
}
@keyframes more-chev-l {
  0%, 100% { opacity: 0.22; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-2px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cart-ping {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(0, 0, 0, .12); }
  100% { transform: scale(1); }
}
@keyframes badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); background: #111; }
  100% { transform: scale(1); }
}
