/* Image-led case narratives: original project media with concise adjacent text. */
.case-reference .editorial-sequence { display:block; background:#fff; margin:0; padding:65px 0; }
.case-reference .editorial-sequence .editorial-frame { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(240px,1fr); gap:clamp(28px,5vw,88px); align-items:center; margin:0 auto; padding:55px max(6vw,calc((100vw - 1500px)/2)); background:#fff; }
.case-reference .editorial-sequence .editorial-frame:nth-of-type(even) { grid-template-columns:minmax(240px,1fr) minmax(0,1.9fr); }
.case-reference .editorial-sequence .editorial-frame:nth-of-type(even)>img { grid-column:2; grid-row:1; }
.case-reference .editorial-sequence .editorial-frame:nth-of-type(even)>figcaption { grid-column:1; grid-row:1; }
.case-reference .editorial-sequence .editorial-frame>img { width:100%; height:auto; max-height:none; min-height:0; object-fit:contain; display:block; }
.case-reference .editorial-sequence figcaption { padding:0; color:#242b27; }
.case-reference .editorial-sequence .mono { display:block; font-size:9px; line-height:1.7; letter-spacing:.1em; color:#677168; }
.case-reference .editorial-sequence h3 { font:300 clamp(25px,2.1vw,36px)/1.3 'Raleway',Arial,sans-serif; margin:17px 0; }
.case-reference .editorial-sequence p { font:400 16px/1.85 'Raleway',Arial,sans-serif; margin:0; max-width:38em; }
.case-reference .editorial-sequence .process-plan { margin:70px auto; padding:40px 6vw 65px; background:#fff; }
.case-reference .process-plan img { width:100%; height:auto; max-height:none; object-fit:contain; display:block; }
.case-reference .process-plan figcaption { max-width:830px; margin:35px auto 0; }
.process-plan small { display:block; font:400 12px/1.7 'Raleway',Arial,sans-serif; color:#6e776f; margin-top:22px; }
.process-source-link { display:inline-block; font:400 12px/1.6 'Raleway',Arial,sans-serif; margin-top:16px; text-decoration:underline; text-underline-offset:4px; }
.plan-image-link { display:block; }
.plan-image-link:focus-visible { outline:2px solid #51675c; outline-offset:6px; }
.case-reference #design-process,.case-reference #terrace-view,.case-reference #elevated-view { scroll-margin-top:100px; }
@media(max-width:760px) {
 .case-reference .editorial-sequence { padding:25px 0; }
 .case-reference .editorial-sequence .editorial-frame,.case-reference .editorial-sequence .editorial-frame:nth-of-type(even) { grid-template-columns:minmax(0,1fr); padding:30px 6vw; gap:22px; }
 .case-reference .editorial-sequence .editorial-frame:nth-of-type(even)>img,.case-reference .editorial-sequence .editorial-frame:nth-of-type(even)>figcaption { grid-column:auto; grid-row:auto; }
 .case-reference .editorial-sequence .process-plan { margin:25px 0; padding:25px 6vw 40px; }
 .case-reference .editorial-sequence h3 { font-size:26px; }
 .case-reference .editorial-sequence p { font-size:15px; }
}

/* Photographs drift by at most 18px; the window clips only the small motion overscan. */
.project-photo-window { position:relative; overflow:hidden; min-width:0; }
.case-reference .editorial-sequence .project-photo-window>img { display:block; width:100%; height:auto; max-height:none; min-height:0; object-fit:contain; transform-origin:center; }
.case-reference .editorial-sequence .editorial-frame:nth-of-type(even)>.project-photo-window { grid-column:2; grid-row:1; }
.case-reference .case-opening>.project-photo-window { position:absolute; inset:0; height:100%; }
.case-reference .case-opening>.project-photo-window>img { display:block; width:100%; height:100%; object-fit:cover; }
.project-photo-motion .project-photo-window>img { will-change:transform; }
@media(max-width:760px) {
 .case-reference .editorial-sequence .editorial-frame:nth-of-type(even)>.project-photo-window { grid-column:auto; grid-row:auto; }
}
@media(prefers-reduced-motion:reduce) {
 .project-photo-window>img { transform:none!important; will-change:auto!important; }
}
/* Afarinesh owner-supplied film: user-initiated, accessible full-screen dialog. */
.project-film-feature { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); align-items:center; gap:5vw; background:#fff; padding:80px 6vw; scroll-margin-top:100px; }
.project-film-cover a { position:relative; display:block; color:#fff; overflow:hidden; }
.project-film-cover img { display:block; width:100%; height:auto; }
.film-play-mark { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:70px; height:70px; border-radius:50%; background:#24382ee8; font:24px/1 Arial,sans-serif; box-shadow:0 2px 24px #0002; }
.film-cover-caption { position:absolute; left:0; bottom:0; padding:18px 22px; width:100%; box-sizing:border-box; background:#24382ee8; font-size:10px; }
.project-film-cover a:hover .film-play-mark { background:#131e18; }
.project-film-cover a:focus-visible { outline:3px solid #51675c; outline-offset:5px; }
.project-film-feature .film-drawing-note { color:#6e776f; font:12px/1.6 'Raleway',Arial,sans-serif; margin:12px 0 0; }
.project-film-copy>.mono { font-size:9px; line-height:1.6; color:#677168; }
.project-film-copy h2 { font:300 clamp(30px,3vw,46px)/1.2 'Raleway',Arial,sans-serif; margin:20px 0 25px; }
.project-film-copy p { font:400 16px/1.85 'Raleway',Arial,sans-serif; margin:0 0 20px; }
.film-direct-link { font:13px/1.6 'Raleway',Arial,sans-serif; text-decoration:underline; text-underline-offset:4px; }
.project-film-dialog { width:100vw; height:100svh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:#101511; color:#fff; }
.project-film-dialog::backdrop { background:#000e; }
.project-film-dialog:fullscreen { width:100%; height:100%; max-height:none; }
.film-dialog-inner { display:flex; flex-direction:column; justify-content:center; height:100%; padding:18px; box-sizing:border-box; }
.film-player-bar { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:15px; }
.film-player-bar h2 { margin:0; font:400 14px/1.5 'Raleway',Arial,sans-serif; }
.film-player-bar button { border:1px solid #fff8; color:#fff; background:transparent; padding:10px 14px; font:14px/1.3 'Raleway',Arial,sans-serif; cursor:pointer; }
.film-player-bar button:focus-visible { outline:2px solid #fff; outline-offset:4px; }
.project-film-dialog video { display:block; width:100%; max-height:calc(100svh - 110px); min-height:0; background:#000; object-fit:contain; }
.project-film-dialog [role=status] { margin:8px 0 0; font:13px/1.6 Arial,sans-serif; }
@media(max-width:760px) { .project-film-feature { grid-template-columns:minmax(0,1fr); padding:50px 6vw; gap:30px; } .film-play-mark { width:54px; height:54px; font-size:20px; } .film-cover-caption { font-size:8px; padding:12px; } }

/* Afarinesh construction archive: original photographs, uncropped. */
.afarinesh-about p + p{margin-top:1.3em}
.afarinesh-about>p:not(.lead){font-size:clamp(16px,1.2vw,20px);line-height:1.7}
.afarinesh-award{color:#826442}
.construction-archive{background:#e8e3da}
.construction-heading{display:grid;grid-template-columns:1.3fr 1fr;gap:6vw;align-items:end;margin-bottom:3rem}
.construction-heading h2{font-family:'Cormorant Garamond',serif;font-weight:400;font-size:clamp(38px,5vw,76px);line-height:1.05;margin:1rem 0 0}
.construction-heading>p{font-size:clamp(16px,1.2vw,20px);line-height:1.7;max-width:40rem}
/* Overlapping grid cells reserve the tallest caption and prevent layout shifts. */
.construction-stage{position:relative;display:grid;isolation:isolate;touch-action:pan-y pinch-zoom;overflow:hidden}
.construction-stage:focus-visible{outline:2px solid #6b563b;outline-offset:4px}
.construction-slide{grid-area:1/1;min-width:0;margin:0;opacity:0;visibility:hidden;pointer-events:none;z-index:0;transition:opacity 1.2s cubic-bezier(.4,0,.2,1),visibility 0s 1.2s}
.construction-slide.is-active{opacity:1;visibility:visible;z-index:2;transition-delay:0s}
.construction-slide.is-leaving{visibility:visible;z-index:1;transition-delay:0s}
.construction-slide img{display:block;width:100%;height:min(65vw,72vh);min-height:220px;object-fit:contain;background:#d5d0c7;transform-origin:center;user-select:none;-webkit-user-drag:none}
.construction-slide.is-active img,.construction-slide.is-leaving img{animation:construction-ken-burns 6.2s linear both}
.construction-carousel[data-running="false"] .construction-slide img{animation-play-state:paused}
.construction-slide figcaption{padding:1.25rem 0;min-height:105px}
.construction-slide h3{margin:0 0 .4rem;font-weight:400;font-size:24px}
.construction-slide p{margin:0;line-height:1.6;font-size:16px}
.construction-controls{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #bcb5a8;padding-top:1.2rem;gap:1rem}
.construction-controls[hidden]{display:none}
.construction-controls>div{display:flex;gap:.7rem;flex-wrap:wrap}
.construction-controls button{border:1px solid #a69b88;background:transparent;color:inherit;font:inherit;font-size:14px;padding:.75rem 1rem;cursor:pointer;min-height:44px}
.construction-controls button:hover{background:#d8d0c2}
.construction-controls button:focus-visible{outline:2px solid #6b563b;outline-offset:4px}
/* Subtle 2.5% inward zoom preserves the complete photograph within the frame. */
@keyframes construction-ken-burns{from{transform:scale(.975)}to{transform:scale(1)}}
@media(max-width:700px){.construction-heading{grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem}.construction-controls{align-items:flex-start;flex-direction:column}.construction-controls button{font-size:12px;padding:.65rem .75rem}.construction-slide img{height:66vw;min-height:0}.construction-slide figcaption{min-height:120px}}
@media(prefers-reduced-motion:reduce){.construction-slide{transition:none}.construction-slide.is-active img,.construction-slide.is-leaving img{animation:none}}
