/* Page-scoped editorial layouts; existing dialogs and forms are unchanged. */
.portfolio-page,.contacts-page,.portfolio-detail{--editorial-surface:#f5f3f0;--editorial-line:#dedbd6}
.portfolio-page main,.contacts-page main,.portfolio-detail main{padding-bottom:40px}
.portfolio-opening{display:grid;grid-template-columns:.85fr 1.15fr;gap:40px;align-items:center;padding-top:24px;padding-bottom:32px}
.portfolio-opening .page-lead{padding:0;min-width:0}
.portfolio-opening .breadcrumbs{margin-bottom:24px;font-size:12px}
.portfolio-opening h1,.contacts-heading h1{font-size:clamp(34px,3.5vw,48px);font-weight:600;line-height:1.08;letter-spacing:-.045em;max-width:700px;text-wrap:balance}
.portfolio-opening .page-lead>p{font-size:15px;line-height:1.65;margin-top:20px;max-width:400px}
.portfolio-page .project-card{display:block;min-width:0;border:0;background:none;border-radius:0;overflow:visible}
.portfolio-page .project-card>img{width:100%;height:auto;aspect-ratio:1.5;max-height:300px;object-fit:cover!important;padding:0;border-radius:8px;background:var(--editorial-surface);transition:filter .2s}
.portfolio-page .project-card:hover>img{filter:brightness(.96)}
.portfolio-page .project-card>div{margin:0;padding:16px 0 0;border:0}
.portfolio-page .project-card .eyebrow{font-size:10px;letter-spacing:.16em;margin-bottom:12px;color:var(--accent)}
.portfolio-page .project-card h3{font-size:20px;font-weight:500;line-height:1.3;gap:12px;letter-spacing:-.025em}
.portfolio-page .project-card h3>span{width:40px;height:40px;flex:0 0 40px;border:1px solid var(--editorial-line);border-radius:50%;display:grid;place-items:center;font-size:21px;color:var(--accent);transition:background .2s,color .2s}
.portfolio-page .project-card:hover h3>span{background:var(--accent);border-color:var(--accent);color:#fff}
.portfolio-page .project-entry:hover .project-card h3>span{background:var(--accent);border-color:var(--accent);color:#fff}
.portfolio-page .project-card p{font-size:12px;margin-top:12px;color:var(--muted)}
.portfolio-page .portfolio-feature>img{aspect-ratio:1.7;max-height:300px}
.portfolio-page .portfolio-feature>div{display:grid;grid-template-columns:1fr auto;gap:0 24px}
.portfolio-page .portfolio-feature .eyebrow{grid-column:1/-1}
.portfolio-page .portfolio-feature p{margin-top:8px;white-space:nowrap}
.portfolio-page .portfolio-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px;padding-top:32px;padding-bottom:24px;position:relative}
.portfolio-page .portfolio-grid:before{content:"";position:absolute;top:0;left:64px;right:64px;border-top:1px solid var(--editorial-line)}
.portfolio-detail .page-lead{padding-top:24px;padding-bottom:24px}
.portfolio-detail .page-lead h1{font-size:clamp(30px,3vw,44px);line-height:1.12;max-width:880px;text-wrap:balance}
.portfolio-detail .project-article{padding-bottom:24px}
.portfolio-detail .project-article>.gallery{gap:24px;margin-top:24px}
.portfolio-detail .project-article .photo-button{height:auto;aspect-ratio:1.5;max-height:320px;border-radius:8px;background:var(--editorial-surface)}
.portfolio-detail .project-article .photo-button:first-child{grid-column:auto;aspect-ratio:1.5;max-height:320px}
.portfolio-detail .project-article .photo-button img{object-fit:cover!important;padding:0!important;width:100%;height:100%}
.portfolio-detail .photo-button>span,.contacts-page .photo-button>span{width:40px;height:40px;right:16px;bottom:16px;border-radius:50%;font-size:20px}
.contacts-page .contacts-heading{padding-top:16px;padding-bottom:20px}
.contacts-heading .breadcrumbs{padding-top:0;margin-bottom:16px;font-size:12px}
.contacts-heading>p{max-width:640px;font-size:15px;line-height:1.6;margin-top:16px}
.contacts-page .contact-grid{grid-template-columns:1fr 1fr;gap:24px;padding-top:0;padding-bottom:0;align-items:stretch}
.contacts-direct{padding:28px;background:var(--editorial-surface);border:1px solid var(--editorial-line);border-radius:8px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.contacts-direct>.eyebrow{font-size:11px;color:var(--accent);margin-bottom:24px}
.contacts-page .contact-phone{font-size:clamp(24px,2.4vw,32px);font-weight:600;letter-spacing:-.04em;line-height:1.3;white-space:nowrap}
.contacts-page .contact-email{font-size:19px;line-height:1.5;margin:12px 0 0;border-bottom:1px solid var(--accent);padding-bottom:4px}
.contacts-direct>p{font-size:14px;margin-top:24px;color:var(--ink)}
.contacts-page .contact-buttons{width:100%;margin-top:0;padding-top:32px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.contacts-page .contact-buttons>.button{justify-content:center;gap:8px;border-radius:4px;min-height:56px;font-size:14px;background:transparent;border-color:var(--editorial-line);color:var(--ink);padding:16px}
.contacts-page .contact-buttons>.button:last-child{grid-column:1/-1;background:var(--accent);border-color:var(--accent);color:#fff}
.contacts-page .contact-buttons>.button:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.contacts-page .contact-buttons>.button:last-child:hover{background:#571522;border-color:#571522}
.contacts-showroom{min-width:0;display:flex;flex-direction:column}
.contacts-page .contacts-office-photo{height:180px;width:100%;border-radius:8px 8px 0 0;background:var(--editorial-surface)}
.contacts-page .contacts-office-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.contacts-address{padding:24px;border:1px solid var(--editorial-line);border-top:0;border-radius:0 0 8px 8px;flex:1}
.contacts-address>.eyebrow{font-size:10px;letter-spacing:.16em;margin-bottom:16px;color:var(--accent)}
.contacts-page .contacts-address h2{font-size:26px;font-weight:500;line-height:1.2}
.contacts-page .contacts-address p{font-size:14px;line-height:1.6;margin-top:14px;max-width:480px}
.contacts-page .contacts-address .underlink{margin-top:12px;min-height:44px;display:inline-flex;align-items:center;font-size:14px}
.contacts-page .contacts-documents{padding-top:32px;padding-bottom:0}
.contacts-page .contacts-document-gallery{display:flex;justify-content:flex-start;margin:0;padding:24px 0 0;border-top:1px solid var(--editorial-line)}
.contacts-page .contacts-document-gallery .photo-button{width:140px;height:190px;background:var(--editorial-surface);padding:12px;border:1px solid var(--editorial-line);border-radius:4px}
.contacts-page .contacts-document-gallery .photo-button img{height:100%;width:100%;object-fit:contain}
.contacts-page .contacts-document-gallery .photo-button>span{width:28px;height:28px;right:8px;bottom:8px;font-size:16px}
@media(max-width:1150px){.portfolio-opening{gap:32px}.portfolio-page .portfolio-grid:before{left:32px;right:32px}.contacts-direct{padding:24px}.contacts-page .contact-phone{font-size:26px}}
@media(max-width:900px){.portfolio-opening{grid-template-columns:1fr;gap:24px}.portfolio-opening .breadcrumbs{margin-bottom:20px}.portfolio-opening .page-lead>p{max-width:600px}.portfolio-page .portfolio-feature>img{aspect-ratio:1.8;max-height:300px}.portfolio-page .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contacts-page .contact-grid{grid-template-columns:1fr}.contacts-page .contact-phone{font-size:30px}.contacts-page .contact-buttons{padding-top:24px}.contacts-page .contacts-office-photo{height:220px}.contacts-address{padding:24px}.contacts-page main{padding-bottom:32px}}
@media(max-width:600px){.portfolio-page main,.portfolio-detail main{padding-bottom:40px}.portfolio-opening{padding-top:24px;padding-bottom:40px;gap:32px}.portfolio-opening h1,.contacts-heading h1{font-size:clamp(34px,9vw,48px)}.portfolio-opening .page-lead>p,.contacts-heading>p{font-size:15px;margin-top:24px;line-height:1.7}.portfolio-page .portfolio-feature>img{aspect-ratio:1.3}.portfolio-page .project-card>div{padding-top:20px}.portfolio-page .project-card h3{font-size:22px;line-height:1.3}.portfolio-page .portfolio-feature>div{display:block}.portfolio-page .portfolio-feature p{margin-top:12px}.portfolio-page .portfolio-grid{grid-template-columns:1fr;gap:40px;padding-top:40px}.portfolio-page .portfolio-grid:before{left:22px;right:22px}.portfolio-page .portfolio-grid .project-card:nth-child(5n+3){grid-column:auto}.portfolio-page .portfolio-grid .project-card:nth-child(5n+3)>img,.portfolio-page .project-card>img{aspect-ratio:1.3;max-height:none}.portfolio-detail .page-lead{padding-top:24px;padding-bottom:24px}.portfolio-detail .page-lead h1{font-size:34px}.portfolio-detail .project-article>.gallery{grid-template-columns:1fr;gap:16px}.portfolio-detail .project-article .photo-button:first-child,.portfolio-detail .project-article .photo-button{aspect-ratio:1.3;grid-column:auto}.contacts-page .contacts-heading{padding-top:24px;padding-bottom:32px}.contacts-page .contact-grid{gap:24px;padding-top:0}.contacts-direct{padding:24px;min-height:340px}.contacts-direct>.eyebrow{margin-bottom:32px;font-size:10px}.contacts-page .contact-phone{font-size:clamp(22px,6.2vw,32px)}.contacts-page .contact-email{font-size:19px}.contacts-direct>p{font-size:13px;margin-top:24px}.contacts-page .contact-buttons{padding-top:32px;gap:8px}.contacts-page .contact-buttons>.button{font-size:13px;padding:12px}.contacts-page .contacts-office-photo{aspect-ratio:1.4}.contacts-address{padding:24px}.contacts-page .contacts-address h2{font-size:28px}.contacts-page .contacts-address p{font-size:14px}.contacts-page .contacts-documents{padding-top:24px}}
@media(prefers-reduced-motion:reduce){.portfolio-page .project-card>img,.portfolio-page .project-card h3>span{transition:none}}
.contacts-page .contacts-direct .contact-buttons{margin-top:auto}
.contacts-page .contacts-map{padding-top:32px}
.contacts-map iframe{display:block;width:100%;height:360px;border:1px solid var(--editorial-line);border-radius:8px}
.portfolio-detail .project-article>p{font-size:14px;line-height:1.65;margin:0 0 12px;max-width:850px}
.portfolio-detail .project-article>.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.portfolio-detail .project-description{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;padding:24px;background:var(--editorial-surface);border-radius:8px;margin-bottom:24px}
.portfolio-detail .project-description>p{font-size:17px;line-height:1.65;color:var(--ink);margin:0}
.portfolio-detail .project-description-notes{border-left:2px solid var(--accent);padding-left:24px}
.portfolio-detail .project-description-notes p{font-size:14px;line-height:1.65;margin:0 0 12px}
.portfolio-detail .project-description-notes p:last-child{margin-bottom:0}
.project-entry{position:relative;min-width:0}
.project-slide{position:absolute;top:80px;left:10px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none;padding:0;z-index:1}
.project-slide[data-project-direction="1"]{left:auto;right:10px}
.project-slide:hover{background:transparent;color:#fff}
.project-slide svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #000) drop-shadow(0 0 3px #0009)}
.portfolio-opening .project-slide{top:128px}
@media(max-width:900px){.portfolio-detail .project-article>.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.contacts-map iframe{height:300px}}
@media(max-width:600px){.portfolio-detail .project-article>.gallery{grid-template-columns:1fr}.portfolio-detail .project-description{grid-template-columns:1fr;gap:20px;padding:20px}.portfolio-detail .project-description>p{font-size:15px}.portfolio-detail .project-description-notes{padding-left:16px}.contacts-map iframe{height:280px}}
@media(max-width:600px){.contacts-page .contacts-direct{min-height:0}.contacts-page .contacts-heading{padding-bottom:24px}.contacts-page .contacts-heading h1{font-size:32px}.portfolio-page .portfolio-grid .project-card>img{max-height:280px}.portfolio-page .portfolio-feature>img{max-height:280px}.portfolio-detail .project-article .photo-button:first-child{max-height:300px}}
