/* stories.html — page styles (scoped under .page-stories / st- classes) */

/* ---------- Hero ---------- */
.page-stories .st-hero { padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.page-stories .st-hero__title { max-width: 17ch; margin-inline: auto; }
.page-stories .st-hero .hero-ctas, .page-stories .st-hero .hero-meta { justify-content: center; }
.page-stories .st-down { transform: rotate(90deg); }

.st-faces { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0; }
.st-faces__stack { display: flex; }
.st-faces__stack > * { margin-left: -12px; box-shadow: 0 0 0 3px var(--canvas), 0 6px 16px -8px rgba(13, 15, 26, .35); }
.st-faces__stack > :first-child { margin-left: 0; }
.st-faces__stack .avatar--initials { font-size: .875rem; }
.st-faces__label { font-size: var(--fs-sm); color: var(--muted); }
.st-faces__label em { font-family: var(--font-serif); font-style: italic; font-size: 1.15em; color: var(--indigo-700); }

.page-stories .st-stats { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); background-color: var(--border); box-shadow: var(--sh-sm); }
.page-stories .st-stats .stat { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 900px) { .page-stories .st-stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Featured video story (ink) ---------- */
.st-feature__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .st-feature__grid { grid-template-columns: 1.12fr 1fr; } }
.st-feature__video { position: relative; }
.st-feature__label { position: absolute; z-index: 3; top: -14px; left: 20px; display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 .7rem; border-radius: var(--r-pill); background: var(--indigo); color: #fff; font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 22px -8px rgba(81, 59, 244, .8); }
.st-feature__label .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.st-feature__card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 120px -30px rgba(139, 123, 255, .55); }
.st-feature__card .video-card__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.st-feature__card .video-card__play svg { width: 28px; height: 28px; }
.st-feature__card .video-card__title { font-size: var(--fs-sm); max-width: 32ch; }
.st-feature__wave { display: flex; align-items: flex-end; gap: 5px; height: 38px; margin: 1.25rem 0 0 .25rem; opacity: .55; }
.st-feature__wave i { flex: 0 0 3px; height: var(--h); border-radius: 3px; background: linear-gradient(var(--violet-glow), var(--indigo)); }

.st-feature__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.st-feature__copy .eyebrow { margin: 0; }
.st-feature__quote { margin: 0; display: grid; gap: 1.5rem; }
.st-feature__quote blockquote { margin: 0; padding-left: 1.25rem; border-left: 2px solid rgba(139, 123, 255, .5); }
.st-feature__quote blockquote p { font-size: var(--fs-lead, 1.125rem); line-height: 1.6; color: #d7daea; }
.st-feature__copy .hero-ctas { margin-top: 0; }

/* ---------- Theme tags ---------- */
.st-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.st-tags li { display: inline-flex; align-items: center; gap: .35rem; min-height: 26px; padding: 0 .6rem; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .02em; color: var(--indigo-700); background: var(--indigo-50); }
.st-tags .icon { width: 13px; height: 13px; }
.st-tags--ink li { min-height: 30px; padding: 0 .75rem; color: #e8e5ff; background: rgba(139, 123, 255, .16); border: 1px solid rgba(139, 123, 255, .32); }
.st-tags--ink .icon { color: var(--lilac); }

/* ---------- Reviews wall (static masonry, all 6 readable) ---------- */
.st-reviews__lead { max-width: 30rem; }
.st-wall { columns: 1; column-gap: 1.25rem; }
@media (min-width: 720px) { .st-wall { columns: 2; } }
@media (min-width: 1100px) { .st-wall { columns: 3; } }
.st-wall > .st-card { break-inside: avoid; margin: 0 0 1.25rem; width: 100%; display: inline-flex; }
.st-card { transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2); }
.st-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.st-card .testi__quote p { margin: 0; }
.st-card .person { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.st-card--long { background: linear-gradient(180deg, #fff, var(--indigo-50)); }
.st-hl { background: rgba(81, 59, 244, .09); color: var(--ink); font-weight: 500; padding: .05em .2em; margin: 0 -.1em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Why us ---------- */
.st-why__split { align-items: center; }
.st-why__split > * { min-width: 0; }
@media (min-width: 960px) { .st-why__split { grid-template-columns: 1fr 1.05fr; } }
.st-why .section-head { margin-bottom: 2rem; }
.st-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.st-reason { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs); }
.st-reason b { display: block; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.st-reason span:not(.icon-tile) { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

.st-why__visual { position: relative; }
.st-why__visual .float-chip { display: none; }
@media (min-width: 1180px) {
  .st-why__visual .float-chip { display: inline-flex; }
  .st-fc-1 { right: 2rem; top: -1.4rem; }
  .st-fc-2 { left: -1.75rem; bottom: -1.1rem; }
}
.st-draft { gap: .6rem; }
.st-draft__notes { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-family: var(--font-mono); font-size: .75rem; line-height: 1.5; color: #4a5064; }
.st-draft__notes li::marker { color: var(--indigo); }
.st-draft__arrow { display: flex; justify-content: center; position: relative; }
.st-draft__arrow::before { content: ""; position: absolute; left: 50%; top: -.6rem; bottom: -.6rem; width: 1px; background: linear-gradient(var(--line-strong), var(--indigo), var(--line-strong)); }
.st-draft__arrow .chip { position: relative; background: #fff; }
.st-draft__para + .st-draft__para { margin-top: .75rem; }
.st-draft__para .note__label { display: block; font-size: .75rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.st-draft__para p { font-size: .8125rem; line-height: 1.55; color: #4a5064; }

/* ---------- Next links ---------- */
.st-next__title { margin-bottom: 1.5rem; }
.st-next__card { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; height: 100%; }
.st-next__card .card__title { margin-top: 1rem; }
.st-next__card .link-arrow { margin-top: auto; padding-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .st-card, .st-card:hover { transition: none; transform: none; }
}

/* ---------- Flask port: parity additions ---------- */
/* Avatars: <picture> serves the local .webp; the <img> fallback is the original blob photo. */
.page-stories .st-pic { display: contents; }
/* 5-star rating on every review card (as on the old testimonials page) */
.page-stories .st-stars { margin-bottom: -.35rem; }
.page-stories .st-stars svg { width: 15px; height: 15px; }
