/* Мобільна головна «Сторіс» (30.10) — діє лише коли stories.js увімкнув режим (клас .st-on: телефон, портрет) */
.st-on, .st-on body { height: 100%; overflow: hidden; }
.st-on .top, .st-on main { display: none; }
.st-deck { position: fixed; inset: 0; z-index: 60; background: var(--sh-black); }
.st { position: absolute; inset: 0; display: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.st.is-on { display: block; animation: st-in .3s ease-out; }
@keyframes st-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st.is-on { animation: none; } }

/* звичайні розділи: фон розділу на весь екран, відступи під верхню й нижню панелі */
.st--page > * { min-height: 100%; box-sizing: border-box; border-top: 0; padding-top: 104px !important; padding-bottom: 124px !important; }

/* верх: лок-ап + кнопка, під ними шкала монтажу */
.st-top { position: fixed; top: 0; left: 0; right: 0; z-index: 85; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 16px;
  background: linear-gradient(180deg, rgba(11, 11, 11, .94) 62%, rgba(11, 11, 11, 0)); }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-brand { display: flex; align-items: center; gap: 8px; color: var(--sh-ink); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 15px; }
.st-brand img { width: 26px; height: 26px; }
.st-top .st-cta { min-height: 38px; padding: 0 14px; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.st-top .st-cta .dot { display: none; }
.st-line { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 0; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-num { color: var(--sh-ink); }
.st-scrub { position: relative; flex: 1; height: 2px; background: rgba(244, 241, 236, .2); transition: height .15s; }
.st-line.is-drag .st-scrub { height: 4px; }
.st-line.is-drag .st-title { color: var(--sh-ink); }
.st-scrub i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sh-rec); transition: width .3s ease; }
.st-scrub i::after { content: ""; position: absolute; right: -4px; top: -4px; width: 2px; height: 10px; background: var(--sh-rec); }
/* назві — стала ширина, щоб шкала не змінювала довжину під пальцем, коли міняється розділ */
.st-title { flex: 0 0 44%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* низ */
.st-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; gap: 10px; padding: 14px 12px calc(26px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(11, 11, 11, .95) 60%, rgba(11, 11, 11, 0)); }
.st-go { flex: 1; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 26px; background: var(--sh-rec); color: var(--sh-black);
  font-family: var(--font-display); font-weight: 900; font-size: 13px; text-decoration: none; }
