.theme-gallery .top-header{position:absolute}.header-contact{font:inherit;cursor:pointer}.theme-gallery .header-actions{padding:4px;border:1px solid #e2e5e6;border-radius:999px;display:flex;gap:3px;align-items:center;background:#f6f7f7}.admin-entry,.theme-gallery .header-actions .header-contact{min-height:34px;padding:0 16px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;letter-spacing:-.02em;white-space:nowrap;transition:background .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s}.admin-entry{border:0;background:transparent;color:#62686a}.admin-entry:hover{background:#fff;color:var(--text);box-shadow:0 2px 8px rgba(24,27,28,.08)}.theme-gallery .header-actions .header-contact{padding-right:18px;padding-left:18px;border-color:#173bb7;background:#173bb7;color:#fff;box-shadow:0 4px 12px rgba(23,59,183,.2)}.theme-gallery .header-actions .header-contact:hover{opacity:1;background:#102d96;box-shadow:0 6px 16px rgba(23,59,183,.28);transform:translateY(-1px)}.theme-gallery .estimate{grid-template-columns:1fr;gap:54px}.theme-gallery .estimate-intro{max-width:760px}.theme-gallery .area-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.theme-gallery .estimate-tool .area-options button{min-width:0;min-height:64px;height:64px;padding:0 12px;border:1px solid rgba(255,255,255,.24);display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.025);color:rgba(255,255,255,.74);box-shadow:inset 0 0 0 1px transparent;transition:background .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s}.theme-gallery .estimate-tool .area-options button b{height:100%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;line-height:1;text-align:center;white-space:nowrap}.theme-gallery .estimate-tool .area-options button:hover{border-color:rgba(255,255,255,.72);background:rgba(255,255,255,.07);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);transform:translateY(-2px)}.theme-gallery .estimate-tool .area-options button.selected,.theme-gallery .estimate-tool .area-options button.selected:hover{border-color:var(--accent);background:var(--accent);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);transform:none}

.subpage-main{padding-top:var(--header-h)}.subpage-hero{min-height:390px;padding:95px 5vw 70px;display:grid;grid-template-columns:1fr 1fr;gap:8vw;align-items:end;border-bottom:1px solid var(--line)}.subpage-hero h1{font-family:var(--serif);font-size:clamp(50px,6vw,86px);font-weight:400;line-height:1.17;letter-spacing:-.055em}.subpage-hero p{max-width:480px;padding-bottom:10px;color:var(--muted);font-size:13px;line-height:1.9}.subpage-nav-active{color:var(--text)!important;font-weight:600}

.portfolio-page{padding:70px 5vw 130px}.portfolio-entry{padding:54px 0;border-top:1px solid var(--text);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:5vw;align-items:start}.portfolio-entry:first-child{padding-top:0;border-top:0}.portfolio-entry img{height:clamp(420px,48vw,700px);object-fit:cover}.portfolio-entry-copy{position:sticky;top:35px;padding-top:8px}.portfolio-entry-copy>span{color:var(--accent);font-size:10px}.portfolio-entry-copy h2{margin-top:22px;font-family:var(--serif);font-size:clamp(34px,3.5vw,54px);font-weight:400;line-height:1.3;letter-spacing:-.045em}.portfolio-entry-copy>p{margin-top:20px;color:var(--muted);font-size:12px;line-height:1.85}.portfolio-entry-copy dl{margin:35px 0 0;border-top:1px solid var(--line)}.portfolio-entry-copy dl div{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:10px}.portfolio-entry-copy dt{color:var(--muted)}.portfolio-entry-copy dd{margin:0}.portfolio-entry:nth-child(even){grid-template-columns:minmax(280px,.55fr) minmax(0,1.45fr)}.portfolio-entry:nth-child(even) figure{grid-column:2}.portfolio-entry:nth-child(even) .portfolio-entry-copy{grid-column:1;grid-row:1}

.estimate-page{background:var(--text)}.estimate-page .estimate{padding-top:95px;min-height:calc(100vh - var(--header-h));background:var(--text)}.estimate-page .estimate-intro h1{font-family:var(--serif);font-size:clamp(48px,5vw,76px);font-weight:400;line-height:1.2;letter-spacing:-.055em}.estimate-page .estimate-intro p{margin-top:24px;color:var(--estimate-muted);font-size:12px;line-height:1.8}

.page-contact{padding:80px 5vw;display:flex;justify-content:space-between;gap:40px;align-items:center;background:var(--surface)}.page-contact h2{font-family:var(--serif);font-size:clamp(32px,4vw,54px);font-weight:400;letter-spacing:-.045em}.page-contact-actions{display:flex;gap:10px;align-items:center}.page-contact-actions button,.page-contact-actions a{min-height:48px;padding:0 24px;border:1px solid var(--accent);display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer;transition:opacity .2s}.page-contact-actions button{background:var(--accent);color:var(--on-accent)}.page-contact-actions a{background:transparent;color:var(--accent)}.page-contact-actions button:hover,.page-contact-actions a:hover{opacity:.74}

.contact-dialog{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--text)}.contact-dialog::backdrop{background:rgba(13,16,17,.68)}.contact-shell{position:absolute;top:0;right:0;width:min(620px,100%);height:100%;padding:36px clamp(24px,5vw,62px);overflow-y:auto;background:#fff;box-shadow:-20px 0 60px rgba(0,0,0,.16)}.contact-close{margin-left:auto;padding:8px 0;border:0;border-bottom:1px solid currentColor;display:block;background:transparent;color:var(--muted);font:inherit;font-size:10px;cursor:pointer}.contact-heading{margin-top:55px}.contact-heading span{color:var(--accent);font-size:9px}.contact-heading h2{margin-top:18px;font-family:var(--serif);font-size:clamp(38px,6vw,60px);font-weight:400;line-height:1.25;letter-spacing:-.05em}.contact-heading p{margin-top:18px;color:var(--muted);font-size:11px;line-height:1.75}.inquiry-form{margin-top:45px}.inquiry-form label{padding:18px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:125px 1fr;gap:20px;align-items:center}.inquiry-form label>span,.area-field>span{font-size:10px}.inquiry-form input{width:100%;height:42px;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:13px;outline:0}.inquiry-form input:focus{border-color:var(--accent)}.inquiry-form input::placeholder{color:#a7aaab}.area-field{padding:18px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:125px 1fr;gap:20px;align-items:start}.contact-area-options{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.contact-area-options button{min-width:0;min-height:43px;padding:4px;border:1px solid var(--line);background:#fff;color:var(--muted);font:inherit;font-size:9px;cursor:pointer}.contact-area-options button:hover,.contact-area-options button.selected{border-color:var(--accent);background:var(--accent);color:#fff}.privacy-note{margin-top:15px;color:var(--muted);font-size:9px;line-height:1.7}.contact-turnstile{min-height:65px;margin-top:18px}.inquiry-submit{width:100%;min-height:54px;margin-top:16px;border:1px solid var(--accent);background:var(--accent);color:#fff;font:inherit;font-size:11px;cursor:pointer}.inquiry-submit:disabled{opacity:.5;cursor:wait}.inquiry-status{min-height:20px;margin-top:13px;font-size:10px;line-height:1.6}.inquiry-status.success{color:#17653b}.inquiry-status.error{color:#a33a2d}.honey{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

@media(max-width:900px){.subpage-hero{grid-template-columns:1fr;gap:28px}.portfolio-entry,.portfolio-entry:nth-child(even){grid-template-columns:1fr}.portfolio-entry:nth-child(even) figure,.portfolio-entry:nth-child(even) .portfolio-entry-copy{grid-column:1;grid-row:auto}.portfolio-entry-copy{position:static}.portfolio-entry img{height:62vw;min-height:360px}.page-contact{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.theme-gallery .header-actions{padding:3px;gap:2px}.admin-entry,.theme-gallery .header-actions .header-contact{min-height:32px;padding:0 10px;font-size:9px}.subpage-hero{min-height:350px;padding:70px 20px 50px}.portfolio-page{padding:45px 20px 90px}.portfolio-entry{padding:42px 0}.portfolio-entry img{height:75vw;min-height:280px}.estimate-page .estimate{padding-top:70px}.page-contact{padding:60px 20px}.page-contact-actions{width:100%;flex-wrap:wrap}.page-contact-actions button,.page-contact-actions a{flex:1 1 150px}.contact-shell{padding:24px 20px}.contact-heading{margin-top:32px}.contact-heading h2{font-size:42px}.inquiry-form{margin-top:34px}.inquiry-form label,.area-field{grid-template-columns:1fr;gap:10px}.contact-area-options{grid-template-columns:repeat(5,minmax(0,1fr))}.contact-area-options button{font-size:8px;padding:3px}.contact-turnstile{overflow:hidden}}

/* Shared feature parity for design variants 2 and 3 */
.theme-graphite .header-actions,
.theme-graphite .header-actions .header-contact{display:flex}
.theme-graphite .estimate,
.theme-sage .estimate{grid-template-columns:1fr;gap:54px}
.theme-graphite .service-list,
.theme-sage .service-list{grid-template-columns:repeat(4,minmax(0,1fr))}
.theme-graphite .estimate-intro,
.theme-sage .estimate-intro{max-width:760px}
.theme-graphite .area-options,
.theme-sage .area-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.theme-graphite .estimate-tool .area-options button,
.theme-sage .estimate-tool .area-options button{min-width:0;min-height:64px;height:64px;padding:0 12px;border:1px solid var(--estimate-line);display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.025);color:rgba(255,255,255,.74);box-shadow:inset 0 0 0 1px transparent;transition:background .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s}
.theme-graphite .estimate-tool .area-options button b,
.theme-sage .estimate-tool .area-options button b{height:100%;display:flex;align-items:center;justify-content:center;font-family:var(--sans);font-size:13px;font-weight:500;line-height:1;text-align:center;white-space:nowrap}
.theme-graphite .estimate-tool .area-options button:hover,
.theme-sage .estimate-tool .area-options button:hover{border-color:rgba(255,255,255,.72);background:rgba(255,255,255,.07);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);transform:translateY(-2px)}
.theme-graphite .estimate-tool .area-options button.selected,
.theme-graphite .estimate-tool .area-options button.selected:hover,
.theme-sage .estimate-tool .area-options button.selected,
.theme-sage .estimate-tool .area-options button.selected:hover{border-color:var(--accent);background:var(--accent);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);transform:none}

