.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.projects-home .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.project-card{display:block;color:var(--ink);text-decoration:none;background:var(--white);border:1px solid var(--line);transition:box-shadow .16s ease,transform .16s ease;min-width:0}
.project-card:hover{color:var(--ink);box-shadow:0 .6rem 1rem #3e210e18;transform:translateY(-.1rem)}
.project-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:var(--line)}
.project-thumbs>div{position:relative;min-width:0}
.project-thumbs img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:50% 55%}
.project-thumbs span{position:absolute;bottom:.4rem;left:.4rem;background:var(--white);padding:.12rem .45rem;border-radius:.9rem;font-size:.75rem;font-weight:700}
.project-card-copy{padding:.75rem .9rem}
.project-card-copy strong,.project-tools strong{display:block;font:600 clamp(1.21rem,2.4vw,1.63rem)/1.13 var(--serif)}
.project-card-copy p,.project-tools p{margin:.4rem 0 0;color:var(--muted);font-size:.92rem}
.project-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}
.project-tools>a{background:var(--white);border-top:3px solid var(--rust);padding:1rem;min-width:0;text-decoration:none}
.project-tools>a:hover strong{text-decoration:underline}
.project-home-link{color:var(--rust-dark);font-weight:750}
.project-home-link:hover{color:var(--rust)}
.project-split{display:grid;grid-template-columns:minmax(0,31rem) minmax(0,1fr);gap:clamp(1rem,3vw,2.4rem);align-items:start;margin:1.35rem 0 2.25rem}
.project-compare .compare-frame{min-height:0;aspect-ratio:3/4}
.project-compare .compare-frame img{object-position:center}
.project-dot{position:absolute;z-index:2;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:44px;height:44px;border:2px solid #fff4e3;background:var(--rust-dark);color:#fff;border-radius:50%;font-weight:800;box-shadow:0 2px 6px #23151280}
.project-dot[aria-pressed=true]{background:#fff8e9;color:#45271d;border-color:#57281d}
.project-dot:focus-visible{outline:2px solid black;outline-offset:3px}
.project-points{background:var(--white);border:1px solid var(--line);border-top:3px solid var(--rust);padding:clamp(.8rem,3vw,1.55rem)}
.project-points h2{font-size:clamp(1.65rem,3.8vw,2.8rem)}
.project-points p{color:var(--muted)}
.point-buttons{display:flex;flex-wrap:wrap;gap:.45rem}
.point-buttons button{min-height:44px;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:1.5rem;padding:.38rem .72rem;font-weight:700}
.point-buttons button[aria-pressed=true]{border-color:var(--rust);background:#f0e2d4;color:var(--rust-dark)}
.spot-detail{margin-top:1rem}
.spot-detail h3{margin:0 0 .4rem}
.spot-detail p{margin:0}
.interactive-tool{padding:clamp(.7rem,2vw,1.25rem);max-width:69rem;background:var(--white);border:1px solid var(--line);border-top:3px solid var(--rust);margin:1rem 0 2rem}
.plan-controls,.finishes-controls{display:flex;align-items:end;gap:.65rem .85rem;flex-wrap:wrap}
.plan-controls label,.finishes-controls label,.estimate-line label{display:flex;flex-direction:column;justify-content:space-between;gap:.3rem;font-weight:650;font-size:.89rem;min-width:0}
.plan-controls label,.finishes-controls label{flex:1 1 11rem;max-width:22rem}
.plan-controls select,.finishes-controls select,.estimate-line input{box-sizing:border-box;width:100%;min-height:44px;background:white;color:var(--ink);border:1px solid #a48f7c;padding:.45rem .48rem;font:inherit;font-size:1rem}
.plan-result{margin-top:1.2rem}
.plan-result ol{padding-left:1.4rem}
.plan-result li{margin-bottom:.55rem}
.plan-result .links{display:flex;flex-wrap:wrap;gap:.15rem .8rem}
.finishes-controls{padding:.8rem;background:var(--white);border:1px solid var(--line)}
.finishes-controls output{color:var(--muted);padding:.5rem .3rem}
.finish-table th:first-child{min-width:9rem}
.finish-guide{display:block;margin-top:.38rem;font-weight:500;color:var(--rust-dark);overflow-wrap:anywhere}
.estimate-labels,.estimate-line{display:grid;grid-template-columns:minmax(9rem,2fr) minmax(4rem,.6fr) minmax(6rem,.8fr) minmax(6rem,.8fr) minmax(7rem,.9fr) 4.7rem;align-items:center;gap:.55rem}
.estimate-labels{font-size:.83rem;color:var(--muted);font-weight:700}
.estimate-line{padding:.5rem 0;border-bottom:1px solid var(--line)}
.estimate-line label span{display:none}
.estimate-line input[aria-invalid=true]{border:2px solid var(--rust)}
.estimate-remove{border:1px solid var(--line);color:var(--rust-dark);background:var(--white);min-height:44px;padding:.3rem .25rem;font-size:.84rem;font-weight:700}
.estimate-remove:hover{background:#eadbc9}
.estimate-amount{font-weight:700;overflow-wrap:anywhere}
.estimate-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:.85rem 0}
.estimate-actions button:disabled{opacity:.55;cursor:default}
.estimate-hint,.estimate-validation{font-size:.88rem;color:var(--muted);margin:.4rem 0}
.estimate-validation:empty{display:none}
.estimate-total{display:block;font-size:1.13rem;font-weight:800;color:var(--rust-dark);overflow-wrap:anywhere}
@media(max-width:54rem){
 .estimate-labels{display:none}
 .estimate-line{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:.55rem .65rem}
 .estimate-line label:nth-child(1){grid-column:span 3}
 .estimate-line label span{display:block}
}
@media(max-width:41rem){
 .project-split{grid-template-columns:minmax(0,1fr)}
 .project-tools,.projects-home .project-grid{grid-template-columns:minmax(0,1fr)}
 .project-grid{gap:.65rem}
 .estimate-line{grid-template-columns:repeat(2,minmax(0,1fr))}
 .estimate-line label:nth-child(1){grid-column:1/-1}
 .table-wrap:has(.finish-table){overflow:visible}
 .finish-table,.finish-table tbody,.finish-table tr,.finish-table th,.finish-table td{display:block;width:100%}
 .finish-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .finish-table tbody tr:not([hidden]){margin-bottom:.85rem}
 .finish-table tbody td{border-top:0}
 .finish-table tbody td::before{content:attr(data-label);display:block;font-weight:750;color:var(--rust-dark)}
}
@media(max-width:27rem){.project-grid{grid-template-columns:minmax(0,1fr)}}
