.nx {
  --nx-pad: var(--ed-pad, max(var(--case-gutter, 20px), 20px));
  margin-top: var(--sp-beat, clamp(96px, 11vw, 176px));
  padding-inline: var(--nx-pad);
  font-family: var(--sans); color: var(--ink); text-align: center;
}
.nx-link { display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; margin-inline: auto; color: inherit; text-decoration: none; }
.nx-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: var(--r-sm, 2px); }
.nx-text { display: flex; flex-direction: column; align-items: center; }
.nx-kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.3 var(--sans); color: var(--ink-mid); }
.nx-arrow { display: block; flex: none; width: 14px; height: 14px; overflow: visible; transition: translate 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) { .nx-link:hover .nx-arrow { translate: 6px 0; } }
.nx-title { display: block; margin-top: var(--sp-label, 12px); font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 116px); line-height: 0.96; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.nx-line { display: block; max-width: 42ch; margin-top: var(--sp-sub, clamp(20px, 1.8vw, 30px)); font: 400 clamp(17px, 1.3vw, 19px)/1.45 var(--sans); color: var(--ink-mid); text-wrap: balance; }

.nx-media {
  --focal-x: 50; --focal-y: 50;
  position: relative; display: block; overflow: hidden;
  width: clamp(300px, 42vw, 820px); aspect-ratio: 4 / 3; margin-top: clamp(56px, 7vh, 80px);
  border-radius: var(--ed-panel-r, 4px); background: var(--hero-bg, var(--bg-surface));
}
.nx-media picture { display: block; width: 100%; height: 100%; }
.nx-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: calc(var(--focal-x) * 1%) calc(var(--focal-y) * 1%); }
.nx-media:where(:has(img, video)) { background: transparent; }  /* as .ed-hero-mask in editorial.css: no fill to show round the photo's edge */
@media (min-width: 768px) and (max-width: 1080px) { .nx-media { width: clamp(300px, 60vw, 560px); } }
@media (max-width: 767px) {
  .nx-link { width: auto; }
  .nx-line { font-size: var(--ed-body, 17px); }
  .nx-media { width: 100%; aspect-ratio: auto; height: min(calc((100vw - 2 * var(--nx-pad)) * 1.12), calc(100svh - 150px)); margin-top: clamp(48px, 7vh, 80px); }
}

.ed-motion .nx.is-armed .nx-text > *, .ed-motion .nx.is-armed .nx-media { opacity: 0; }
.ed-motion .nx.is-in .nx-kicker { animation: edFocus 1.2s cubic-bezier(0.33, 0, 0.2, 1) both; }
.ed-motion .nx.is-in .nx-title { animation: edFocus 1.2s cubic-bezier(0.33, 0, 0.2, 1) 0.15s both; }
.ed-motion .nx.is-in .nx-line { animation: edFocus 1.2s cubic-bezier(0.33, 0, 0.2, 1) 0.5s both; }
.ed-motion .nx.is-in .nx-media.is-in { animation: edImg 1.6s cubic-bezier(0.33, 0, 0.2, 1) var(--nx-img-delay, 1s) both; }
.ed-motion .nx.is-in .nx-media.is-in > picture { transform-origin: 50% 50%; animation: edImgIn 1.6s cubic-bezier(0.33, 0, 0.2, 1) var(--nx-img-delay, 1s) both; }

@media (prefers-reduced-motion: reduce) { .nx-arrow { transition: none; } }
