/* [ROO-3589 → ROO-3630 → ROO-3646] Блок «One floor plan in. Four things out.».
   База (без класса motion и при reduced-motion): заголовок, план, кнопка, затем четыре карточки подряд.
   Под html.motion — закреплённая секция по слову владельца 10.11 23:44Z: дорожка .of-trk высотой экран + 4 шага,
   .of в ней sticky на весь экран; карточки лежат друг на друге в одном окне .of-out и сменяются на месте (400 мс).
   Текущую карточку (.cur, aria-current) ставит flow.js по положению дорожки; wheel и touch не перехватываем.
   Без flow.js видна первая карточка. Прежняя лента (карточка на экран) — «долго листаю пустоту», владелец 23:44Z.
   ROO-3664 (владелец 10.11 05:43Z): без квадратных подложек — предмет карточки стоит прямо на фоне страницы, тень и
   скругление только у него; смена карточек — мягкий подъём снизу вверх за прокруткой (.of.scrub, позы ставит flow.js);
   карточка 3 — живая страница клиента в телефоне и выноски, карточка 4 — стена из 8 роликов альбомов. */

.of{position:relative;margin-top:0}
.of-h{margin-bottom:32px}

/* вход: план */
.of-in{margin:0}
.of-plan{position:relative;display:block;padding:14px;border-radius:var(--r);background:#fff;box-shadow:0 10px 24px var(--lift);overflow:hidden}
.of-plan img{width:100%;height:auto}
.of-in figcaption{display:flex;align-items:center;gap:10px;margin-top:12px}
.of-in figcaption .i{width:24px;height:24px;flex:none}
.of-in b{font-size:var(--fs-h3);font-weight:var(--w-head);letter-spacing:-.015em}
.of-btn{margin-top:20px}

/* указатель и полоска — только в раскладке «две колонки» */
.of-ix,.of-bar{display:none}

/* выходы */
.of-out{list-style:none;margin:48px 0 0;padding:0;display:grid;gap:36px}
.of-c{display:flex;flex-direction:column;min-width:0}
.of-m{position:relative;display:block;aspect-ratio:1/1;container-type:size}
.of-m>a{position:absolute;inset:0;display:block}
.of-m img,.of-m video{display:block;width:100%;height:100%;object-fit:cover}
.of-ai{position:absolute;left:10px;top:10px;min-height:24px;padding:0 9px;font-size:11px;z-index:2;pointer-events:none}
.of-t{margin-top:14px;font-size:var(--fs-h3);font-weight:var(--w-head);letter-spacing:-.015em;line-height:1.2}
.of-t .n{color:var(--acc);margin-right:8px;font-variant-numeric:tabular-nums}
.of-c .cap{margin-top:4px;color:var(--fg);opacity:.72}
.of-c .lnk{align-self:flex-start}
.of-c .lnk::after{content:"→";margin-left:6px;text-decoration:none;display:inline-block;transition:transform var(--dur-s) var(--ease)}
.of-c .lnk:hover::after{transform:translateX(3px)}
@media (hover:hover){.of-m>a img{transition:transform var(--dur-m) var(--ease)}.of-m>a:hover img{transform:scale(1.03)}}

/* 3D: постер и кнопка поверх */
.of-go{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border-radius:999px;background:var(--cream);color:var(--ink);font-size:15px;font-weight:600;box-shadow:0 6px 16px var(--lift);white-space:nowrap}
.of-go .i{width:18px;height:18px}

/* стили: два кадра одной столовой внахлёст, переключатель снизу */
.of-st img{position:absolute;inset:0;transition:opacity var(--dur-m) var(--ease)}
.of-st img+img{opacity:0}
.of-st[data-s="1"] img+img{opacity:1}
.of-sw{position:absolute;left:10px;right:10px;bottom:10px;z-index:2;display:flex;gap:6px;flex-wrap:wrap}
.of-sw button{min-height:36px;padding:0 12px;border:0;border-radius:999px;background:var(--shade);color:var(--cream);font:inherit;font-size:13px;font-weight:500;cursor:pointer;transition:background-color var(--dur-s) var(--ease),color var(--dur-s) var(--ease)}
.of-sw button[aria-pressed=true]{background:var(--cream);color:var(--ink)}
.of-sw button:focus-visible{outline:2px solid var(--terra);outline-offset:2px}

/* КП и ролик: телефон по центру карточки */
.of-ph>a{display:grid;place-items:center;padding:16px 0}
.of-ph .ph{position:relative;height:100%;aspect-ratio:1/2;padding:6px;border-radius:22px;background:var(--ink);box-shadow:0 10px 24px var(--lift);overflow:hidden}
.of-ph .ph--v{aspect-ratio:9/16}
.of-ph .ph img,.of-ph .ph video{border-radius:16px;background:var(--ink-2)}
/* ролик лежит поверх ленивой картинки-постера и проявляется, только когда пошёл: атрибут poster грузился бы сразу с HTML */
.of-ph .ph video{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);opacity:0;background:none;transition:opacity var(--dur-s) linear}
.of-ph.playing .ph video{opacity:1}
.of-play{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:var(--shade);display:grid;place-items:center;z-index:2;pointer-events:none;transition:opacity var(--dur-s) var(--ease)}
.of-play svg{width:22px;height:22px;fill:var(--cream);margin-left:3px}
.of-ph.playing .of-play{opacity:0}

