/* Project stories on the homepage (Nov 2026): each showcase is one stage. A short, manual story first, then the
   interactive example in the same stage. Markup is plain HTML in index.html; js/stories.js adds .is-live and the
   Previous / Next / Explore / Back behavior. Without the script every step is shown in order with the example after it.
   Class names are prefixed jy- on purpose: components.css has broad state rules (for example ".is-current > div"). */
.journey { --jy-accent: #fff; --jy-ink: #fff; --jy-sub: #D8DDEC; --jy-line: rgba(255,255,255,.28); scroll-margin-top: 96px; }
/* Just Like Vegas and Teacher Pop Shop: the client's own photograph, darkened, as the stage */
.journey-jlv, .journey-tps { margin-top: 44px; padding: 30px 36px 38px; border-radius: 24px; background-color: #0B0710; background-size: cover; background-position: center; }
.journey-jlv { --jy-accent: #FFD84D; background-image: linear-gradient(rgba(11,7,16,.84), rgba(11,7,16,.93)), url('../assets/work/stories/backdrop-just-like-vegas.jpg'); }
.journey-tps { --jy-accent: #FF9CCB; background-color: #1A1230; background-image: linear-gradient(rgba(26,18,48,.86), rgba(26,18,48,.94)), url('../assets/work/stories/backdrop-teacher-pop-shop.jpg'); }
/* Deer Texas: the story sits directly on the section's dusk sky */
.journey-deer { --jy-accent: var(--gold); margin: 6px 0 40px; }

.jy-bar { display: none; }
.jy-kicker { margin: 0 0 18px; font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--jy-accent); }
.jy-count { margin: 0; font-size: .9rem; font-weight: 600; color: var(--jy-sub); }
.jy-pips { display: flex; gap: 6px; }
.jy-pips i { width: 30px; height: 4px; border-radius: 2px; background: var(--jy-line); }
.jy-pips i.jy-on { background: var(--jy-accent); }
.jy-nav { display: flex; gap: 10px; margin-left: auto; }
.jy-btn { min-height: 44px; padding: 8px 18px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 8px; background: transparent; color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s; }
.jy-btn:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.jy-btn[aria-disabled="true"], .jy-btn[aria-disabled="true"]:hover { opacity: .45; border-color: rgba(255,255,255,.45); background: transparent; cursor: default; }
.jy-story :focus-visible, .jy-demo-bar :focus-visible { outline: 3px solid var(--jy-accent); outline-offset: 2px; }

.jy-slides { display: grid; gap: 44px; margin: 0; padding: 0; list-style: none; }
.jy-slide { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.jy-visual { display: block; order: -1; margin: 0; }
.jy-visual img { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); box-shadow: 0 10px 28px rgba(3,6,20,.45); }
.jy-text h4 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--jy-ink); }
.jy-text p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.55; color: var(--jy-sub); }
.jy-text .jy-why { padding-left: 14px; border-left: 3px solid var(--jy-accent); font-size: .98rem; }
.jy-why b { color: var(--jy-ink); }
.jy-explore { margin-top: 8px; }
.journey-jlv .jy-explore { background: #FFD84D; color: #1B1505; }
.journey-jlv .jy-explore:hover { background: #FFE47A; color: #1B1505; }

.jy-demo { margin-top: 40px; }
.jy-demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 22px; }
.jy-demo-label { margin: 0; font-size: .95rem; font-weight: 600; color: var(--jy-sub); }
.jy-demo-label:focus { outline: none; }
.jy-demo-pair { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 44px; align-items: center; }
.jy-demo-pair .app { margin: 0; }
.jy-demo .app.vendor { margin: 0 auto; }
.journey:not(.is-live) .jy-explore, .journey:not(.is-live) .jy-back { display: none; }
/* Just Like Vegas introduction: text beside the list of what we look after, the full width of the section */
.feat-jlv .feat-split { align-items: start; }
.feat-jlv .duties { margin-top: 6px; }

/* With the script: one step at a time. On desktop every step sits in the same grid cell, so the stage keeps one
   height and nothing moves when the visitor presses Previous or Next. */
.journey.is-live .jy-kicker { margin: 0; }
.journey.is-live .jy-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 26px; }
.journey.is-live .jy-slides { gap: 0; }
.journey.is-live .jy-slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.journey.is-live .jy-slide.jy-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .journey.is-live .jy-slide.jy-current { transition: opacity .28s var(--ease-out); } }
.journey.is-live .jy-demo { display: none; margin-top: 0; }
.journey.is-live.is-demo .jy-demo { display: block; }
.journey.is-live.is-demo .jy-story { display: none; }

@media (max-width: 860px) {
  .jy-slide { grid-template-columns: 1fr; gap: 22px; }
  .jy-visual { order: 0; }
  /* The buttons sit above the step, so they stay put; each step takes only the room it needs. */
  .journey.is-live .jy-slide:not(.jy-current) { display: none; }
  .jy-demo-pair { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .journey-jlv, .journey-tps { margin: 32px -8px 0; padding: 22px 16px 26px; border-radius: 18px; }
  .jy-count { margin-left: auto; }
  .jy-pips { display: none; }
  .jy-nav { width: 100%; margin-left: 0; }
  .jy-nav .jy-btn { flex: 1; }
  .jy-visual img.jy-tall { max-width: 320px; margin: 0 auto; }
  .jy-explore, .jy-back { width: 100%; }
}
