body.home-screen { margin: 0; overflow: hidden; background: #000; }
.home-screen main, .legacy-home { height: 100vh; }
.legacy-home { min-height: 520px; display: grid; grid-template-rows: minmax(0, 1fr) 82px; background: #000; }
.legacy-hero { position: relative; overflow: hidden; background: #111 url('../assets/images/barqaab-dam.jpg') center/cover no-repeat; }
.legacy-slides, .legacy-slide, .legacy-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.legacy-slide { display: block; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .8s ease, visibility .8s ease, transform 5.8s ease; }
.legacy-slide > img { display: block; object-fit: cover; object-position: center; }
.legacy-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.legacy-slide-name { position: absolute; z-index: 2; bottom: 26px; left: max(3vw, 32px); max-width: min(560px, 58vw); padding: 15px 19px 16px; color: #fff; background: rgba(0,0,0,.68); border-left: 3px solid #d7924e; }
.legacy-slide-name span { display: block; margin-bottom: 5px; color: #e7b17c; font-size: 8px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.legacy-slide-name a, .legacy-slide-name strong { display: block; color: #fff; font: 700 clamp(15px, 1.6vw, 22px)/1.25 Georgia, 'Times New Roman', serif; }
.legacy-slide-name a:hover { color: #f1bd89; }
.legacy-heading { position: absolute; z-index: 2; top: 10%; left: 0; display: block; width: min(35.5vw, 708px); height: auto; }
.legacy-slide-dots { position: absolute; z-index: 3; right: max(3vw, 32px); bottom: 27px; display: flex; align-items: center; gap: 8px; }
.legacy-slide-dots button { width: 24px; height: 3px; padding: 0; background: rgba(255,255,255,.5); border: 0; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.legacy-slide-dots button.is-active { width: 42px; background: #d7924e; }
.legacy-slide-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.legacy-nav { height: 82px; display: grid; grid-template-columns: minmax(190px, 29%) 1fr; align-items: center; padding: 0 max(3vw, 32px); background: #030303; border-bottom: 1px solid #4d392c; color: #fff; }
.legacy-nav .legacy-mark { display: flex; justify-self: center; align-items: center; }
.legacy-mark img { display: block; width: 54px; height: auto; }
.legacy-links { display: flex; align-items: stretch; justify-content: center; height: 100%; gap: clamp(16px, 2.6vw, 44px); }
.legacy-links a { position: relative; display: flex; align-items: center; color: #fff; font: 500 11px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: 2px; white-space: nowrap; }
.legacy-links a::after { content: ""; position: absolute; right: 50%; bottom: 0; left: 50%; height: 2px; background: #d7924e; transition: .2s; }
.legacy-links a:hover::after, .legacy-links a.active::after { right: 0; left: 0; }
.legacy-nav > button { display: none; width: 42px; padding: 8px; background: none; border: 0; }
.legacy-nav > button span { display: block; height: 2px; margin: 6px 0; background: #fff; }

@media (max-width: 900px) {
    .legacy-home { grid-template-rows: minmax(0, 1fr) 68px; }
    .legacy-heading { top: 9%; width: min(64vw, 560px); }
    .legacy-nav { height: 68px; grid-template-columns: 1fr auto; padding: 0 22px; }
    .legacy-nav .legacy-mark { justify-self: start; }
    .legacy-mark img { width: 45px; }
    .legacy-nav > button { display: block; }
    .legacy-links { position: absolute; z-index: 10; right: 0; bottom: 68px; left: 0; display: none; height: auto; padding: 8px 22px 18px; background: rgba(0,0,0,.96); flex-direction: column; gap: 0; }
    .legacy-nav.expanded .legacy-links { display: flex; }
    .legacy-links a { padding: 13px 0; }
    .legacy-links a::after { display: none; }
    .legacy-slide-dots { right: 22px; bottom: 21px; }
}
@media (max-width: 560px) {
    .legacy-slide > img { object-position: center; }
    .legacy-heading { top: 7%; width: 78vw; }
    .legacy-home { min-height: 440px; }
    .legacy-slide-name { right: 18px; bottom: 47px; left: 18px; max-width: none; padding: 12px 14px; }
    .legacy-slide-dots button { width: 17px; }
    .legacy-slide-dots button.is-active { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .legacy-slide, .legacy-slide-dots button { transition: none; }
}
