/* Home hero showcase (2026-10-19): the headline names an industry and the frame shows the real
   concept site EpicTech built for it. One choreographed swap per item (word + desktop + phone),
   driven by assets/js/nx-show.js. Without JS, or under reduced motion, the first item simply shows. */

.nx-rot-line { display: block; white-space: nowrap; }
.nx-rot { display: inline-block; position: relative; transition: opacity .32s ease, transform .42s var(--nx-ease), filter .32s ease; }
.nx-rot.is-out { opacity: 0; transform: translateY(-.32em); filter: blur(6px); }
.nx-rot.is-pre { opacity: 0; transform: translateY(.36em); filter: blur(6px); transition: none; }

.nx-show { position: relative; display: grid; gap: 18px; min-width: 0; }
.nx-show-stage { position: relative; padding: 0 9% 34px 0; }
.nx-show-desk { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-hover); background: #0d0f15; color: inherit; text-decoration: none;
  box-shadow: 0 40px 90px -42px rgba(130,87,255,.55), 0 30px 70px -36px rgba(0,0,0,.9); transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: 60% 50%;
  transition: transform .6s var(--nx-ease), border-color .3s ease; }
.nx-show-desk:hover { border-color: rgba(169,141,255,.55); transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.nx-show-bar { display: flex; align-items: center; gap: 5px; padding: 9px 11px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--border); }
.nx-show-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.nx-show-bar em { margin: 0 auto; padding-right: 36px; font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nx-show-shots, .nx-show-pshots { position: relative; display: block; overflow: hidden; }
.nx-show-shots { aspect-ratio: 16 / 10; }
.nx-show-pshots { aspect-ratio: 390 / 760; }
.nx-show-shots img, .nx-show-pshots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.035) translateY(10px);
  transition: opacity .55s ease, transform 1.1s var(--nx-ease); }
.nx-show-shots img.is-on, .nx-show-pshots img.is-on { opacity: 1; transform: none; }
.nx-show-phone { position: absolute; right: 0; bottom: 0; width: 23%; overflow: hidden; border-radius: 18px; border: 4px solid #1b1e27; background: #0d0f15;
  box-shadow: 0 28px 60px -20px rgba(0,0,0,.9); }
.nx-show-pshots img { transition-delay: .12s, .12s; }

.nx-show-cap { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline; margin: 0; min-height: 3.2em; padding-right: 9%; }
.nx-show-cap .nx-work-tag { grid-row: 1; }
.nx-show-cap b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1rem; color: var(--text); }
.nx-show-sum { grid-column: 1 / -1; min-height: 2.9em; color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-show-go { grid-column: 1 / -1; justify-self: start; color: var(--purple-light); font-weight: 700; font-size: .9rem; text-decoration: none; }
.nx-show-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.nx-show-cap.is-swap :is(b, .nx-show-sum) { opacity: 0; transform: translateY(4px); }
.nx-show-cap :is(b, .nx-show-sum) { transition: opacity .3s ease, transform .4s var(--nx-ease); }

.nx-show-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nx-show-chips button { position: relative; overflow: hidden; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--nx-ink-2); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.nx-show-chips button:hover { border-color: var(--border-hover); color: var(--text); }
.nx-show-chips button[aria-pressed="true"] { border-color: rgba(169,141,255,.6); background: rgba(130,87,255,.14); color: var(--text); }
.nx-show-chips button:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; }
/* Time left before the next industry, so the change never surprises: a thin bar on the active chip. */
.nx-show-prog { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--purple-light); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.nx-show.is-auto button[aria-pressed="true"] .nx-show-prog { opacity: .8; animation: nx-show-prog var(--nx-show-ms, 5200ms) linear forwards; }
.nx-show.is-paused button[aria-pressed="true"] .nx-show-prog { animation-play-state: paused; }
@keyframes nx-show-prog { to { transform: scaleX(1); } }

.nx-hero .nx-actions + .m-trust { margin-top: 18px; }

@media (max-width: 1080px) {
  .nx-show { max-width: 640px; }
}
@media (max-width: 720px) {
  .nx-show { margin-top: 8px; gap: 14px; }
  main.nx .nx-hero { padding-bottom: 8px; }
  .nx-show-stage { padding: 0 12% 26px 0; }
  .nx-show-desk, .nx-show-desk:hover { transform: none; }
  .nx-show-phone { width: 27%; border-width: 3px; border-radius: 14px; }
  .nx-show-bar em { padding-right: 0; }
  .nx-show-cap { padding-right: 0; }
  /* One row that scrolls sideways, so the chips never push the page taller. */
  .nx-show-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 1px 6px; scrollbar-width: none; }
  .nx-show-chips::-webkit-scrollbar { display: none; }
  .nx-show-chips li { flex: none; scroll-snap-align: start; }
}

/* The longest industry words must stay on the headline's second line on the narrowest phones. */
@media (max-width: 380px) {
  .nx-hero h1 { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-rot, .nx-show-shots img, .nx-show-pshots img, .nx-show-cap :is(b, .nx-show-sum), .nx-show-desk { transition: none; }
  .nx-show-desk, .nx-show-desk:hover { transform: none; }
  .nx-show-prog { display: none; }
}
