:host { display:block; }
@media(prefers-reduced-motion:no-preference) {
 .story-card { transition:translate .5s cubic-bezier(.16,1,.3,1),box-shadow .5s,border-color .4s; }
 .story-corner { transition:rotate .5s; }
 .story-quote svg { transition:translate .5s,color .5s; }
 .story-avatar { transition:scale .5s; }
 .story-card:hover { translate:0 -6px; box-shadow:0 20px 35px -25px #203c2c40; }
 .story-card:hover .story-corner { rotate:90deg; }
 .story-card:hover .story-quote svg { translate:0 -3px; color:#0d7d3a; }
 .story-card:hover .story-avatar { scale:1.08; }
 .story-popup { transition-duration:.4s; transition-timing-function:cubic-bezier(.16,1,.3,1); }
 .story-popup[data-starting-style],.story-popup[data-ending-style] { translate:0 18px; scale:.97; }
 .story-popup .story-details section { animation:story-detail-in .6s cubic-bezier(.16,1,.3,1) both; }
 .story-details section:nth-child(2) { animation-delay:60ms; }
 .story-details section:nth-child(3) { animation-delay:120ms; }
 .story-details section:nth-child(4) { animation-delay:180ms; }
}
@keyframes story-detail-in { from { opacity:0; translate:0 12px; } to { opacity:1; translate:0 0; } }
.stories-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 26px; padding:10px 0 70px; align-items:start; }
.story-card { position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:27px; width:100%; min-height:260px; border:1px solid #dedee2; background:#fff; padding:28px; text-align:left; cursor:pointer; transition:background .2s,border-color .2s; }
.story-card:nth-of-type(3n+2) { top:30px; }.story-card:nth-of-type(3n) { top:60px; }
.story-card:hover { border-color:#aeb0b7; background:#fdfdfd; }.story-card:focus-visible { outline:2px solid #777580; outline-offset:5px; }
.story-quote { display:flex; align-items:flex-start; gap:15px; font-size:14px; line-height:1.85; color:#44464e; }
.story-quote svg { width:21px; height:21px; flex:none; margin-top:4px; stroke-width:1.2; }
.story-profile { display:flex; align-items:center; gap:12px; }
.story-avatar { width:36px; height:36px; flex:none; border:3px solid #fff; box-shadow:0 0 0 1px #dedee2; }
.story-profile strong { display:block; font-size:12px; font-weight:550; }.story-profile small { display:block; margin-top:3px; font-size:10px; color:#73757d; }
.story-corner { position:absolute; width:11px; height:11px; pointer-events:none; }.story-corner::before,.story-corner::after { content:''; position:absolute; background:#bfc0c7; }.story-corner::before { width:11px; height:1px; top:5px; }.story-corner::after { width:1px; height:11px; left:5px; }.story-corner.tl { top:-6px;left:-6px; }.story-corner.tr { top:-6px;right:-6px; }.story-corner.bl { bottom:-6px;left:-6px; }.story-corner.br { bottom:-6px;right:-6px; }
.story-portals { position:fixed; inset:0; pointer-events:none; z-index:100; }.story-portals > * { pointer-events:auto; }
.story-popup { max-width:650px; border-radius:2px; background:#fff; border-color:#dedee2; }
.story-popup [data-slot=dialog-header] { padding:30px 34px 18px; gap:18px; }.story-popup [data-slot=dialog-panel] { padding:0 34px 34px; }
.story-popup [data-slot=dialog-title] { font-size:15px; font-weight:550; }.story-popup [data-slot=dialog-description] { font-size:12px; }
.story-city { color:#7a7c83; font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.story-details { display:grid; gap:24px; }.story-details h4 { margin:0 0 7px; font-size:13px; font-weight:550; }.story-details p { margin:0; color:#777980; font-size:13px; line-height:1.8; }
@media(max-width:900px) { .stories-grid { grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:30px; }.story-card:nth-of-type(n) { top:0; }.story-card:nth-of-type(2n) { top:20px; }.story-card { padding:24px; } }
@media(max-width:600px) { .stories-grid { grid-template-columns:1fr;gap:24px;padding-bottom:0; }.story-card:nth-of-type(n) { top:0; }.story-card { min-height:225px; }.story-popup [data-slot=dialog-header] { padding:25px 23px 18px; }.story-popup [data-slot=dialog-panel] { padding:0 23px 26px; } }
@media(prefers-reduced-motion:reduce) { .story-card { transition:none; } }
