/* A voice, an idea, a first draft. Scoped to the landing story. */
.landing .story {
  padding: 94px 0 58px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.landing .story__heading { max-width: 670px; margin-bottom: 44px; }
.landing .story__heading .section__title { margin-bottom: 18px; }
.landing .story__heading > p:last-child { max-width: 500px; color: var(--text-secondary); font-size: .91rem; }
.landing .story__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.landing .story__narrative { min-width: 0; }
.landing .story__step { padding: 32px 0; border-top: 1px solid var(--border); }
.landing .story__number { display: block; margin-bottom: 18px; color: #8596b2; font-size: .63rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.landing .story__step h3 { max-width: 330px; margin: 0 0 16px; color: var(--text-primary); font: 600 clamp(1.65rem, 2.6vw, 2.25rem)/1.13 var(--font-sans); letter-spacing: -.045em; }
.landing .story__step > p { max-width: 340px; color: var(--text-secondary); font-size: .88rem; line-height: 1.8; }
.landing .story__example { margin-top: 24px; padding: 18px 0 0; border-top: 1px solid var(--border); }
.landing .story__example small { display: block; margin-bottom: 9px; color: var(--text-muted); font-size: .63rem; }
.landing .story__example p { color: #c7cbd5; font-size: .77rem; line-height: 1.8; white-space: pre-line; }
.landing .story__stage { min-width: 0; margin: 0; }
.landing .story__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border-light); border-radius: 26px; background: #11151d; isolation: isolate; }
.landing .story__fallback { position: absolute; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #b3c4dc; background: radial-gradient(ellipse at 50% 70%, #17263b, #0c0f15 75%); }
.landing .story__fallback img { width: 42px; height: 42px; border-radius: 12px; }
.landing .story__fallback span { max-width: 75%; text-align: center; font-size: .85rem; }
.landing .story__poster, .landing .story__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.landing .story__poster { position: absolute; inset: 0; z-index: 0; }
.landing .story__video { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
.landing .story__video.is-ready { opacity: 1; }
.landing .story__video[controls] { pointer-events: auto; }
.landing .story__state { position: absolute; z-index: 3; top: 18px; left: 18px; display: flex; align-items: center; gap: 8px; min-height: 29px; padding: 6px 11px; border: 1px solid rgba(216,231,255,.18); border-radius: 99px; color: #e2eaf7; background: rgba(9,13,19,.83); font-size: .61rem; line-height: 1.2; pointer-events: none; }
.landing .story__state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #a9ccff; }
.landing .story__draft { position: absolute; z-index: 3; right: 18px; bottom: 18px; width: min(320px, 63%); padding: 17px 19px; border: 1px solid rgba(204,222,255,.23); border-radius: 16px; color: #e6eaf1; background: rgba(14,19,28,.94); box-shadow: 0 14px 36px rgba(0,0,0,.22); pointer-events: none; }
.landing .story__draft small { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; color: #9fb9df; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.landing .story__draft p { margin: 0; font-size: clamp(.63rem, 1.1vw, .78rem); line-height: 1.7; white-space: pre-line; }
.landing .story [hidden] { display: none !important; }
.landing .story__caption { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 14px; color: var(--text-muted); font-size: .6rem; line-height: 1.7; }
.landing .story__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 19px; }
.landing .story__tools .btn { min-height: 42px; padding: 10px 16px; font-size: .69rem; }
.landing .story__tools svg { width: 14px; height: 14px; }
.landing .story__notice { flex: 1 1 100%; min-height: 1.7em; margin: 0; color: var(--text-muted); font-size: .65rem; }
.landing .story__progress { display: flex; gap: 7px; margin-top: 18px; }
.landing .story__progress span { height: 2px; flex: 1; background: rgba(202,219,247,.16); }
.landing .story__progress span.is-active { background: #a8c9ff; }
.landing .story.is-enhanced:not(.is-static) .story__stage { position: sticky; top: 96px; }
.landing .story.is-enhanced:not(.is-static) .story__step { min-height: 70vh; min-height: 70svh; display: flex; flex-direction: column; justify-content: center; padding-block: 48px; }
.landing .story.is-enhanced:not(.is-static) .story__step:last-child { min-height: 80vh; min-height: 80svh; }
.landing .story.is-enhanced:not(.is-static) .story__number { color: var(--text-muted); }
.landing .story.is-enhanced:not(.is-static) .story__step.is-active .story__number { color: #bad7ff; }
.landing .story.is-manual .story__draft, .landing .story.is-manual .story__state { bottom: auto; }
.landing .story.is-manual .story__draft { top: 58px; }
@media (min-width: 769px) and (max-height: 700px) {
  .landing .story.is-enhanced:not(.is-static) .story__stage { top: 82px; }
  .landing .story__screen { max-height: calc(100svh - 250px); aspect-ratio: 16 / 9; }
}
@media (max-width: 960px) {
  .landing .story__layout { gap: 32px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); }
  .landing .story__draft { width: 70%; padding: 13px 15px; }
}
@media (max-width: 768px) {
  .landing .story { padding-block: 64px 28px; }
  .landing .story__heading { margin-bottom: 28px; }
  .landing .story__heading > p:last-child { font-size: .84rem; }
  .landing .story__layout { display: flex; flex-direction: column; gap: 24px; }
  .landing .story__narrative { width: 100%; }
  .landing .story__stage { order: -1; width: 100%; z-index: 5; }
  .landing .story__screen { border-radius: 20px; }
  .landing .story__step { padding: 27px 0; }
  .landing .story__step h3, .landing .story__step > p { max-width: 500px; }
  .landing .story__step h3 { font-size: 1.9rem; }
  .landing .story__step > p { font-size: .83rem; }
  .landing .story__state { top: 12px; left: 12px; padding: 5px 9px; min-height: 25px; font-size: .55rem; }
  .landing .story__draft { right: 12px; bottom: 12px; width: 64%; padding: 11px 13px; border-radius: 12px; }
  .landing .story__draft small { margin-bottom: 6px; font-size: .48rem; }
  .landing .story__draft p { font-size: .61rem; line-height: 1.5; }
  .landing .story__caption { margin-top: 10px; font-size: .55rem; }
  .landing .story__tools { gap: 7px; margin-top: 10px; }
  .landing .story__tools .btn { font-size: .64rem; padding: 9px 13px; }
  .landing .story__progress { margin-top: 10px; }
  .landing .story.is-enhanced:not(.is-static) .story__stage { top: 75px; padding-bottom: 12px; background: var(--bg-primary); }
  .landing .story.is-enhanced:not(.is-static) .story__step { min-height: 58vh; min-height: 58svh; padding-block: 35px; }
  .landing .story.is-enhanced:not(.is-static) .story__step:last-child { min-height: 66vh; min-height: 66svh; }
  .landing .story.is-manual .story__draft { top: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .story .story__stage { position: static !important; }
  .landing .story .story__step { min-height: 0 !important; padding-block: 28px !important; }
}
