/* Кейс «SISTERS» (ТЗ v2.7, Додаток Е). Вигляд і рух = макет 09-проєкти/03-sisters/макет-кейсу.
   Базовий вигляд (без JS і при «зменшити рух») = статичний фінал: зелений hero з векторним логотипом.
   Анімований вигляд вмикається лише при html.js і prefers-reduced-motion: no-preference. Рух: transform / opacity. */

@font-face { font-family: "Fixel"; src: url(/assets/fonts/fixel-variable-latin-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

[data-theme="sisters"] main img { -webkit-user-drag: none; user-select: none; }
.s-sym { position: absolute; width: 0; height: 0; }
.s-hero, .s-lede, .s-title, .s-intro, .s-facts, .s-end { font-family: Fixel, Inter, system-ui, sans-serif; }

/* ---------- HERO: статичний фінал ---------- */
.s-hero { position: relative; background: var(--sisters-g); color: var(--sisters-papier); }
.s-stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; padding: 14vh 5vw 8vh; overflow: hidden; }
.s-paper, .s-strip, #swc { display: none; }
.s-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.s-lgw { order: 1; position: relative; width: min(82vw, 1250px); }
.s-lede { order: 2; max-width: 60ch; }
.s-specbar { order: 3; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 12px; border-top: 1px solid currentColor; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.s-specbar > div { display: flex; align-items: center; gap: 10px; }
.s-specbar em { font-style: normal; opacity: .6; }
.s-c { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(128, 128, 128, .45); }
.s-c1 { background: #80AA89; } .s-c2 { background: #234021; } .s-c3 { background: #FFFFFF; } .s-c4 { background: #CAA77E; }
#lg { width: 100%; height: auto; overflow: visible; position: relative; display: block; }
.s-lb { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.s-lb [lang="uk"] { opacity: .5; text-transform: none; letter-spacing: .04em; }
.s-lp { font-size: clamp(16px, 1.3vw, 21px); line-height: 1.4; font-weight: 500; }
#swc { position: absolute; left: 1.154%; top: 3.175%; width: 32.31%; height: 75.4%; pointer-events: none; z-index: 2; }

/* ---------- INTRO, фото, галерея, пакетики, телефони, постер, меню, стрічки: статичний вигляд ---------- */
.s-sec { background: var(--sisters-g); position: relative; }
.s-dark { background: var(--sisters-nacht); }
.s-istg { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 6vw; }
.s-kk { font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin-bottom: 3vh; }
.s-roll { display: flex; font-weight: 800; font-size: 15.2vw; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.s-roll .g { font-style: normal; position: relative; display: block; height: 1.02em; overflow: hidden; }
.s-roll .g span { display: block; height: 1.02em; transform: translateY(-100%); }
.s-roll .g span + span { color: var(--sisters-m); }
.s-lead { font-weight: 500; margin-top: 5vh; max-width: 30ch; font-size: clamp(26px, 3.3vw, 50px); line-height: 1.28; letter-spacing: -.01em; }
.s-facts { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 5vw; padding: 14vh 6vw 12vh; }
.s-fl { font-family: Inter, system-ui, sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sisters-m); margin-bottom: 16px; font-weight: 600; line-height: 1.2; }
.s-facts p { font-size: 22px; line-height: 1.5; max-width: 30ch; }
.s-full, .s-menu { position: relative; overflow: hidden; height: 92vh; }
.s-menu { height: 96vh; }
.s-full img, .s-menu img, .s-sL img, .pr img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }

/* галерея: за замовчуванням звичайна стрічка зі свайпом і scroll-snap */
.s-gal { background: var(--sisters-tape); padding: 8vh 0; }
.s-gstg { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4vh 0; }
.s-trk { display: flex; align-items: center; gap: 2.4vw; padding: 0 8vw; width: max-content; }
.cd { position: relative; flex: none; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); scroll-snap-align: center; }
.cd img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd.l { width: 58vh; height: 72vh; } .cd.w { width: 92vh; height: 62vh; } .cd.t { width: 46vh; height: 76vh; } .cd.s { width: 70vh; height: 54vh; }
@media (max-width: 820px) {
  .cd.l { width: 66vw; height: 82vw; } .cd.w { width: 82vw; height: 56vw; } .cd.t { width: 56vw; height: 84vw; } .cd.s { width: 76vw; height: 58vw; }
  .s-trk { gap: 5vw; padding: 0 7vw; }
}

/* пакетики */
.s-sach { position: relative; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--sisters-m); overflow: hidden; }
.s-sL { position: relative; overflow: hidden; }
.s-sR { position: relative; overflow: hidden; background: var(--sisters-m); }
.s-sw { position: absolute; left: -18%; top: -6%; width: 130%; height: 112%; opacity: .18; pointer-events: none; }
.s-sR .v { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; max-width: none; object-fit: contain; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1s ease; z-index: 1; }
.s-sR .v.on { opacity: 1; }
.s-nav2 { display: none; position: absolute; bottom: 5vh; left: 0; right: 0; z-index: 2; justify-content: center; gap: 14px; }
.js .s-nav2 { display: flex; }
.s-vb { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--sisters-papier); overflow: hidden; cursor: pointer; transition: transform .4s; padding: 0; position: relative; }
.s-vb img { position: absolute; left: 50%; top: 50%; width: 190%; max-width: none; transform: translate(-52%, -40%); }
.s-vb.on { transform: scale(1.2); box-shadow: 0 0 0 3px var(--sisters-g); }
.s-vb:focus-visible { outline: 2px solid var(--sisters-g); outline-offset: 4px; }

