/* STAYTEL · «طريقة عملنا في عقارك» cinematic layer + «ابدأ بعقارك» personal form (2026-10-01).
   Loads after film-v7; changes no film rule. Both open as full-viewport <dialog> layers over the paused film. */

/* ---------- entry points inside the film ---------- */
.how-link{font-size:16px;color:var(--ivory);border-bottom:1px solid #d0925f99;padding-bottom:5px;white-space:nowrap}
.masthead .how-link{direction:rtl;margin-left:auto;margin-right:26px} /* masthead is ltr: push both links to the right edge */
.journey-link{display:inline-flex;align-items:center;gap:10px;margin:4px 0 0;font-size:16px;color:var(--ivory);border-bottom:1px solid #d0925f99;padding-bottom:4px}
.journey-link span,.journey-cta span,.journey-desk span{font-family:Arial,sans-serif;color:var(--tan)}
.journey-cta{display:inline-flex;align-items:center;gap:28px;margin:0 0 12px;padding:10px 22px;background:var(--ivory);color:var(--green);font-size:17px}
.closing .how-inline{display:inline-block;margin:0 0 14px 18px;font-size:16px;color:var(--ivory);border-bottom:1px solid #d0925f99;padding-bottom:4px}
.journey-desk{position:fixed;z-index:21;right:max(4%,calc(env(safe-area-inset-right,0px) + 16px));bottom:calc(76px + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;gap:14px;padding:9px 18px;background:#00261ad9;border:1px solid #d0925f80;color:var(--ivory);font-size:15px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .6s,visibility .6s,transform .6s}
body.film-live.quiet-return .journey-desk{opacity:1;visibility:visible;transform:none}
@media(max-width:760px){
 .masthead{gap:10px}
 .masthead .how-link{font-size:13px;margin-right:0;padding-bottom:3px}
 .journey-link{font-size:15px}
 .journey-cta{padding:8px 18px;font-size:16px;margin-bottom:8px}
 .closing .how-inline{font-size:15px;margin-bottom:10px}
 .journey-desk{right:max(6%,calc(env(safe-area-inset-right,0px) + 16px));font-size:14px;padding:8px 14px}
}
@media(max-width:380px){.masthead img{width:92px}.masthead .header-contact{font-size:13px}.masthead .header-contact span{display:none}}
@media(max-height:480px) and (min-width:650px){.journey-cta{padding:5px 16px;font-size:14px;margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){.journey-desk{transition:none}}
html.layer-open{overflow:hidden}

/* ---------- shared full-viewport layer ---------- */
.cine,.own{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#00160d;color:var(--ivory);overflow:hidden;font-family:Naskh,serif}
.cine::backdrop,.own::backdrop{background:#00160d}
.cine[open],.own[open]{animation:layer-in .7s ease both}
@keyframes layer-in{from{opacity:0}to{opacity:1}}
.layer-btn{background:#00160d99;border:1px solid #eae9e340;border-radius:30px;padding:7px 16px;font-size:14px;color:var(--ivory);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.layer-btn:hover{border-color:#eae9e3a6}
.layer-btn:focus-visible,.cine-end button:focus-visible,.cine-end a:focus-visible{outline:2px solid var(--tan);outline-offset:3px}
.layer-close{position:absolute;z-index:6;top:calc(env(safe-area-inset-top,0px) + 14px);left:max(16px,calc(env(safe-area-inset-left,0px) + 14px))}

/* ---------- «طريقة عملنا في عقارك» ---------- */
.cine-area{position:absolute;inset:0;overflow:hidden}
/* the camera: a fixed 1600×900 plate space, moved and scaled as one piece (plates, video, paper ink, screen) */
.cine-cam{position:absolute;left:0;top:0;width:1600px;height:900px;transform-origin:0 0}
.cine-plate,.cine-video{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;opacity:0;transition:opacity .9s ease}
.cine-plate.is-on,.cine-video.is-on{opacity:1}
.cine-video.is-on{transition:none}
.cine-plate[data-plate="view"]{transition-duration:0s}
/* the sheet: a 600×800 surface printed onto the real paper (homography), ink multiplies into the paper */
.cine-paper{position:absolute;left:0;top:0;width:600px;height:800px;transform-origin:0 0;padding:70px 64px 0;color:#1d3327;mix-blend-mode:multiply;opacity:0;transition:opacity .9s ease;pointer-events:none}
.cine-paper.is-on{opacity:1}
.pp-brand{margin:0 0 18px;font:600 13px/1 Arial,sans-serif;letter-spacing:4px;color:#1d332799;direction:ltr;text-align:left}
.pp-title{margin:0 0 6px;font-weight:400;font-size:44px;line-height:1.25;color:#103a26}
.pp-sub{margin:0 0 34px;font-size:22px;color:#1d3327b3;border-bottom:1.5px solid #1d332733;padding-bottom:22px}
.pp-steps{list-style:none;margin:0;padding:0}
.pp-steps li{position:relative;display:flex;align-items:center;gap:22px;height:90px;opacity:.16;transition:opacity .7s ease}
.pp-steps li.is-done,.pp-steps li.is-on{opacity:1}
.pp-steps i{position:relative;z-index:1;flex:none;width:52px;height:52px;border-radius:50%;border:2px solid #1d332766;display:grid;place-items:center;font:400 24px/1 Georgia,serif;font-style:normal;color:#1d3327;background:#fffef8;transition:all .6s ease}
.pp-steps li.is-on i{border-color:#b8743f;color:#fff;background:#c4834f}
.pp-steps li.is-done i{border-color:#1d3327;background:#1d3327;color:#f3efe4}
.pp-steps li:not(:last-child):after{content:'';position:absolute;right:25px;top:71px;width:2px;height:38px;background:#1d3327;transform:scaleY(0);transform-origin:top;transition:transform .9s ease}
.pp-steps li.is-done:after{transform:scaleY(1)}
.pp-steps span{font-size:30px;line-height:1.3;padding:2px 6px;background:linear-gradient(#d0925f73,#d0925f73) no-repeat 100% 62%/0 58%;transition:background-size 1.1s ease}
.pp-steps li.is-on span{background-size:100% 58%}
/* the laptop: a 640×400 surface on the real screen, with its own light */
.cine-screen{position:absolute;left:0;top:0;width:640px;height:364px;transform-origin:0 0;overflow:hidden;opacity:0;transition:opacity 1.2s ease;background:radial-gradient(120% 110% at 75% 0,#0d4a31 0,#062a1b 55%,#03160e 100%);color:var(--ivory);box-shadow:0 0 60px 6px #6fd2a226,inset 0 0 0 2px #000,inset 0 0 50px #000a}
.cine-screen.is-on{opacity:1}
.cine-screen:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,#ffffff17 0,#ffffff05 30%,#ffffff00 46%)}
.sc-top{display:flex;align-items:center;justify-content:space-between;direction:ltr;padding:22px 30px 0}
.sc-top img{width:104px;height:auto}
.sc-dots{list-style:none;display:flex;gap:8px;margin:0;padding:0;direction:rtl}
.sc-dots li{width:22px;height:4px;border-radius:2px;background:#eae9e333;transition:background .6s}
.sc-dots li.is-done{background:#eae9e3a6}.sc-dots li.is-on{background:var(--tan)}
.sc-body{position:absolute;inset:64px 34px 20px;display:grid;grid-template-columns:1fr 168px;grid-template-rows:auto auto 1fr;column-gap:26px;align-content:start;transition:opacity .45s ease,transform .45s ease}
.sc-body.is-swap{opacity:0;transform:translateY(10px)}
.sc-kicker{grid-column:1;margin:8px 0 6px;font-size:20px;color:var(--tan)}
.sc-title{grid-column:1;margin:0 0 12px;font-weight:400;font-size:42px;line-height:1.2}
.sc-line{grid-column:1;margin:0;font-size:24px;line-height:1.55;color:#eae9e3e6}
.sc-visual{grid-column:2;grid-row:1/4;align-self:center;display:grid;place-items:center;gap:10px}
.sc-icon{width:120px;height:120px;border-radius:50%;background:#d0925f1f center/58px 58px no-repeat;box-shadow:inset 0 0 0 1.5px #d0925f66}
.sc-rows{display:none;width:100%;gap:9px}
.sc-rows p{margin:0;display:flex;align-items:center;justify-content:space-between;font-size:19px;padding:7px 12px;background:#eae9e314;border-right:3px solid var(--tan)}
.sc-rows p b{font-weight:400;font-size:15px;color:var(--tan)}
.sc-cal{display:none;width:132px;border-radius:6px;overflow:hidden;background:#f3efe4;color:#103a26;text-align:center;box-shadow:0 10px 30px #0006}
.sc-cal span{display:block;background:var(--tan);color:#1c140c;font-size:17px;padding:6px 0}
.sc-cal b{display:block;font:400 70px/1.25 Georgia,serif}
.sc-cal small{display:block;font-size:16px;padding-bottom:10px}
.sc-visual[data-k="live"] .sc-icon,.sc-visual[data-k="deposit"] .sc-icon{display:none}
.sc-visual[data-k="live"] .sc-rows{display:grid}
.sc-visual[data-k="deposit"] .sc-cal{display:block}
.sc-icon[data-k="booking"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0925f' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8.5 15l2.5 2.5 4.5-5'/%3E%3C/svg%3E")}
.sc-icon[data-k="prep"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0925f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.6L18 9.5l-4.2 1.9L12 16l-1.8-4.6L6 9.5l4.2-1.9z'/%3E%3Cpath d='M19 15l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8zM5 15l.6 1.4L7 17l-1.4.6L5 19l-.6-1.4L3 17l1.4-.6z'/%3E%3C/svg%3E")}
.sc-icon[data-k="guest"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0925f' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='12' r='4'/%3E%3Cpath d='M12 12h9M18 12v3M21 12v2'/%3E%3C/svg%3E")}
.sc-icon[data-k="service"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0925f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17h16M6 17a6 6 0 0 1 12 0M12 8V6M10 6h4M3 20h18'/%3E%3C/svg%3E")}
.sc-icon[data-k="intro"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0925f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9H3z'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E")}

/* title card at the start, captions for moving shots (and always on portrait, where they carry the reading) */
.cine-title{position:absolute;z-index:3;left:0;right:0;top:50%;margin:0;transform:translateY(-50%);text-align:center;font-weight:400;font-size:clamp(34px,4.4vw,64px);line-height:1.25;text-shadow:0 4px 40px #00130bcc;opacity:0;transition:opacity 1.1s ease;pointer-events:none}
.cine-title small{display:block;margin-top:10px;font-size:clamp(15px,1.4vw,19px);color:#eae9e3d9}
.cine.show-title .cine-title{opacity:1}
.cine-shade{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(0deg,#00130bb3 0,#00130b00 34%),radial-gradient(70% 60% at 50% 50%,#00130b66,#00130b00 70%);opacity:0;transition:opacity 1.1s ease}
.cine.show-title .cine-shade,.cine.show-end .cine-shade{opacity:1}
.cine-caption{position:absolute;z-index:3;left:6%;right:6%;bottom:calc(env(safe-area-inset-bottom,0px) + 34px);margin:0;text-align:center;font-size:clamp(17px,1.5vw,22px);line-height:1.6;text-shadow:0 2px 18px #00130bf2;opacity:0;transition:opacity .7s ease;pointer-events:none}
.cine.show-caption .cine-caption{opacity:1}
.cine-pause{position:absolute;z-index:6;bottom:calc(env(safe-area-inset-bottom,0px) + 16px);left:max(16px,calc(env(safe-area-inset-left,0px) + 14px));font-size:13px;padding:6px 14px;opacity:.75}
.cine-pause:hover,.cine-pause:focus-visible{opacity:1}
.cine-end{position:absolute;z-index:4;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 40px);transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:12px;width:min(92vw,640px)}
.cine-end[hidden],.cine [hidden],.own [hidden]{display:none!important}
.cine-end .go{background:var(--tan);color:#1c140c;border:0;border-radius:30px;padding:11px 26px;font-size:17px}
@media(orientation:portrait),(max-aspect-ratio:1/1){
 .cine-caption{opacity:1;bottom:auto;top:calc(100% - 170px - env(safe-area-inset-bottom,0px));min-height:110px;font-size:19px}
 .cine-caption strong{display:block;font-weight:400;font-size:24px;color:var(--tan);margin-bottom:4px}
 .cine-end{bottom:calc(env(safe-area-inset-bottom,0px) + 20px)}
 .cine.show-end .cine-caption{opacity:0}
}
.cine-caption strong{font-weight:400;color:var(--tan)}

/* ---------- «ابدأ بعقارك» — the personal form in the same closing view ---------- */
.own{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.own-bg{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55;pointer-events:none}
.own:before{content:'';position:fixed;inset:0;background:linear-gradient(90deg,#00160dcc,#00160d66 60%,#00160d99);pointer-events:none}
.own-wrap{position:relative;z-index:1;min-height:100%;display:flex;align-items:center;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 70px) 5% calc(env(safe-area-inset-bottom,0px) + 40px)}
.own-card{width:min(460px,100%);padding:28px 30px 26px;background:linear-gradient(160deg,#003b23f0,#00261af5);border:1px solid #d0925f80;box-shadow:0 30px 80px #000c0780,inset 0 0 0 6px #00261a,inset 0 0 0 7px #d0925f33}
.own-kicker{display:flex;justify-content:space-between;gap:12px;margin:0 0 14px;font-size:12px;color:var(--tan)}
.own-kicker span[dir]{font-family:Arial,sans-serif;letter-spacing:2px}
.own-title{margin:0 0 6px;font-weight:400;font-size:clamp(28px,3vw,36px);line-height:1.3}
.own-text{margin:0 0 18px;font-size:16px;line-height:1.7;color:#eae9e3d9}
.own form{display:grid;gap:12px}
.own .field{display:grid;gap:6px;margin:0;padding:0;border:0;min-width:0}
.own .field>span,.own .field legend{font-size:14px;color:#eae9e3cc;padding:0;margin-bottom:6px}
.own .field em{font-style:normal;color:#eae9e380}
.own input[type=text],.own select{width:100%;background:#00180fb3;border:1px solid #eae9e340;border-radius:2px;padding:10px 12px;font:inherit;font-size:16px;color:var(--ivory);scroll-margin:90px 0 140px}
.own select option{background:var(--green)}
.own input::placeholder{color:#eae9e366}
.own input[aria-invalid="true"]{border-color:var(--tan)}
.own input:disabled{opacity:.55}.own input:disabled::placeholder{color:var(--ivory)}
.own .error{color:var(--tan);font-size:13px}
.own .field-row{display:grid;grid-template-columns:minmax(92px,1fr) 2.2fr;gap:12px;align-items:end}
.own .segmented{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #eae9e340;border-radius:2px;overflow:hidden}
.own .segmented label{position:relative}
.own .segmented input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.own .segmented span{display:block;text-align:center;padding:9px 6px;font-size:15px;transition:all .3s}
.own .segmented label+label span{border-right:1px solid #eae9e340}
.own .segmented input:checked+span{background:var(--ivory);color:var(--green)}
.own .segmented input:focus-visible+span{outline:2px solid var(--tan);outline-offset:-3px}
.own .go{justify-self:start;margin-top:4px;display:inline-flex;align-items:center;gap:8px;background:var(--tan);color:#1c140c;border:0;border-radius:30px;padding:10px 22px;font:inherit;font-size:16px;cursor:pointer}
.own .ghost{background:none;border:1px solid #eae9e359;border-radius:30px;padding:9px 18px;font:inherit;font-size:15px;color:var(--ivory);cursor:pointer}
.own-invite{outline:none}
.own-invite.is-in{animation:layer-in 1s ease both}
.own-invite h2{margin:0 0 8px;font-weight:400;font-size:clamp(26px,2.8vw,34px);line-height:1.3}
.own-invite h2 .hood{color:var(--tan)}
.own-meta{margin:0 0 10px;font-size:15px;color:#eae9e3b3}
.own-line{margin:0 0 18px;font-size:17px;line-height:1.7}
.own-step{padding:14px 0 2px;border-top:1px solid #d0925f4d}
.own-step span{display:block;font-size:13px;color:#eae9e399;margin-bottom:4px}
.own-step strong{display:block;font-weight:400;font-size:21px;color:var(--tan);margin-bottom:6px}
.own-step p{margin:0;font-size:15px;line-height:1.7;color:#eae9e3cc}
.own-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.own-note{margin:12px 0 0;font-size:13px;line-height:1.6;color:#eae9e399}
@media(max-width:360px){.own .field-row{grid-template-columns:1fr}.own-card{padding:22px 20px}}

/* reduced motion */
@media(prefers-reduced-motion:reduce){
 .cine[open],.own[open],.own-invite.is-in{animation:none}
}
.cine.reduce .cine-plate,.cine.reduce .cine-paper,.cine.reduce .cine-screen,.cine.reduce .sc-body,.cine.reduce .pp-steps *,.cine.reduce .cine-title,.cine.reduce .cine-shade{transition:none!important}
