/* VISUAL EXPERIENCE-004: shared progressive navigation, motion and actions. */
.project-showcase { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:clamp(26px,4vw,64px); align-items:start; }
.project-showcase > * { min-width:0; }
.project-showcase .project-detail-intro { display:block; }
.project-showcase h2 { font-size:clamp(28px,3vw,42px); line-height:1.3; margin-block:0 18px; }
.project-showcase .showcase-brief { font-size:17px; line-height:1.8; }
.showcase-overview { color:#4f687c; line-height:1.8; margin-block:14px 20px; }
.showcase-overview summary,.profile-disclosure summary { cursor:pointer; color:#986b44; font-weight:700; }
.project-showcase .project-fact { display:grid; grid-template-columns:minmax(75px,.7fr) minmax(0,1.4fr); gap:0 16px; margin-block:20px 24px; }
.project-showcase .project-fact h3,.project-showcase .project-fact p { margin:0; padding-block:10px; border-bottom:1px solid #ad825b30; font-size:15px; line-height:1.65; overflow-wrap:anywhere; }
.project-showcase .project-gallery { margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.project-showcase .project-showcase-gallery.is-slider-ready { display:block; position:relative; --showcase-height:clamp(420px,62vh,580px); }
@supports (height:1svh) { .project-showcase .project-showcase-gallery.is-slider-ready { --showcase-height:clamp(420px,62svh,580px); } }
.project-showcase-gallery [hidden] { display:none!important; }
.project-showcase-gallery figure { margin:0; background:transparent; }
.project-showcase-gallery img { display:block; width:100%; height:130px; object-fit:contain; background:transparent; }
.project-showcase-gallery .project-slider-view { --slider-height:var(--showcase-height); }
.project-showcase-gallery .showcase-slide { width:100%; height:100%; display:grid; grid-template-rows:minmax(0,1fr) auto; justify-items:center; }
.project-showcase-gallery .showcase-slide > a { display:block; min-height:0; height:100%; width:100%; align-self:center; }
.project-showcase-gallery .project-slider-view img { height:100%; width:100%; object-fit:contain; }
/* HARNESS-02: on the desktop two-column layout a landscape slide renders no wider than the display area's inner height, so it cannot visually dominate the full-height portrait slides; the image stays contained and centered. */
@media(min-width:981px) {
 .project-showcase-gallery .showcase-slide[data-orientation="landscape"] > a { width:min(100%, calc(var(--slider-height) - 42px)); }
 /* Owner-approved C — ADAPTIVE: Orchid desktop only; source stage/controls stay fixed. */
 body[data-project="al-orchid-building"] .project-showcase-gallery .showcase-slide { grid-template-rows:minmax(0,1fr) 35.5px; }
 body[data-project="al-orchid-building"] .project-showcase-gallery .showcase-slide[data-orientation="landscape"] > a { width:100%; }
 body[data-project="al-orchid-building"] .project-showcase-gallery figcaption { box-sizing:border-box; height:35.5px; margin:0; line-height:19.5px; }
}
.project-showcase-gallery figcaption { padding:8px 0; background:transparent; color:#657b8c; font-size:13px; text-align:center; line-height:1.5; }
.project-showcase-gallery .project-slider-controls { justify-content:space-between; margin-block:12px; }
.project-showcase-gallery .project-slider-controls button { position:static; width:44px; height:44px; padding:0; border-radius:50%; background:#0b253318; color:#1d3c52; border:1px solid #ad825b80; font-size:22px; }
.project-showcase-gallery .project-slider-thumbnails { height:104px; align-items:center; padding:12px 8px; gap:10px; }
.project-showcase-gallery .project-slider-thumbnails button { flex:0 0 80px; height:76px; opacity:.65; transition:transform 300ms,border-color 300ms,opacity 300ms; }
.project-showcase-gallery .project-slider-thumbnails button[aria-pressed="true"] { transform:scale(1.1); opacity:1; border-color:var(--copper); box-shadow:0 4px 12px #081b3014; }
.project-showcase-gallery .project-slider-thumbnails img { width:68px; height:60px; }
.project-showcase-gallery button:hover,.project-showcase-gallery button:focus-visible { border-color:#9a6136; }
.profile-disclosure { margin-top:22px; padding-top:20px; }
.profile-disclosure summary { font-size:22px; line-height:1.5; }
.profile-disclosure ul { margin-top:20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.project-gallery-dialog .service-gallery-controls { position:relative; min-height:44px; }
.project-gallery-dialog .viewer-close { position:absolute; top:0; inset-inline-end:0; }
.project-gallery-dialog .viewer-previous,.project-gallery-dialog .viewer-next { position:fixed; top:calc(50% - 22px); width:44px; height:44px; padding:0; border-radius:50%; background:#081b3033; border:1px solid #c7956980; font-size:24px; }
.project-gallery-dialog .viewer-previous { inset-inline-start:16px; }
.project-gallery-dialog .viewer-next { inset-inline-end:16px; }
@media(max-width:980px) {
 .project-showcase { grid-template-columns:minmax(0,1fr); }
 .project-showcase-gallery { width:100%; }
}
@media(max-width:600px) {
 .project-showcase .project-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .project-showcase .project-showcase-gallery.is-slider-ready { --showcase-height:clamp(300px,108vw,440px); }
 .project-showcase-gallery .project-slider-thumbnails button { flex-basis:68px; }
 .project-showcase-gallery .project-slider-thumbnails img { width:56px; height:56px; }
 .profile-disclosure ul { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
 .project-showcase-gallery .project-slider-thumbnails button { transition:none; }
}
.compact-nav-toggle[hidden] { display:none!important; }
.compact-nav-toggle { padding:9px 14px; border:1px solid var(--copper); background:transparent; color:var(--navy); border-radius:24px; font:700 14px Tajawal,system-ui,sans-serif; min-height:42px; }
body.has-smart-nav .header { width:100%; max-width:100%; margin-inline:auto; transition:width 400ms,max-width 400ms,height 400ms,top 400ms,border-radius 400ms,box-shadow 400ms; }
body.has-smart-nav .header.is-compact { top:14px; left:0; right:0; width:calc(100% - 32px); max-width:460px; height:64px; padding:8px 16px; border:1px solid #ad825b80; border-radius:40px; gap:12px; box-shadow:0 12px 36px #03111f26; }
.header.is-compact .identity { min-width:0; gap:0; }
.header.is-compact .identity img { width:34px; height:42px; }
.header.is-compact .brand-title,.header.is-compact .nav,.header.is-compact .local,.header.is-compact .menu-btn { display:none; }
.header.is-compact .header-side { gap:0; }
.nav-is-compact .mobile-menu.open { position:fixed; display:flex; flex-direction:column; top:88px; left:0; right:0; width:min(460px,calc(100% - 32px)); margin-inline:auto; max-height:calc(100svh - 112px); overflow-y:auto; z-index:21; padding:18px; gap:5px; border:1px solid #ad825b70; border-radius:18px; background:#f5f1ecfa; box-shadow:0 15px 35px #03111f24; }
.nav-is-compact .mobile-menu a { padding:11px 12px; border-radius:6px; }
.nav-is-compact .mobile-menu a[aria-current="page"] { background:#d39a6826; color:#87562f; }
.directory-editorial .project-grid { display:block; }
.editorial-entry { border:0; border-bottom:1px solid #ad825b45; background:transparent; padding-block:30px; }
.editorial-entry:hover { transform:none; box-shadow:none; }
.editorial-entry .project-card-main { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:clamp(24px,5vw,80px); align-items:center; }
.editorial-entry:nth-child(even) .project-art { order:2; }
.editorial-entry .project-card-body { padding:24px 0; min-height:0; }
.editorial-entry h2 { font-size:clamp(28px,3.5vw,48px); margin-block:18px 24px; }
.editorial-entry .editorial-location { color:#647a8b; line-height:1.8; margin-bottom:24px; }
.editorial-entry .project-art { min-height:180px; background:linear-gradient(135deg,#e1e9eb,#eee7de); color:#577184; border:1px solid #ad825b40; }
.editorial-entry .project-art-label { color:#536e7e; }
.editorial-entry .project-art.project-art--photo { height:auto; max-height:560px; background:transparent; border:0; }
.editorial-entry .project-art--photo img { display:block; width:100%; height:auto; max-height:560px; object-fit:contain; }
.directory-editorial .project-card[hidden] { display:none!important; }
.contact-action { background-image:linear-gradient(110deg,transparent 25%,#ffffff4d 48%,transparent 70%); background-size:250% 100%; background-position:120% 0; transition:background-position 550ms,border-color 400ms,box-shadow 400ms!important; }
.contact-action:hover,.contact-action:focus-visible { background-position:-30% 0; border-color:#efbc8e; transform:none; box-shadow:0 8px 22px #081b301c; }
.contact-action > span { transition:translate 400ms; }
.contact-action:hover > span,.contact-action:focus-visible > span { translate:2px -2px; }
.register-interest { display:block!important; text-align:center; }
.register-interest > .register-message { width:min(100%,760px); margin-inline:auto; }
.register-interest h2,.register-interest p { margin-inline:auto; }
.register-interest .register-action { margin-top:26px; display:flex; justify-content:center; }
.register-interest .register-action .button { white-space:normal; max-width:100%; }
.footer-contact a.social-channel svg { transition:transform 350ms; }
.footer-contact a.social-channel:hover svg,.footer-contact a.social-channel:focus-visible svg { transform:translateY(-2px) scale(1.06); }
[data-reveal-kind="image"].is-revealed { animation-name:bonyan-image-reveal; }
@keyframes bonyan-image-reveal { from{opacity:0;translate:0 14px;scale:.985} to{opacity:1;translate:0 0;scale:1} }
.section-heading[data-reveal].is-revealed p,.about-copy[data-reveal].is-revealed p { animation:bonyan-section-reveal 500ms ease both; animation-delay:90ms; }
.service-scroll-progress { display:flex; align-items:center; gap:18px; position:sticky; top:104px; z-index:5; padding:14px 20px; margin-bottom:34px; width:fit-content; max-width:100%; border:1px solid #ad825b80; border-radius:5px; background:#f4f0e9f2; box-shadow:0 8px 20px #081b300b; }
.service-scroll-progress strong { color:#9e6f45; font:600 28px Outfit,system-ui,sans-serif; min-width:2ch; }
.service-scroll-progress span { color:var(--navy); line-height:1.5; font-weight:700; }
.service-detail.is-current-service .service-detail-number { color:#8b552d; }
.service-detail.is-current-service .service-detail-number::after { width:90px; }
@media(max-width:768px) {
 .editorial-entry .project-card-main { grid-template-columns:minmax(0,1fr); gap:12px; }
 .editorial-entry:nth-child(even) .project-art { order:0; }
 .editorial-entry .project-card-body { padding-block:12px 22px; }
 .editorial-entry { padding-block:24px; }
 .service-scroll-progress { top:98px; padding:10px 14px; gap:12px; }
 .service-scroll-progress strong { font-size:24px; }
}
@media(prefers-reduced-motion:reduce) {
 body.has-smart-nav .header,.contact-action,.contact-action > span,.footer-contact a.social-channel svg { transition:none!important;transform:none!important;translate:none!important; }
 [data-reveal].is-revealed { animation:none!important;opacity:1;translate:none;scale:1; }
 .section-heading[data-reveal].is-revealed p,.about-copy[data-reveal].is-revealed p { animation:none!important;opacity:1;translate:none; }
}
