/* Phone-first continuation of the existing NEO scroll language. No touch-scroll
   interception: the shared passive controller only updates visual progress. */
@media (max-width:700px){
 .site-header .language-switch button{min-width:44px;min-height:44px}
 .site-header .menu-toggle{min-height:44px}
 .ed-selected>.ed-section-line{height:56px;padding-inline:14px;gap:4px}
 .ed-chapter-nav{position:relative;flex:1;gap:4px;justify-content:flex-start;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
 .ed-chapter-nav::-webkit-scrollbar{display:none}
 .ed-chapter-nav button{flex:none;min-width:44px;min-height:44px;padding:6px 10px;font-size:10px;white-space:nowrap}
 .ed-chapter-nav b{display:inline!important;font-size:9px;letter-spacing:-.02em}
 .ed-selected>.ed-section-line>.ed-all-projects{min-width:44px;min-height:44px;display:grid;place-items:center;flex:none}
 .ed-all-projects>span{display:none}
 .ed-selected>.ed-section-line>.ed-all-projects svg{width:20px;height:20px}
 .ed-feature-bottom .ed-project-link{min-height:44px}
 .ed-campaign-play{min-height:44px}
 .ed-feature-top{z-index:1;text-shadow:0 1px 8px #080b09,0 0 20px #080b09}
 .ed-opening h1{font-size:16.3vw}
 .ed-opening .ed-title-line{white-space:nowrap}
 html[lang=fr] .ed-opening h1{font-size:13vw}
 /* Fit the complete phrases at the middle of the motion, including French. */
 .ed-kinetic{font-size:13.7vw;line-height:.98;padding-block:36px 32px}
 .ed-kinetic span,.ed-kinetic span+span{margin-inline:20px;letter-spacing:-.07em}
 html[lang=fr] .ed-kinetic span+span{font-size:9.7vw}
 .ed-statement-meta{font-size:9px}
 .ed-statement-meta span:last-child{display:block;font-size:8px}
}

/* Preserve the whole object/room rather than treating a wide photograph as
   a portrait close-up. The background comes from the same approved image. */
@media (max-width:700px){
 .ed-scroll-ready .ed-rethread .ed-feature-media:before,
 .ed-scroll-ready .ed-suite .ed-feature-media:before{content:'';position:absolute;inset:-10%;background:var(--ed-phone-image) center/cover;filter:blur(24px) brightness(.4);opacity:.75}
 .ed-scroll-ready .ed-rethread{--ed-phone-image:url('assets/editorial/cover-tonal-neo-v04.jpg')}
 .ed-scroll-ready .ed-suite{--ed-phone-image:url('assets/framing-nature/suite-refined.webp');background:#2a201a}
 .ed-scroll-ready .ed-rethread .ed-feature-media img{top:auto;bottom:238px;left:-34%;width:168%;height:auto;max-width:none;object-fit:contain;transform:translate3d(0,calc((1 - var(--chapter-hold,1))*10px),0);transform-origin:center;mask-image:linear-gradient(transparent,#000 14%,#000 88%,transparent)}
 .ed-scroll-ready .ed-rethread .ed-feature-title{bottom:126px}
 .ed-scroll-ready .ed-rethread .ed-feature-title h3{font-size:14.8vw;line-height:.92;white-space:nowrap}
 .ed-scroll-ready .ed-rethread .ed-feature-title h3 span{display:inline}
 .ed-scroll-ready .ed-suite .ed-feature-media img{position:absolute;left:-12%;bottom:256px;width:124%;height:auto;max-width:none;object-fit:contain;transform:translate3d(0,calc((1 - var(--chapter-hold,1))*12px),0);mask-image:linear-gradient(transparent,#000 12%,#000 82%,transparent)}
 .ed-scroll-ready .ed-suite .ed-feature-title{bottom:126px}
 .ed-scroll-ready .ed-suite .ed-feature-title h3{font-size:12.5vw;line-height:.94}
 .ed-scroll-ready .ed-suite .ed-feature-shade{background:linear-gradient(0deg,#160f0ef5,transparent 72%)}
 .ed-scroll-ready .ed-chapter-frame .ed-feature-bottom{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
 .ed-scroll-ready .ed-chapter-frame .ed-feature-title{max-width:calc(100% - 40px)}
}

@media (max-width:700px) and (prefers-reduced-motion:no-preference){
 .ed-opening{height:156svh;min-height:0;max-height:none}
 .ed-opening-sticky{position:sticky;top:66px;height:calc(100svh - 66px);min-height:0;max-height:none}
 .ed-opening-image{clip-path:none;transform:scale(calc(1.045 - var(--ed-open,0)*.045))}
 .ed-opening-image img{object-position:48% center}
 /* Moving mattes reveal the photo using transforms only. Their zero-width
    end state leaves no seam, and the architectural image is never warped. */
 .ed-opening-image:before,.ed-opening-image:after{content:'';position:absolute;z-index:1;pointer-events:none;background:var(--ed-bg)}
 .ed-opening-image:before{inset:0 auto 0 0;width:12%;transform-origin:left;transform:scaleX(calc(1 - var(--ed-open,0)))}
 .ed-opening-image:after{inset:0 0 auto;height:5%;transform-origin:top;transform:scaleY(calc(1 - var(--ed-open,0)))}
 .ed-opening h1{top:26%;transform:translate3d(0,calc(var(--ed-open,0)*-26px),0)}
 .ed-opening-top{top:22px;left:20px;right:20px}
 .ed-opening-bottom{left:20px;right:20px;bottom:calc(58px + env(safe-area-inset-bottom,0px));grid-template-columns:1fr 1fr;align-items:center;gap:16px 10px}
 .ed-opening-bottom>p{grid-column:1/-1;max-width:300px;font-size:14px;line-height:1.5}
 .ed-opening-bottom strong{max-width:300px}
 .ed-opening-bottom .ed-round-link{display:inline-flex;justify-self:start;gap:9px;min-height:44px;font-size:11px!important}
 .ed-round-link svg{width:32px;height:32px;padding:8px}
 .ed-reel-trigger{justify-self:end;grid-template-columns:32px auto;gap:2px 8px;min-height:44px}
 .ed-reel-trigger>span:nth-child(2){font-size:11px}
 .ed-play-icon{width:32px;height:32px}
 .ed-opening-note{left:20px;right:20px;bottom:calc(16px + env(safe-area-inset-bottom,0px));font-size:9px;max-width:300px;line-height:1.5}
 .ed-kinetic span{transform:translate3d(calc((clamp(.1,var(--ed-p,.5),.9) - .5)*-44px),0,0);text-align:left}
 .ed-kinetic span+span{transform:translate3d(calc((clamp(.1,var(--ed-p,.5),.9) - .5)*44px),0,0);text-align:right}
}

/* Tall phones get a title -> image -> short caption composition. On compact
   phones the existing lower title remains, so the scene never becomes cramped. */
@media (max-width:700px) and (min-height:780px){
 .ed-scroll-ready :is(.ed-rethread,.ed-suite) .ed-feature-title{top:68px;bottom:126px;display:block}
 .ed-scroll-ready :is(.ed-rethread,.ed-suite) .ed-feature-title h3{position:absolute;top:0;left:0}
 .ed-scroll-ready :is(.ed-rethread,.ed-suite) .ed-feature-title p{position:absolute;bottom:0;left:0;margin:0;max-width:280px}
 .ed-scroll-ready .ed-rethread .ed-feature-media img{top:28%;bottom:auto;left:-46%;width:180%}
 .ed-scroll-ready .ed-suite .ed-feature-media img{top:29%;bottom:auto;left:-21%;width:142%}
}

@media (max-width:700px) and (prefers-reduced-motion:reduce){
 .ed-opening{height:auto;min-height:0}
 .ed-opening-sticky{position:relative;top:0;height:calc(100svh - 66px);min-height:600px}
 .ed-opening-image{clip-path:none;transform:none}
 .ed-opening-image:before,.ed-opening-image:after{display:none}
 .ed-opening h1,.ed-kinetic span,.ed-kinetic span+span{transform:none!important}
 .ed-opening-bottom{bottom:70px}
 .ed-opening-note{bottom:20px}
}
