/* ── Solution pages, journey layout, after dark ──────────────────────────────
   Loaded after css/journey.css on a solution page with layout 'journey'
   (renderSolutionJourney in scripts/build-blog.mjs). First used by
   /solutions/nightclub-management-software/.
   .jr-floors   hero: the club's floors take turns on the tablet, a slow zoom on
                each, and the floor names beneath fill in step with them
   .jr-night    the journey on navy: light copy, mint accents, the stage panel
                night-toned at every stop under a slow sweep of light
   ────────────────────────────────────────────────────────────────────────── */

/* Hero */
.solution-journey .shows-hero h1{margin-top:18px}
.jr-floors .device-tablet{box-shadow:0 40px 90px rgba(0,0,0,.55)}
.jr-floor-screens{position:relative;aspect-ratio:1.52;overflow:hidden;border-radius:calc(var(--bz) * .72);background:#0b0d12}
.jr-floor-screens img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:jr-floor 18s linear infinite}
.jr-floor-screens img:nth-child(2),.jr-floor-names li:nth-child(2),.jr-floor-names li:nth-child(2):after{animation-delay:6s}
.jr-floor-screens img:nth-child(3),.jr-floor-names li:nth-child(3),.jr-floor-names li:nth-child(3):after{animation-delay:12s}
/* Each floor is up for a third of the loop: in, a slow pull back, out under the next. */
@keyframes jr-floor{0%{opacity:0;transform:scale(1.07)}4%{opacity:1}34%{opacity:1}38%{opacity:0;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
.jr-floor-names{display:flex;gap:clamp(14px,2vw,28px);width:calc(100% - 15cqw);margin:24px 0 0;padding:0;list-style:none}
.jr-floor-names li{position:relative;flex:1 1 0;padding-top:14px;font-size:14px;line-height:1.2;font-weight:700;color:#8792ad;animation:jr-floor-name 18s linear infinite}
.jr-floor-names li:before,.jr-floor-names li:after{content:"";position:absolute;left:0;top:0;width:100%;height:3px;border-radius:3px}
.jr-floor-names li:before{background:rgba(255,255,255,.14)}
.jr-floor-names li:after{background:linear-gradient(90deg,var(--indigo),var(--peri) 60%,var(--mint));transform-origin:0 50%;transform:scaleX(0);animation:jr-floor-fill 18s linear infinite}
@keyframes jr-floor-name{0%,34%{color:var(--white)}38%,100%{color:#8792ad}}
@keyframes jr-floor-fill{0%{transform:scaleX(0);opacity:1}34%{transform:scaleX(1);opacity:1}38%,100%{transform:scaleX(1);opacity:0}}

/* After the journey: a proof section's link row (the case study) */
.solution-journey .shows-proof .link-row{margin-top:22px}

/* Journey on navy */
.jr-night{background:var(--navy);color:#aeb9cb}
.jr-night .jr-step h2{color:var(--white)}
.jr-night .jr-text{color:#aeb9cb}
.jr-night .jr-step .jr-earn{border-left-color:var(--mint)}
.jr-night .jr-why{color:var(--white)}
.jr-night .jr-stat strong{color:var(--mint)}
.jr-night .jr-stat span{color:#8792ad}
.jr-night .link-row{margin-top:24px}
.jr-night .text-link{color:var(--mint);--rule:rgba(93,254,194,.36)}
.jr-night .text-link:focus-visible{outline:2px solid var(--mint);outline-offset:4px;border-radius:2px}
.jr-night .jr-panel{border-color:rgba(255,255,255,.1)}
.jr-night .jr-panel:before{opacity:1;background:radial-gradient(120% 90% at 85% 0%,rgba(65,94,226,.5),transparent 60%),#0a1124}
/* The sweep: two soft beams crossing the panel, slow enough to read as light, not motion. */
.jr-night .jr-panel:after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(40% 60% at 20% 10%,rgba(93,254,194,.14),transparent 70%),radial-gradient(45% 70% at 80% 100%,rgba(122,140,233,.2),transparent 70%);animation:jr-sweep 16s ease-in-out infinite alternate;pointer-events:none}
@keyframes jr-sweep{to{background-position:60% 40%,-40% -30%}}
.jr-night .jr-rail a:focus-visible{outline-color:var(--mint)}

@media (min-width:1024px){
  /* A stop with several frames gets the scroll to show them; its copy holds
     in view while the frames change. */
  .jr-step.jr-long{min-height:160vh;justify-content:flex-start}
  .jr-step.jr-long .jr-copy{position:sticky;top:calc(50vh - 150px)}
}
@media (max-width:1023px){
  .jr-night .jr-step{border-top-color:rgba(255,255,255,.1)}
}
@media (max-width:600px){
  /* the phone hangs lower and wider here, so the names stop short of it */
  .jr-floor-names{width:calc(100% - 34cqw);gap:12px;margin-top:18px}
  .jr-floor-names li{font-size:13px}
}

@media (prefers-reduced-motion:reduce){
  .jr-floor-screens img,.jr-floor-names li,.jr-floor-names li:after,.jr-night .jr-panel:after{animation:none}
  .jr-floor-screens img:first-child{opacity:1}
  .jr-floor-names li:first-child{color:var(--white)}
  .jr-floor-names li:first-child:after{transform:none}
}