.side-contact,.mobile-header button{min-height:40px;padding:0;border:1px solid var(--accent);display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;font:inherit;font-size:10px;cursor:pointer}
.side-contact:hover,.mobile-header button:hover{opacity:.76}
.theme-sage .subpage-main{padding-top:0}
.theme-sage .subpage-hero{background:#fcfdfc}
.theme-sage .portfolio-page{background:#fcfdfc}
.theme-sage .page-contact{background:#eef3ef}

.theme-graphite .estimate-page{background:#242825}
.theme-graphite .estimate-page .estimate{background:#242825}
.theme-sage .estimate-page{background:#173128}
.theme-sage .estimate-page .estimate{background:#173128}
.theme-graphite .subpage-nav-active{color:#fff!important}

.theme-graphite .contact-shell{background:#1d211f;color:#f4f4ef}
.theme-graphite .contact-area-options button{border-color:#484d49;background:#1d211f;color:#a5a59e}
.theme-graphite .inquiry-form input{color:#f4f4ef}
.theme-graphite .inquiry-form input::placeholder{color:#777c78}
.theme-sage .contact-shell{background:#f7faf8;color:#173128}
.theme-sage .contact-area-options button{background:#f7faf8}

@media(max-width:900px){
    .theme-graphite .header-actions .header-contact{display:inline-flex}
    .theme-sage .subpage-main{padding-top:68px}
    .mobile-header button{min-height:36px;padding:0 14px}
    .theme-graphite .service-list,
    .theme-sage .service-list{grid-template-columns:repeat(2,minmax(0,1fr))}
    .theme-graphite .service-list article,
    .theme-sage .service-list article{border-bottom:1px solid var(--line)}
    .theme-graphite .service-list article:nth-child(2),
    .theme-sage .service-list article:nth-child(2){border-right:0}
    .theme-graphite .service-list article:nth-child(n+3),
    .theme-sage .service-list article:nth-child(n+3){border-bottom:0}
}
@media(max-width:620px){
    .theme-graphite .header-contact{min-height:36px;padding:0 13px}
    .theme-graphite .estimate-tool .area-options button,
    .theme-sage .estimate-tool .area-options button{min-height:54px;height:54px;padding:0 4px}
    .theme-graphite .estimate-tool .area-options button b,
    .theme-sage .estimate-tool .area-options button b{font-size:10px}
    .theme-graphite .service-list,
    .theme-sage .service-list{grid-template-columns:1fr}
    .theme-graphite .service-list article,
    .theme-graphite .service-list article:nth-child(n+3),
    .theme-sage .service-list article,
    .theme-sage .service-list article:nth-child(n+3){border-right:0;border-bottom:1px solid var(--line)}
    .theme-graphite .service-list article:last-child,
    .theme-sage .service-list article:last-child{border-bottom:0}
}
