/* EL DUBAYAL — architectural motion system. Native scroll, native input. */
.motion-toggle{position:fixed;right:20px;bottom:18px;z-index:60;display:flex;align-items:center;gap:10px;padding:11px 16px;background:#f3efe6ed;color:var(--ink);border:1px solid #8c76654d;border-radius:40px;font-size:11px;line-height:1.4;box-shadow:0 4px 25px #0000000a;backdrop-filter:blur(12px)}.motion-toggle[hidden]{display:none}.motion-toggle-icon{display:flex;gap:3px;align-items:center;width:12px;height:12px}.motion-toggle-icon i{display:block;width:2px;height:10px;background:currentColor}.motion-toggle[aria-pressed=true] .motion-toggle-icon{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid currentColor}.motion-toggle[aria-pressed=true] .motion-toggle-icon i{display:none}.reading-progress{position:fixed;left:0;top:0;width:100%;height:2px;z-index:100;pointer-events:none}.reading-progress i{display:block;width:100%;height:100%;background:var(--bronze);transform:scaleX(0);transform-origin:left}
.motion-title .word-mask{display:inline-block;overflow:hidden;vertical-align:bottom;padding:.12em .015em;margin:-.12em -.015em}.motion-title .word{display:inline-block;transform:translate3d(0,112%,0);transition:transform 1.1s cubic-bezier(.19,1,.22,1);transition-delay:calc(var(--word,0)*35ms)}.motion-title.is-revealed .word{transform:translate3d(0,0,0)}.motion-reveal{opacity:0;transform:translate3d(0,35px,0);transition:opacity .9s ease,transform 1.1s cubic-bezier(.19,1,.22,1);transition-delay:var(--reveal-delay,0ms)}.motion-reveal.is-revealed{opacity:1;transform:translate3d(0,0,0)}
.hero-shutters{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);pointer-events:none;z-index:5;overflow:hidden}.hero-shutters path{fill:var(--paper);stroke:var(--paper);stroke-width:2;transform-box:view-box;transform-origin:100% 100%}.hero-shutters path:nth-child(2n){fill:#ebe3d5}.motion-on .hero-visual.is-entered .hero-shutters path{animation:fan-open 1.65s cubic-bezier(.65,0,.18,1) both;animation-delay:calc(80ms + var(--blade)*58ms)}.motion-on .hero-image{transition:opacity .3s;transform:translate3d(0,var(--hero-drift,0px),0) scale(1.08);will-change:transform}.motion-on .hero-visual.is-entered .hero-image{animation:arrival-breath 2.5s cubic-bezier(.16,1,.3,1) both}.hero-sunlight{position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 44%,#ffe4aa00 46%,#ffe4aa40 50%,#ffe4aa00 54%,transparent 57%);pointer-events:none;mix-blend-mode:screen;transform:translate3d(-65%,0,0);opacity:0;z-index:2}.motion-on .hero-visual.is-in-view .hero-sunlight{animation:sunlight-pass 14s ease-in-out infinite;animation-delay:2.3s}.scene-veil{position:absolute!important;inset:0;z-index:3;width:100%;height:100%;pointer-events:none;object-fit:cover}.motion-on .hero-bottom .hero-line{transform-origin:left;animation:rule-arrive 1.6s 1s cubic-bezier(.19,1,.22,1) both}
@keyframes fan-open{from{transform:rotate(0deg)}to{transform:rotate(150deg)}}@keyframes arrival-breath{from{scale:1.12}to{scale:1}}@keyframes sunlight-pass{0%,5%{transform:translate3d(-65%,0,0);opacity:0}18%{opacity:.55}38%,100%{transform:translate3d(65%,0,0);opacity:0}}@keyframes rule-arrive{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.palace-journey{background:var(--plum-deep);color:var(--paper);position:relative}.palace-sticky{position:relative;overflow:hidden;background:var(--plum-deep)}.palace-scene{position:relative;min-height:650px;margin:0;isolation:isolate}.palace-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.palace-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#131b16ac,transparent 78%),linear-gradient(0deg,#111713e6 1%,transparent 75%);z-index:1;pointer-events:none}.palace-scene-copy{position:relative;z-index:2;padding:260px var(--gutter) 100px;max-width:850px}.palace-scene-copy .eyebrow{display:block;font-size:11px;color:#f0dcc0;margin-bottom:24px}.palace-scene-copy h3{font-size:clamp(52px,6.4vw,110px);line-height:1.02;letter-spacing:-.05em;margin-bottom:25px}.palace-scene-copy em{color:#e7cfaa}.palace-scene-copy p{font-size:16px;line-height:1.8;max-width:410px;margin-bottom:15px}.palace-scene-copy .text-link{font-size:13px}.palace-scene-label,.palace-scene-nav,.journey-hint{display:none}
.motion-on .palace-journey{height:290svh;min-height:1900px}.motion-on .palace-sticky{height:calc(100svh - 83px);min-height:550px;position:sticky;top:83px}.motion-on .palace-scene{position:absolute;inset:0;min-height:0;opacity:var(--scene-opacity,0);pointer-events:none;will-change:opacity}.motion-on .palace-scene:first-of-type{--scene-opacity:1}.motion-on .palace-scene.is-current{pointer-events:auto}.motion-on .palace-scene img{transform:translate3d(0,var(--scene-y,0px),0) scale(var(--scene-scale,1.05));will-change:transform}.motion-on .palace-scene-copy{position:absolute;left:0;bottom:105px;padding:0 var(--gutter);width:100%;max-width:850px;opacity:var(--copy-opacity,1);transform:translate3d(0,var(--copy-y,0px),0)}.motion-on .palace-scene-label{position:absolute;top:30px;left:var(--gutter);right:var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:30px;font-size:11px;letter-spacing:.18em;line-height:1.6;z-index:5;pointer-events:none;color:#fff}.motion-on .palace-scene-nav{display:flex;gap:25px;position:absolute;left:var(--gutter);bottom:30px;width:48%;max-width:620px;z-index:5}.palace-scene-nav button{flex:1;text-align:left;font-size:12px;color:#fff9;min-height:44px;padding:6px 0}.palace-scene-nav button[aria-current]{color:#fff}.palace-scene-nav i{display:block;height:1px;background:#ffffff45;position:relative;margin-top:12px;overflow:hidden}.palace-scene-nav i:after{content:"";display:block;position:absolute;inset:0;background:#e7c798;transform:scaleX(var(--step-progress,0));transform-origin:left}.motion-on .journey-hint{display:block;position:absolute;right:var(--gutter);bottom:44px;z-index:5;font-size:9px;letter-spacing:.14em;color:#fff9}.motion-on .palace-scene-copy .text-link:hover{color:var(--gold)}
.motion-on .signature-svg{transform:perspective(1500px) rotateY(calc(-9deg + var(--tilt-x,0deg))) rotateX(var(--tilt-y,0deg));transition:transform .35s ease;will-change:transform}.motion-on .signature-section[data-mode=matter] .signature-svg{transform:perspective(1500px) rotateY(calc(9deg + var(--tilt-x,0deg))) rotateX(var(--tilt-y,0deg))}.signature-graphic:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at var(--light-x,60%) var(--light-y,40%),#e6b36d12,transparent 55%);mix-blend-mode:screen}.motion-on .fan-ribs path{transition:stroke-width .8s}.motion-on .closing img{transform:translate3d(0,var(--closing-drift,0px),0) scale(1.08);will-change:transform}.motion-on .footer-wordmark{transform:translate3d(0,var(--footer-drift,0px),0)}
.gallery-progress{margin:22px var(--gutter) 0;height:1px;background:var(--line);overflow:hidden}.gallery-progress i{display:block;height:100%;width:100%;transform:scaleX(var(--gallery-progress,.4));transform-origin:left;background:var(--bronze)}.experience-grid{cursor:grab;touch-action:pan-x pan-y}.experience-grid.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}.experience-grid.is-dragging button{cursor:grabbing}.experience-grid img{user-select:none;-webkit-user-drag:none}
.motion-on dialog[open]{animation:dialog-arrive .5s cubic-bezier(.16,1,.3,1)}.motion-on dialog[open]::backdrop{animation:backdrop-arrive .4s ease}@keyframes dialog-arrive{from{opacity:0;transform:translate3d(0,30px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}@keyframes backdrop-arrive{from{opacity:0}to{opacity:1}}
.motion-off .motion-title .word{transform:none;transition:none}.motion-off .motion-reveal{opacity:1;transform:none;transition:none}.motion-off .hero-shutters,.motion-off .hero-sunlight{display:none}.motion-off .hero-image,.motion-off .closing img,.motion-off .signature-svg,.motion-off .footer-wordmark{animation:none;transform:none;scale:1;transition:none}.motion-off .signature-svg path{stroke-dasharray:none!important;stroke-dashoffset:0!important}.motion-off .scene-veil{display:none}.motion-off .palace-scene{opacity:1!important}.motion-off .palace-scene-copy{opacity:1!important;transform:none!important}.motion-off .palace-scene img{transform:none!important}.motion-off .reading-progress{display:none}
@media(max-width:900px){.motion-on .palace-journey{height:260svh;min-height:1700px}.palace-scene-copy h3{font-size:68px}.motion-on .palace-scene-copy{bottom:110px}.motion-on .palace-scene-nav{width:65%}.motion-on .journey-hint{display:none}.palace-scene-label span:last-child{font-size:9px;letter-spacing:.1em}.palace-scene-copy{max-width:720px}}
@media(max-width:600px){.motion-toggle{padding:10px 12px;font-size:10px;right:12px;bottom:12px;gap:8px;min-height:40px}.motion-on .hero-image{will-change:auto}.motion-on .palace-journey{height:245svh;min-height:1550px}.motion-on .palace-sticky{height:calc(100svh - 75px);min-height:570px;top:75px}.palace-scene{min-height:650px}.palace-scene-copy{padding:300px 24px 70px}.palace-scene-copy h3{font-size:50px;max-width:340px}.palace-scene-copy p{font-size:15px;max-width:290px}.palace-scene-copy .eyebrow{font-size:10px;margin-bottom:20px}.palace-scene-copy .text-link{font-size:13px}.motion-on .palace-scene-copy{bottom:110px;padding:0 24px}.motion-on .palace-scene-label{top:24px;font-size:10px;letter-spacing:.16em}.palace-scene-label span:last-child{display:none}.motion-on .palace-scene-nav{left:24px;right:24px;bottom:30px;width:auto;gap:20px}.palace-scene-nav button{font-size:12px;min-height:48px}.palace-scene img{object-position:52% center}.palace-scene:first-of-type img{object-position:42% center}.palace-scene:after{background:linear-gradient(0deg,#101a15f2,transparent 92%)}.motion-on .palace-scene-copy h3{font-size:clamp(42px,12.8vw,56px)}.motion-title .word{transition-duration:.9s}.motion-on .signature-svg{will-change:auto}.motion-on .closing img{will-change:auto}}
@media(prefers-reduced-motion:reduce){.hero-shutters,.hero-sunlight{display:none!important}.motion-title .word,.motion-reveal{transform:none!important;opacity:1!important}.signature-svg path{stroke-dasharray:none!important;stroke-dashoffset:0!important}}

.motion-on .palace-scene:focus-within{outline:0}
@media(prefers-reduced-motion:reduce){.motion-toggle{cursor:default}}
.palace-canvas{position:relative}
.motion-on .palace-canvas{height:100%;width:100%;position:relative;overflow:hidden}
.motion-off{scroll-behavior:auto}
/* Stack the cinema in a grid, preserving native sticky positioning. */
.motion-on .palace-canvas{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.motion-on .palace-scene{grid-area:1/1;position:relative;inset:auto;width:100%;height:100%;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.motion-on .palace-scene img{grid-area:1/1;position:relative;inset:auto;width:100%;height:100%;min-height:0}
.motion-on .palace-scene:after{grid-area:1/1;position:relative;inset:auto}
.motion-on .palace-scene-copy{grid-area:1/1;position:relative;inset:auto;align-self:end;max-width:850px;margin-bottom:105px;padding:0 var(--gutter)}
.motion-on .palace-scene-label{grid-area:1/1;position:relative;inset:auto;align-self:start;margin:30px var(--gutter) 0}
.motion-on .palace-scene-nav{grid-area:1/1;position:relative;inset:auto;align-self:end;margin:0 0 30px var(--gutter)}
.motion-on .journey-hint{grid-area:1/1;position:relative;inset:auto;align-self:end;justify-self:end;margin:0 var(--gutter) 44px 0}
@media(max-width:900px){.motion-on .palace-scene-copy{margin-bottom:110px}}
@media(max-width:600px){.motion-on .palace-scene-copy{margin-bottom:110px;padding:0 24px}.motion-on .palace-scene-label{margin:24px}.motion-on .palace-scene-nav{width:auto;max-width:none;margin:0 24px 30px}}


/* Clipping rather than a hidden scroll container preserves native focus. */
.palace-journey{--palace-pin:83px}
.motion-on .palace-sticky,.motion-on .palace-canvas{overflow:clip}
@media(max-width:600px){.palace-journey{--palace-pin:75px}}
@media(max-width:600px){.cinema-view .motion-toggle{bottom:90px}}
