/* Website v3: the scroll-driven drive through Yerevan. Without JS or with reduced
   motion the journey is a normal stack: hero, then every feature card as a list. */

.has-journey .header {
  position: fixed;
  inset: 0 0 auto;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.has-journey main > section { scroll-margin-top: 60px; }

.header__nav { display: none; gap: 1.4rem; margin-right: 0.5rem; font-weight: 650; font-size: 0.95rem; }
.header__nav a { color: inherit; text-decoration: none; opacity: 0.85; }
.header__nav a:hover { opacity: 1; text-decoration: underline; }

.header.is-over { background: transparent; border-color: transparent; color: oklch(0.97 0 0); }
.header.is-over::before { content: ''; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(oklch(0.08 0.02 262 / 0.75), transparent); pointer-events: none; }
.header.is-over .brand { color: oklch(0.97 0 0); }
.header.is-over .lang { background: oklch(1 0 0 / 0.12); }
.header.is-over .lang button { color: oklch(1 0 0 / 0.75); }
.header.is-over .lang button[aria-pressed='true'] { background: oklch(0.97 0 0); color: var(--ink); }

/* Stage */

.journey { position: relative; background: oklch(0.12 0.03 262); color: oklch(0.97 0 0); }

.journey__stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(oklch(0.16 0.04 265), oklch(0.26 0.05 280) 62%, oklch(0.1 0.02 262) 62%);
}

.journey__canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; display: block; }

.journey__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, oklch(0.05 0.02 262 / 0.5) 100%);
}

.journey__hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 90px var(--gutter) 30vh;
  max-width: 40rem;
}
.journey__hero h1 { margin-top: 1rem; font-size: var(--step-4); color: oklch(0.98 0 0); text-shadow: 0 2px 24px oklch(0.05 0.02 262 / 0.6); }
.journey__hero h1 .accent { display: block; color: var(--yellow); }
.journey__lead { margin-top: 1rem; max-width: 34rem; font-size: var(--step-1); line-height: 1.5; color: oklch(0.88 0.01 262); text-shadow: 0 1px 12px oklch(0.05 0.02 262 / 0.6); }
.journey__hero .stores { margin-top: 1.5rem; }
.journey__hero .store { background: oklch(0.98 0 0); color: var(--ink); }
.journey__hero .store:hover { background: oklch(0.9 0.01 262); }

.plate--dark { border-color: oklch(1 0 0 / 0.75); color: oklch(0.97 0 0); }

.journey__hint { display: none; }
.journey__still-note { display: none; }
.journey--still .journey__still-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 34rem;
  margin-top: 1.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: oklch(0.1 0.025 265 / 0.85);
  border: 1px solid oklch(0.87 0.11 74 / 0.45);
  font-size: var(--step--1);
  line-height: 1.5;
  color: oklch(0.92 0.01 262);
}
.journey__still-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.1rem; color: var(--lamp, oklch(0.87 0.11 74)); }

/* Feature cards (static layout = a readable list) */

.journey__cards {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  padding: 2rem var(--gutter) 4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.jcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 18px;
  background: oklch(0.13 0.025 262 / 0.9);
  border: 1px solid oklch(1 0 0 / 0.09);
  box-shadow: 0 24px 60px -30px oklch(0 0 0 / 0.8);
}
.jcard__code { display: flex; align-items: center; gap: 0.55rem; font-weight: 750; font-size: 0.85rem; color: oklch(0.86 0.01 262); }
.jcard__code img { width: 28px; height: 28px; object-fit: contain; }
.jcard__title { margin-top: 0.6rem; font-size: var(--step-2); color: oklch(0.98 0 0); }
.jcard__body { margin-top: 0.6rem; font-size: var(--step--1); line-height: 1.6; color: oklch(0.84 0.01 262); }
.jcard__list { margin-top: 0.7rem; display: grid; gap: 0.4rem; font-size: var(--step--1); color: oklch(0.9 0.01 262); line-height: 1.45; }
.jcard__list li { position: relative; padding-left: 1.2rem; }
.jcard__list li::before { content: ''; position: absolute; left: 0.1rem; top: 0.5em; width: 0.5rem; height: 0.5rem; background: var(--yellow); transform: rotate(45deg); }
.jcard__phone { padding: 4px; border-radius: 16px; background: oklch(0.05 0.01 262); border: 1px solid oklch(1 0 0 / 0.12); }
.jcard__phone > img, .jcard__phone > .placeholder { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 12px; }
.jcard__phone .placeholder { font-size: 0.62rem; padding: 0.4rem; }
.jcard__phone .placeholder b { font-size: 0.65rem; }
.jcard--finish { grid-template-columns: 1fr; border-color: oklch(0.86 0.165 88 / 0.5); }
.jcard--finish .stores { margin-top: 1.1rem; }
.jcard--finish .store { background: oklch(0.98 0 0); color: var(--ink); }

