
@property --nx-z { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --nx-h { syntax: '<number>'; inherits: false; initial-value: 1; }

html.nx-motion .nx-zr,
html.nx-motion .nx-ph > img {
  --nx-z: 1.15;
  opacity: 0;
  scale: calc(var(--nx-z) * var(--nx-h));
  clip-path: inset(calc((1 - 1 / (var(--nx-z) * var(--nx-h))) * 50%) round calc(var(--nx-cr, 0px) / (var(--nx-z) * var(--nx-h))));
  transition: --nx-h .9s cubic-bezier(.16, 1, .3, 1);
}
html.nx-motion .nx-zr.is-in,
html.nx-motion .nx-ph.is-in > img {
  --nx-z: 1; opacity: 1;
  transition: --nx-z 1.3s cubic-bezier(.16, 1, .3, 1) var(--nx-d, 0s),
              opacity .6s ease var(--nx-d, 0s),
              --nx-h .9s cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) {
  html.nx-motion .nx-ph.is-in:hover > img { --nx-h: 1.05; }
}
html.nx-motion .nx-hero__photo img { animation: nx-settle 1.8s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes nx-settle { from { scale: 1.06; } to { scale: 1; } }

.x-day__grid > .nx-ph { position: relative; margin: 0; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.nx-ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }

.nx-chips { position: absolute; inset: 0; pointer-events: none; }
.nx-chip { position: absolute; left: var(--l, auto); right: var(--r, auto); top: var(--t, auto); bottom: var(--b, auto); max-width: 88%; }
.nx-chip__in {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 6px 22px rgba(42, 32, 26, .14);
  color: var(--nes-ink, #1a1a1a); text-align: left;
  animation: nx-float 6s ease-in-out infinite;
}
.nx-chip:nth-child(2) .nx-chip__in { animation-duration: 7.5s; animation-delay: -2s; }
.nx-ph:nth-child(4n+3) .nx-chip:nth-child(1) .nx-chip__in,
.nx-ph:nth-child(4n) .nx-chip:nth-child(2) .nx-chip__in { animation-duration: 5.2s; animation-delay: -3.5s; }
@keyframes nx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.nx-chip__txt { display: grid; gap: 2px; min-width: 0; }
.nx-chip b, .nx-chip em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-chip b { font: 600 clamp(13px, 1vw, 14px)/1.15 Parkinsans, sans-serif; }
.nx-chip em { font: 400 clamp(12px, .87vw, 12.5px)/1.2 Parkinsans, sans-serif; font-style: normal; color: var(--nes-muted, #787165); }
.nx-chip em.is-new { color: #c9553a; font-weight: 600; }
.nx-ck, .nx-op, .nx-dot, .nx-th { flex: none; display: block; border-radius: 50%; }
.nx-ck { position: relative; width: 20px; height: 20px; background: #ED7759; }
.nx-ck svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-ck path { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; }
.nx-op { width: 20px; height: 20px; box-shadow: inset 0 0 0 2px rgba(26, 26, 26, .28); }
.nx-dot { position: relative; width: 10px; height: 10px; margin: 0 5px; background: var(--c, #6fa8dc); }
.nx-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c, #6fa8dc); opacity: 0; }
.nx-th { width: 32px; height: 32px; object-fit: cover; }

html.nx-motion .nx-chip { opacity: 0; translate: 0 var(--fy, 18px); scale: .5; }
html.nx-motion .nx-chip.is-in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .3s ease, translate .8s cubic-bezier(.34, 1.56, .64, 1), scale .8s cubic-bezier(.34, 1.56, .64, 1);
}
html.nx-motion .nx-chip .nx-ck path { stroke-dashoffset: 16; }
html.nx-motion .nx-chip.is-in .nx-ck path { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease .5s; }
html.nx-motion .nx-chip.is-in .nx-dot::after { animation: nx-ping 1.3s ease-out .55s 2; }
@keyframes nx-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

@media (max-width: 1199px) {
  .nx-chip { display: none; }
  .nx-chip--n { display: block; left: var(--nl, 4%); right: var(--nr, auto); top: var(--nt, auto); bottom: var(--nb, auto); max-width: 92%; }
  html.nx-motion .nx-chip--n:not(.is-in) { translate: 0 var(--nfy, var(--fy, 18px)); }
}
@media (max-width: 900px) {
  .nx-chip__in { gap: 6px; padding: 7px 10px 7px 7px; border-radius: 10px; }
  .nx-chip b { font-size: 13px; }
  .nx-chip em { font-size: 12px; }
  .nx-ck, .nx-op { width: 16px; height: 16px; }
  .nx-dot { width: 8px; height: 8px; margin: 0 4px; }
  .nx-th { width: 26px; height: 26px; }
}

@media (max-width: 400px) {
  .nx-chip__in { gap: 5px; padding: 6px 8px 6px 6px; }
  .nx-chip b { font-size: 12.5px; }
  .nx-ck, .nx-op { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-chip__in, .nx-dot::after { animation: none; }
}

html.nx-motion .nx-cara__slide { transition: transform .9s cubic-bezier(.22, .7, .2, 1), height .9s cubic-bezier(.22, .7, .2, 1), filter .9s ease; filter: brightness(.8) saturate(.8); }
html.nx-motion .nx-cara__slide.is-on { filter: none; }
html.nx-motion .nx-cara__slide.is-jump { transition: none; }
html.nx-motion .nx-cara__slide.is-on .nx-zr.is-in {
  --nx-h: 1.12;
  transition: --nx-z 1.3s cubic-bezier(.16, 1, .3, 1), opacity .6s ease, --nx-h 4.2s cubic-bezier(.2, .5, .3, 1);
}

html.nx-motion { overflow-x: clip; }

.x-split > .nx-ph { position: relative; margin: 0; height: 317px; overflow: hidden; isolation: isolate; }
.x-split > .nx-ph > img { object-position: 62% 50%; }
@media (min-width: 901px) { .x-split > .nx-ph { height: 100%; min-height: 0; } }
.nx-close > .nx-chips { z-index: -1; }
