/* Homepage stories: progressive enhancement keeps every article readable without JS. */
.factory-stories { max-width: 1160px; margin: 32px auto 70px; padding: 30px 20px 0; }
.factory-stories [hidden] { display: none !important; }
.factory-stories-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.factory-stories-eyebrow { color: #f6ce55; font-size: 12px; letter-spacing: .18em; font-weight: 700; }
.factory-stories-heading h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.08; margin: 9px 0 0; }
.factory-stories-heading > p { max-width: 220px; color: #a9b8d2; font-size: 17px; margin: 0 0 3px; }
.factory-story-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #54617d transparent; padding: 5px 2px 17px; }
.factory-story-tab { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #ffffff13; border-radius: 8px; background: #0c1c3d; padding: 13px 17px; color: #b7c4db; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.factory-story-tab > span { color: #8294b3; font-size: 12px; font-variant-numeric: tabular-nums; }
.factory-story-tab[aria-pressed="true"] { background: #f7d35c; border-color: #f7d35c; color: #091733; }
.factory-story-tab[aria-pressed="true"] > span { color: #6c5521; }
.factory-story-tab:hover:not([aria-pressed="true"]) { border-color: #cfb86d80; background: #172a4e; color: #fff; }
.factory-stories button:focus-visible, .factory-stories a:focus-visible { outline: 3px solid #ffe694; outline-offset: 4px; }
.factory-story-stage { border: 1px solid #ddc1723b; border-radius: 22px; background: radial-gradient(ellipse at 15% 45%, #25487d70, transparent 60%), linear-gradient(115deg, #10284b, #0b1835 70%); overflow: hidden; box-shadow: 0 22px 55px #0000001f; touch-action: pan-y; }
.factory-stories .lounge-story { position: relative; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 45px; padding: 40px 52px 40px 32px; margin: 0; min-height: 460px; text-align: left; }
.factory-stories.is-enhanced .lounge-story { animation: factory-story-enter .5s ease both; }
.factory-stories .lounge-story-art { order: 0; min-height: 330px; width: 100%; max-width: 390px; margin: auto; }
.factory-stories .lounge-story-art::before { content: ''; position: absolute; width: 90%; aspect-ratio: 1; border: 1px solid #e5c8741f; border-radius: 50%; background: radial-gradient(circle, #b0883420, transparent 70%); z-index: -1; }
.factory-stories .lounge-story-art { isolation: isolate; }
.factory-stories .lounge-story-art > img { width: 360px; height: 360px; object-fit: contain; }
.factory-stories .lounge-story-copy h3 { color: #fff; font-size: clamp(29px, 2.7vw, 38px); line-height: 1.12; margin: 0 0 20px; }
.factory-stories .lounge-story-copy p { font-size: 18px; line-height: 1.5; margin-bottom: 14px; }
.factory-stories .lounge-story-copy small { margin: 16px 0; }
.factory-stories .lounge-story-art--cards { height: 350px; }
.factory-stories .lounge-mini-poster { width: 57%; height: 270px; }
.factory-stories .lounge-story-art > .lounge-floating-token { width: 95px; height: 95px; }
.factory-story-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px 0; }
.factory-story-meter { display: flex; align-items: center; gap: 20px; min-width: 0; width: 210px; }
[data-story-counter] { flex-shrink: 0; color: #f7d35c; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
[data-story-counter] > span { color: #7384a6; font-size: 14px; margin-left: 5px; }
.factory-story-progress { height: 3px; flex: 1; background: #243351; overflow: hidden; border-radius: 4px; }
.factory-story-progress > span { display: block; height: 100%; width: 20%; background: #f7d35c; border-radius: inherit; transition: width .4s ease; }
.factory-story-actions { display: flex; align-items: center; gap: 9px; }
.factory-story-play, .factory-story-arrow { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #e5ebf7; font: inherit; min-height: 44px; border: 1px solid #61749666; border-radius: 50%; }
.factory-story-arrow { width: 44px; font-size: 24px; line-height: 1; }
.factory-story-play { border: 0; border-radius: 6px; gap: 8px; font-size: 15px; padding: 8px 12px; margin-right: 12px; color: #afbed7; }
.factory-story-play [data-story-play-icon] { width: 14px; font-size: 14px; }
.factory-story-arrow:hover { color: #07152f; background: #f7d35c; border-color: #f7d35c; }
.factory-story-play:hover { color: #f7d35c; }
.factory-story-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes factory-story-enter { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 900px) {
  .factory-stories .lounge-story { gap: 25px; padding: 28px; min-height: 480px; }
  .factory-story-tab { padding-inline: 13px; }
  .factory-stories .lounge-mini-poster { height: 230px; }
}
@media (max-width: 640px) {
  .factory-stories { padding: 15px 16px 0; margin-top: 10px; margin-bottom: 45px; }
  .factory-stories-heading { display: block; margin-bottom: 20px; }
  .factory-stories-heading > p { max-width: none; font-size: 16px; margin: 10px 0 0; }
  .factory-story-tabs { gap: 6px; padding-bottom: 13px; }
  .factory-story-tab { font-size: 14px; padding: 11px 14px; }
  .factory-story-stage { border-radius: 16px; }
  .factory-stories .lounge-story { grid-template-columns: 1fr; grid-template-rows: 235px 1fr; align-items: start; gap: 14px; padding: 18px 24px 30px; min-height: 640px; }
  .factory-stories .lounge-story-art { min-height: 0; height: 235px; max-width: 260px; }
  .factory-stories .lounge-story-art > img { width: 245px; height: 235px; }
  .factory-stories .lounge-story-copy h3 { font-size: 30px; margin-bottom: 16px; }
  .factory-stories .lounge-story-copy p { font-size: 17px; line-height: 1.45; }
  .factory-stories .lounge-story-copy .button { min-width: 0; width: 100%; font-size: 18px; }
  .factory-stories .lounge-mini-poster { width: 53%; height: 185px; top: 8px; left: 12px; }
  .factory-stories .lounge-mini-poster:nth-child(2) { top: 34px; right: 12px; left: auto; }
  .factory-stories .lounge-mini-poster strong { font-size: 16px; }
  .factory-stories .lounge-story-art > .lounge-floating-token { width: 64px; height: 64px; bottom: 0; }
  .factory-story-footer { gap: 12px; padding-top: 16px; }
  .factory-story-meter { width: 105px; gap: 12px; }
  .factory-story-actions { gap: 7px; }
  .factory-story-play { margin-right: 0; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .factory-stories.is-enhanced .lounge-story { animation: none; }
  .factory-stories * { transition: none !important; }
}

@media (max-width: 360px) { .factory-stories .lounge-story { min-height: 730px; } }