.journey__caption, .jroute, .journey__skip { display: none; }

/* Reduced motion: a still postcard of the card's stop across the top of each card. */
.jcard__scene {
  grid-column: 1 / -1;
  display: block;
  width: calc(100% + 2.3rem);
  height: 11rem;
  margin: -1.15rem -1.15rem 0.2rem;
  border-radius: 18px 18px 0 0;
}

/* Live (scroll-driven) layout */

.journey--live { height: calc((var(--journey-units, 11) + 1) * 100vh); }
.journey--live .journey__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }

.journey--live .journey__hero {
  position: absolute;
  inset: 0 auto auto 0;
  min-height: 0;
  padding: clamp(84px, 14vh, 140px) var(--gutter) 0;
  transition: opacity 0.2s linear;
}
/* A soft night scrim behind the copy: on wide screens the hero text sits over the lit city
   blocks. It is part of the hero, so it fades out with it when the drive starts. */
.journey__hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -20% -55% -35% -30%;
  background: radial-gradient(ellipse 58% 52% at 42% 52%, oklch(0.07 0.025 265 / 0.82), oklch(0.07 0.025 265 / 0.5) 55%, transparent 80%);
  pointer-events: none;
}

.journey--live .journey__hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: oklch(0.88 0.01 262);
}
.journey__wheel { position: relative; width: 20px; height: 30px; border: 2px solid currentColor; border-radius: 10px; }
.journey__wheel::after { content: ''; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

.journey--live .journey__cards { position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; }
.journey--live .jcard {
  position: absolute;
  top: clamp(84px, 13vh, 130px);
  right: var(--gutter);
  width: min(30rem, 42vw);
  grid-template-columns: minmax(0, 1fr) 118px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.45s;
}
.journey--live .jcard.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s;
}
.journey--live .jcard--finish { grid-template-columns: 1fr; }

.journey--live .journey__caption {
  display: grid;
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 86px;
  gap: 0.1rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--yellow);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.journey--live .journey__caption.is-visible { opacity: 1; transform: none; }
.journey__city { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.85 0.01 262); }
.journey__caption span:last-child { font-weight: 800; font-stretch: 75%; font-size: var(--step-1); color: oklch(0.98 0 0); text-shadow: 0 1px 10px oklch(0 0 0 / 0.5); }

.journey--live .jroute {
  display: block;
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 22px;
}
.jroute__line { position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: oklch(1 0 0 / 0.22); }
.jroute__fill { display: block; height: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.jroute__dots { position: relative; display: flex; justify-content: space-between; }
.jroute__dot { position: relative; width: 14px; height: 14px; padding: 0; border: 2px solid oklch(1 0 0 / 0.55); border-radius: 50%; background: oklch(0.12 0.03 262); cursor: pointer; }
.jroute__dot::before { content: ''; position: absolute; inset: -14px; }
.jroute__dot.is-past { background: var(--yellow); border-color: var(--yellow); }
.jroute__dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.journey--live .journey__skip {
  display: inline-block;
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 48px;
  font-size: 0.82rem;
  font-weight: 700;
  color: oklch(0.9 0.01 262);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 980px) {
  .header__nav { display: flex; }
  .journey--live .journey__hero { inset: 0 auto auto 0; max-width: 38rem; }
  .jroute__dot span { position: absolute; top: 20px; left: 50%; width: auto; height: auto; overflow: visible; clip: auto; transform: translateX(-50%); font-size: 0.7rem; font-weight: 650; color: oklch(0.82 0.01 262); }
  .jroute__dot:first-child span { left: 0; transform: none; }
  .jroute__dot:last-child span { left: auto; right: 0; transform: none; }
  .journey--live .jroute { bottom: 34px; }
  .journey--live .journey__caption { bottom: 110px; }
  .journey--live .journey__skip { bottom: 72px; }
}

@media (max-width: 759px) {
  .journey--live .journey__hero { padding-top: 84px; }
  .journey--live .journey__hero h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3rem); }
  .journey--live .journey__lead { font-size: var(--step-0); }
  .journey--live .jcard {
    left: var(--gutter);
    right: var(--gutter);
    top: 74px;
    width: auto;
    grid-template-columns: minmax(0, 1fr) 78px;
    padding: 0.95rem;
  }
  .journey--live .jcard__title { font-size: 1.35rem; }
  .journey--live .jcard__body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .journey--live .jcard__list { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .journey__wheel::after { animation: none; }
}