/* телефони */
.s-ph { padding: 14vh 6vw 6vh; display: flex; justify-content: center; gap: 2.6vw; align-items: flex-start; }
.s-ph2 { padding: 6vh 6vw 16vh; display: flex; justify-content: center; gap: 5vw; }
.s-ph .t, .s-ph2 .t { perspective: 1100px; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .45)); }
.s-ph .t { width: 25%; } .s-ph .t:nth-child(2) { margin-top: 9vh; }
.s-ph2 .t { width: 30%; } .s-ph2 .t:nth-child(2) { margin-top: 5vh; }
.s-ph .t img, .s-ph2 .t img { width: 100%; height: auto; transition: transform .35s ease-out; }

/* постер */
.s-poster { height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--sisters-m); }
.s-poster .pl { position: relative; display: flex; align-items: center; justify-content: center; perspective: 1400px; background: linear-gradient(120deg, #e4dfd3 0%, #d6d0c2 55%, #c8c1b1 100%); }
.s-poster .pl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 18%, rgba(255, 250, 235, .55) 30%, rgba(255, 250, 235, .15) 44%, transparent 52%, rgba(255, 250, 235, .35) 64%, transparent 78%); mix-blend-mode: soft-light; pointer-events: none; }
.s-poster .pl::after { content: ""; position: absolute; inset: 0; opacity: .18; mix-blend-mode: multiply; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .36  0 0 0 0 .3  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.s-poster .pl img { position: relative; z-index: 1; height: 72vh; width: auto; max-width: 86%; transition: transform .35s ease-out; border: 8px solid #1b1815; box-sizing: content-box; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 1px 2px 2px rgba(30, 20, 10, .35), 7px 12px 14px rgba(40, 30, 20, .22), 20px 34px 46px rgba(40, 30, 20, .24); }
.s-poster .pr { position: relative; overflow: hidden; }
.s-poster .pr img { object-position: 50% 36%; top: -8%; height: 116%; }

/* стрічки: статична композиція */
.s-tapes { position: relative; background: var(--sisters-tape); }
.s-tstg { position: relative; height: 100vh; overflow: hidden; }
.s-tstg .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp { position: absolute; left: -25vw; width: 150vw; top: 50%; --th: 16vh; height: var(--th); margin-top: calc(var(--th) / -2); overflow: hidden; box-shadow: 0 2px 3px rgba(10, 25, 12, .4), 0 22px 40px rgba(10, 25, 12, .38); }
.tp::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 5px), linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 40%, rgba(0, 0, 0, .1)); }
.tp.a { background: var(--sisters-g); color: var(--sisters-papier); transform: translate3d(0, -34vh, 0) rotate(-9deg); }
.tp.b { background: var(--sisters-m); color: var(--sisters-g); transform: translate3d(0, 38vh, 0) rotate(6deg); }
.tp .mv { display: flex; height: 100%; }
.tp .u { flex: none; height: 100%; width: calc(var(--th) * 5.078); }