/* база на десктопе: план по центру, четыре выхода в ряд */
@media (min-width:900px){
  html:not(.motion) .of-l{width:min(460px,40%);margin-inline:auto;text-align:center}
  html:not(.motion) .of-in figcaption{justify-content:center;white-space:nowrap}
  html:not(.motion) .of-out{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gut);margin-top:64px}
}

/* ── Закреплённая секция (html.motion) ── */
.of-ix a,.of-dots a{text-decoration:none;color:inherit}
.motion .of-trk{--step:70svh;position:relative;height:calc(100svh + var(--step)*4)}
.motion .of{position:sticky;top:0;height:100vh;height:100svh;box-sizing:border-box;display:grid}
.motion .of-out{position:relative;margin:0;gap:0;min-height:0;display:block;touch-action:pan-y}
/* карточки стопкой в одном окне; не текущая прозрачна и не ловит указатель, следующая въезжает снизу */
.motion .of-c{position:absolute;inset:0;background:var(--bg);opacity:0;pointer-events:none;transform:translateY(48px);transition:opacity 400ms var(--ease),transform 400ms var(--ease),visibility 0s linear 400ms;visibility:hidden}
.motion .of-c.past{transform:translateY(-24px) scale(.97)}
.motion .of-c.cur,.motion .of:not(.arm) .of-c:first-child{opacity:1;pointer-events:auto;transform:none;visibility:visible;transition-delay:0s;z-index:1}
.motion .of-m{flex:1 1 auto;min-height:0;aspect-ratio:auto}
.motion .of-c .of-t{margin-top:12px}
.motion .of-c .lnk{display:inline-flex;align-items:center;min-height:44px}
.motion .of-ph>a{padding:18px 0}

@media (min-width:900px){
  .motion .of{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:calc(var(--gut)*2);align-items:center;padding-block:max(24px,6svh)}
  .motion .of-l{padding-block:12px}
  .motion .of-h{font-size:clamp(34px,3.4vw,54px);margin-bottom:24px}
  .motion .of-plan{max-width:440px}
  .motion .of-ix{display:block;list-style:none;margin:28px 0 0;padding:0;border-top:1px solid var(--line)}
  .motion .of-ix a{display:flex;align-items:center;gap:12px;min-height:46px;border-bottom:1px solid var(--line);font-size:17px;font-weight:600;letter-spacing:-.01em;opacity:.55;transition:opacity 300ms var(--ease),color 300ms var(--ease)}
  .motion .of-ix .n{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1.5px solid currentColor;font-size:13px;font-variant-numeric:tabular-nums;transition:background-color 300ms var(--ease),border-color 300ms var(--ease),color 300ms var(--ease)}
  .motion .of-ix a:hover{opacity:.85}
  .motion .of-ix a[aria-current]{opacity:1;color:var(--terra)}
  .motion .of-ix a[aria-current] .n{background:var(--terra);border-color:var(--terra);color:var(--cream)}
  .motion .of-ix a:focus-visible{outline:2px solid var(--terra);outline-offset:2px}
  /* окно карточки фиксированного размера */
  .motion .of-out{height:min(100%,760px)}
}
/* невысокий ноутбук: левая часть должна поместиться целиком */
@media (min-width:900px) and (max-height:820px){
  .motion .of-h{font-size:clamp(30px,2.8vw,44px)}
  .motion .of-plan{max-width:340px;padding:10px}
  .motion .of-ix a{min-height:40px;font-size:16px}
}

