.feature-stories { overflow: hidden; scroll-margin-top: 95px; }
.stories-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.stories-heading h2 { max-width: 700px; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.12; letter-spacing: -.045em; margin: 12px 0; }
.stories-heading p:not(.section-kicker) { color: var(--app-muted); margin: 0; }
.stories-controls { display: flex; gap: 10px; }
.stories-controls button, .story-dialog-footer button, [data-story-close] { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-surface); color: var(--app-text); font: inherit; font-size: 1.4rem; cursor: pointer; }
.stories-controls button:disabled, .story-dialog-footer button:disabled { opacity: .3; cursor: default; }
.stories-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 2px; padding: 8px 2px 22px; scrollbar-width: thin; scrollbar-color: var(--app-border) transparent; }
.feature-story { flex: 0 0 285px; height: 408px; position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 26px 24px 18px; border: 1px solid var(--app-border); border-radius: 22px; background: var(--app-surface); color: var(--app-text); font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; isolation: isolate; transition: transform .3s, border-color .3s; }
.feature-story:hover { transform: translateY(-5px); border-color: var(--app-primary); }
.story-category { color: var(--app-primary); font-size: .72rem; font-weight: 600; padding-right: 0; }
.feature-story > strong { font-size: 1.65rem; line-height: 1.12; font-weight: 600; letter-spacing: -.035em; margin-top: 16px; max-width: 230px; position: relative; z-index: 1; }
.story-art { display: block; flex: 1; min-height: 0; margin: 24px 5px 0; overflow: hidden; border-radius: 14px 14px 0 0; border: 1px solid var(--app-border); border-bottom: 0; transform: rotate(-4deg) translateY(10px); transition: transform .45s; }
.feature-story:nth-child(even) .story-art { transform: rotate(4deg) translateY(10px); }
.feature-story:hover .story-art { transform: rotate(0) translateY(2px) scale(1.03); }
.story-art img { display: block; width: 100%; height: auto; }
.story-invite { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; background: var(--app-surface); position: relative; z-index: 2; font-size: .8rem; }
.story-invite > span:last-child { color: var(--app-primary); font-size: 1.3rem; }
.feature-story-dialog { width: min(860px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 22px; border: 1px solid var(--app-border); border-radius: 26px; background: var(--app-surface); color: var(--app-text); overflow: auto; }
.feature-story-dialog::backdrop { background: #020916b8; backdrop-filter: blur(12px); }
.feature-story-dialog[open] { animation: story-dialog-in .3s ease both; }
.story-dialog-toolbar { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.story-progress { display: flex; gap: 6px; flex: 1; }
.story-progress span { height: 3px; border-radius: 4px; flex: 1; background: var(--app-border); }
.story-progress span.is-current { background: var(--app-primary); }
.story-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; animation: story-dialog-in .3s ease both; }
.story-slide[hidden] { display: none; }
.story-slide-copy h2 { font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.12; letter-spacing: -.04em; margin: 16px 0; }
.story-slide-copy > p:not(.section-kicker) { color: var(--app-muted); font-size: 1rem; line-height: 1.65; margin: 0 0 24px; }
.story-slide-image { height: min(55dvh,490px); border-radius: 16px; overflow: auto; background: var(--app-surface-alt); }
.story-slide-image img { display: block; width: 100%; height: auto; }
.story-dialog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; color: var(--app-muted); font-size: .85rem; }
body.feature-story-open { overflow: hidden; }
@keyframes story-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media(max-width:600px) {
 .stories-heading { align-items: start; }
 .stories-controls { gap: 6px; margin-top: 6px; }
 .stories-controls button { width: 36px; height: 36px; border-radius: 12px; }
 .feature-story { flex-basis: min(280px,78vw); }
 .stories-rail { margin-right: -20px; padding-right: 20px; }
 .feature-story-dialog { padding: 16px; border-radius: 20px; }
 .story-slide { grid-template-columns: 1fr; gap: 22px; }
 .story-slide-image { height: 31dvh; }
 .story-slide-copy > p:not(.section-kicker) { font-size: .9rem; margin-bottom: 16px; }
 .story-slide-copy h2 { font-size: 1.8rem; }
 .story-slide-copy .section-kicker { font-size: .68rem; }
 .story-dialog-toolbar { margin-bottom: 12px; }
}
@media(prefers-reduced-motion:reduce) { .feature-story, .story-art { transition: none; } .feature-story-dialog[open], .story-slide { animation: none; } }
.site-theme .stories-heading h2 { color: var(--app-text); }
