/* release 958 (owner, Nov 21: "make hero image simple without stadium like nocta ... exactly follow this website"; then "make hero image like radio button each 5 seconds rolling so we can have multiple, some of my favorites"; the mockups of the simple hero were approved).
   The Home first screen in the Nocta template's manner: a tag, one big uppercase headline in two tones, one short paragraph, two buttons, and a small live line of what is saved right now.
   Behind it a photo that rolls every 5 seconds; round buttons choose one (b958_hero.js). The stadium jumbotron is gone. The markup comes from the server (simulate_hub.py, B958_NX) so nothing jumps.
   Everything is scoped to the Home hero. The old hero pieces stay hidden in the page; prices, plans and the model are not touched. */
section.hx-act.b777-act::before { display: none !important; content: none !important; }
.b777-ph, .b954, .b794-lines { display: none !important; }
.b777-act .b777-top { max-width: none !important; padding: 0 !important; display: block !important; position: relative; }
.b777-act .b777-top > *:not(.nx):not(.bt955) { display: none !important; }
section.b777-act { display: flex !important; flex-direction: column; min-height: calc(100vh - 117px); min-height: calc(100svh - 117px); }
section.b777-act > .b777-top { flex: 1; display: flex !important; flex-direction: column; }

.nx { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding: 64px clamp(24px, 3.2vw, 72px) 110px; overflow: hidden; background: #050608; font-family: Inter, "Google Sans", system-ui, sans-serif; color: #fff; box-sizing: border-box; isolation: isolate; }
.nx *, .nx *::before, .nx *::after { box-sizing: border-box; }

/* the photos */
.nx-stage { position: absolute; inset: 0; pointer-events: none; }
.nx-sl { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.nx-s { position: absolute; top: var(--t, 0%); bottom: 0; right: 0; left: var(--l, 0%); margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.nx-s.is-on { opacity: 1; }
.nx-s picture { display: block; width: 100%; height: 100%; }
.nx-s img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--px, 50%) var(--py, 50%); filter: brightness(var(--b, 1)); }
.nx-s.sub { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%), linear-gradient(180deg, transparent 0, #000 var(--tf, 0%));
            -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0, #000 28%), linear-gradient(180deg, transparent 0, #000 var(--tf, 0%));
            mask-composite: intersect; }
.nx-scrim { position: absolute; inset: 0; z-index: 1; opacity: var(--sc, 1); transition: opacity 1.1s ease;
  background: linear-gradient(90deg, rgba(5,6,8,.78) 0%, rgba(5,6,8,.42) 40%, rgba(5,6,8,.05) 72%), linear-gradient(0deg, rgba(5,6,8,.9) 0%, rgba(5,6,8,0) 38%); }
.nx-noise { position: absolute; inset: 0; z-index: 1; opacity: .05; mix-blend-mode: screen; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* the words */
.nx-top, .nx-bot { position: relative; z-index: 2; }
.nx-top { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.nx-tag { margin: 0; display: inline-flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); background: #0E0F13; font: 600 12px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.nx-tag i { display: flex; gap: 2px; height: 11px; }
.nx-tag i b { display: block; width: 2px; height: 100%; background: #3A3D45; }
.nx-tag i b.on { background: #5663F0; }
.b777-act .nx-h1 { margin: 0; font: 700 clamp(40px, 5.7vw, 92px)/.95 Inter, "Google Sans", system-ui, sans-serif; letter-spacing: -.045em; text-transform: uppercase; max-width: 62.5rem !important; text-wrap: balance; color: #fff; }
.b777-act .nx-h1 span { color: #a8a8a8; }
.nx-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; }
.nx-copy { display: flex; flex-direction: column; gap: 20px; max-width: 34rem; }
.nx-top, .nx-copy p { text-shadow: 0 0 14px rgba(5,6,8,.65), 0 1px 3px rgba(5,6,8,.5); }
.nx-copy p { margin: 0; font: 400 17.6px/1.4 Inter, system-ui, sans-serif; letter-spacing: -.025em; color: rgba(255,255,255,.78); text-wrap: balance; }
.nx-copy p b { color: #fff; font-weight: 500; }
html .b777-act .nx .nx-btns.b776-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0 !important; order: 2 !important; }
.nx-copy > p { order: 1; }
.nx-copy > .b876-next { order: 5; }
html .b777-act .nx .nx-btns a { display: inline-flex; align-items: center; justify-content: flex-start; gap: 14px; height: 52px; min-height: 0; padding: 0 16px 0 18px; border-radius: 0; font: 600 14px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; text-decoration: none; border: 1px solid rgba(255,255,255,.2); color: #fff !important; background: rgba(5,6,8,.35); flex: 0 0 auto; }
html .b777-act .nx .nx-btns a:hover { border-color: #fff; background: rgba(255,255,255,.1); }
html .b777-act .nx .nx-btns a.inv { background: #fff; color: #0A0B0F !important; border-color: #fff; }
html .b777-act .nx .nx-btns a.inv:hover { background: #E6E8FF; }
.nx-btns a svg { width: 16px; height: 16px; flex: none; }
.nx-btns a:focus-visible, .nx-d:focus-visible, .nx-pp:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* what is saved right now (numbers read from the same saved-price feed as the rest of Home) */
.nx-stat { order: 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); text-align: left; }
.nx-stat[hidden] { display: none !important; }
.nx-stat .k { flex: 0 0 100%; font: 600 11px/1.3 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nx-stat .n { font: 600 15px/1.2 Inter, system-ui, sans-serif; color: #fff; letter-spacing: -.01em; }
.nx-stat .n b { font-size: 34px; font-weight: 700; letter-spacing: -.04em; margin-right: 4px; vertical-align: -3px; }
.nx-stat.is-wait { visibility: hidden; }
.nx-stat .m { font: 400 12.5px/1.3 Inter, system-ui, sans-serif; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* narrow laptops and tablets held wide: the tunnel photo starts further right, so no white jersey number sits behind the paragraph */
@media (min-width: 900px) and (max-width: 1279px) {
  .nx-s[data-k="tun"].sub { left: calc(var(--l, 0%) + 18%); }
}

/* short laptop screens (the red belt is 72 px tall and sits on the bottom edge): tighter, so the buttons and the prices line stay above it */
@media (min-width: 900px) and (max-height: 760px) {
  .nx { padding-top: 36px; padding-bottom: 92px; gap: 22px; }
  .b777-act .nx-h1 { font-size: min(5.7vw, 9.5vh); }
  .nx-copy { gap: 14px; }
  .nx-stat { padding-top: 10px; gap: 4px 18px; }
  .nx-stat .n b { font-size: 28px; }
}
@media (min-width: 900px) and (max-height: 620px) {
  .nx-stat { display: none !important; }
}

/* the round buttons that choose the photo, and the pause button */
.nx-ctl { position: absolute; top: 58px; right: clamp(24px, 3.2vw, 72px); z-index: 4; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.nx-ctl[hidden] { display: none !important; }
.nx-rg { display: flex; align-items: center; }
.nx-d { all: unset; box-sizing: border-box; position: relative; width: 24px; height: 24px; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 50%; }
.nx-d::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); background: rgba(5,6,8,.35); transition: background .2s, border-color .2s; }
.nx-d:hover::before { border-color: #fff; background: rgba(255,255,255,.35); }
.nx-d[aria-checked="true"]::before { background: #fff; border-color: #fff; }
.nx-d svg { display: none; position: absolute; inset: 0; width: 24px; height: 24px; transform: rotate(-90deg); pointer-events: none; }
.nx-d[aria-checked="true"] svg { display: block; }
.nx-d svg circle { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 56.5; stroke-dashoffset: 56.5; animation: nx-ring 5s linear forwards; }
.nx.is-paused .nx-d svg { display: none !important; }
@keyframes nx-ring { to { stroke-dashoffset: 0; } }
.nx-pp { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 4px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(5,6,8,.45); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nx-pp:hover { border-color: #fff; background: rgba(255,255,255,.2); }
.nx-pp svg { width: 12px; height: 12px; fill: currentColor; }
.nx-pp .pl { display: none; }
.nx.is-paused .nx-pp .pa { display: none; }
.nx.is-paused .nx-pp .pl { display: block; }

/* tablets and phones: the photo is a band under the headline, so no word ever sits on a face; the belt is in the page (the site's belt script moves it at 900px) */
@media (max-width: 899px) {
  section.b777-act { min-height: 0; }
  .nx { padding: 26px 20px 24px; gap: 18px; justify-content: flex-start; }
  .nx-top { order: 1; }
  .nx-stage { position: relative; inset: auto; order: 2; height: clamp(104px, 18svh, 176px); margin: 0 -20px; width: calc(100% + 40px); }
  .nx-sl { -webkit-mask-image: linear-gradient(transparent 0, #000 26%, #000 74%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 26%, #000 74%, transparent 100%); }
  .nx-s, .nx-s.sub { left: 0; top: 0; -webkit-mask-image: none; mask-image: none; }
  .nx-s img { object-position: 50% 50%; }
  .nx-scrim { background: linear-gradient(0deg, rgba(5,6,8,.55) 0%, rgba(5,6,8,0) 50%); }
  .nx-ctl { top: auto; right: auto; left: 20px; bottom: 6px; }
  .nx-bot { order: 3; flex-direction: column; align-items: stretch; gap: 26px; }
  .b777-act .nx-h1 { font-size: clamp(32px, 9.6vw, 44px); }
  .nx-copy p { font-size: 16px; }
  html .b777-act .nx .nx-btns a { flex: 1 1 100%; justify-content: space-between; }
  .nx-tag .lg { display: none; }
  .bt955 { position: relative; margin: 0 !important; width: 100% !important; box-sizing: border-box; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .nx { padding: 40px 32px 32px; }
  .nx-stage { height: 260px; margin: 0 -32px; width: calc(100% + 64px); }
  .nx-ctl { left: 32px; }
  .b777-act .nx-h1 { font-size: clamp(44px, 8vw, 64px); }
  .nx-tag .lg { display: inline; }
  html .b777-act .nx .nx-btns a { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-s, .nx-scrim { transition: none; }
  .nx-d svg circle { animation: none; stroke-dashoffset: 0; }
}
