/* /seo/ hero story (assets/js/nx-seo.js), 2026-10-13: a search results page where the client's listing climbs to #1,
 * joins the map pack and turns into a call. Reuses .nx-rail, .nx-cur and .nx-rev from nx-hero.css. Illustration. */
.nx-serp-stage { position: relative; min-height: 600px; }
.nx-serp { position: absolute; top: 44px; left: 0; width: 78%; border-radius: 16px; border: 1px solid var(--border-hover); background: #0b0d14; box-shadow: 0 60px 140px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(130,87,255,.06); overflow: hidden; }
.nx-serp-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--nx-line); background: rgba(255,255,255,.03); }
.nx-serp-g { font-family: "Manrope", Inter, sans-serif; font-weight: 800; font-size: .9rem; letter-spacing: -.02em; color: rgba(255,255,255,.85); }
.nx-serp-q { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: var(--text); }
.nx-serp-q svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.nx-serp-q i { width: 1px; height: 16px; background: var(--purple-light); animation: nx-serp-caret 1s steps(2) infinite; }
.nx-serp-body { position: relative; padding: 12px 16px 16px; }
.nx-map { height: 0; overflow: hidden; opacity: 0; transition: height .5s var(--nx-ease), opacity .4s ease, margin .5s var(--nx-ease); margin-bottom: 0; }
.nx-map.is-on { height: 74px; opacity: 1; margin-bottom: 12px; }
.nx-map-in { display: grid; grid-template-columns: 92px 1fr; gap: 12px; height: 74px; border-radius: 12px; border: 1px solid rgba(169,141,255,.3); background: rgba(130,87,255,.08); overflow: hidden; }
.nx-map-tile { position: relative; background: #141828 repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px), repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.05) 18px 19px); }
.nx-map-tile::before { content: ""; position: absolute; left: 20px; right: 14px; top: 30px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); transform: rotate(-18deg); }
.nx-map-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -22px 0 0 -9px; border-radius: 50% 50% 50% 0; background: var(--purple-light); transform: rotate(-45deg) scale(0); transition: transform .4s cubic-bezier(.2,.8,.2,1.4) .25s; box-shadow: 0 6px 14px rgba(130,87,255,.6); }
.nx-map-pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0b0d14; }
.nx-map.is-on .nx-map-pin { transform: rotate(-45deg) scale(1); }
.nx-map-txt { display: grid; align-content: center; gap: 3px; padding-right: 10px; font-size: .78rem; color: var(--muted); }
.nx-map-txt b { font-size: .86rem; color: var(--text); }
.nx-map-txt em { font-style: normal; color: var(--purple-light); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.nx-serp-list { position: relative; height: 270px; margin: 0; padding: 0; list-style: none; }
.nx-serp-row { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; transform: translateY(calc(var(--p, 0) * 54px)); transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .4s ease, background .3s ease, border-color .3s ease; opacity: 0; }
.nx-serp-row.is-in { opacity: 1; }
.nx-serp-row.is-you { background: rgba(130,87,255,.1); border-color: rgba(169,141,255,.4); }
.nx-serp-pos { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.07); font-size: .74rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; transition: background .3s ease, color .3s ease; }
.nx-serp-row.is-you.is-top .nx-serp-pos { background: var(--green); color: #050609; }
.nx-serp-txt { display: grid; gap: 2px; min-width: 0; }
.nx-serp-txt b { font-size: .84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-serp-txt small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-serp-row.is-you .nx-serp-txt b { color: #d9ccff; }
.nx-serp-tag { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(169,141,255,.18); color: var(--purple-light); opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease; }
.nx-serp-row.is-you .nx-serp-tag { opacity: 1; transform: none; }
.nx-serp-month { position: absolute; right: 16px; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--nx-line); background: rgba(12,13,20,.9); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .3s ease; }
.nx-serp-month.is-on { opacity: 1; }
.nx-serp-month b { color: var(--text); }

/* The call that comes from the click. */
.nx-call { position: absolute; z-index: 5; left: 0; bottom: 0; width: min(330px, 58%); padding: 14px; border-radius: 18px; border: 1px solid var(--border-hover); background: linear-gradient(180deg, rgba(22,20,36,.95), rgba(12,13,20,.97)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(130,87,255,.08); opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .6s var(--nx-ease); }
.nx-call.is-on { opacity: 1; transform: none; }
.nx-call-head { display: flex; align-items: center; gap: 10px; }
.nx-call-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(62,227,161,.14); color: var(--green); }
.nx-call-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nx-call.is-on .nx-call-ic { animation: nx-call-buzz .5s ease 2; }
.nx-call-head > div { flex: 1; min-width: 0; }
.nx-call-head b { display: block; font-size: .9rem; color: var(--text); }
.nx-call-head small { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-call-head em { flex: none; font-style: normal; padding: 3px 8px; border-radius: 999px; background: rgba(62,227,161,.14); color: var(--green); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nx-call-q { margin: 10px 0 0; padding: 9px 11px; border-radius: 12px; border-bottom-left-radius: 4px; background: rgba(255,255,255,.06); font-size: .8rem; line-height: 1.4; color: var(--text); }
.nx-call-q span { display: block; margin-bottom: 3px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@keyframes nx-serp-caret { to { opacity: 0; } }
@keyframes nx-call-buzz { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

@media (prefers-reduced-motion: reduce) {
  .nx-serp-row, .nx-map, .nx-map-pin, .nx-call, .nx-serp-tag, .nx-serp-month, .nx-serp-pos { transition: none; }
  .nx-serp-q i, .nx-call.is-on .nx-call-ic { animation: none; }
}
@media (max-width: 720px) {
  .nx-serp-stage { min-height: 0; display: grid; gap: 12px; }
  .nx-serp-stage .nx-rail { display: none; }
  .nx-serp { position: relative; top: auto; width: 100%; }
  .nx-serp-list { height: 220px; }
  .nx-serp-row { height: 40px; transform: translateY(calc(var(--p, 0) * 46px)); }
  .nx-map, .nx-map.is-on { height: 74px; margin-bottom: 12px; }
  .nx-map { opacity: 0; }
  .nx-map.is-on { opacity: 1; }
  .nx-call { position: relative; bottom: auto; width: 100%; height: 150px; overflow: hidden; opacity: 1; transform: none; transition: border-color .3s ease; }
  .nx-call:not(.is-on) { border-color: var(--nx-line); box-shadow: none; }
  .nx-call::before { content: "Waiting for the next call\2026"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; color: var(--muted); opacity: 1; transition: opacity .3s ease; }
  .nx-call.is-on::before { opacity: 0; }
  .nx-call > * { opacity: 0; transition: opacity .35s ease .1s; }
  .nx-call.is-on > * { opacity: 1; }
  .nx-serp-stage .nx-rev { position: relative; right: auto; bottom: auto; width: 100%; display: grid; grid-template-columns: 1fr 120px; column-gap: 14px; align-items: center; }
  .nx-serp-stage .nx-rev-head { grid-column: 1; }
  .nx-serp-stage .nx-rev-n { grid-column: 1; margin-top: 4px; }
  .nx-serp-stage .nx-rev-bars { grid-column: 2; grid-row: 1 / 3; height: 34px; margin: 0; }
}
