/* ============================================================
   Stories: the collection, and each woman's case study
   Builds on program.css (bands, staircase, facts, reveals)
   ============================================================ */

/* ---------- Case study hero: her words, then her video ---------- */
.st-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--pg-ink);
  padding: clamp(4.5rem, 3.5rem + 4vw, 7rem) 0 clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  background: radial-gradient(90% 60% at 50% 110%, #6B3A6E 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--royal) 100%); }
.st-hero .eyebrow { color: var(--gold-bright); text-align: center; }
.st-name { text-align: center; color: var(--shea); font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); line-height: 1; letter-spacing: -0.015em; margin-bottom: var(--space-4); }
.st-role { text-align: center; color: #DCCFE6; font-weight: 600; margin-bottom: var(--space-8); }
.st-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-10); }
.st-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: var(--text-sm); font-weight: 700;
  background: rgba(239, 232, 245, 0.08); box-shadow: inset 0 0 0 1px rgba(184, 156, 226, 0.4); color: #F3EDF7; }
.st-chip i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: 0 0 0 2px rgba(255,255,255,0.15); }
.st-quote { max-width: 30ch; margin: 0 auto var(--space-10); text-align: center; font-family: var(--font-display); font-variation-settings: var(--fvs-display);
  font-weight: 600; font-size: clamp(1.6rem, 1.15rem + 2vw, 2.7rem); line-height: 1.2; color: #FFF3CF; text-wrap: balance; }
.st-quote::before { content: "“"; display: block; font-size: 2.4em; line-height: 0.6; color: var(--gold-bright); opacity: 0.8; }
.st-film { max-width: 58rem; margin: 0 auto; }
.st-film .testimony { max-width: none; }
.st-film .testimony-frame { border-radius: var(--radius-lg); box-shadow: 0 0 0 1px rgba(226, 181, 78, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.st-film .testimony-cap { display: none; }
.st-film-note { text-align: center; font-size: var(--text-sm); color: #BFB2C9; margin-top: var(--space-3); }

/* ---------- Before and after: the turn ---------- */
.turn { display: grid; gap: var(--space-6); margin-top: var(--space-10); position: relative; }
@media (min-width: 900px) { .turn { grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: var(--space-8); } }
.turn-col { padding: var(--space-8); border-radius: var(--radius-lg); display: grid; gap: var(--space-5); align-content: start; }
.turn-col h3 { font-size: var(--text-label); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.turn-col blockquote p { font-family: var(--font-display); font-variation-settings: var(--fvs-display); font-weight: 500; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; }
.turn-before { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); }
.turn-before h3 { color: var(--color-muted); }
.turn-before blockquote p { color: var(--color-muted); }
.turn-after { background: linear-gradient(160deg, #4A2073, var(--royal)); box-shadow: inset 0 0 0 1px var(--gold), var(--shadow-lift); }
.turn-after h3 { color: var(--gold-bright); }
.turn-after blockquote p { color: #FFF3CF; }
.turn-arrow { display: grid; place-items: center; }
.turn-arrow span { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800;
  background: var(--gold-bright); color: var(--night); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 30px 4px rgba(226, 181, 78, 0.45);
  transform: scale(var(--pop, 1)); transition: transform 0.7s var(--ease-out) 0.3s; }
@media (max-width: 899px) { .turn-arrow span { transform: rotate(90deg) scale(var(--pop, 1)); } }
.turn.is-ready { --pop: 0; } .turn.is-ready.is-in { --pop: 1; }

/* ---------- Her path through Selah: a road that lights as she scrolls ---------- */
.road { list-style: none; position: relative; max-width: 50rem; margin: var(--space-12) auto 0; padding: 0; display: grid; gap: var(--space-8); }
.road::before { content: ""; position: absolute; left: 1.25rem; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; background: rgba(184, 156, 226, 0.3); }
.road::after { content: ""; position: absolute; left: 1.25rem; top: 0.5rem; width: 3px; border-radius: 3px; height: calc(var(--road, 1) * (100% - 1rem));
  background: linear-gradient(180deg, var(--lilac-glow), var(--gold-bright)); box-shadow: 0 0 14px rgba(226, 181, 78, 0.6); transition: height 0.2s linear; }
.road-stop { position: relative; padding-left: 4rem; }
.road-dot { position: absolute; left: calc(1.25rem + 1.5px); top: 0.3rem; translate: -50% 0; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--night); box-shadow: inset 0 0 0 3px var(--c, var(--lilac-glow)); transition: background-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease-out); }
.road-stop.is-lit .road-dot { background: var(--c, var(--gold-bright)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c, var(--gold)) 25%, transparent), 0 0 24px 4px color-mix(in srgb, var(--c, var(--gold)) 45%, transparent); transform: scale(1.1); }
.road-when { font-size: var(--text-label); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-bright); }
.road-stop h3 { color: var(--shea); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin: 0.2rem 0 var(--space-3); }
.road-stop h3 a { color: inherit; text-decoration-color: rgba(226, 181, 78, 0.6); text-underline-offset: 4px; }
.road-stop p { color: #E7DDF1; line-height: 1.6; max-width: 40rem; }
.road-stop p + p { margin-top: var(--space-3); }
.road-stop blockquote { margin-top: var(--space-4); padding-left: var(--space-4); border-left: 3px solid var(--c, var(--gold)); font-family: var(--font-display); font-variation-settings: var(--fvs-display); font-style: italic; color: #FFF3CF; font-size: 1.12rem; line-height: 1.5; }
.road-stop--now .road-dot { width: 2rem; height: 2rem; }
.road-stop--now h3 { color: #FFF3CF; }
.road-stop { opacity: 0.45; transition: opacity 0.6s; }
.road-stop.is-lit { opacity: 1; }

/* ---------- What changed: numbers and shifts ---------- */
.marks { list-style: none; display: grid; gap: var(--space-4); margin: var(--space-10) 0 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.mark { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-soft); display: grid; gap: 0.4rem; align-content: start; text-align: center; }
.mark-n { font-family: var(--font-display); font-variation-settings: var(--fvs-display); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); line-height: 1; color: var(--royal); }
.mark-n small { font-size: 0.45em; font-weight: 600; }
.mark-w { font-family: var(--font-display); font-variation-settings: var(--fvs-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: var(--color-heading); }
.mark-w .shift { display: block; color: var(--color-muted); font-size: 0.8em; text-decoration: line-through; text-decoration-color: var(--bissap); text-decoration-thickness: 2px; }
.mark-s { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.45; }
@media (prefers-color-scheme: dark) { .mark-n { color: var(--gold-bright); } }

/* ---------- Her words: a wall of quotes ---------- */
.words { columns: 1; column-gap: var(--space-6); margin-top: var(--space-10); }
@media (min-width: 760px) { .words { columns: 2; } }
@media (min-width: 1100px) { .words { columns: 3; } }
.words figure { break-inside: avoid; margin: 0 0 var(--space-6); padding: var(--space-6); border-radius: var(--radius-lg); background: rgba(239, 232, 245, 0.06); box-shadow: inset 0 0 0 1px rgba(226, 181, 78, 0.35); }
.words p { font-family: var(--font-display); font-variation-settings: var(--fvs-display); font-weight: 500; font-size: 1.15rem; line-height: 1.5; color: #FFF3CF; }
.words figure:nth-child(3n+1) p { font-size: 1.35rem; }

/* ---------- Story prose (Mya's own story) ---------- */
.st-prose { max-width: 42rem; margin-inline: auto; }
.st-prose h2 { margin-bottom: var(--space-5); }
.st-prose p { font-size: 1.12rem; line-height: 1.7; }
.st-prose p + p { margin-top: var(--space-4); }
.st-prose .pg-big { margin: var(--space-8) 0; color: var(--color-heading); }

/* ---------- More stories ---------- */
.more { list-style: none; display: grid; gap: var(--space-5); margin: var(--space-8) 0 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* ---------- The collection ---------- */
.sc-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: var(--space-8) 0 var(--space-10); }
.sc-filter button { padding: 0.55rem 1rem; border-radius: 999px; font-weight: 700; font-size: var(--text-sm); color: var(--color-heading); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.sc-filter button:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.sc-filter button[aria-pressed="true"] { background: var(--royal); color: var(--shea); box-shadow: inset 0 0 0 1px var(--gold); }
.sc-grid { list-style: none; display: grid; gap: var(--space-6); padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.sc-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-soft); transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.sc-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--gold), var(--shadow-lift); }
.sc-card[hidden] { display: none; }
.sc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.sc-card:hover .sc-media img { transform: scale(1.05); }
.sc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(26, 12, 38, 0.65)); }
.sc-len { position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 1; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: var(--text-label); font-weight: 700; color: var(--night); background: var(--gold-bright); }
.sc-play { position: absolute; left: 0.75rem; bottom: 0.75rem; z-index: 1; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 243, 207, 0.95); color: var(--royal); }
.sc-body { padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.sc-body h2 { font-size: 1.5rem; }
.sc-body h2 a { color: inherit; text-decoration: none; }
.sc-body h2 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }   /* the whole card opens her story */
.sc-body h2 a:focus-visible { outline: none; }
.sc-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.sc-line { color: var(--color-text); line-height: 1.55; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.sc-chips li { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--text-label); font-weight: 700; color: var(--color-muted); }
.sc-chips i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c, var(--gold)); }
.sc-more { font-weight: 700; color: var(--color-gold-text); }
.sc-card--feature { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .sc-card--feature { grid-template-columns: 1.3fr 1fr; grid-template-rows: none; }
  .sc-card--feature .sc-media { aspect-ratio: auto; min-height: 22rem; }
  .sc-card--feature .sc-body { padding: var(--space-10); align-content: center; }
  .sc-card--feature h2 { font-size: 2.1rem; }
}

/* ---------- Still version ---------- */
.motion-off .road::after { --road: 1; transition: none; }
.motion-off .road-stop { opacity: 1; }
.motion-off .road-stop .road-dot { background: var(--c, var(--gold-bright)); }
.motion-off .turn-arrow span, .motion-off .sc-card, .motion-off .sc-media img { transition: none; }

/* ---------- Portrait videos (Malia) fill the frame instead of sitting in black bars ---------- */
.st-film--portrait { max-width: 30rem; }
.testimony--portrait .testimony-frame { aspect-ratio: 3 / 4; }
.testimony:fullscreen.testimony--portrait .testimony-frame { aspect-ratio: 3 / 4; }
a.st-chip { text-decoration: none; transition: box-shadow 0.25s, background-color 0.25s; }
a.st-chip:hover { box-shadow: inset 0 0 0 1px var(--gold-bright); background: rgba(239, 232, 245, 0.16); }
.st-hero a.st-chip:focus-visible { outline-color: var(--gold-bright); }
.st-chips li { display: contents; }