/* телефон: тот же экран — сверху заголовок, полоска «план + 4 точки + текущий пункт», ниже одна карточка, внизу кнопка */
@media (max-width:899px){
  /* строки явно: в .of-l бывают служебные узлы, при автоматической раскладке окно карточки сжималось в 0 */
  .motion .of{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;grid-auto-rows:0;padding-block:max(12px,2svh) max(14px,2.4svh)}
  .motion .of-l{display:contents}
  .motion .of-h{grid-row:1;font-size:clamp(24px,7vw,30px);line-height:1.12;margin-bottom:6px}
  .motion .of-in{display:none}
  .motion .of-bar{grid-row:2;display:flex;align-items:center;gap:8px;height:52px;margin:0 0 6px}
  .motion .of-out{grid-row:3}
  .motion .of-btn{grid-row:4;margin-top:12px;justify-self:stretch;text-align:center}
  .motion .of-bar img{width:46px;height:auto;flex:none;padding:3px;border-radius:6px;background:#fff;box-shadow:0 2px 6px var(--lift)}
  .motion .of-dots{display:flex;flex:none}
  .motion .of-dots a{display:grid;place-items:center;width:44px;height:44px}
  .motion .of-dots i{display:block;width:8px;height:8px;border-radius:50%;background:var(--fg);opacity:.25;transition:opacity 300ms var(--ease),background-color 300ms var(--ease),transform 300ms var(--ease)}
  .motion .of-dots a[aria-current] i{background:var(--terra);opacity:1;transform:scale(1.25)}
  /* название пункта целиком, при нехватке места — в две строки, без многоточия */
  .motion .of-now{min-width:0;font-size:15px;line-height:1.15;font-weight:600;letter-spacing:-.01em;color:var(--terra)}
  .motion .of-c .of-t{margin-top:10px;font-size:20px}
  .motion .of-c .cap{font-size:15px;line-height:1.35}
  .motion .of-c .lnk{min-height:40px}
  .motion .of-ph>a{padding:10px 0}
  .motion .of-sw button{min-height:40px}
}

/* ── ROO-3664: предметы на фоне страницы ── */
/* 1 · дом: постер d3n-* уже на цвете страницы; края кадра ещё и растворяем маской — без следа прямоугольника на любом экране */
#of-1 .of-m picture img{-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(transparent,#000 9%,#000 91%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent),linear-gradient(transparent,#000 9%,#000 91%,transparent);mask-composite:intersect}
/* 2 · кадр: сам снимок у нижнего края окна (ближе к подписи), 4:3 на десктопе и почти квадрат на телефоне — окно не пустует;
   скругление и тень у снимка; чип и переключатель — на его углах */
.of-st{--pw:100cqw;--ph:min(100cqh,100cqw*.78)}
.of-m.of-st>a{inset:auto;left:50%;top:calc(100% - var(--ph));width:var(--pw);height:var(--ph);translate:-50% 0;border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(20,17,14,.08),0 22px 44px -16px rgba(20,17,14,.36)}
.of-st .of-ai{left:calc(50% - var(--pw)/2 + 12px);top:calc(100% - var(--ph) + 12px)}
.of-st .of-sw{left:calc(50% - var(--pw)/2 + 12px);right:auto;bottom:12px}

/* 3 · страница клиента: телефон с наклоном, внутри сама прокручивается живая страница; справа выноски */
.of-pg{display:flex;align-items:center;justify-content:center}
.of-m.of-pg>.of-pgp{position:relative;inset:auto;flex:none;height:min(calc(100cqh - 40px),104cqw);aspect-ratio:1/2}
.of-pg .ph{position:absolute;inset:0;display:block;padding:7px;border-radius:32px;background:var(--ink);transform:rotate(-4deg);box-shadow:inset 0 0 0 1.5px #3a332c,0 2px 4px rgba(20,17,14,.14),0 34px 64px -20px rgba(20,17,14,.5),0 14px 28px -14px rgba(20,17,14,.3)}
.of-pg .ph-s{position:absolute;inset:7px;border-radius:25px;overflow:hidden;background:#F4EDE5}
.of-pg .ph-s::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.16),rgba(255,255,255,0) 38%);pointer-events:none}
.of-m .of-pg .ph-s img,.of-pg .ph-s img{position:absolute;left:0;top:0;width:100%;height:auto;object-fit:fill;transform:none}
.of-pg .of-ai{left:14px;top:16%}
.of-co{list-style:none;margin:0 0 0 -34px;padding:0;display:grid;gap:14px;position:relative;z-index:2;max-width:250px}
.of-co li{display:flex;align-items:center;gap:10px;padding:12px 16px 12px 12px;border-radius:14px;background:#fff;color:var(--ink);font-size:15px;font-weight:600;line-height:1.25;letter-spacing:-.01em;box-shadow:0 1px 2px rgba(20,17,14,.06),0 14px 30px -12px rgba(20,17,14,.28)}
.of-co li:nth-child(2){margin-left:30px}
.of-co .i{width:22px;height:22px;flex:none;color:var(--terra)}
@keyframes of-pg{0%,10%{transform:translateY(0)}20%,34%{transform:translateY(-26.4%)}44%,58%{transform:translateY(-55.1%)}68%,90%{transform:translateY(-69.5%)}100%{transform:translateY(0)}}
.motion .of-pg .ph-s img{animation:of-pg 22s cubic-bezier(.65,0,.35,1) infinite paused}
.motion .of-c.cur .of-pg .ph-s img{animation-play-state:running}
.motion .of-co li{opacity:0;transform:translateX(14px);transition:opacity 500ms var(--ease),transform 500ms var(--ease)}
.motion .of-c.cur .of-co li{opacity:1;transform:none}
.motion .of-c.cur .of-co li:nth-child(2){transition-delay:120ms}
.motion .of-c.cur .of-co li:nth-child(3){transition-delay:240ms}

/* 4 · стена роликов: 4×2, чётные столбцы сдвинуты вниз; каждый ролик со своей меткой AI */
.of-wall{display:grid;place-items:center}
.of-m.of-wall>.of-wl{position:relative;inset:auto;--gp:clamp(8px,1.8cqw,14px);--tw:min(calc((100cqw - 3*var(--gp))/4),calc((100cqh - var(--gp) - 16px)/2.16*9/16));display:grid;grid-template-columns:repeat(4,var(--tw));gap:var(--gp);padding-bottom:calc(var(--tw)*16/9*.16)}
.of-r{position:relative;display:block;width:var(--tw);aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:linear-gradient(165deg,#E6D6C3,#C9B49C);box-shadow:0 1px 2px rgba(20,17,14,.08),0 16px 30px -14px rgba(20,17,14,.4)}
.of-r:nth-child(even){transform:translateY(calc(var(--tw)*16/9*.16))}
.of-m .of-r img,.of-m .of-r video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:none}
.of-r video{opacity:0;transition:opacity 400ms linear}
.of-r.playing video{opacity:1}
.of-r b{position:absolute;left:7px;top:7px;z-index:1;padding:2px 7px;border-radius:999px;background:rgba(20,17,14,.55);color:var(--cream);font-size:10px;font-weight:700;letter-spacing:.06em;line-height:16px}

/* смена за прокруткой: позы карточек ставит flow.js, переходы по классу выключены, плашки фона нет */
.motion .of.scrub .of-c{transition:none;visibility:visible;background:none;will-change:transform,opacity}

@media (max-width:899px){
  .of-co{margin-left:-22px;gap:10px;max-width:170px}
  .of-co li{padding:9px 11px 9px 9px;gap:7px;font-size:13px;border-radius:12px}
  .of-co li:nth-child(2){margin-left:16px}
  .of-co .i{width:18px;height:18px}
  .of-pg .ph{padding:5px;border-radius:24px}
  .of-pg .ph-s{inset:5px;border-radius:19px}
  .of-pg .of-ai{left:10px;min-height:20px;padding:0 7px;font-size:10px}
  .of-m.of-pg>.of-pgp{height:min(calc(100cqh - 24px),116cqw)}
  .of-m.of-wall>.of-wl{--tw:min(calc((100cqw - var(--gp))/2),calc((100cqh - var(--gp) - 8px)/2.16*9/16));grid-template-columns:repeat(2,var(--tw))}
  .of-r:nth-child(n+5){display:none}
  .of-st{--ph:min(100cqh,100cqw*1.08)}
}
@media (hover:hover){.of-m>a.of-wl:hover img,.of-m>a.of-pgp:hover img{transform:none}}

/* ── ROO-3679: веточки от плана к карточке, бегущая точка, прорисовка плана, линия прогресса, анимации карточек ── */
.of-wire{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:6}
.of-br{fill:none;stroke:var(--terra);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:.24 1;opacity:.28;transition:opacity 400ms var(--ease)}
.of-br.off{opacity:0}
.of-br--on{stroke-dasharray:1 1;stroke-dashoffset:0;opacity:1}
.of-knot{fill:var(--terra)}
.of-dot{fill:var(--terra);opacity:0;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--terra) 90%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--terra) 55%,transparent))}
.of-ring{fill:none;stroke:var(--terra);stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center}
.of-ring.go{animation:of-ring 700ms var(--ease) both}
@keyframes of-ring{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(2.6)}}
.of-wire.m .of-br:not(.of-br--on){display:none}
/* карточка «загорается» в момент касания точки */
.of-lit{animation:of-lit 900ms var(--ease) both}
@keyframes of-lit{0%{filter:none}35%{filter:brightness(1.07) saturate(1.06) drop-shadow(0 0 22px color-mix(in srgb,var(--terra) 38%,transparent))}100%{filter:none}}
/* неподвижное дерево без движения: все четыре веточки целиком и бледнее */
.of.still .of-br{stroke-dasharray:none;opacity:.45}
.of.still .of-br--on,.of.still .of-dot,.of.still .of-ring{display:none}
@media (max-width:899px){.of.still .of-wire{display:none}}

