/* El Dubayal — an architectural arrival. Photography retains its approved grading. */
.immersive-opening #header:not(.scrolled):not(.menu-open){color:#fff7ec;border-bottom:1px solid #ffffff29;background:linear-gradient(#161b1c55,transparent)}
.immersive-opening #header:not(.scrolled):not(.menu-open) .brand svg{color:#e4c394}
.immersive-opening #header:not(.scrolled):not(.menu-open) .contact-button{border-color:#fff8ec80}
.immersive-opening #header:not(.scrolled):not(.menu-open) .contact-button:hover{background:#fff8ec;color:var(--ink)}
.hero.hero-immersive{isolation:isolate;display:block;min-height:820px;height:100svh;max-height:1250px;padding:155px var(--gutter) 148px;background:#29332e;color:#fff8ed;overflow:clip}
.hero-immersive .hero-visual,html[lang=ar] .hero-immersive .hero-visual{position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:0;background:#29332e;z-index:-1}
.hero-immersive .hero-visual:after{display:none}
.hero-immersive .hero-image{width:100%;height:100%;object-fit:cover;object-position:55% 53%;filter:none;transition:opacity .35s;transform:none}
.motion-on .hero-immersive .hero-image,.motion-on .hero-immersive .hero-visual.is-entered .hero-image{animation:none;scale:1;transform:translate3d(0,var(--hero-drift,0px),0) scale(1.04);will-change:transform}
.motion-on .hero-immersive .hero-visual.is-entered .hero-image{animation:dubayal-camera 22s ease-in-out infinite alternate;animation-play-state:paused}
.motion-on .hero-immersive .hero-visual.is-in-view.is-entered .hero-image{animation-play-state:running}
.hero-immersive .hero-shade{background:linear-gradient(90deg,#101b20bf 0%,#101b2070 35%,#101b2014 70%),linear-gradient(0deg,#101b20dc 0%,#101b2050 27%,transparent 62%);pointer-events:none}
.hero-immersive .hero-copy,html[lang=ar] .hero-immersive .hero-copy{display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;height:100%;padding:0;z-index:2;pointer-events:none}
.hero-immersive .hero-copy>*{pointer-events:auto}
.hero-immersive .eyebrow{max-width:none;margin:0 0 28px;letter-spacing:.19em;font-size:11px;color:#f1d9b5;line-height:1.7}
.hero-immersive h1{max-width:950px;font-size:clamp(68px,6.1vw,112px);line-height:1.03;letter-spacing:-.045em;text-shadow:0 2px 22px #14201f26}
.hero-immersive h1 em{color:#f2d6ac;font-weight:400}
.hero-immersive h1 em br{display:none}
.hero-immersive .hero-sub{max-width:420px;margin:auto 0 23px;padding-top:40px;font-size:16px;line-height:1.8;color:#fff6e8}
.hero-immersive .solid-button{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-height:52px;padding:14px 26px;background:#f7f1e6;color:#30282b;border:1px solid #f7f1e6;border-radius:2px;font-size:13px;transition:background .3s,color .3s}
.hero-immersive .solid-button:hover{background:transparent;color:#fff6e8}
.hero-immersive .hero-scenes{position:absolute;bottom:0;right:0;display:flex;gap:10px;align-items:center;margin:0;padding:8px 10px;border:1px solid #fff7eb55;border-radius:3px;background:#16232166;backdrop-filter:blur(12px);pointer-events:auto}
.hero-immersive .hero-scenes button{position:relative;min-height:52px;min-width:100px;padding:12px 20px;font-size:13px;color:#fff6e8;border:0;border-radius:1px;background:transparent;transition:background .3s,color .3s}
.hero-immersive .hero-scenes button[aria-pressed=true]{background:#f3e8d6;color:#30282b}
.hero-immersive .hero-scenes button:hover{background:#f3e8d62b}
.hero-immersive .hero-scenes button[aria-pressed=true]:hover{background:#f3e8d6}
.hero-immersive .hero-scenes button:focus-visible{outline:2px solid #e8c899;outline-offset:4px}
.hero-immersive .hero-image-caption,html[lang=ar] .hero-immersive .hero-image-caption{inset:148px var(--gutter) auto auto;max-width:220px;display:block;text-align:right;font-size:12px;color:#fff8ed;line-height:1.7}
.hero-immersive .hero-image-caption span:first-child{display:none}
.hero-immersive .hero-bottom{inset:auto var(--gutter) 44px;gap:25px;font-size:11px;letter-spacing:.12em;color:#fff4e3;z-index:3}
.hero-immersive .hero-line{display:block;background:#fff2df66}
.hero-immersive .hero-bottom a{font-size:12px;max-width:none}
.hero-immersive .hero-swipe-help{display:none}
.motion-on .hero-immersive .hero-sunlight{display:none}
.motion-on .hero-immersive .hero-fan{background:transparent;z-index:4;color:#f7d09a}
.hero-fan-drawing{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.15}
.hero-opening-rib{stroke-dasharray:1;stroke-dashoffset:1;vector-effect:non-scaling-stroke}
.hero-immersive .motion-title .word{transition-duration:1.35s;transition-delay:calc(180ms + var(--word,0)*65ms)}
html[lang=ar] .hero-immersive .hero-shade{background:linear-gradient(270deg,#101b20bf,#101b2070 35%,#101b2014 70%),linear-gradient(0deg,#101b20dc,#101b2050 27%,transparent 62%)}
html[lang=ar] .hero-immersive .hero-scenes{right:auto;left:0}
html[lang=ar] .hero-immersive .hero-image-caption{left:var(--gutter);right:auto;text-align:left}
html[lang=ar] .hero-immersive .hero-bottom a{margin:0;text-align:start}
@keyframes dubayal-camera{from{transform:translate3d(0,var(--hero-drift,0px),0) scale(1.04)}to{transform:translate3d(0,var(--hero-drift,0px),0) scale(1.095)}}
@media(min-width:601px) and (max-height:820px){.hero.hero-immersive{min-height:760px;padding-top:140px;padding-bottom:140px}.hero-immersive h1{font-size:clamp(64px,5.8vw,90px)}.hero-immersive .hero-sub{padding-top:28px}.hero-immersive .hero-image-caption{top:135px}}
@media(min-width:601px) and (max-width:1000px){.hero-immersive h1{max-width:730px;font-size:clamp(64px,8vw,80px)}.hero-immersive .hero-image-caption{display:none}.hero-immersive .hero-scenes{bottom:-85px}.hero-immersive .hero-bottom{bottom:25px}.hero.hero-immersive{padding-bottom:175px}}
@media(max-width:600px){
 .hero.hero-immersive{display:block;min-height:860px;height:100svh;max-height:none;padding:122px 24px 145px}
 .hero-immersive .hero-copy{display:flex;min-height:0}
 .hero-immersive .eyebrow{order:0;font-size:10px;letter-spacing:.14em;max-width:300px;margin-bottom:20px}
 .hero-immersive h1,html[lang=ar] .hero-immersive .hero-copy h1{order:0;font-size:clamp(46px,12.8vw,70px);line-height:1.05;max-width:100%;letter-spacing:-.04em}
 .hero-immersive h1 em{max-width:100%;margin-top:8px}
 .hero-immersive .hero-image{object-position:55% center}
 .hero-immersive .hero-shade{background:linear-gradient(0deg,#101b20e8 0%,#101b2066 32%,#101b200a 52%,#101b206b 75%,#101b209e 100%)}
 .hero-immersive .hero-sub{order:0;max-width:360px;font-size:14px;line-height:1.7;margin:auto 0 18px;padding-top:130px}
 .hero-immersive .solid-button{order:0;font-size:13px;min-height:50px;padding:13px 22px}
 .hero-immersive .hero-scenes,html[lang=ar] .hero-immersive .hero-scenes{position:absolute;inset:auto 0 -93px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;padding:5px;margin:0;border-color:#fff7eb55;background:#16232180;backdrop-filter:blur(8px)}
 .hero-immersive .hero-scenes button{min-width:0;min-height:52px;padding:10px 6px;font-size:12px;line-height:1.35}
 .hero-immersive .hero-image-caption{display:none}
 .hero-immersive .hero-bottom,html[lang=ar] .hero-immersive .hero-bottom{position:absolute;inset:auto 24px 22px;padding:0;display:flex;font-size:9px;letter-spacing:.07em;gap:12px}
 .hero-immersive .hero-bottom .hero-line{display:none}
 .hero-immersive .hero-bottom a,html[lang=ar] .hero-immersive .hero-bottom a{margin-inline-start:auto;font-size:10px;max-width:135px;text-align:end}
 .hero-immersive .hero-fan-drawing{stroke-width:1}
 .hero-immersive .hero-copy{pointer-events:none}
 .hero-immersive .hero-copy>*{pointer-events:auto}
 html[lang=ar] .hero-immersive .hero-shade{background:linear-gradient(0deg,#101b20e8 0%,#101b2066 32%,#101b200a 52%,#101b206b 75%,#101b209e 100%)}
}
.motion-off .hero-immersive .hero-image{animation:none;transform:none;will-change:auto}
@media(prefers-reduced-motion:reduce){.hero-immersive .hero-image{animation:none!important;transform:none!important;will-change:auto}.hero-fan{display:none!important}}

/* Keep the accessibility control clear of the gallery and its 52px touch targets. */
@media(max-width:600px){
 .hero-in-view .motion-toggle{top:94px;bottom:auto;inset-inline-end:16px;inset-inline-start:auto;width:44px;height:44px;padding:0;justify-content:center;gap:0;border-radius:50%;}
 .hero-in-view .motion-toggle .motion-toggle-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
/* Preserve text contrast throughout scene changes. */
.hero-immersive .hero-shade{z-index:4}
.hero-immersive .hero-image-caption{z-index:5}

/* Native, reversible three-chapter arrival. The same geometry serves touch and wheel. */
.hero-scroll{--hero-frame:max(100svh,760px);height:calc(var(--hero-frame) + 145svh);position:relative;background:#29332e}
.hero-scroll .hero.hero-immersive{position:sticky;top:0;height:var(--hero-frame);min-height:0;max-height:none;padding:145px var(--gutter) 135px}
.hero-scroll .hero-visual .hero-scene-layer{position:absolute;inset:0;overflow:clip;opacity:0;will-change:clip-path;pointer-events:none}
.hero-scroll .hero-visual .hero-scene-layer[data-scene=hero]{opacity:1}
.hero-scroll .hero-visual .hero-shade{z-index:4}
.hero-scroll .hero-visual .hero-image-caption{z-index:5}
.hero-scroll .hero-visual .hero-scene-layer .hero-image,.motion-on .hero-scroll .hero-visual.is-entered .hero-image{animation:none;scale:1;transform:scale(var(--camera-scale,1.025));transition:none;will-change:transform;object-position:55% center}
.hero-scroll .hero-copy>.eyebrow,.hero-scroll .hero-copy>h1,.hero-scroll .hero-copy>.hero-sub{opacity:var(--hero-copy-opacity,1)}
.hero-scroll .hero-copy{z-index:4}
.hero-scroll .hero-copy>.solid-button{margin-top:auto}
.hero-scroll .hero-copy>.hero-sub{margin-bottom:23px}
.hero-scroll .hero-copy>.hero-scenes{pointer-events:auto}
.hero-scroll .hero-scenes button{overflow:hidden;background:transparent;color:#fff8ed}
.hero-scroll .hero-scenes button[aria-pressed=true]{background:#f3e8d61c;color:#fff8ed}
.hero-scroll .hero-scenes button:after{content:"";position:absolute;inset:auto 12px 5px;height:2px;background:#e8c798;transform-origin:left;transform:scaleX(var(--chapter-progress,0))}
.hero-scroll .hero-swipe-help{position:absolute;display:block;inset:auto 0 calc(100% + 14px);margin:0;text-align:end;white-space:nowrap;font-size:11px;color:#fff4e3;letter-spacing:.08em;pointer-events:none}
.hero-scroll .hero-swipe-help:before{content:"";display:inline-block;width:20px;height:1px;vertical-align:middle;background:#e8c798;margin-inline-end:12px}
.hero-chapter{position:absolute;inset:auto var(--gutter) 40%;z-index:3;pointer-events:none;opacity:var(--hero-chapter-opacity,0)}
.hero-chapter-title{font:400 clamp(78px,9vw,150px)/1.1 var(--serif);letter-spacing:-.045em;color:#fff6e8;max-width:1000px}
.hero-scroll-fan{position:absolute;right:var(--gutter);top:24%;width:clamp(210px,26vw,420px);z-index:3;pointer-events:none;color:#f0cca0;filter:drop-shadow(0 2px 2px #14201980)}
.hero-scroll-fan svg{display:block;width:100%;height:auto;overflow:visible}
.hero-scroll-fan .fan-frame{stroke-width:2.3}
.hero-scroll-fan .fan-ribs{stroke-width:5}
html[lang=ar] .hero-scroll-fan{right:auto;left:var(--gutter)}
html[lang=ar] .hero-scroll .hero-scenes button:after{transform-origin:right}
html[lang=ar] .hero-scroll .hero-swipe-help{text-align:start}
@media(max-width:1000px) and (min-width:601px){.hero-scroll .hero-scenes{bottom:0}.hero-scroll-fan{top:38%;width:230px}}
@media(max-width:600px){
 .hero-scroll{--hero-frame:max(100svh,860px);height:calc(var(--hero-frame) + 140svh)}
 .hero-scroll .hero.hero-immersive{padding:122px 24px 145px}
 .hero-scroll .hero-scenes,html[lang=ar] .hero-scroll .hero-scenes{bottom:-93px}
 .hero-scroll-fan{width:130px;top:46%;right:18px}
 html[lang=ar] .hero-scroll-fan{left:18px;right:auto}
 .hero-scroll .hero-swipe-help{font-size:11px;letter-spacing:.03em;inset:auto 0 calc(100% + 12px);text-align:center}
 .hero-chapter{inset:auto 24px 42%}
 .hero-chapter-title{font-size:clamp(56px,16vw,84px);line-height:1.1}
 .hero-scroll .hero-copy>.hero-sub{padding-top:110px}
 .hero-scroll .hero-bottom{bottom:22px}
 .hero-scroll .hero-copy>.solid-button{margin-top:0}
}
@media(prefers-reduced-motion:reduce){.hero-scroll-fan{display:none}.hero-scroll .hero-scene-layer{will-change:auto}.hero-scroll .hero-visual .hero-image{will-change:auto;transform:none!important}}
/* The first photograph remains useful when scripting is unavailable. */
html:not(.motion-on):not(.motion-off) .hero-scroll{height:auto}
/* The expansion policy is a partner proposition, separate from destination announcements. */
.expansion{display:grid;grid-template-columns:1fr 1.1fr;gap:7vw;padding:50px 0;margin-top:45px;border-top:1px solid #f3efe62e;border-bottom:1px solid #f3efe62e}
.expansion .eyebrow{color:#d9b88a;margin-bottom:20px}
.expansion h3{font:400 clamp(32px,3.2vw,52px)/1.15 var(--serif);letter-spacing:-.035em}
.expansion h3 em{color:#e4c69e}
.expansion p{font-size:16px;line-height:1.85;color:#e0d4cc;max-width:610px}
.expansion-markets{list-style:none;padding:0;margin:24px 0;display:flex;flex-wrap:wrap;gap:10px 25px}
.expansion-markets li{font-size:15px;line-height:1.6;padding-bottom:7px;border-bottom:1px solid #d9b88a80;color:#f3efe6}
.expansion p.note{font-size:12px;color:#c5b3a9;line-height:1.8}
@media(max-width:600px){.expansion{grid-template-columns:1fr;gap:25px;padding:34px 0;margin-top:30px}.expansion h3{font-size:37px}.expansion-markets{gap:10px 20px}.expansion-markets li{font-size:14px}}
/* A quiet close: the final photograph leads straight into the compact branded footer. */
footer{padding-top:44px}
footer .footer-top{padding-top:0;padding-bottom:32px}
footer .footer-top>.brand{display:flex}
@media(min-width:601px) and (max-width:900px){footer .footer-top>.brand{grid-column:1/-1}}
@media(max-width:600px){footer{padding-top:32px}footer .footer-top{padding:0 0 28px}footer .footer-top>.brand{margin:0}}

/* Keep the estate, its park and the courts legible in a portrait crop. */
.hero-scroll .hero-visual .hero-scene-layer[data-scene=hero] .hero-image,.hero-scroll .hero-visual>picture .hero-image{object-position:48% center}

/* Focus each mobile crop on the subject of its scene. */
@media(max-width:600px){
 .hero-scroll .hero-visual .hero-scene-layer[data-scene=tennis] .hero-image{object-position:50% center}
 .palace-journey .palace-scene[data-scene="0"] img{object-position:28% center}
 .palace-journey .palace-scene[data-scene="1"] img{object-position:40% center}
}

/* The gallery controls sit beside the photographs. */
.experience-toolbar{justify-content:flex-end}
.hero-immersive h1 em{display:block;max-width:16ch;margin-top:.12em}
@media(max-width:600px){
 .hero-immersive h1 em{font-size:.79em;line-height:1.03}
}

.hero-scroll .hero{touch-action:pan-y pinch-zoom}
