/* Sky opening with a cloud veil over the blue introduction.
   Native document flow supplies the main motion; only transforms add depth. */
.opening-journey{position:relative;background:#fff;isolation:isolate}
.cinema-intro{position:relative;height:150svh;min-height:930px;color:#173e63;isolation:isolate}
.cinema-viewport{contain:layout paint;position:sticky;top:0;height:100svh;min-height:620px;overflow:hidden;background:linear-gradient(#167bd3,#91cced 58%,#fff)}
.sky-opening{position:absolute;inset:0;pointer-events:none;isolation:isolate}
.cinema-preparing .sky-opening{opacity:0}
.cinema-ready .sky-opening{animation:sky-opening-in 2.8s cubic-bezier(.16,1,.3,1) backwards}
.sky-background{will-change:transform;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 40%;transform:translate3d(0,calc(var(--intro-scroll,0)*100px),0) scale(calc(1.08 + var(--intro-scroll,0)*.14))}
.sky-lettering{position:relative;height:100%;width:100%;z-index:2;perspective:1400px}
.sky-distant-title{position:absolute;top:24%;left:0;right:0;text-align:center;font-size:clamp(78px,15.8vw,202px);line-height:1;font-weight:800;letter-spacing:-.055em;color:#ffffff3b;transform:translate3d(0,calc(var(--intro-scroll,0)*-65px),0) scaleY(1.6);transform-origin:center top;white-space:nowrap}
.cinema-title-position{will-change:transform;position:absolute;top:44%;left:0;right:0;display:flex;justify-content:center;perspective:1100px;transform:translate3d(0,calc(var(--intro-scroll,0)*-210px),0) scale(calc(1 + var(--intro-scroll,0)*.13))}
.cinema-title-reveal{transform-style:preserve-3d}
.cinema-ready .cinema-title-reveal{animation:title-camera-in 2.8s cubic-bezier(.16,1,.3,1) backwards}
.cinema-title-solid{position:relative;transform-style:preserve-3d;transform:rotateX(6deg) rotateY(-12deg) rotateZ(-5deg);font-family:'Arial Rounded MT Bold',Georgia,serif;font-size:clamp(84px,16.5vw,222px);font-weight:700;letter-spacing:-.055em;line-height:1.18;white-space:nowrap}
.cinema-title-front{position:relative;display:block;color:transparent;background:linear-gradient(150deg,#fff 7%,#fffef9 29%,#d2dce6 47%,#fff 55%,#eaf2f7 76%,#afc6d8 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-stroke:.65px #f3f9ff;transform:translateZ(1px);text-shadow:0 -1px 0 #fff5}
.cinema-title-depth{position:absolute;inset:0;color:#b0c3d4;-webkit-text-stroke:.55px #879fb7;transform:translateZ(calc(var(--layer)*-1.15px));text-shadow:1px 1px 0 #9aafc2}
.sky-cloud-arrival{position:absolute;inset:0;z-index:3;pointer-events:none}
.cinema-ready .sky-cloud-arrival{animation:cloud-camera-in 2.8s cubic-bezier(.16,1,.3,1) backwards}
.sky-cloud-foreground{will-change:transform;position:absolute;left:0;top:47%;width:100%;height:61%;max-width:none;object-fit:fill;transform:translate3d(0,calc(var(--intro-scroll,0)*-95px),0) scale(calc(1 + var(--intro-scroll,0)*.14));transform-origin:center bottom;pointer-events:none}
.sky-mist{position:absolute;z-index:4;inset:63% 0 -1px;background:linear-gradient(180deg,#fff0,#ffffff29 23%,#ffffffbd 52%,#fff 88%);pointer-events:none}
.cinema-composition{position:relative;height:100%;width:100%;z-index:5}
.cinema-topline,.cinema-bottomline{position:absolute;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:9px;letter-spacing:.11em;transform:translate3d(0,calc(var(--intro-scroll,0)*-22px),0)}
.cinema-topline{top:108px;color:#e8f6ff}
.cinema-topline>span{font-weight:600;display:flex;gap:13px;align-items:center}
.cinema-topline i{font-style:normal;color:#c8e7f8}
.cinema-skip{display:flex;align-items:center;gap:18px;min-height:44px;font-size:11px;letter-spacing:0;color:#fff}
.cinema-skip>span{font-size:20px}
.cinema-byline{position:absolute;top:81%;left:0;right:0;text-align:center;transform:translate3d(0,calc(var(--intro-scroll,0)*-70px),0)}
.cinema-ready .cinema-composition{animation:opening-copy-in 1.8s ease-out backwards}
.cinema-byline p{margin:0 0 8px;font-size:15px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.cinema-byline>span{font-size:10px;letter-spacing:.13em;color:#5b7c97}
.cinema-bottomline{bottom:20px;color:#5b7892;font-size:8px}
.cinema-bottomline>span{display:flex;align-items:center;gap:10px}
.cinema-bottomline i{font-style:normal}
.cinema-scroll{display:flex;align-items:center;gap:17px;min-height:44px;font-size:11px;letter-spacing:0;color:#264e73}
.cinema-scroll i{font-size:19px}
.cinema-ready .cinema-scroll i{animation:scroll-invitation 1.8s ease-in-out 2.8s infinite}
.cinema-intro a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
@keyframes sky-opening-in{from{opacity:.2;transform:scale(1.16)}to{opacity:1;transform:scale(1)}}
@keyframes title-camera-in{from{opacity:0;transform:translate3d(0,145px,-180px) scale(.74) rotateX(-16deg)}to{opacity:1;transform:translate3d(0,0,0) scale(1) rotateX(0)}}
@keyframes cloud-camera-in{from{transform:translate3d(0,95px,0) scale(1.12)}to{transform:translate3d(0,0,0) scale(1)}}
@keyframes opening-copy-in{from{opacity:0}to{opacity:1}}
@keyframes scroll-invitation{0%,100%{transform:translateY(-3px)}50%{transform:translateY(5px)}}
/* The cloud bank hangs over the blue section and dissolves before its copy.
   Reuse the transparent cloud photo; no extra image request or animated blur. */
.opening-journey #ve-toi.hero{
  --cloud-bridge-height:clamp(180px,18vw,240px);
  position:relative;margin-top:0;padding-top:clamp(170px,16vw,220px)!important;
  background:radial-gradient(ellipse at 60% 48%,#77b6dd25,transparent 62%),linear-gradient(180deg,#3478a8 0%,#265f94 42%,#1c507f 100%)!important;
  color:#f4faff;overflow:visible!important;border:0;box-shadow:none;
}
.hero-cloud-transition{position:absolute;z-index:2;inset:-12px 0 auto;height:calc(var(--cloud-bridge-height) + 12px);overflow:hidden;pointer-events:none}
.hero-cloud-transition img{position:absolute;left:-3%;top:-1px;width:106%;height:100%;max-width:none;object-fit:fill;transform:translate3d(calc(var(--cloud-bridge-scroll,0)*16px),calc(var(--cloud-bridge-scroll,0)*-20px),0) rotate(180deg);will-change:transform}
.hero-cloud-transition:after{content:"";position:absolute;inset:-1px 0 0;background:linear-gradient(180deg,#fff 0%,#fff 7%,#fffffff0 18%,#ffffffa8 35%,#ffffff4d 56%,#ffffff0d 79%,#fff0 96%)}
.opening-journey #ve-toi.hero:before{display:none}
.opening-journey #stars,.opening-journey .hero>.orb{display:none}
.opening-journey .hero :is(.hero-kicker,h1>span,.type-line,.hero-copy,.hero-actions,.hero-footer){animation:none;opacity:1;filter:none}
.opening-journey .hero .hero-kicker{color:#d6efff}
.opening-journey .hero .type-line{color:#b3dfff}
.opening-journey .hero .hero-copy{color:#d2e5f4}
.opening-journey .hero .primary{background:#e6f5ff;color:#174775}
.opening-journey .hero .ghost{color:#f1f8ff;border-color:#a4c7e1;background:transparent}
.opening-journey .hero .hero-footer{color:#bed8ec}
.opening-journey .hero-gallery .visual-gallery-label{color:#c1dbef!important}
.opening-journey .hero-gallery .visual-gallery-label>span{color:#c1dbef!important}
.opening-journey .hero-gallery .visual-gallery-label b{color:#edf7ff!important}
.opening-journey .hero-gallery .visual-counter{color:#cee5f7!important}
/* Keep the gallery clouds at their natural aspect ratio. Only the two crests
   reach the photo corners; the center stays clear and controls remain above. */
.opening-journey .hero-gallery{z-index:auto;isolation:auto}
.gallery-cloud-accent{position:absolute;z-index:9;inset:auto 0 -1px;height:clamp(100px,11vw,160px);overflow:hidden;pointer-events:none}
.gallery-cloud-accent img{display:block;position:absolute;top:calc(100% - 22vw);width:100%;height:auto;max-width:none;pointer-events:none}
.gallery-cloud-accent:after{content:"";position:absolute;inset:auto 0 0;height:36px;background:linear-gradient(#fff0,#ffffff38 30%,#ffffffbf 72%,#fff 100%)}
.opening-journey .hero-gallery .visual-slide span{bottom:15px!important}
.opening-journey .hero-gallery .visual-controls{z-index:20!important}
/* The original welcome shell/entrance remains in styles.css; content is a
   single artwork. Native dialog supplies focus containment and inert backdrop. */
dialog.connect-moment{width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;pointer-events:auto}
dialog.connect-moment:not([open]){display:none}
dialog.connect-moment::backdrop{background:transparent}
.connect-moment .welcome-backdrop{background:rgba(2,8,20,.78)}
.connect-moment #welcomeConfetti{pointer-events:none}
.connect-moment .connect-art-panel{width:min(560px,calc(100vw - 48px),calc((100svh - 80px)*1.777778));max-width:none;max-height:none;padding:0!important;aspect-ratio:16/9;overflow:visible}
.connect-moment .connect-art-panel:after{display:none}
.connect-moment .welcome-close{top:-14px;right:-14px;background:#071735d9;border-color:#ffffffb3}
.connect-artwork{display:block;width:100%;height:auto;border-radius:inherit}
.connect-art-link{position:absolute;z-index:4;display:block;border-radius:12px}
.connect-art-phone{inset:0;border-radius:inherit}
.connect-art-link:hover{background:transparent}
.connect-art-link:focus-visible{outline:3px solid #fff;outline-offset:2px;background:#ffffff14}
.connect-moment .connect-art-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
html:has(.connect-moment[open]){overflow:hidden;scrollbar-gutter:stable}
@media(max-width:1150px){.cinema-topline{top:94px}.cinema-title-solid{font-size:17vw}.sky-distant-title{font-size:16vw;top:28%}.cinema-title-position{top:51%}}
/* Legacy mobile overflow:hidden creates a second scroll container, preventing
   the camera from sticking. Clip the homepage horizontally without scrolling. */
@media(max-width:700px){html:has(body.cinematic-home),body.cinematic-home{overflow-x:clip!important}}
@media(max-width:600px){
  .cinema-intro{min-height:870px}.cinema-viewport{min-height:580px}.cinema-topline{top:87px;font-size:7px;letter-spacing:.03em;gap:8px}.cinema-topline>span{max-width:190px;display:block;line-height:1.8}.cinema-topline i{margin:0 5px}.cinema-skip{font-size:9px;gap:8px}
  .sky-background{object-position:50% 50%}
  .sky-distant-title{top:33%;font-size:16vw;transform:translate3d(0,calc(var(--intro-scroll,0)*-45px),0) scaleY(2)}
  .cinema-title-position{top:61%}.cinema-title-solid{font-size:19vw;transform:rotateX(6deg) rotateY(-12deg) rotateZ(-7deg);letter-spacing:-.06em}
  .sky-cloud-foreground{top:48%;height:59%;width:140%;left:-20%}.sky-mist{top:59%;background:linear-gradient(180deg,#fff0,#ffffff1a 30%,#ffffffad 65%,#fff 95%)}
  .cinema-byline{top:78%}.cinema-byline p{font-size:12px}.cinema-byline>span{font-size:8px;letter-spacing:.1em}.cinema-bottomline{bottom:15px;font-size:6px}.cinema-scroll{font-size:9px;gap:10px}.cinema-location{display:none!important}
  .opening-journey #ve-toi.hero{--cloud-bridge-height:175px;padding-top:155px!important}
  .gallery-cloud-accent{height:88px}
  .gallery-cloud-accent img{top:calc(100% - 26vw)}
  .gallery-cloud-accent:after{height:24px}
}
@media(max-height:650px) and (min-width:601px){.cinema-intro{min-height:765px}.cinema-viewport{min-height:510px}.cinema-topline{top:85px}.sky-distant-title{top:27%;font-size:13vw}.cinema-title-position{top:44%}.cinema-title-solid{font-size:min(14vw,165px)}.cinema-byline{top:83%}.cinema-bottomline{bottom:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.cinema-intro{height:100svh;min-height:580px}.cinema-viewport{position:relative}.cinema-intro *{animation:none!important;--intro-scroll:0!important}.cinema-preparing .sky-opening{opacity:1}.hero-cloud-transition{--cloud-bridge-scroll:0!important}.hero-cloud-transition img{will-change:auto}}