/* план: стены вычерчиваются при первом входе в блок (1,1 с), потом проявляется сам чертёж */
.of-ov{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);overflow:visible;pointer-events:none}
.of-pw{fill:none;stroke:#14110E;stroke-width:6;stroke-dasharray:1 1;stroke-dashoffset:0}
.of-hl{fill:none;stroke:var(--terra);stroke-width:5;opacity:0;transition:opacity 400ms var(--ease)}
.of-hl0{stroke-dasharray:1 1;stroke-dashoffset:1;transition:opacity 400ms var(--ease),stroke-dashoffset 900ms var(--ease)}
.of-hl1{fill:var(--terra);fill-opacity:.16;stroke-width:4}
.of[data-k="0"] .of-hl0{opacity:1;stroke-dashoffset:0}
.of[data-k="1"] .of-hl1{opacity:1}
.motion .of.pre .of-plan img{opacity:0}
.motion .of.pre .of-pw{stroke-dashoffset:1}
.motion .of.drawn .of-pw{stroke-dashoffset:0;transition:stroke-dashoffset 1100ms cubic-bezier(.45,0,.25,1)}
.motion .of.drawn .of-plan img{opacity:1;transition:opacity 500ms var(--ease) 750ms}
.motion .of.drawn .of-bar img{animation:of-wipe 1100ms cubic-bezier(.45,0,.25,1) both}
html:not(.motion) .of-ov,html:not(.motion) .of-bdg{display:none}
/* значок у корня веточки: страница — ссылка, ролик — кадр */
.of-in{position:relative}
.of-bdg{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:var(--terra);color:var(--cream);display:grid;place-items:center;opacity:0;scale:.4;z-index:7;transition:opacity 300ms var(--ease),scale 400ms cubic-bezier(.3,1.6,.5,1);box-shadow:0 6px 14px -6px rgba(20,17,14,.5)}
.of-bdg .i{grid-area:1/1;width:16px;height:16px;opacity:0;transition:opacity 200ms linear}
.of[data-k="2"] .of-bdg,.of[data-k="3"] .of-bdg{opacity:1;scale:1}
.of[data-k="2"] .of-bdg .i:first-child,.of[data-k="3"] .of-bdg .i+.i{opacity:1}
@media (min-width:900px) and (max-height:820px){.of-ov{inset:10px;width:calc(100% - 20px);height:calc(100% - 20px)}}

/* пункты 1–4: вертикальная линия прогресса (--p ставит flow.js по прокрутке), кружок текущего пульсирует один раз.
   Приглушение пунктов цветом, а не прозрачностью — иначе линия просвечивает сквозь кружки */
@media (min-width:900px){
  .motion .of-ix{position:relative}
  .motion .of-ix::before,.motion .of-ix::after{content:"";position:absolute;left:12px;top:24px;bottom:23px;width:2px;border-radius:1px;background:var(--line);pointer-events:none}
  .motion .of-ix::after{background:var(--terra);transform-origin:50% 0;transform:scaleY(var(--p,0))}
  .motion .of-ix a{position:relative;z-index:1;opacity:1;color:color-mix(in srgb,var(--fg) 55%,var(--bg))}
  .motion .of-ix a:hover{opacity:1;color:color-mix(in srgb,var(--fg) 85%,var(--bg))}
  .motion .of-ix a[aria-current]{color:var(--terra)}
  .motion .of-ix .n{background:var(--bg)}
  .motion .of-ix a[aria-current] .n{animation:of-pulse 900ms var(--ease) 1}
}
@media (min-width:900px) and (max-height:820px){.motion .of-ix::before,.motion .of-ix::after{top:21px;bottom:20px}}
.motion .of-dots a[aria-current] i{animation:of-pulse 900ms var(--ease) 1}
@keyframes of-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--terra) 50%,transparent)}100%{box-shadow:0 0 0 10px color-mix(in srgb,var(--terra) 0%,transparent)}}

