/* Project overview and flat selection. The scene and lobby retain their own layout. */
#selection{max-width:1600px;padding-top:calc(var(--header) + 32px)}
.project-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
.hero-copy{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:40px;align-items:center}
.project-identity{min-width:0}.hero-copy .eyebrow{margin-bottom:14px}
.hero-copy h1{font-size:clamp(38px,4.3vw,60px);max-width:none;margin-bottom:14px}
.hero-copy .intro-copy{font-size:16px;margin-bottom:8px}.hero-copy .primary{margin:0;border-radius:6px}
.source-scope{font-size:11px;color:var(--muted);line-height:1.5;margin-bottom:0;overflow-wrap:anywhere}
.hero-footnote{font-size:12px;line-height:1.65;color:var(--muted);margin:13px 0 0}
.project-art{margin:0;position:relative;border-radius:10px;overflow:hidden;min-height:340px;aspect-ratio:1.5;background:#dedfce}
.project-art img{display:block;width:100%;height:100%;position:absolute;object-fit:cover}.project-art figcaption{position:absolute;inset:auto 0 0;padding:30px 20px 14px;color:white;background:linear-gradient(transparent,#172c25b8);font-size:10px;line-height:1.4}
.art-placeholder{height:100%;min-height:340px;background:linear-gradient(145deg,#ced3bd,#849e8d);padding:40px;color:#fff9e9;display:flex;flex-direction:column;justify-content:space-between}.art-placeholder span{font:11px Georgia,serif;letter-spacing:.25em}.art-placeholder p{font:42px Georgia,serif;letter-spacing:-.04em;margin-top:70px}
.project-facts{display:grid;grid-template-columns:1.35fr repeat(4,1fr);gap:0;padding:28px 0;margin:38px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.project-fact{padding:0 24px;border-left:1px solid var(--line)}.project-fact:first-child{padding-left:0;border-left:0}.project-fact dt{font-size:12px;color:var(--muted);margin-bottom:12px}.project-fact dd{font:24px Georgia,serif;margin:0 0 8px}.project-fact small{font-size:10px;line-height:1.5;display:block;color:var(--muted)}
.layout-summary{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.layout-chip{border:1px solid #cbd2c6;border-radius:6px;background:#fffdf7;padding:15px 20px;font-size:13px;text-align:left;min-height:48px}.layout-chip:hover{border-color:#506e59;background:#e7ecdf}.muted{font-size:12px;color:var(--muted)}
.preview-note{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;background:#eeeee3;border-radius:6px;margin-top:28px}.preview-note strong{font-size:14px;font-weight:500}.preview-note p{font-size:12px;line-height:1.5;color:var(--muted);margin:5px 0 0}.preview-note .text-button{white-space:nowrap;color:#2e5542}
.inventory-heading{margin-top:25px}.inventory-heading h1{font-size:44px;margin-bottom:16px}.inventory-heading .eyebrow{margin-bottom:14px}
.inventory-filters{display:grid;grid-template-columns:1.4fr .8fr .8fr 1.3fr 1.2fr;gap:14px;padding:20px;background:#eceee3;border-radius:7px;margin-top:28px}.inventory-filters label{margin:0;font-size:11px}.inventory-filters select,.inventory-filters input{display:block;width:100%;height:46px;border:1px solid #cbd0c4;border-radius:4px;padding:8px 10px;background:#fffdf8;color:var(--ink);font-family:inherit;font-size:13px;margin-top:8px}
select:focus-visible{outline:3px solid #b49154;outline-offset:3px}.direction-note{font-size:11px;line-height:1.55;color:var(--muted);margin:12px 0 24px}.result-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.result-bar strong{font-size:14px;font-weight:500}
.inventory-table{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fffef8}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:500;background:#ecece2;color:#697668;padding:16px}td{padding:18px 16px;font-size:12px;border-top:1px solid #e6e7df}td:first-child{font-size:15px;font-weight:600;white-space:nowrap}.flat-button{border:1px solid #cbd3c5;background:transparent;border-radius:4px;font-size:12px;padding:10px 14px;min-height:42px;white-space:nowrap}.flat-button:hover{background:#edf2e7;border-color:#657f69}
.pagination{display:flex;align-items:center;justify-content:center;gap:24px;margin:24px 0;font-size:12px}.secondary{background:#fffdf7;border:1px solid #cbd3c5;border-radius:4px;padding:12px 18px}.empty-results{padding:38px;font-size:14px;line-height:1.65;margin:0}.flat-facts{margin:22px 0;border-top:1px solid var(--line)}.flat-facts div{display:grid;grid-template-columns:95px 1fr;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.flat-facts dt{color:var(--muted)}.flat-facts dd{margin:0;line-height:1.45}#flatDetails{max-width:550px}#flatDetails h2{margin-bottom:12px}.dialog-close{position:absolute;right:16px;top:12px;width:40px;height:40px;border:0;background:transparent;font-size:26px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.hero-copy{grid-template-columns:minmax(0,1fr) 240px;gap:24px}.project-art{min-height:310px}.project-fact{padding:0 15px}.project-fact dd{font-size:21px}.inventory-filters{grid-template-columns:repeat(3,1fr)}.search-filter{grid-column:span 2}td,th{padding:15px 10px}}
@media(max-width:650px){
 #selection{padding:calc(var(--header) + 24px) 20px 24px}.project-hero{gap:24px}.hero-copy{display:contents}.project-identity{order:0}.project-art{order:1;min-height:210px;aspect-ratio:1.6}.hero-actions{order:2}.hero-copy h1{font-size:38px;margin-bottom:12px}.hero-copy .eyebrow{font-size:9px;margin-bottom:12px}.hero-copy .intro-copy{font-size:14px}.hero-copy .primary{max-width:none;margin:0}.hero-footnote{font-size:11px}.art-placeholder{min-height:210px;padding:28px}.art-placeholder p{font-size:30px;margin-top:30px}
 .project-facts{grid-template-columns:1fr 1fr;margin-top:28px;padding:0;gap:0}.project-fact,.project-fact:first-child{padding:20px 14px;border-left:0;border-bottom:1px solid var(--line)}.project-fact:nth-child(odd){padding-left:0}.project-fact:last-child{grid-column:span 2;border:0}.project-fact dd{font-size:24px}.section-heading{align-items:start}.section-heading h2{font-size:27px}.section-heading .muted{max-width:80px;line-height:1.4;text-align:right}.layout-summary{gap:8px;margin-top:18px}.layout-chip{font-size:12px;padding:12px 15px}.preview-note{display:block;padding:20px}.preview-note .text-button{margin-top:10px;white-space:normal;text-align:left}.inventory-heading{gap:12px}.inventory-heading h1{font-size:34px}.inventory-heading .text-button{font-size:11px;text-align:right}.intro-copy{font-size:13px;line-height:1.6}
 .inventory-filters{grid-template-columns:1fr 1fr;gap:13px;padding:16px}.inventory-filters label:first-child,.search-filter{grid-column:span 2}.inventory-filters label:nth-child(4){grid-column:span 2}.inventory-filters select,.inventory-filters input{font-size:16px}.inventory-table{border:0;background:none}.inventory-table thead{display:none}.inventory-table table,.inventory-table tbody{display:block}.inventory-table tr{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#fffef8;border:1px solid var(--line);border-radius:7px;margin-bottom:14px;padding:20px}.inventory-table td{padding:0;border:0;font-size:13px;line-height:1.4}.inventory-table td::before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.inventory-table td:first-child{font-size:18px}.inventory-table td:last-child{grid-column:span 2}.flat-button{width:100%;font-size:13px;background:#e9eddf;border-color:#c4ccbc;min-height:46px}.pagination{gap:12px}.pagination .secondary{font-size:12px;padding:12px}.empty-results{padding:24px;background:#eeeee4;border-radius:5px}dialog{max-height:calc(100dvh - var(--header) - 30px);overflow:auto}#flatDetails h2{font-size:34px}
}
.layout-chip small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.project-header{flex-wrap:wrap}.flat-identity{flex-basis:100%;margin:0;font-size:11px;color:var(--muted);line-height:1.4}.project-header:has(.flat-identity:not([hidden])){row-gap:7px}
/* The gallery is the visual centre of the introduction. Depth belongs to the
   image cards, not to fabricated geometry or changes to the source images. */
.project-art.has-photos{overflow:visible;isolation:isolate;aspect-ratio:auto;min-height:0;background:none;padding-bottom:34px}
.project-art.has-photos::before{content:"";position:absolute;z-index:-1;inset:14px -9px 32px 12px;border-radius:18px;background:linear-gradient(135deg,#d8dacc,#c5cfc2);box-shadow:0 26px 56px -24px #273e3459}
.media-grid{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(0,1fr);gap:12px;height:clamp(400px,52dvh,620px)}
.media-grid.single{grid-template-columns:1fr}.media-side{display:grid;grid-auto-rows:1fr;gap:12px;min-height:0}
.media-tile{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #ffffff75;border-radius:12px;padding:0;background:#dfe4d5;box-shadow:0 5px 12px #20382b12,0 18px 36px -20px #172c2561;transition:transform .55s cubic-bezier(.2,.7,.2,1),box-shadow .55s ease}
.media-tile::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 1px #ffffff6b;background:linear-gradient(145deg,#ffffff0a,transparent 35%)}
.media-tile img{position:static;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .42s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.media-tile.ready img{opacity:1;animation:photo-arrive 2.2s cubic-bezier(.2,.65,.3,1) backwards}
.media-tile.media-plan img{object-fit:contain;background:#fff}.media-tile.media-plan.ready img{animation:none}
.media-tile.unavailable{font-size:12px;color:#566c5a}
.project-art.has-photos figcaption{inset:auto 0 0;padding:0;position:absolute;color:var(--muted);background:none;font-size:10px;line-height:1.5;max-height:30px;overflow:auto}
.see-photos{position:absolute;right:16px;bottom:50px;background:#fffcf4f5;border:1px solid #ffffffb3;border-radius:6px;padding:13px 16px;font-size:12px;box-shadow:0 2px 5px #0001,0 8px 24px #172c2533;min-height:44px}
#projectGallery{width:min(1000px,calc(100% - 32px));max-width:1000px;padding:26px;max-height:calc(100dvh - var(--header) - 24px);overflow:auto}
#projectGallery h2{font-size:28px;padding-right:40px}#projectGallery img{display:block;width:100%;max-height:60dvh;object-fit:contain;border-radius:5px;background:#eeeee5}
#projectGallery p{font-size:12px;margin:15px 0}#projectGallery nav{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
@keyframes photo-arrive{from{transform:scale(1.035)}to{transform:scale(1)}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .media-tile:not(.media-plan):hover{transform:perspective(1400px) translateY(-4px) rotateX(.6deg);box-shadow:0 8px 14px #20382b14,0 30px 48px -22px #172c2570}
 .media-tile:not(.media-plan):hover img{transform:scale(1.018)}
}
@media(max-width:650px){
 .media-grid{height:clamp(280px,42dvh,380px);grid-template-columns:1fr}.media-side{display:none}
 .project-art.has-photos{padding-bottom:40px}.project-art.has-photos::before{inset:10px -5px 38px 8px;border-radius:14px;box-shadow:0 16px 34px -18px #273e344d}
 .media-tile{border-radius:10px}.see-photos{right:12px;bottom:52px;font-size:11px;padding:11px 13px}
 #projectGallery{padding:20px}
}
@media(prefers-reduced-motion:reduce){.media-tile,.media-tile img{animation:none!important;transition:none!important;transform:none!important}}