/* кінець */
.s-end { padding: 16vh 6vw 10vh; text-align: center; }
.s-next { display: inline-block; margin-top: 2vh; color: var(--sisters-papier); font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; text-transform: uppercase; text-decoration: none; line-height: 1.1; }
.s-next:hover { text-decoration: underline; text-underline-offset: .15em; }
.s-next:focus-visible { outline: 2px solid var(--sisters-papier); outline-offset: 6px; }
.s-end small { display: block; margin-top: 10vh; opacity: .55; font-size: 13px; line-height: 1.7; font-family: Inter, system-ui, sans-serif; }

@media (max-width: 820px) {
  .s-facts { grid-template-columns: 1fr; gap: 6vh; }
  .s-poster, .s-sach { grid-template-columns: 1fr; height: auto; }
  .s-poster .pl, .s-poster .pr, .s-sL, .s-sR { height: 80vh; }
  .s-ph { gap: 3vw; } .s-ph .t { width: 30%; }
  .s-ph2 .t { width: 40%; }
  .s-specbar em { display: none; }
}

/* ================= АНІМОВАНИЙ ВИГЛЯД (JS + рух дозволено) ================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .s-hero { height: 430vh; background: var(--sisters-g); }
  html.js .s-stage { position: sticky; top: 0; height: 100vh; min-height: 0; padding: 0; gap: 0; display: flex; flex-direction: row; align-items: center; justify-content: center; }
  html.js .s-paper { display: block; position: absolute; inset: 0; background: var(--sisters-site); will-change: opacity; }
  html.js .s-strip { display: block; position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 3; perspective: 1000px; perspective-origin: 50% 50%; pointer-events: none; }
  html.js .s-title { position: absolute; left: 5vw; right: 5vw; top: 0; bottom: 0; width: auto; height: auto; overflow: visible; clip-path: none; z-index: 2; display: flex; justify-content: center; align-items: center; color: var(--sisters-ink); pointer-events: none; }
  html.js .s-title h1 { font-weight: 800; font-size: 22.6vw; line-height: .82; letter-spacing: .012em; text-transform: uppercase; }
  html.js .s-lede { position: absolute; z-index: 2; left: 5vw; top: 71.5vh; width: 31vw; max-width: none; color: var(--sisters-ink); animation: sLede 1.2s .5s cubic-bezier(.2, .7, .2, 1) both; }
  html.js .s-specbar { position: absolute; left: 5vw; right: 5vw; bottom: 3.4vh; width: auto; z-index: 3; color: var(--sisters-ink); }
  html.js .s-stage.is-dark .s-specbar { color: var(--sisters-papier); }
  html.js .s-lgw { order: 0; }
  html.js #swc { display: block; }
  html.js .s-lgw .lt, html.js #sub, html.js #swash, html.js .sbx { opacity: 0; }
  .s-tl { position: absolute; aspect-ratio: 1; overflow: hidden; border-radius: 2px; box-shadow: 0 14px 30px rgba(30, 25, 15, .22), 0 2px 4px rgba(30, 25, 15, .15); transform: rotate(var(--r)); }
  html.js .s-tl { will-change: transform; opacity: 0; animation: sTile .9s cubic-bezier(.2, .8, .2, 1) forwards; }
  .s-tl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .s-tl1 { left: 7%; top: 10%; width: 14.5vw; --r: -5deg; animation-delay: .2s; } .s-tl2 { left: 33%; top: 22%; width: 7vw; --r: 6deg; animation-delay: .3s; }
  .s-tl3 { left: 50%; top: 23%; width: 15vw; --r: -4deg; animation-delay: .4s; } .s-tl4 { left: 67%; top: 21%; width: 9vw; --r: 7deg; animation-delay: .5s; }
  .s-tl5 { left: 89%; top: 61%; width: 8.5vw; --r: 4deg; animation-delay: .6s; } .s-tl6 { left: 56%; top: 61%; width: 10.5vw; --r: -5deg; animation-delay: .7s; }
  @keyframes sTile { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
  @keyframes sLede { from { opacity: 0; transform: translateY(14px); } }

  /* intro: sticky, літери перегортаються, слова з'являються по черзі */
  html.js .s-intro { height: 260vh; }
  html.js .s-istg { position: sticky; top: 0; height: 100vh; min-height: 0; }
  html.js .s-roll .g span { transform: none; will-change: transform; }
  html.js .s-lead span { opacity: .18; transition: opacity .4s; }
  html.js .s-lead span.on { opacity: 1; }

  /* галерея: sticky-режим лише на десктопі з мишею (клас is-sticky ставить JS) */
  .s-gal.is-sticky { height: 420vh; padding: 0; }
  .is-sticky .s-gstg { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding: 0; scroll-snap-type: none; }
  .is-sticky .s-trk { will-change: transform; }
  .is-sticky .cd img { inset: auto; left: -9%; top: 0; width: 118%; height: 100%; }
  .is-sticky .cd:nth-child(even) { transform: translateY(7vh); } .is-sticky .cd:nth-child(odd) { transform: translateY(-5vh); }

  /* стрічки: sticky-сцена, рух керує JS */
  html.js .s-tapes { height: 340vh; }
  html.js .s-tstg { position: sticky; top: 0; }
  html.js .tp { will-change: transform; }
  html.js .s-tstg .bg { will-change: transform; }
  .s-roll .g span, .s-sR .v { will-change: auto; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 820px) {
  html.js .s-hero { height: 320vh; }
  html.js .s-lede { left: 5vw; right: 5vw; width: auto; top: auto; bottom: 12vh; }
  html.js .s-title h1 { font-size: 24vw; }
  html.js .s-tl1 { top: 9%; } html.js .s-specbar { bottom: 2.4vh; }
}
@media (prefers-reduced-motion: reduce) { .s-vb, .s-sR .v { transition: none; } }

/* 06.11: заголовки блоків (Aufgabe / Rolle / Werkzeuge) більші за текст */
.s-fl { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; letter-spacing: .08em; }

/* 07.11 паритет з прототипом SISTERS: поява 60 px / 1,1 с, крива .2,.7,.2,1 */
.js .rv { transform: translateY(60px); transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { transition: none; } }

/* ---------- Правки Софії 07.11.2026 ---------- */
/* «Hinweise» у кінці: як на інших кейсах, на зеленому тлі сторінки. */
.s-credits { background: var(--sisters-g); color: var(--sisters-papier); padding: clamp(40px, 6vw, 88px) 6vw clamp(40px, 6vw, 80px); font-family: Inter, system-ui, sans-serif; }
.s-credits .cr-h { margin: 0 0 24px; color: var(--sisters-k); }
.s-credits .row { padding: 18px 0; border-top: 1px solid rgba(243, 240, 232, .22); }
.s-credits .row:last-child { border-bottom: 1px solid rgba(243, 240, 232, .22); }
.s-credits .row p { margin: 0; max-width: 62ch; }