/* 1 · дом медленно поворачивается (±6°) и чуть следует за курсором; тень под ним дышит. Только на текущей карточке */
.motion #of-1 .of-m picture{display:block;width:100%;height:100%;animation:of-sway 12s ease-in-out infinite paused}
.motion #of-1 .of-m>a{translate:calc(var(--mx,0)*-14px) calc(var(--my,0)*-8px);transition:translate 900ms var(--ease)}
.motion #of-1 .of-m>a::after{content:"";position:absolute;left:18%;right:14%;top:56%;height:20%;border-radius:50%;background:radial-gradient(closest-side,rgba(20,17,14,.26),rgba(20,17,14,0));z-index:-1;animation:of-breathe 6s ease-in-out infinite paused}
.motion #of-1.cur .of-m picture,.motion #of-1.cur .of-m>a::after{animation-play-state:running}
@keyframes of-sway{0%,100%{transform:perspective(1600px) rotateY(-6deg)}50%{transform:perspective(1600px) rotateY(6deg)}}
@keyframes of-breathe{0%,100%{transform:scaleX(.9);opacity:.7}50%{transform:scaleX(1.06);opacity:1}}

/* 2 · стиль меняется шторкой слева направо: новый снимок ложится поверх прежнего */
@keyframes of-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.motion .of-st img,.motion .of-st img+img{opacity:1;z-index:0;transition:none}
.motion .of-st[data-s="0"] img:first-child,.motion .of-st[data-s="1"] img+img{z-index:1;animation:of-wipe 850ms cubic-bezier(.65,0,.35,1) both}

/* 4 · стена роликов: при входе плитки вспыхивают каскадом (scale, а не transform — чётные столбцы сдвинуты transform) */
@keyframes of-pop{0%{opacity:0;scale:.9;filter:brightness(1.6)}55%{opacity:1;filter:brightness(1.18)}100%{opacity:1;scale:1;filter:none}}
.motion .of-c.cur .of-r{animation:of-pop 700ms var(--ease) both}
.motion .of-c.cur .of-r:nth-child(2){animation-delay:60ms}
.motion .of-c.cur .of-r:nth-child(3){animation-delay:120ms}
.motion .of-c.cur .of-r:nth-child(4){animation-delay:180ms}
.motion .of-c.cur .of-r:nth-child(5){animation-delay:240ms}
.motion .of-c.cur .of-r:nth-child(6){animation-delay:300ms}
.motion .of-c.cur .of-r:nth-child(7){animation-delay:360ms}
.motion .of-c.cur .of-r:nth-child(8){animation-delay:420ms}
.motion .of.pre:not(.drawn) .of-bar img{clip-path:inset(0 100% 0 0)}
