/* P04.06 — full homepage. Rules are scoped away from the approved story. */
.home-layout {--home-gutter:max(20px,8%)}
.home-layout .content-section {
  --section-ink:var(--dm-ink);
  --section-muted:var(--dm-muted);
  --section-line:var(--dm-line);
  --section-accent:var(--dm-copper);
  --section-focus:var(--dm-focus-light);
  padding:88px var(--home-gutter);
  color:var(--section-ink);
  background:var(--dm-paper);
  color-scheme:light;
  font:400 var(--dm-body)/1.65 var(--dm-font);
}
.home-layout .section-inner {width:100%;max-width:var(--dm-container);margin-inline:auto;min-width:0}
.home-layout .content-section * {min-width:0}
.home-layout .content-section :is(h2,h3,p) {overflow-wrap:anywhere}
.home-layout .content-section h2 {font-size:var(--dm-heading);font-weight:600;letter-spacing:-.045em;line-height:1.08;margin:0}
.home-layout .content-section h2 em {color:var(--section-muted);font-style:normal}
.home-layout .content-section h3 {font-size:var(--dm-subheading);font-weight:600;line-height:1.23;letter-spacing:-.025em;margin:0}
.home-layout .content-section p {line-height:1.65}
.home-layout .section-kicker {padding-top:20px;border-top:1px solid var(--section-line);gap:24px;font-size:11px;font-weight:600;letter-spacing:1.5px;line-height:1.6;color:var(--section-muted)}
.home-layout .section-kicker>span:last-child {text-align:right}
.home-layout .section-anchor {scroll-margin-top:0}
.home-layout .content-section:focus {outline:none}
.home-layout .content-section :is(a,summary):focus-visible {outline:3px solid var(--section-focus);outline-offset:5px}
.home-layout .content-section .text-link {display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-height:52px;max-width:100%;padding:12px 0;color:var(--section-accent);border-bottom:1px solid currentColor;font-size:15px;line-height:1.5;font-weight:600;white-space:normal;transition:color var(--dm-duration),background var(--dm-duration)}
.home-layout .text-link span {flex-shrink:0;font-size:22px;margin:0;color:inherit}
.home-layout .content-section .text-link:hover {color:var(--section-ink)}
.home-layout .scope-heading,.home-layout .section-heading {display:grid;grid-template-columns:1.2fr 1fr;align-items:end;gap:8%;margin:64px 0 56px}
.home-layout .scope-heading>p,.home-layout .section-heading>p {font-size:18px;line-height:1.65;max-width:500px;margin:0;color:var(--section-ink)}
.home-layout .scope-rows {border-top:1px solid var(--section-line)}
.home-layout .scope-rows article {grid-template-columns:64px 1.08fr 1fr;gap:32px;padding:36px 0;border-bottom:1px solid var(--section-line)}
.home-layout .scope-number {font-size:12px;font-variant-numeric:tabular-nums;font-weight:600;padding-top:5px;color:var(--section-accent)}
.home-layout .scope-rows p {font-size:16px;line-height:1.75;color:var(--section-muted);margin:0;max-width:500px}
.home-layout .scope-bottom {display:flex;align-items:center;justify-content:space-between;gap:40px;margin-top:32px}
.home-layout .scope-bottom p {font-size:15px;color:var(--section-muted);margin:0}

