/* ASCC / The infrastructure canvas — image-first hero.
   A quiet editorial grid, strong typographic hierarchy, no dark image gradients
   or text plates, and a single architectural photo-wipe transition. */
.hero.cinema-hero {
    --header-space: 98px;
    --cinema-white: #ffffff;
    --cinema-quiet: rgba(255,255,255,.77);
    --cinema-shadow: 0 3px 22px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.4);
    --wipe-start: inset(0 100% 0 0);
    position: relative;
    isolation: isolate;
    width: 100%;
    height: calc(100svh - var(--header-space));
    min-height: 610px;
    max-height: 1280px;
    margin-top: var(--header-space);
    padding: 0;
    overflow: hidden;
    display: block;
    color: #fff;
    background: #092437;
}
html[dir=rtl] .hero.cinema-hero { --wipe-start: inset(0 0 0 100%); }
.cinema-stage, .cinema-hero .hero-slide { position: absolute; inset: 0; }
.cinema-hero .hero-slide { visibility: hidden; overflow: hidden; z-index: 0; }
.cinema-hero .hero-slide.is-active { visibility: visible; z-index: 2; }
.cinema-hero .hero-slide.is-leaving { visibility: visible; z-index: 1; }
.cinema-media { position: absolute; inset: -22px 0; transform: translateY(var(--hero-drift,0px)); pointer-events: none; }
.cinema-settle { width: 100%; height: 100%; transform-origin: center; }
.cinema-hero .hero-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--photo-position,center); }
.cinema-hero .hero-slide.is-active .cinema-settle { animation: cinema-push 6200ms linear both; }
@keyframes cinema-push { from { transform: scale(1); } to { transform: scale(1.035); } }
.cinema-hero [data-project=desert-road] { --photo-position: 53% 41%; }
.cinema-hero [data-project=wadi-al-shomar] { --photo-position: 51% 45%; }
.cinema-hero [data-project=aqaba-port] { --photo-position: 51% 54%; }

/* Each photographic frame has a deliberately small typographic footprint.
   Individual lines, kicker and controls are completely transparent. */
