/* Portfolio overview */
button{font-family:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:2px solid #d8bd84;outline-offset:5px}
.projects{top:12%;width:min(1000px,86vw)}.projects .eyebrow{margin-bottom:10px}.projects h2{font-size:clamp(32px,4vw,58px)}.projects>.english{margin-bottom:18px}
.portfolio-art{display:block;width:100%;height:min(43vh,380px);object-fit:cover;object-position:center;border:1px solid #ffffff24}
.project-actions{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:18px}.project-actions .button,.projects .about-scroll{margin:0;padding:12px 26px;font-size:15px;min-height:46px}.project-actions #view-projects{background:#f2eee5;color:#191b1b;border-color:#f2eee5}.project-actions #view-projects:hover{background:#d8c8a7}
/* Full-screen portfolio */
#project-gallery{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;color:#f7f5ef;background:#0a1015;overflow:hidden;z-index:100;color-scheme:dark}
#project-gallery::backdrop{background:#04080cee}.gallery-shell{height:100%;display:flex;flex-direction:column;padding:30px 5vw 22px;background:radial-gradient(ellipse at 70% 10%,#29333955,transparent 60%)}
.gallery-top{display:flex;align-items:center;justify-content:space-between;flex:none;gap:24px;padding-bottom:22px}.gallery-kicker{font-size:12px;color:#c4b18a;letter-spacing:.03em}.gallery-top h2{font-size:clamp(30px,4vw,52px);margin:8px 0 0;line-height:1.25}.gallery-close{background:transparent;border:1px solid #ffffff4d;width:48px;height:48px;border-radius:50%;font:300 32px Arial;flex-shrink:0}.gallery-close:hover{background:#ffffff16}
.gallery-stage{position:relative;flex:1;min-height:0}.project-deck{height:100%;display:flex;gap:18px;padding:8px 2.5vw 12px;direction:ltr;overflow:visible}.gallery-card{position:relative;min-width:0;flex:1;border:0;padding:0;background:#20292d;overflow:hidden;transform:skewX(-6deg);text-align:right;isolation:isolate;transition:filter .3s}.gallery-card:hover{filter:brightness(1.13)}.gallery-card img{position:absolute;inset:0;width:calc(100% + 80px);max-width:none;height:100%;object-fit:cover;transform:skewX(6deg) translateX(-40px);filter:brightness(.8)}.gallery-card:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 35%,#000c);z-index:0}.gallery-card-copy{position:absolute;inset:auto 20px 28px;direction:rtl;transform:skewX(6deg);z-index:1}.gallery-card-copy small{display:block;color:#d6c6a6;font-size:12px;margin-bottom:10px}.gallery-card-copy strong{display:block;font-size:clamp(21px,2.6vw,35px);font-weight:500;line-height:1.45}.gallery-card-copy em{display:block;margin-top:20px;font-style:normal;font-size:13px;color:#eee}.card-number{position:absolute;top:18px;left:22px;font:12px Tajawal,sans-serif;letter-spacing:3px;z-index:2;transform:skewX(6deg)}.no-project-image{position:absolute;inset:0;display:grid;place-content:center;font-size:clamp(70px,8vw,120px);color:#c4ad7440;background:linear-gradient(135deg,#273638,#131c25)}
.gallery-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;padding-top:22px}.gallery-bottom p{font-size:13px;color:#aaa;margin:0}.gallery-controls{display:flex;align-items:center;gap:16px}.gallery-controls button{width:46px;height:46px;background:transparent;border:1px solid #ffffff45;font-size:22px}.gallery-controls button:hover{background:#ffffff12}.gallery-controls button:disabled{opacity:.25;cursor:default}#gallery-count{font:14px Tajawal,sans-serif;min-width:62px;text-align:center;color:#d1c2a2}
/* The selected card opens outward from its actual position. */
.project-detail{position:absolute;inset:0;background:#121b21;overflow:auto;overscroll-behavior:contain;z-index:3;direction:rtl}.project-detail[hidden]{display:none}.detail-layout{min-height:100%;display:grid;grid-template-columns:1.1fr 1fr;direction:ltr}.detail-image{width:100%;height:100%;min-height:370px;object-fit:cover;position:absolute;inset:0}.detail-visual{position:relative;min-height:100%;background:linear-gradient(135deg,#273638,#131c25);overflow:hidden}.detail-copy{direction:rtl;padding:clamp(24px,4vw,54px);align-self:center}.detail-back{background:transparent;border:0;border-bottom:1px solid #ffffff50;padding:0 0 9px;font-size:13px;color:#d4c1a1;margin-bottom:30px}.detail-category{font-size:12px;color:#c7b58f}.detail-copy h3{font-size:clamp(29px,3.2vw,48px);line-height:1.4;margin:12px 0 22px}.detail-copy p{font-size:16px;line-height:1.9;color:#d2d4d4}.detail-facts{display:flex;flex-wrap:wrap;gap:24px;border-top:1px solid #ffffff25;padding-top:20px;margin:22px 0}.detail-facts div{flex:1;min-width:100px}.detail-facts dt{font-size:12px;color:#aaa;margin-bottom:8px}.detail-facts dd{margin:0;font-size:18px}.download-project{display:inline-flex;align-items:center;gap:30px;padding:14px 22px;border:1px solid #c7b58f;font-size:14px;margin-top:14px;background:transparent}.download-project:disabled{color:#a2a7a9;border-color:#ffffff30;cursor:default}.pdf-note{display:block;margin-top:10px;color:#9ba3a8;font-size:12px}.gallery-stage.is-detail .project-deck{pointer-events:none;visibility:hidden}
@media(max-width:700px){.projects{top:14%;width:88vw}.portfolio-art{height:auto;aspect-ratio:16/9}.projects>.english{margin-bottom:20px}.project-actions{gap:10px;flex-wrap:wrap}.project-actions .button,.projects .about-scroll{padding:11px 16px;gap:18px;font-size:13px}.gallery-shell{padding:22px 6vw 18px}.gallery-top{padding-bottom:20px}.gallery-top h2{font-size:32px}.gallery-close{width:40px;height:40px}.project-deck{padding:4px 6vw 8px}.gallery-card-copy strong{font-size:32px}.gallery-card-copy{bottom:30px}.gallery-bottom{padding-top:18px}.gallery-bottom p{max-width:145px;line-height:1.6;font-size:12px}.gallery-controls{gap:10px}.gallery-controls button{width:40px;height:40px}.detail-layout{display:flex;flex-direction:column}.detail-visual{min-height:240px;height:32vh;flex:none}.detail-image{min-height:0}.detail-copy{padding:25px;width:100%}.detail-back{margin-bottom:20px}.detail-copy h3{font-size:30px}.detail-copy p{font-size:15px}}
@media(max-height:650px){.projects{top:11%}.projects>.eyebrow{display:none}.projects h2{font-size:32px}.projects>.english{margin-bottom:10px}.portfolio-art{height:39vh}.project-actions{margin-top:12px}.project-actions .button{padding:8px 18px;min-height:38px}.gallery-shell{padding-top:18px;padding-bottom:14px}.gallery-top{padding-bottom:14px}.gallery-top h2{font-size:30px}.gallery-kicker{display:none}.gallery-bottom{padding-top:12px}}
@media(prefers-reduced-motion:reduce){.gallery-card{transition:none}}
.detail-category{display:block}.detail-image{object-fit:contain}.detail-copy{padding:clamp(22px,2.8vw,38px)}.detail-back{display:block;margin-bottom:18px}.detail-copy h3{margin:10px 0 16px}.detail-copy p{font-size:15px;line-height:1.75}.detail-facts{gap:18px;padding-top:14px;margin:16px 0}.detail-facts dd{unicode-bidi:plaintext}.gallery-card-copy em{margin-top:16px}

.portfolio-art{width:min(100%,76vh);height:auto;max-height:43vh;object-fit:contain;margin-inline:auto}
@media(max-width:700px){.portfolio-art{width:100%;max-height:38vh}}
/* Existing first two panels, with the original In Park photograph replacing only panel three. */
.portfolio-composite{position:relative;aspect-ratio:1672/941;overflow:hidden;max-height:none;border:0}.portfolio-base{display:block;width:100%;height:100%;object-fit:fill}.portfolio-inpark{position:absolute;inset:0;clip-path:polygon(72.3% 0,100% 0,100% 100%,59.6% 100%)}.portfolio-inpark img{position:absolute;left:59.6%;top:0;width:40.4%;height:100%;object-fit:cover;object-position:center}.portfolio-seam{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
/* Edge-to-edge cards arrive directly over the existing night sky. */
#project-gallery{background:transparent}#project-gallery::backdrop{background:transparent}.gallery-shell{padding:0;background:none;position:relative}.gallery-top{position:static;padding:0;flex:none;height:0}.gallery-top>div{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.gallery-stage{position:absolute;inset:0;overflow:hidden}.project-deck{position:absolute;inset:0 -6vw;height:100%;padding:0;gap:0}.gallery-card{border-right:4px solid #f7f5ef;flex:1;background:#142026;transition:filter .25s}.gallery-card:last-child{border-right:0}.gallery-card img{width:calc(100% + 150px);transform:skewX(6deg) translateX(-75px);filter:brightness(.88)}.gallery-card:after{background:linear-gradient(180deg,#0002,transparent 35%,#0009 100%)}.gallery-card-copy{inset:auto 17% 19%;text-align:center}.gallery-card-copy small{font-size:14px}.gallery-card-copy strong{font-size:clamp(26px,3.3vw,48px)}.gallery-card-copy em{font-size:14px;margin-top:12px}.card-number{top:38px;left:25%;font-size:14px;color:#fff9}
.gallery-bottom{position:absolute;inset:0;padding:0;pointer-events:none;z-index:5}.gallery-bottom>p{display:none}.gallery-controls{display:contents}.gallery-controls button{pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;border:1px solid #fff;background:#f7f5ef;color:#172029;box-shadow:0 4px 24px #0003;font-size:28px;transition:background .2s,opacity .2s}.gallery-controls button:hover{background:#d9cfba}.gallery-controls button:disabled{opacity:.45;background:#f7f5ef;color:#172029}#gallery-prev{left:31.33%}#gallery-next{left:68.67%}#gallery-count{position:absolute;left:35px;bottom:35px;font-size:13px;color:#fff9;background:#0004;padding:8px 12px}
.gallery-close{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:8;width:auto;height:auto;min-width:154px;min-height:48px;padding:12px 26px;border-radius:0;display:flex;align-items:center;justify-content:center;gap:30px;background:#101b21b3;backdrop-filter:blur(12px);color:#fff;border:1px solid #ffffffa6;font-family:inherit;font-size:17px}.gallery-close:hover{background:#f7f5ef;color:#172029}
#project-gallery.showing-detail .gallery-controls{visibility:hidden}.project-detail{background:#0c171ded;backdrop-filter:blur(18px);padding-bottom:95px}.detail-layout{min-height:100%}.detail-copy{padding-top:45px}.detail-image{object-fit:contain}.detail-back{margin-bottom:25px}.gallery-stage.is-detail .project-deck{visibility:hidden}
@media(max-width:700px){.portfolio-composite{max-height:none}.gallery-shell{padding:0}.gallery-top{padding:0}.project-deck{inset:0 -11vw;padding:0}.gallery-card{border-left:3px solid white;border-right:3px solid white}.gallery-card-copy{inset:auto 17% 23%}.gallery-card-copy strong{font-size:38px}.gallery-card img{width:calc(100% + 150px)}#gallery-prev{left:8%}#gallery-next{left:92%}.gallery-controls button{width:46px;height:46px;font-size:24px}#gallery-count{left:18px;bottom:90px;font-size:11px}.gallery-close{bottom:25px;font-size:16px;min-width:148px}.detail-copy{padding:25px}.detail-visual{min-height:260px}.detail-image{object-fit:contain}}
@media(max-height:650px){.gallery-shell,.gallery-top,.gallery-bottom{padding:0}.gallery-close{bottom:16px;min-height:42px;padding:9px 25px}.gallery-card-copy{bottom:22%}.card-number{top:20px}.project-detail{padding-bottom:80px}}

/* Continuous horizontal track; each card owns both of its white edges. */
.project-deck{will-change:transform}.gallery-card,.gallery-card:last-child{flex:0 0 calc(100% / 3);border-left:2px solid #fff;border-right:2px solid #fff;will-change:transform}.gallery-card[aria-hidden="true"]{pointer-events:none}
@media(max-width:700px){.gallery-card,.gallery-card:last-child{flex-basis:100%;border-left:3px solid #fff;border-right:3px solid #fff}}
