.landing-stories {
  --stories-ink: #2b2727;
  --stories-paper: #fffaf7;
  width: min(100% - 32px, 1360px);
  margin: 0 auto 30px;
  color: var(--stories-ink);
}

.landing-stories[hidden] { display: none; }

.landing-stories__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  margin-bottom: 8px;
}

.landing-stories__nav { display: flex; gap: 12px; }
.landing-stories__arrow {
  width: 38px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--stories-ink);
  font: 350 25px/1 inherit;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease;
}
.landing-stories__arrow:hover:not(:disabled) { transform: translateX(2px); }
.landing-stories__arrow:first-child:hover:not(:disabled) { transform: translateX(-2px); }
.landing-stories__arrow:disabled { opacity: .22; cursor: default; }

.landing-stories__rail {
  display: flex;
  gap: clamp(14px, 2.1vw, 28px);
  overflow-x: auto;
  padding: 3px 2px 9px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.landing-stories__rail::-webkit-scrollbar { display: none; }

@media (min-width: 701px) {
  .landing-stories__rail > :first-child { margin-left: auto; }
  .landing-stories__rail > :last-child { margin-right: auto; }
}

.landing-story-chip {
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

.landing-story-chip__ring {
  position: relative;
  width: 112px;
  height: 112px;
  padding: 5px;
  border: 3px solid var(--story-accent, #9dc2e8);
  border-radius: 50%;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.landing-story-chip:hover .landing-story-chip__ring { transform: translateY(-2px) scale(1.015); }
.landing-story-chip.is-seen .landing-story-chip__ring { border-color: rgba(43,39,39,.18); }
.landing-story-chip__ring::after { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; pointer-events: none; }
.landing-story-chip__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #eee8e4; }
.landing-story-chip__label { max-width: 120px; min-height: 2.5em; font-size: 13px; font-weight: 650; line-height: 1.22; text-align: center; text-wrap: balance; }

.landing-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20,17,17,.78);
  backdrop-filter: blur(20px) saturate(.8);
  opacity: 0;
  transition: opacity .22s ease;
}
.landing-story-viewer.is-open { opacity: 1; }

.landing-story-viewer__stage {
  position: relative;
  width: min(430px, calc(100vw - 40px));
  height: min(764px, calc(100dvh - 40px));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 24px;
  background: #171414;
  box-shadow: 0 30px 100px rgba(0,0,0,.34);
  transform: translateY(8px) scale(.985);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  touch-action: pan-y;
}
.landing-story-viewer.is-open .landing-story-viewer__stage { transform: none; }

.landing-story-viewer__media,
.landing-story-viewer__media img,
.landing-story-viewer__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.landing-story-viewer__media img,
.landing-story-viewer__media video { object-fit: cover; }
.landing-story-viewer__media { background: #211d1d; }
.landing-story-viewer__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, transparent 28%, transparent 56%, rgba(0,0,0,.7) 100%); pointer-events: none; }

.landing-story-viewer__progress {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
}
.landing-story-viewer__progress-item { flex: 1 1 0; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.32); }
.landing-story-viewer__progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; }
.landing-story-viewer__progress-item.is-complete .landing-story-viewer__progress-fill { width: 100%; }

.landing-story-viewer__header {
  position: absolute;
  z-index: 6;
  top: 25px;
  left: 14px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}
.landing-story-viewer__avatar { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 50%; object-fit: cover; }
.landing-story-viewer__name { min-width: 0; flex: 1; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-story-viewer__pause,
.landing-story-viewer__close { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(20,17,17,.24); color: #fff; font: 500 21px/1 inherit; cursor: pointer; backdrop-filter: blur(8px); }

.landing-story-viewer__copy {
  position: absolute;
  z-index: 4;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  pointer-events: none;
}
.landing-story-viewer__copy[data-align="top"] { top: 105px; }
.landing-story-viewer__copy[data-align="center"] { top: 50%; transform: translateY(-50%); }
.landing-story-viewer__copy[data-align="bottom"] { bottom: 82px; }
.landing-story-viewer__copy[data-theme="light"] { color: #2b2727; text-shadow: 0 1px 18px rgba(255,255,255,.25); }
.landing-story-viewer__title { margin: 0; font-size: clamp(28px, 5vw, 42px); font-weight: 720; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.landing-story-viewer__caption { margin: 0; font-size: 14px; font-weight: 450; line-height: 1.35; text-wrap: balance; }

.landing-story-viewer__cta {
  position: absolute;
  z-index: 7;
  left: 20px;
  right: 20px;
  bottom: 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #2b2727;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.landing-story-viewer__cta[data-style="outline"] { background: rgba(24,20,20,.18); color: #fff; backdrop-filter: blur(12px); }

.landing-story-viewer__tap { position: absolute; z-index: 3; top: 72px; bottom: 0; width: 36%; border: 0; background: transparent; cursor: pointer; }
.landing-story-viewer__tap--prev { left: 0; }
.landing-story-viewer__tap--next { right: 0; }
.landing-story-viewer__desktop-arrow { position: fixed; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(20,17,17,.28); color: #fff; font: 300 28px/1 inherit; cursor: pointer; backdrop-filter: blur(10px); }
.landing-story-viewer__desktop-arrow--prev { right: calc(50% + 235px); }
.landing-story-viewer__desktop-arrow--next { left: calc(50% + 235px); }

html.is-story-open,
body.is-story-open { overflow: hidden; }

@media (max-width: 700px) {
  .landing-stories { width: 100%; margin-bottom: 18px; }
  .landing-stories__head { display: none; }
  .landing-stories__nav { display: none; }
  .landing-stories__rail { gap: 13px; padding: 2px 14px 8px; scroll-padding-inline: 14px; }
  .landing-story-chip { flex-basis: 76px; gap: 7px; }
  .landing-story-chip__ring { width: 76px; height: 76px; padding: 3px; border-width: 2.5px; }
  .landing-story-chip__label { max-width: 82px; min-height: 2.4em; font-size: 11px; }
  .landing-story-viewer { padding: 0; background: #111; }
  .landing-story-viewer__stage { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .landing-story-viewer__desktop-arrow { display: none; }
  .landing-story-viewer__progress { top: max(9px, env(safe-area-inset-top)); }
  .landing-story-viewer__header { top: max(22px, calc(env(safe-area-inset-top) + 13px)); }
  .landing-story-viewer__cta { bottom: max(18px, env(safe-area-inset-bottom)); }
  .landing-story-viewer__copy[data-align="bottom"] { bottom: max(82px, calc(env(safe-area-inset-bottom) + 76px)); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-stories__rail { scroll-behavior: auto; }
  .landing-story-viewer,
  .landing-story-viewer__stage,
  .landing-story-chip__ring { transition: none; }
}
