/* My Story, phone only: the opening film from the shoot. Desktop is unchanged. */
@media (max-width:800px){
html.sfx body #page-story#page-story>.story-portrait-hero{height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important}
html.sfx body #page-story#page-story .story-portrait-grid{position:relative!important;height:auto!important;overflow:visible!important;display:block!important}
html.sfx body #page-story#page-story .story-portrait-grid::before,html.sfx body #page-story#page-story .story-portrait-grid::after,html.sfx body #page-story#page-story .journey-hero-veil{display:none!important}
html.sfx body #page-story#page-story .story-opening-copy,html.sfx body #page-story#page-story .story-pink-portrait{display:none!important}
/* the opening: one screen of its own */
.sf{position:relative;z-index:5;width:100%;min-height:100svh;padding-top:64px;box-sizing:border-box;background:#f5f3ee}
.sf-frame{position:relative;width:100%;margin-top:0;height:max(calc(100vw*16/9),calc(100svh - 64px));overflow:hidden;background:#f5f3ee}
.sf-frame video,.sf-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sf-frame video{opacity:0;transition:opacity .9s ease}.sf.live video{opacity:1}
.sf-still{opacity:0;transition:opacity 1s ease}
.sf.still .sf-still{animation:sf-breathe 6s cubic-bezier(.25,.6,.3,1) forwards}
@keyframes sf-breathe{from{opacity:.05;transform:translateY(16px)}to{opacity:.3;transform:none}}
.sf.live.ended .sf-still{animation:none;opacity:0}
/* scrolled before the film finished: the film gives way to the ghost of the last frame */
.sf.live.ended.early video{opacity:0;transition:opacity 1.2s ease}
.sf.ended.early .sf-still,.sf.live.ended.early .sf-still{animation:none;opacity:.21;transition:opacity 1.4s ease}
.sf-frame:before{content:none}
.sf-frame:after{content:'';position:absolute;left:0;right:0;bottom:0;height:24%;z-index:2;background:linear-gradient(to bottom,rgba(245,243,238,0) 0%,rgba(245,243,238,.55) 38%,rgba(245,243,238,.92) 62%,#f5f3ee 76%);pointer-events:none}
.sf.live.ended video{opacity:.21;transition:opacity 2.4s ease}.sf.ended .sf-frame{background:#f5f3ee}
/* title card: big and bold as the film begins, then it melts into the film */
.sf-card{position:absolute;left:18px;right:18px;top:66svh;z-index:3;margin:0;text-align:center;pointer-events:none}
.sf-card:before{content:'';position:absolute;left:-30px;right:-30px;top:-46px;bottom:-46px;z-index:-1;background:radial-gradient(ellipse at 50% 50%,rgba(245,243,238,.55),rgba(245,243,238,.3) 45%,rgba(245,243,238,0) 72%);opacity:inherit}
.sf-card span{display:block;white-space:nowrap}
.sf-card .t1{font:500 clamp(42px,12.2vw,52px)/1 'Cormorant Garamond',Cormorant,Garamond,serif;letter-spacing:-.025em;color:#0c0c0c}
.sf-card .t2{margin-top:4px;font:italic 500 clamp(37px,10.6vw,46px)/1 'Cormorant Garamond',Cormorant,Garamond,serif;color:#1d1d1d}
.sf-card b,.sf-end b{font-weight:500;color:#1f3fd1;font-size:1.42em;margin-left:.06em}
.sf-card{opacity:0;transform:translateY(calc(-50% + 10px));transition:opacity 1.2s ease,transform 1.6s cubic-bezier(.2,.7,.2,1)}
.sf-card.on{opacity:1;transform:translateY(-50%)}.sf-card.off{opacity:0;transform:translateY(calc(-50% - 8px));transition:opacity 1.6s ease,transform 1.8s ease}
/* the end: the title again, larger, with the paragraph, centred on the screen */
.sf-end{position:absolute;left:20px;right:20px;top:55svh;z-index:3;transform:translateY(-50%);text-align:center;pointer-events:none}
.sf-end h1{margin:0}
.sf-end h1 span{display:block;white-space:nowrap}
.sf-end .t1{font:500 clamp(42px,12.2vw,52px)/1 'Cormorant Garamond',Cormorant,Garamond,serif;letter-spacing:-.025em;color:#0c0c0c;opacity:0;transform:translateY(10px);transition:opacity 1.6s ease,transform 1.8s cubic-bezier(.2,.7,.2,1)}
.sf-end .t2{margin-top:4px;font:italic 500 clamp(37px,10.6vw,46px)/1 'Cormorant Garamond',Cormorant,Garamond,serif;color:#1d1d1d;opacity:0;transform:translateY(10px);transition:opacity 1.6s .6s ease,transform 1.8s .6s cubic-bezier(.2,.7,.2,1)}
.sf-end p{margin:26px auto 0;max-width:30ch;font:400 17px/1.65 Jost,sans-serif;color:#4a463f;opacity:0;transform:translateY(10px);transition:opacity 1.4s 1.5s ease,transform 1.6s 1.5s cubic-bezier(.2,.7,.2,1)}
.sf-end.on .t1,.sf-end.on .t2,.sf-end.on p{opacity:1;transform:none}
.sf-end .ink,.sf.ended .sf-frame video{will-change:opacity,transform}
@media (prefers-reduced-motion:reduce){.sf-card{display:none}.sf-frame video{display:none}.sf.still .sf-still{animation:none;opacity:.3}.sf-end .t1,.sf-end .t2,.sf-end p{opacity:1;transform:none;transition:none}}
html.sfx body #page-story#page-story .sf-end:not(.on){visibility:hidden}
html.sfx body #page-story#page-story .sf-end:not(.on) :is(.t1,.t2,p){opacity:0!important}
html.sfx body #page-story#page-story .sf-end p{opacity:0!important}
html.sfx body #page-story#page-story .sf-end.on p{opacity:1!important}

}
@media (max-width:800px) and (min-width:600px){.sf-frame{height:calc(100svh - 64px)}}
@media (min-width:801px){.sf{display:none!important}}
