/* A continuous cover → film → real memories, within the wine frame. */
.atmosphere-study{--paper:#fff5df;--album-ink:#81001e;overflow-x:clip;scrollbar-color:var(--cream) var(--wine)}
.atmosphere-study::after{content:"";position:fixed;inset:0;border:12px solid var(--wine);pointer-events:none;z-index:60}
.atmosphere-study .cover-track{height:auto;position:relative}
.atmosphere-study.motion-still .cover-track{height:auto}
.atmosphere-study.motion-still .hero{position:relative;top:auto;transform:none}
.atmosphere-study.motion-still .atmosphere-film{margin-top:0}
.atmosphere-study .hero{position:relative;top:auto;transform:none}
.atmosphere-study .atmosphere-film{position:relative;z-index:3;margin-top:0;padding:36px 4.8% 56px;background:var(--wine);color:var(--cream);isolation:isolate}
.film-stage{height:calc(100svh - 92px);min-height:660px;position:relative;isolation:isolate;transform:scale(calc(.96 + var(--film-open,1)*.04));transform-origin:50% 0}
.film-window{position:absolute;inset:0;overflow:hidden;background:#183f50;clip-path:none}
.film-preview{display:block;width:100%;height:100%;object-fit:cover;transform:scale(calc(1.065 - var(--film-open,1)*.065));background:#183f50}
.film-tint{position:absolute;inset:0;background:linear-gradient(transparent 20%,#10202a35 48%,#101921bf 100%);pointer-events:none}
.film-heading{position:absolute;left:4.2%;bottom:6%;z-index:2;font-family:InstrumentSerif,Georgia,serif;font-weight:400;line-height:.91;letter-spacing:-.035em;pointer-events:none}
.film-lead{font:400 15px/1.4 Instrument,sans-serif;letter-spacing:0;display:block;margin-bottom:26px}
.film-verb{display:block;font-size:clamp(65px,7.5vw,132px)}
.film-noun{display:block;font-size:clamp(110px,13.5vw,242px);margin-left:-.025em}
.film-tail{display:block;font:400 19px/1.4 Instrument,sans-serif;letter-spacing:-.015em;margin-top:22px}
.film-aside{position:absolute;z-index:4;right:6.6%;bottom:14%;width:240px}
.film-aside>p{font-size:15px;line-height:1.5;max-width:27ch;text-wrap:pretty;margin-bottom:25px}
.watch-film{display:flex;align-items:center;text-align:left;gap:17px;background:none;padding:0;color:var(--cream);font-size:16px}
.film-play{width:64px;height:64px;flex:none;display:grid;place-items:center;border:1px solid #fff5dfb3;border-radius:50%;transition:background-color .2s,color .2s}
.film-play svg{width:23px;height:23px;fill:currentColor;stroke:none;margin-left:3px}
.watch-film small{display:block;font-size:12px;line-height:1.6;letter-spacing:.04em;opacity:.8}
.watch-film:is(:hover,:focus-visible) .film-play{background:var(--cream);color:var(--wine)}
.preview-toggle{position:absolute;right:24px;top:24px;z-index:5;border:1px solid #fff5df90;border-radius:50%;background:#152d3c55;color:var(--cream);width:42px;height:42px;display:grid;place-items:center}
.preview-toggle svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.5}
.preview-toggle .pause-mark{display:none}.preview-toggle[aria-pressed=true] .pause-mark{display:block}.preview-toggle[aria-pressed=true] .play-mark{display:none}
.memories{position:relative;z-index:4;padding:95px 0 85px;color:var(--album-ink);background:var(--paper) url('assets/atmosphere/cream-silk-v1.webp') center center/cover no-repeat;isolation:isolate}
.memories::before{content:"";position:absolute;inset:0;background:#fff5df50;z-index:-1;pointer-events:none}
.album-head{display:flex;justify-content:space-between;align-items:end;gap:30px;padding:0 4.8%;margin-bottom:54px}
.album-head h2{font:400 clamp(68px,7.5vw,130px)/.91 InstrumentSerif,Georgia,serif;letter-spacing:-.035em}
.album-head h2 span{display:block}.album-head h2 span+span{margin-left:.9em}
.album-credit{padding-bottom:5px;font-size:14px;line-height:1.5}
.memory-strip{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:8px 4.8% 22px;scroll-padding-inline:4.8%;scrollbar-width:thin;scrollbar-color:#81001e66 transparent}
.memory{display:block;position:relative;margin:0;flex:0 0 clamp(220px,23vw,370px);aspect-ratio:3/4;scroll-snap-align:start;overflow:hidden;background:#e6d5bb;transform:translate(calc((var(--i) - 3)*-13px*(1 - var(--album-open,1))),calc(30px*(1 - var(--album-open,1)))) rotate(calc(var(--tilt)*(1 - var(--album-open,1))));transform-origin:50% 100%}
.memory>img{height:100%;width:100%;object-fit:cover;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.album-foot{display:flex;justify-content:space-between;align-items:start;gap:24px;padding:29px 4.8% 0}
.album-foot>p{font-size:14px;line-height:1.5;max-width:54ch;text-wrap:pretty}
.album-controls{display:flex;gap:10px}.album-controls button{display:grid;place-items:center;width:47px;height:47px;border:1px solid #81001e70;background:transparent;border-radius:50%;transition:color .2s,background-color .2s}
.album-controls button:is(:hover,:focus-visible){background:var(--wine);color:var(--cream)}.album-controls button:disabled{opacity:.3;cursor:default;background:transparent;color:var(--wine)}
.album-controls svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.2;fill:none}
.atmosphere-study .memories :is(a,button):focus-visible,.memory-strip:focus-visible{outline:2px solid var(--wine);outline-offset:5px}
.experience-dialog{padding:0;border:0;width:min(1200px,94vw);max-width:none;background:#0d151c;color:var(--cream);overflow:visible}.experience-dialog::backdrop{background:#18050dd9;backdrop-filter:blur(6px)}
.experience-dialog>video{display:block;width:100%;max-height:84svh;aspect-ratio:16/9;background:#0d151c}
.experience-close{position:absolute;right:0;top:-48px;width:42px;height:42px;background:var(--cream);color:var(--wine);display:grid;place-items:center;border-radius:50%}.experience-close svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.3;fill:none}
@media(min-width:1800px){.film-aside{width:310px}.film-aside>p{font-size:18px}.film-lead{font-size:18px}.film-tail{font-size:23px}.watch-film{font-size:19px}.film-play{width:76px;height:76px}.album-credit,.album-foot>p{font-size:17px}.memories{padding-top:120px;padding-bottom:110px}}
@media(max-width:1100px){.film-aside{width:205px;right:7%;bottom:12%}.film-aside>p{font-size:14px}.film-play{width:55px;height:55px}.watch-film{gap:12px;font-size:14px}.film-noun{font-size:14vw}.film-heading{bottom:9%}.memories{padding-top:70px;padding-bottom:60px}.album-head{margin-bottom:38px}}
@media(min-width:701px) and (max-width:950px){.film-aside{position:relative;right:auto;bottom:auto;width:auto;margin:25px 4% 0;display:flex;align-items:center;justify-content:space-between;gap:40px}.film-aside>p{max-width:36ch;margin:0}.film-heading{bottom:7%}.film-stage{min-height:620px}}
@media(max-width:700px){
 .atmosphere-study::after{border-width:8px}.atmosphere-study .cover-track{height:auto}.atmosphere-study .hero{position:relative;top:auto;transform:none}.atmosphere-study .atmosphere-film{margin-top:0;padding:24px 0 36px}.film-stage{height:70svh;min-height:470px;max-height:700px}.film-stage{transform:none}.film-window{clip-path:none}.film-preview{transform:none}.film-heading{left:6%;bottom:8%;right:6%}.film-lead{font-size:12px;margin-bottom:22px;max-width:30ch}.film-verb{font-size:clamp(48px,12.5vw,78px)}.film-noun{font-size:clamp(68px,16.2vw,110px)}.film-tail{font-size:15px;margin-top:18px}.preview-toggle{right:18px;top:18px;width:40px;height:40px}.film-aside{position:relative;right:auto;bottom:auto;width:auto;margin:25px 6% 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.film-aside>p{font-size:13px;max-width:24ch;margin:0}.watch-film{flex-direction:column;align-items:start;gap:8px;white-space:nowrap;font-size:13px}.watch-film small{font-size:11px}.film-play{width:46px;height:46px}.memories{padding:50px 0 45px;background-size:auto 100%;background-position:35% center}.album-head{display:block;padding-inline:6%;margin-bottom:28px}.album-head h2{font-size:clamp(52px,14.7vw,90px)}.album-head h2 span+span{margin-left:.55em}.album-credit{margin-top:27px;font-size:12px}.album-credit a{margin-top:6px;width:fit-content}.memory-strip{gap:10px;padding-inline:6%;padding-bottom:18px;scroll-padding-inline:6%}.memory{flex-basis:72vw;max-width:340px}.album-foot{padding:22px 6% 0;gap:18px}.album-foot>p{font-size:12px;max-width:27ch}.album-controls{gap:6px}.album-controls button{width:37px;height:37px}.album-controls svg{width:18px;height:18px}
}
@media(prefers-reduced-motion:reduce){.atmosphere-study .cover-track{height:auto}.atmosphere-study .hero{position:relative;top:auto;transform:none}.atmosphere-study .atmosphere-film{margin-top:0}.film-window{clip-path:none}.film-stage,.film-preview,.memory{transform:none}.memory>img{transition:none}}

/* Переносы и баланс строк */
.film-lead,.film-aside>p,.album-credit p{ text-wrap:balance }
.album-foot>p{max-width:62ch;text-wrap:initial}
.album-sentence{display:block;text-wrap:balance}
.atmosphere-study .reply p{text-wrap:balance}
@media(max-width:700px){.album-foot>p{max-width:27ch}.album-sentence+.album-sentence{margin-top:.55em}}

.atmosphere-study.motion-still .film-stage{transform:none}

/* One continuous cover-to-film passage; the complete frame rises past the CTA. */
@media(min-width:701px) and (prefers-reduced-motion:no-preference){
 .atmosphere-study:not(.motion-still) .cover-track{height:250svh}
 .atmosphere-study:not(.motion-still) .experience-stage{position:sticky;top:12px;height:calc(100svh - 24px);min-height:650px;overflow:hidden;isolation:isolate}
 .atmosphere-study:not(.motion-still) .hero{height:100%;min-height:0;transform-origin:50% 0;transform:scale(calc(1 - var(--passage,0)*.035))}
 .atmosphere-study:not(.motion-still) .atmosphere-film{position:absolute;inset:0;padding:36px 4.8%;transform:translateY(calc((1 - var(--passage,0))*100%));background:var(--wine)}
 .atmosphere-study:not(.motion-still) .film-stage{height:100%;min-height:0;transform:none}
 .atmosphere-study:not(.motion-still) .film-aside{right:8.6%;bottom:10%}
}
@media(min-width:701px) and (max-width:950px) and (prefers-reduced-motion:no-preference){
 .atmosphere-study:not(.motion-still) .atmosphere-film{padding:30px 4.8% 145px}
 .atmosphere-study:not(.motion-still) .film-aside{position:absolute;left:4.2%;right:4.2%;bottom:24px;width:auto;margin:0}
}
.album-head{display:flex;flex-direction:column;align-items:center;gap:28px;text-align:center}
.album-head h2{width:fit-content;text-align:left}
.album-credit{padding:0}
@media(max-width:700px){.album-head{display:flex;gap:22px}.album-credit{margin-top:0}}

@media(min-width:701px) and (prefers-reduced-motion:no-preference){.atmosphere-study:not(.motion-still) .atmosphere-film{box-shadow:0 -18px 50px #26000b26}.atmosphere-study:not(.motion-still) .film-preview{transform-origin:50% 45%}}