.cinema-copy {
    position: absolute;
    z-index: 1;
    inset-inline-start: var(--gutter);
    bottom: clamp(124px,16vh,198px);
    width: min(730px, 57vw);
    transform: translateY(var(--copy-drift,0px));
    text-align: start;
}
.cinema-hero .hero-slide[data-copy-zone=top] .cinema-copy {
    top: clamp(48px,8vh,90px);
    bottom: auto;
}
.cinema-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    color: var(--cinema-quiet);
    text-shadow: var(--cinema-shadow);
    font-size: clamp(10px,.78vw,12px);
    font-weight: 650;
    letter-spacing: .16em;
    line-height: 1.5;
    background: transparent;
}
.cinema-kicker::before { content: ''; flex: 0 0 36px; height: 2px; background: var(--red); }
html[lang=ar] .cinema-kicker { letter-spacing: 0; font-size: clamp(12px,1.0vw,14px); }
.hero.cinema-hero .cinema-title,
html[lang=ar] .hero.cinema-hero .cinema-title {
    margin: 0;
    color: var(--cinema-white);
    font-size: clamp(48px,5.6vw,100px);
    line-height: 1.11;
    letter-spacing: -.067em;
    font-weight: 650;
    text-shadow: var(--cinema-shadow);
    max-width: 13ch;
    background: transparent;
}
html[lang=ar] .hero.cinema-hero .cinema-title {
    font-size: clamp(46px,5.55vw,94px);
    max-width: 14ch;
    letter-spacing: -.02em;
    line-height: 1.26;
    font-weight: 700;
}
.cinema-line { display: block; width: fit-content; max-width: 100%; overflow: hidden; padding-block: .045em; margin-block: -.045em; background: transparent; }
.cinema-line > span { display: block; background: transparent; }
.hero.cinema-hero .cinema-support {
    margin: 24px 0 0;
    max-width: 42ch;
    color: #fff;
    background: transparent;
    font-size: clamp(13px,1.04vw,17px);
    font-weight: 500;
    line-height: 1.8;
    text-shadow: var(--cinema-shadow);
}
html[lang=ar] .hero.cinema-hero .cinema-support { font-size: clamp(14px,1.1vw,18px); }
.hero.cinema-hero .cinema-cta {
    margin-top: clamp(21px,3.5vh,34px);
    min-height: 54px;
    padding: 15px 23px;
    gap: 38px;
    font-size: 12px;
    box-shadow: 0 9px 35px rgba(7,25,39,.17);
}
/* For the light/blue-sky structural photograph use clean ink typography. */
.cinema-hero .hero-slide[data-contrast=ink] { --cinema-white: #08293f; --cinema-quiet: #08293f; --cinema-shadow: 0 1px 4px rgba(255,255,255,.5); }
.cinema-hero .hero-slide[data-contrast=ink] .cinema-support { color: #092c45; text-shadow: 0 1px 7px rgba(255,255,255,.7); }

/* A restrained bottom rail separates the portfolio controls from the image. */
.cinema-bottom { position: absolute; z-index: 5; bottom: 22px; inset-inline: var(--gutter); }
.cinema-hero .hero-controls {
    display: flex;
    align-items: center;
    gap: clamp(8px,1vw,17px);
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.56);
    background: transparent;
    color: #fff;
}
.cinema-count { display: inline-flex; align-items: baseline; gap: 9px; min-width: 79px; white-space: nowrap; text-shadow: var(--cinema-shadow); }
.cinema-count b { font-size: 24px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.cinema-count>span { font-size: 10px; font-weight: 550; opacity: .75; }
.cinema-hero .hero-steps { display: flex; align-items: center; gap: 3px; }
.cinema-hero .hero-steps button { position: relative; display: grid; place-items: center; width: 39px; min-width: 39px; height: 44px; padding: 0; border: 0; background: transparent; }
.cinema-hero .hero-steps button>span { position: relative; display: block; width: 29px; height: 2px; background: rgba(255,255,255,.48); }
.cinema-hero .hero-steps [aria-current]>span::after { content: ''; position: absolute; inset: -1px 0; background: var(--red); transform: scaleX(var(--slide-progress,0)); transform-origin: left; }
html[dir=rtl] .cinema-hero .hero-steps [aria-current]>span::after { transform-origin: right; }
.cinema-arrows { display: flex; margin-inline-start: auto; align-items: center; }
.cinema-hero .hero-controls button { padding: 0; border: 0; color: white; background: transparent; cursor: pointer; }
.cinema-hero .cinema-arrows button,
.cinema-hero [data-hero-pause] { min-width: 42px; height: 44px; display: grid; place-items: center; font-size: 21px; font-weight: 400; }
.cinema-hero .hero-controls button:hover { color: #ffa398; }
.cinema-hero .hero-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html[dir=rtl] .cinema-hero [data-hero-prev], html[dir=rtl] .cinema-hero [data-hero-next] { transform: scaleX(-1); }
.cinema-next { display: inline-flex; align-items: center; gap: 13px; max-width: 290px; min-width: 0; min-height: 44px; margin-inline: 6px; background: transparent; }
.cinema-next-thumb { position: relative; display: block; flex: 0 0 70px; width: 70px; height: 44px; overflow: hidden; outline: 1px solid rgba(255,255,255,.4); outline-offset: -1px; }
.cinema-next-face { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.cinema-next-face.is-next { opacity: 1; }
.cinema-next-face img { width: 100%; height: 100%; object-fit: cover; }
.cinema-next-label { min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: start; text-shadow: var(--cinema-shadow); }
.cinema-next-label small { font-size: 9px; letter-spacing: .12em; color: rgba(255,255,255,.78); }
html[lang=ar] .cinema-next-label small { letter-spacing: 0; }
.cinema-next-label b { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cinema-hero .cinema-next:hover .cinema-next-label b { color: #ffa398; }

/* One signature transition: a precision red-edge reveal with quiet camera settling. */
.cinema-hero.is-transitioning .hero-slide.is-active { animation: cinema-reveal 1150ms cubic-bezier(.77,0,.18,1) both; }
@keyframes cinema-reveal { from { clip-path: var(--wipe-start); } to { clip-path: inset(0); } }
.cinema-hero.is-transitioning .hero-slide.is-active .cinema-settle { animation: cinema-settle 1350ms cubic-bezier(.22,1,.36,1) both; }
@keyframes cinema-settle { from { transform: scale(1.085); } to { transform: scale(1); } }
.cinema-scan { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 2px; opacity: 0; pointer-events: none; background: var(--red); }
.cinema-hero.is-transitioning .cinema-scan { animation: cinema-scan 1150ms cubic-bezier(.77,0,.18,1) both; }
@keyframes cinema-scan { 0% { left: 0; opacity: 0; } 5% { opacity: .92; } 98% { opacity: .92; } 100% { left: 100%; opacity: 0; } }
html[dir=rtl] .cinema-hero.is-transitioning .cinema-scan { animation-name: cinema-scan-rtl; }
@keyframes cinema-scan-rtl { 0% { left: 100%; opacity: 0; } 5% { opacity: .92; } 98% { opacity: .92; } 100% { left: 0; opacity: 0; } }
.cinema-hero .hero-slide.is-active .cinema-kicker { animation: cinema-copy 680ms 200ms cubic-bezier(.22,1,.36,1) both; }
.cinema-hero .hero-slide.is-active .cinema-line>span { animation: cinema-line 950ms 300ms cubic-bezier(.22,1,.36,1) both; }
.cinema-hero .hero-slide.is-active .cinema-line:nth-child(2)>span { animation-delay: 420ms; }
.cinema-hero .hero-slide.is-active .cinema-support { animation: cinema-copy 800ms 540ms cubic-bezier(.22,1,.36,1) both; }
.cinema-hero .hero-slide.is-active .cinema-cta { animation: cinema-copy 820ms 620ms cubic-bezier(.22,1,.36,1) both; }
.cinema-hero .hero-slide.is-leaving .cinema-kicker,
.cinema-hero .hero-slide.is-leaving .cinema-support,
.cinema-hero .hero-slide.is-leaving .cinema-cta { animation: cinema-copy-exit 390ms ease both; }
.cinema-hero .hero-slide.is-leaving .cinema-line>span { animation: cinema-line-exit 580ms ease both; }
@keyframes cinema-line { from { transform: translateY(110%); } to { transform: none; } }
@keyframes cinema-copy { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cinema-line-exit { to { transform: translateY(-115%); opacity: 0; } }
@keyframes cinema-copy-exit { to { opacity: 0; transform: translateY(-12px); } }

@media (max-width: 1024px) {
    .cinema-copy { width: min(710px, calc(100% - var(--gutter)*2)); }
    .cinema-media { inset: 0; transform: none; }
    .cinema-next-label b { max-width: 145px; }
}
@media (max-width: 760px) {
    .hero.cinema-hero { --header-space: 76px; min-height: max(610px,calc(100svh - 76px)); max-height: none; }
    .cinema-copy,
    .cinema-hero .hero-slide[data-copy-zone=top] .cinema-copy {
        top: auto; bottom: 120px; inset-inline: 24px; width: auto; max-width: none;
    }
    .hero.cinema-hero .cinema-title { font-size: clamp(41px,9.2vw,62px); line-height: 1.1; }
    html[lang=ar] .hero.cinema-hero .cinema-title { font-size: clamp(37px,8.7vw,56px); line-height: 1.31; }
    .cinema-kicker { font-size: 9px; margin-bottom: 15px; gap: 10px; }
    html[lang=ar] .cinema-kicker { font-size: 11px; }
    .cinema-kicker::before { flex-basis: 24px; }
    .hero.cinema-hero .cinema-support { font-size: 12px; margin-top: 16px; line-height: 1.65; }
    html[lang=ar] .hero.cinema-hero .cinema-support { font-size: 13px; }
    .hero.cinema-hero .cinema-cta { margin-top: 17px; min-height: 44px; padding: 10px 15px; gap: 25px; font-size: 10px; }
    .cinema-bottom { inset-inline: 24px; bottom: 12px; }
    .cinema-hero .hero-controls { gap: 3px; padding-top: 9px; }
    .cinema-count { min-width: 48px; gap: 4px; }
    .cinema-count b { font-size: 17px; }
    .cinema-count>span { font-size: 8px; }
    .cinema-hero .hero-steps button { min-width: 22px; width: 22px; height: 35px; }
    .cinema-hero .hero-steps button>span { width: 16px; }
    .cinema-hero .cinema-arrows button, .cinema-hero [data-hero-pause] { min-width: 34px; height: 38px; font-size: 17px; }
    .cinema-next { display: none; }
    .cinema-hero .hero-slide[data-contrast=ink] { --cinema-white: #fff; --cinema-quiet: #fff; --cinema-shadow: 0 2px 22px rgba(0,0,0,.8); }
    .cinema-hero .hero-slide[data-contrast=ink] .cinema-support { color: #fff; text-shadow: var(--cinema-shadow); }
    .cinema-hero [data-project=desert-road] { --photo-position: 53% center; }
    .cinema-hero [data-project=wadi-al-shomar] { --photo-position: 55% center; }
    .cinema-hero [data-project=aqaba-port] { --photo-position: 56% center; }
}
@media (max-width: 390px) {
    .hero.cinema-hero .cinema-title { font-size: 38px; }
    html[lang=ar] .hero.cinema-hero .cinema-title { font-size: 35px; }
    .cinema-hero .cinema-copy { bottom: 112px; }
}
@media (prefers-reduced-motion: reduce) {
    .cinema-hero *, .cinema-hero *::before, .cinema-hero *::after { animation: none !important; transition: none !important; }
    .cinema-media, .cinema-settle, .cinema-copy { transform: none !important; }
    .cinema-scan { display: none; }
}

/* ASCC safe visual refinement 03 — scoped strictly to the hero and site header. */
/* Original brand navy, matching the established ASCC palette. */
.site-header.premium-header,
.is-home .site-header.premium-header { background: #052f51; border-bottom-color: rgba(255,255,255,.13); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.premium-header.scrolled { background: #052f51; box-shadow: 0 8px 28px rgba(0,18,31,.18); }
/* Very light image-side gradient and soft lower edge for all desktop/mobile slides. */
.cinema-hero .hero-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(4,24,41,.38) 0%, rgba(4,24,41,.20) 35%, rgba(4,24,41,.02) 75%),
                linear-gradient(0deg, rgba(2,22,37,.22), transparent 31%); }
html[dir=rtl] .cinema-hero .hero-slide::after {
    background: linear-gradient(270deg, rgba(4,24,41,.38) 0%, rgba(4,24,41,.20) 35%, rgba(4,24,41,.02) 75%),
                linear-gradient(0deg, rgba(2,22,37,.22), transparent 31%); }
.cinema-hero .cinema-copy { z-index: 2; }
.cinema-hero [data-project=desert-road] { --photo-position: 52% 57%; }
.cinema-hero [data-project=wadi-al-shomar] { --photo-position: 51% 50%; }
.cinema-hero [data-project=aqaba-port] { --photo-position: 52% 46%; }
@media (max-width: 760px) {
    .cinema-hero [data-project=desert-road] { --photo-position: 55% center; }
    .cinema-hero [data-project=wadi-al-shomar] { --photo-position: 57% center; }
    .cinema-hero [data-project=aqaba-port] { --photo-position: 55% center; }
}

/* ASCC Visual Hero 06: smooth camera glide with no zoom-out jumps. */
.cinema-hero .cinema-media picture { display: block; width: 100%; height: 100%; }
.cinema-hero .hero-slide img { image-rendering: auto; }
.cinema-hero .hero-slide.is-active .cinema-settle {
    animation: ascc-06-camera-glide 6500ms ease-in-out both;
    transform-origin: center center;
    will-change: transform;
}
@keyframes ascc-06-camera-glide {
    from { transform: translate3d(0,0,0) scale(1.025); }
    to   { transform: translate3d(-.55%,0,0) scale(1.025); }
}
.cinema-hero.is-transitioning .hero-slide.is-active .cinema-settle {
    animation: ascc-06-arrival 1150ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes ascc-06-arrival {
    from { transform: translate3d(.25%,0,0) scale(1.025); }
    to   { transform: translate3d(0,0,0) scale(1.025); }
}
.cinema-hero .hero-slide::after {
    background: linear-gradient(90deg, rgba(4,24,41,.54) 0%, rgba(4,24,41,.32) 31%, rgba(4,24,41,.06) 72%),
                linear-gradient(0deg,rgba(2,22,37,.23),transparent 28%);
}
html[dir=rtl] .cinema-hero .hero-slide::after {
    background: linear-gradient(270deg, rgba(4,24,41,.54) 0%, rgba(4,24,41,.32) 31%, rgba(4,24,41,.06) 72%),
                linear-gradient(0deg,rgba(2,22,37,.23),transparent 28%);
}
.cinema-hero .cinema-copy { z-index: 2; }
.cinema-visual-note { position:absolute; z-index:3; top:20px; inset-inline-end:var(--gutter); color:rgba(255,255,255,.75); font-size:9px; font-weight:500; letter-spacing:.01em; text-shadow:0 1px 7px rgba(0,0,0,.5); pointer-events:none; }
.cinema-hero [data-project=desert-road] { --photo-position: center center; }
.cinema-hero [data-project=wadi-al-shomar] { --photo-position: center center; }
.cinema-hero [data-project=aqaba-port] { --photo-position: center center; }
@media(max-width:760px) {
 .cinema-visual-note { top:12px; inset-inline-end:24px; font-size:8px; }
 .cinema-hero .hero-slide::after { background: linear-gradient(0deg,rgba(3,20,34,.66),rgba(3,20,34,.05) 68%),linear-gradient(90deg,rgba(3,20,34,.13),rgba(3,20,34,.13)); }
 html[dir=rtl] .cinema-hero .hero-slide::after { background: linear-gradient(0deg,rgba(3,20,34,.66),rgba(3,20,34,.05) 68%),linear-gradient(270deg,rgba(3,20,34,.13),rgba(3,20,34,.13)); }
}
@media(prefers-reduced-motion:reduce) {
 .cinema-hero .hero-slide.is-active .cinema-settle,
 .cinema-hero.is-transitioning .hero-slide.is-active .cinema-settle { animation:none!important; transform:none!important; }
}