/* The estimate is a single dark working brief, with no decorative card stack. */
.home-layout .estimate,.home-layout .contact-section {
  --section-ink:var(--dm-paper);
  --section-muted:var(--dm-on-dark-muted);
  --section-line:#454a40;
  --section-accent:var(--dm-orange-hover);
  --section-focus:var(--dm-focus-dark);
  background:var(--dm-ink);color:var(--section-ink);color-scheme:dark;
}
.home-layout .estimate .section-heading {grid-template-columns:1.5fr 1fr;gap:8%;margin-bottom:64px}
.home-layout .estimate .section-heading>p {max-width:390px;color:var(--section-muted)}
.home-layout .estimate-inputs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;padding:0;margin:0;list-style:none}
.home-layout .estimate-inputs li {position:relative;border-top:1px solid var(--section-line);padding:28px 0 0}
.home-layout .estimate-inputs li::before {content:'';position:absolute;top:-2px;left:0;width:24px;height:3px;background:var(--dm-orange)}
.home-layout .estimate-inputs li>span {color:var(--section-accent);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.home-layout .estimate-inputs h3 {font-size:23px;margin:24px 0 16px}
.home-layout .estimate-inputs p {font-size:16px;line-height:1.65;margin:0;color:var(--section-muted);max-width:280px}
.home-layout .proposal-result {display:grid;grid-template-columns:1fr auto;gap:24px 48px;border-top:1px solid var(--section-line);margin-top:64px;padding-top:32px;align-items:end}
.home-layout .proposal-result>span {grid-column:1/-1;color:var(--section-muted);font-size:11px;font-weight:600;letter-spacing:1.5px}
.home-layout .proposal-result>p {font-size:clamp(23px,2.6vw,36px);font-weight:400;line-height:1.35;letter-spacing:-.025em;margin:0;max-width:730px}
.home-layout .proposal-result>p br {display:none}
.home-layout .proposal-result>.text-link {grid-column:2;justify-self:end;font-size:14px;align-self:end;margin-bottom:4px;max-width:310px}

.home-layout .faq {background:var(--dm-surface)}
.home-layout .faq-layout {display:grid;grid-template-columns:1fr 1.35fr;gap:10%;margin:64px 0 0}
.home-layout .faq-items details {border-bottom:1px solid var(--section-line);padding:28px 0}
.home-layout .faq-items details:first-child {padding-top:0}
.home-layout .faq-items summary {font-size:22px;font-weight:600;letter-spacing:-.02em;line-height:1.35;padding:0 48px 0 0;min-height:48px;display:flex;align-items:center}
.home-layout .faq-items summary::after {top:5px;color:var(--section-accent);font-size:26px;font-weight:400}
.home-layout .faq-items p {color:var(--section-muted);font-size:16px;line-height:1.75;margin:16px 48px 0 0;max-width:640px}

.home-layout .contact-section {padding-bottom:24px;min-height:0}
.home-layout .contact-layout {display:grid;grid-template-columns:1.1fr 1fr;gap:12%;margin:64px 0 80px}
.home-layout .contact-layout .eyebrow {font-size:11px;letter-spacing:1.5px;color:var(--section-muted);margin:0 0 24px}
.home-layout .contact-layout h2 {font-size:clamp(42px,5.2vw,72px)}
.home-layout .contact-layout>div>p:last-child {font-size:18px;line-height:1.65;color:var(--section-muted);max-width:365px;margin-top:28px}
.home-layout .contact-preview {max-width:none;width:100%;padding-top:2px}
.home-layout .contact-preview label {font-size:15px;font-weight:600;margin-bottom:12px}
.home-layout .contact-preview label span {font-size:13px;font-weight:400;color:var(--section-muted)}
.home-layout .contact-preview :is(input,textarea) {font:400 16px/1.6 var(--dm-font);padding:16px;border:1px solid #849075;color:var(--dm-paper);background:transparent;border-radius:0;opacity:1;width:100%;margin:0 0 24px;-webkit-text-fill-color:var(--dm-paper)}
.home-layout .contact-preview :is(input,textarea)::placeholder {font:400 16px/1.6 var(--dm-font);color:var(--dm-on-dark-muted);-webkit-text-fill-color:var(--dm-on-dark-muted);opacity:1}
.home-layout .contact-preview button {font:600 15px/1.4 var(--dm-font);background:#454a40;color:var(--dm-paper);min-height:56px;padding:16px 20px;gap:16px;opacity:1;cursor:not-allowed}
.home-layout .contact-preview button span {font-size:20px;flex-shrink:0}
.home-layout .contact-preview .preview-note {font-size:13px;line-height:1.6;margin:16px 0 0;color:var(--section-muted);max-width:none}
.home-layout .contact-section footer {border-top:1px solid var(--section-line);padding-top:24px;gap:24px;font-size:12px;line-height:1.5;color:var(--section-muted)}
.home-layout .contact-section footer>span:first-child {font-size:18px;color:var(--dm-paper)}
.home-layout .contact-section footer a {display:inline-flex;align-items:center;min-height:48px;font-size:13px;white-space:nowrap;text-decoration:underline;text-underline-offset:5px}
.home-layout .contact-section footer a:hover {color:var(--dm-orange-hover)}

/* The persistent contact control retains its accepted position and appearance. */
.home-layout .header .contact-button {min-height:48px;transition:background var(--dm-duration)}
.home-layout .header .contact-button:hover {background:var(--dm-orange-hover)}
.home-layout .header .contact-button:active {background:var(--dm-orange-active)}
.home-layout .header :is(a,button):focus-visible {outline:3px solid var(--dm-focus-dark);outline-offset:5px}
.home-layout .header.on-paper a:focus-visible {outline-color:var(--dm-focus-light)}
.home-layout .header .work-link {min-height:48px;align-items:center}
.home-layout .header.on-paper .work-link span {color:var(--dm-copper)}
.home-layout .skip:focus-visible {outline:3px solid var(--dm-focus-light);outline-offset:3px}
html:not(.story-enhanced) .home-layout .header {background:var(--dm-ink);color:var(--dm-paper)}

@media(min-width:1001px){.home-layout .header .work-link {display:flex}}
@media(max-width:1100px){
  .home-layout .content-section {padding-block:72px}
  .home-layout .scope-heading,.home-layout .section-heading {gap:6%}
  .home-layout .scope-rows article {grid-template-columns:40px 1fr 1fr;gap:24px}
  .home-layout .estimate-inputs {grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
  .home-layout .estimate-inputs p {max-width:400px}
  .home-layout .proposal-result {grid-template-columns:1fr;gap:24px}
  .home-layout .proposal-result>.text-link {grid-column:1;justify-self:start}
  .home-layout .faq-layout,.home-layout .contact-layout {gap:8%}
}
@media(max-width:800px){
  .home-layout .scope-heading,.home-layout .section-heading,.home-layout .estimate .section-heading {grid-template-columns:1fr;gap:28px;margin:48px 0 40px}
  .home-layout .scope-heading>p,.home-layout .section-heading>p {max-width:620px;font-size:17px}
  .home-layout .scope-bottom {align-items:flex-start;gap:24px;flex-direction:column}
  .home-layout .faq-layout {grid-template-columns:1fr;gap:40px;margin-top:48px}
  .home-layout .contact-layout {grid-template-columns:1fr 1fr;gap:8%}
  .home-layout .contact-layout h2 {font-size:42px}
  .home-layout .contact-layout>div>p:last-child {font-size:16px}
}
@media(max-width:650px){
  .home-layout .content-section {padding:48px var(--home-gutter)}
  .home-layout .section-kicker {font-size:10px;letter-spacing:1px;gap:20px;padding-top:16px}
  .home-layout .content-section h2 {font-size:38px;line-height:1.1}
  .home-layout .scope-heading,.home-layout .section-heading,.home-layout .estimate .section-heading {margin:40px 0 36px}
  .home-layout .scope-heading>p,.home-layout .section-heading>p {font-size:16px}
  .home-layout .scope-rows article {grid-template-columns:28px 1fr;gap:14px 16px;padding:28px 0}
  .home-layout .scope-number {font-size:11px}
  .home-layout .scope-rows h3 {font-size:24px}
  .home-layout .scope-rows p {grid-column:2;font-size:16px;margin:0}
  .home-layout .scope-bottom {margin-top:28px;gap:20px}
  .home-layout .scope-bottom br {display:none}
  .home-layout .estimate-inputs {grid-template-columns:1fr;gap:28px}
  .home-layout .estimate-inputs li {display:grid;grid-template-columns:28px 1fr;gap:12px 16px;padding-top:24px}
  .home-layout .estimate-inputs li>span {padding-top:4px;font-size:11px}
  .home-layout .estimate-inputs h3 {font-size:23px;margin:0}
  .home-layout .estimate-inputs p {grid-column:2;max-width:100%}
  .home-layout .proposal-result {margin-top:40px;padding-top:28px;gap:20px}
  .home-layout .proposal-result>p {font-size:25px}
  .home-layout .proposal-result>.text-link {max-width:100%;width:100%;font-size:15px}
  .home-layout .faq-layout {margin-top:40px;gap:36px}
  .home-layout .faq-items summary {font-size:21px;padding-right:36px}
  .home-layout .faq-items p {margin-right:0;font-size:16px}
  .home-layout .contact-layout {grid-template-columns:1fr;gap:36px;margin:40px 0 40px}
  .home-layout .contact-layout .eyebrow {font-size:10px;margin-bottom:20px}
  .home-layout .contact-layout h2 {font-size:42px}
  .home-layout .contact-layout>div>p:last-child {max-width:100%;margin-top:24px}
  .home-layout .contact-preview :is(input,textarea) {padding:14px 12px}
  .home-layout .contact-section {padding-bottom:20px}
  .home-layout .contact-section footer {align-items:center;gap:12px;flex-wrap:wrap}
  .home-layout .contact-section footer>span:nth-child(2) {order:3;width:100%;font-size:11px}
}
@media(max-width:350px){
  .home-layout .content-section h2 {font-size:32px}
  .home-layout .contact-layout h2 {font-size:38px}
  .home-layout .scope-rows h3,.home-layout .estimate-inputs h3 {font-size:22px}
  .home-layout .section-kicker {font-size:10px;letter-spacing:.5px}
  .home-layout .header {gap:8px;padding-inline:16px}
  .home-layout .header .brand {font-size:18px;gap:7px}
  .home-layout .header .contact-button {gap:8px;padding-inline:10px}
}