.st-bottom .soc { width: 52px; height: 52px; border-color: #4a4340; }
.st-bottom.is-home { justify-content: center; }
.st-bottom.is-home .st-go { display: none; }

/* перший екран: широкий кінокадр 2.39:1 на чорному, як на екрані кінотеатру */
.st--hero .hero { height: 100%; padding: 0; }
.st--hero .wide { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 96px 16px 120px; box-sizing: border-box; background: #050505; }
.st--hero .wide::before { content: "Кінокомпанія жанрового кіно"; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
html[lang="en"] .st--hero .wide::before { content: "A genre film company"; } /* англійська версія (/en/, 02.11) */
.st--hero .wide__frame { height: auto; aspect-ratio: 2.39 / 1; padding: 0 12px; flex-direction: row; border: 1px solid #2a2624;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, #3a160c 0%, #170b08 60%, #0d0909 100%); }
.st--hero .wide__frame { overflow: hidden; }
/* шум плівки — лише тут, у кадрі; на решті сторінки його немає */
.st-on .grain { display: none; }
.st-grain { position: absolute; inset: -20%; pointer-events: none; opacity: .08; background-size: 300px 300px; animation: grain-shift .5s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .st-grain { animation: none; } }
.st-hint { display: block; align-self: flex-end; text-align: right; margin-top: 28px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-ink); animation: st-nudge 1.6s ease-in-out infinite; }
@keyframes st-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .st-hint { animation: none; } }
.st--hero .wide__rec { top: 8px; left: 10px; font-size: 9px; gap: 6px; }
.st--hero .wide__rec .rec__dot { width: 7px; height: 7px; }
.st--hero .wide__logo { flex-direction: row; gap: .5em; font-size: min(34px, 9vw); }
.st--hero .wide__fh { margin-top: .7em; }
.st--hero .wide__bar--bottom { position: static; padding: 0; min-height: 0; flex-direction: column; gap: 0; }
.st--hero .wide__sub { padding: 0; font-family: var(--font-display); font-weight: 900; font-size: min(22px, 5.8vw); line-height: 1.2; letter-spacing: 0; }
.st--hero .wide__tags { margin-top: 10px; font-size: 10px; letter-spacing: .18em; line-height: 1.6; color: var(--sh-ink); }
/* 04.11 (Антон, варіант B): на телефоні слогана немає — під кадром лише жанри двома рядками по два */
.st--hero .wide__sub { display: none; }
.st--hero .wide__tags { margin-top: 0; font-size: 10px; letter-spacing: .18em; line-height: 1.7; white-space: normal; }
.st--hero .wide__tags-sep { display: none; } .st--hero .wide__tags-br { display: inline; }
.st--hero .soc-row--hero { display: none; }

/* спільноти й клуби */
.st-clubs .h2 { margin: 0 0 16px; }
.st-clubs__lead { margin: 0 0 28px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.st-clubs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-clubs__list li { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.st-clubs__list img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 60%, rgba(0, 0, 0, .55) 82%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 60%, rgba(0, 0, 0, .55) 82%, transparent 100%); }
.st-clubs__list span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.st-clubs__list b { font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.2; }
.st-clubs__list small { font-size: 12px; line-height: 1.4; color: var(--muted); }
/* «Детальніше» — окреме посилання під текстом, далеко від правого краю, де гортають */
.st-clubs__list span a { margin-top: 4px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--sh-rec); text-decoration: none; }
.st-clubs__all { display: inline-block; margin-top: 24px; padding-bottom: 6px; border-bottom: 2px solid var(--sh-rec); color: var(--sh-ink); text-decoration: none; font-size: 14px; }

/* засновник: фото 3:4 на всю ширину вгорі, текст — нижче обличчя, на затемненні */
.st--founder .founder { display: block; position: relative; min-height: 100%; }
.st--founder img.founder__photo { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: auto; max-width: none; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; border: 0; }
.st--founder .founder__text { position: relative; z-index: 1; min-height: 100%; box-sizing: border-box; justify-content: flex-start; padding: 80vw 16px 110px;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 0, rgba(11, 11, 11, 0) 66vw, rgba(11, 11, 11, .9) 86vw, #0b0b0b 100vw); }
.st--founder .founder__name { order: 1; font-size: 32px; line-height: 1.02; }
.st--founder .founder__tag { order: 2; }
.st--founder .founder__role { order: 3; }
.st--founder .founder__text p:last-child { order: 4; font-size: 13px; line-height: 1.55; color: var(--sh-ink); }

/* контакти: тема листа в один рядок, пошта — у два (скринька / домен) */
.st-on .pitch__how li { padding: 10px 12px; }
.st-on .pitch__how b { white-space: nowrap; font-size: min(13px, 3.3vw); }
.st-on .foot__email { font-size: min(34px, 8.6vw); line-height: 1.05; overflow-wrap: normal; }

/* закритий постер конкурсу: тап проявляє його так само, як наведення мишею на компʼютері */
.st-on .knk-soon__poster { cursor: pointer; }
.st-on .knk-soon__poster.is-open img { filter: blur(6px) brightness(.6) saturate(.8); transform: scale(1.06); }

/* дата старту на постері — над «Coming soon», щоб не закривати слово «кіно» внизу */
.st-on .knk-soon__poster .knk-soon__date { position: absolute; left: 0; right: 0; top: 40%; transform: translateY(calc(-100% - 22px)); margin: 0; text-align: center; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }

/* екран конкурсу (30.10): перемикач постера — маленький «⇄» посередині нижньої грані, щоб не плутався зі «далі»
   (тап праворуч гортає екрани). Постер лишається великим — так читається (Антон) */
.st-on .poster-switch__btn { top: auto; bottom: -24px; left: 50%; right: auto; margin: 0 0 0 -20px; width: 40px; height: 40px; }
.st-on .poster-switch { padding-bottom: 12px; } /* місце під кнопкою, що звисає з нижньої грані */
.st-on .poster-switch__btn svg { width: 20px; height: 20px; }
.ps-swap { display: none; }
.st-on .ps-arr { display: none; }
.st-on .ps-swap { display: block; }
