* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;

}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.8);
}

body {
    background: #0b0b0c;
    color: #e9e9ea;
    overflow-x: hidden;
}

/* NAV */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(10, 10, 12, 0.55);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 12, 0.75);
}

.nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}



.logo {
    font-family: "Playfair Display", serif;
    font-size: 20px;
}

.links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s ease;
}

/* underline BASE (сейчас НЕТ линии) */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: white;
    transition: 0.4s ease;
}

/* hover */
.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

/* active (JS) */
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    width: 100%;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    --hero-parallax-y: 0px;

    display: flex;
    align-items: center;
    padding: 0 10%;

}

/* VIDEO */
.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;

    transform: translate3d(0, var(--hero-parallax-y), 0) scale(1.12);
}

/* cinematic dark overlay */
.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.54) 42%,
            rgba(0, 0, 0, 0.84) 100%);

    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.32) 46%,
            rgba(0, 0, 0, 0.92) 100%);
    pointer-events: none;
}

/* content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 78px;
    line-height: 1;
}

.hero p {
    margin-top: 20px;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ABOUT */
.about {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    padding: 120px 10%;
    --about-parallax-y: 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-media {
    position: absolute;
    inset: -10%;
    z-index: -2;
    transform: translate3d(0, var(--about-parallax-y), 0) scale(1.04);
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(11, 11, 12, 0.96) 0%,
            rgba(11, 11, 12, 0.78) 42%,
            rgba(11, 11, 12, 0.46) 100%),
        radial-gradient(circle at 72% 48%,
            rgba(255, 255, 255, 0.08),
            transparent 34%);
}

.about-inner {
    max-width: 760px;
}

.about-kicker {
    display: block;
    margin-bottom: 22px;
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.about h2 {
    font-family: "Playfair Display", serif;
    font-size: 64px;
    line-height: 0.98;
    max-width: 720px;
}

.about p {
    margin-top: 28px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 17px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 58px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-stats strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 42px;
    line-height: 1;
    color: #fff;
}

.about-stats span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
    line-height: 1.5;
}


.title {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    margin-bottom: 60px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s ease;
    background: #111;
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
}

.img {
    height: 260px;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-family: "Playfair Display", serif;
}

/* CAPABILITIES */
.cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.col h3 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.col p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

/* CTA */
.cta {
    text-align: center;
}

.cta h2 {
    font-family: "Playfair Display", serif;
    font-size: 56px;
}

.footer {
    position: relative;
    padding: 80px 10% 40px;
    background: #0b0b0c;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* main layout */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* logo */
.footer-logo {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-left p {
    max-width: 320px;
    line-height: 1.6;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::after {
    width: 100%;
}

/* contact */
.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

/* hover glow effect */
.footer::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 60%);
    pointer-events: none;
}

/* responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* RESPONSIVE */
@media(max-width:768px) {
    .hero h1 {
        font-size: 40px;
    }

    .about {
        min-height: auto;
        padding: 96px 24px;
    }

    .about::before {
        background:
            linear-gradient(to bottom,
                rgba(11, 11, 12, 0.94),
                rgba(11, 11, 12, 0.72));
    }

    .about h2 {
        font-size: 42px;
    }

    .about p {
        font-size: 15px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .cols {
        grid-template-columns: 1fr;
    }
}

.img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.card:hover .img {
    transform: scale(1.05);
    opacity: 1;
}

/* overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* side panel */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 92vw);
    height: 100vh;
    background: #0f0f10;
    z-index: 1000;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 60px;
    overflow-y: auto;
    backface-visibility: hidden;
}

.side-panel.active {
    transform: translate3d(0, 0, 0);
}

/* content */
.panel-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.panel-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.panel-content p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* close button */
#closeBtn {
    margin-top: 30px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.section {
    padding: 60px 10%;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}



/* text cinematic feel */
.hero h1 {
    letter-spacing: -1px;
    animation: fadeUp 1.2s ease forwards;
}

.hero p {
    animation: fadeUp 1.6s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Firefox */
* {
    scrollbar-width: none;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 99999;
    transform: scaleX(0);
    transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-video,
    .hero-content,
    .card,
    .img,
    .section {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================
   PREMIUM REFRESH
========================= */

:root {
    --ink: #f3f0ea;
    --muted: rgba(243, 240, 234, 0.58);
    --muted-soft: rgba(243, 240, 234, 0.38);
    --line: rgba(243, 240, 234, 0.12);
    --panel: rgba(255, 255, 255, 0.045);
    --accent: #c8b89b;
    --accent-cool: #8aa1a6;
}

body {
    background:
        linear-gradient(180deg, #080809 0%, #10100f 52%, #080809 100%);
    color: var(--ink);
}

.nav {
    max-width: 1320px;
}

.logo {
    letter-spacing: 0;
}

.footer-logo {
    letter-spacing: 0;
}

.links {
    gap: 24px;
}

.nav-link {
    font-size: 13px;
}

.eyebrow,
.about-kicker {
    display: block;
    font-size: 11px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--accent);
}

.hero {
    min-height: 760px;
}

.hero-content {
    max-width: 920px;
}

.hero h1 {
    max-width: 900px;
    font-size: 82px;
    letter-spacing: 0;
}

.hero p {
    max-width: 600px;
    color: rgba(243, 240, 234, 0.68);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled,
button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.btn-primary {
    background: var(--ink);
    color: #0b0b0c;
    border: 1px solid var(--ink);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 58px;
    color: rgba(243, 240, 234, 0.48);
    font-size: 12px;
    text-transform: uppercase;
}

.hero-proof span {
    position: relative;
    padding-left: 16px;
}

.hero-proof span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.section {
    padding: 112px 10%;
}

.about.section {
    padding: 128px 10%;
}

.about h2,
.section-head h2,
.material-panel h2,
.contact-section h2 {
    font-family: "Playfair Display", serif;
    letter-spacing: 0;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 58px;
}

.section-head h2 {
    margin-top: 18px;
    max-width: 780px;
    font-size: 58px;
    line-height: 1;
}

.section-head p {
    color: var(--muted);
    line-height: 1.75;
}

.section-head-split {
    align-items: start;
}

.work-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%),
        #0b0b0c;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.card {
    border-radius: 8px;
}

.project-card {
    position: relative;
    grid-column: span 4;
    min-height: 420px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--line);
}

.project-card-large {
    grid-column: span 7;
    min-height: 560px;
}

.project-card-wide {
    grid-column: span 8;
    min-height: 460px;
}

.project-card .img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    opacity: 0.84;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.82) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), transparent 58%);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card:hover .img {
    transform: scale(1.055);
    opacity: 1;
}

.project-overlay {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
}

.project-overlay span,
.panel-meta,
.panel-scope span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.project-overlay h3 {
    font-size: 31px;
    line-height: 1;
}

.project-overlay p {
    margin-top: 12px;
    max-width: 420px;
    color: rgba(243, 240, 234, 0.62);
    line-height: 1.55;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-card {
    min-height: 310px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.service-card span,
.process-item span {
    color: var(--accent-cool);
    font-size: 12px;
}

.service-card h3,
.process-item h3 {
    margin-top: 72px;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1;
}

.service-card p,
.process-item p {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.65;
}

.process-section {
    background: #0e0e0d;
}

.process-list {
    border-top: 1px solid var(--line);
}

.process-item {
    display: grid;
    grid-template-columns: 90px minmax(220px, 0.45fr) minmax(260px, 0.55fr);
    gap: 30px;
    align-items: baseline;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.process-item h3 {
    margin-top: 0;
}

.material-section {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(280px, 0.35fr);
    gap: 60px;
    align-items: end;
    background:
        linear-gradient(135deg, rgba(200, 184, 155, 0.08), transparent 40%),
        #090909;
}

.material-panel h2 {
    margin-top: 18px;
    max-width: 760px;
    font-size: 56px;
    line-height: 1;
}

.material-panel p {
    margin-top: 24px;
    max-width: 620px;
    color: var(--muted);
    line-height: 1.75;
}

.material-list {
    display: grid;
    gap: 10px;
}

.material-list span {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: rgba(243, 240, 234, 0.72);
    font-family: "Playfair Display", serif;
    font-size: 22px;
}

.contact-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, #0b0b0c 0%, #11100f 100%);
}

.contact-section h2 {
    max-width: 860px;
    margin-top: 18px;
    font-size: 64px;
    line-height: 1;
}

.contact-section p {
    max-width: 620px;
    margin: 22px auto 34px;
    color: var(--muted);
    line-height: 1.7;
}

.side-panel {
    width: min(560px, 94vw);
    background: #0d0d0d;
}

.panel-content img {
    border-radius: 8px;
}

.panel-scope {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.panel-scope p {
    margin-top: 0;
}

#closeBtn {
    border-radius: 0;
}

@media(max-width: 980px) {
    .links {
        gap: 14px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .section-head,
    .material-section {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .project-card,
    .project-card-large,
    .project-card-wide {
        grid-column: span 6;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .nav {
        align-items: flex-start;
        gap: 16px;
    }

    .links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px 14px;
    }

    .hero {
        min-height: 720px;
        padding: 0 24px;
    }

    .hero h1,
    .section-head h2,
    .material-panel h2,
    .contact-section h2 {
        font-size: 40px;
    }

    .section {
        padding: 82px 24px;
    }

    .about.section {
        padding: 96px 24px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card-large,
    .project-card-wide {
        grid-column: span 1;
        min-height: 430px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 230px;
    }

    .service-card h3 {
        margin-top: 46px;
    }

    .process-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .material-list span {
        font-size: 20px;
    }

    .hero-proof {
        gap: 12px;
    }
}

/* =========================
   FINAL POLISH
========================= */

:root {
    --ink: #f0ede6;
    --muted: rgba(240, 237, 230, 0.55);
    --muted-soft: rgba(240, 237, 230, 0.32);
    --line: rgba(240, 237, 230, 0.105);
    --panel: rgba(255, 255, 255, 0.035);
    --accent: #a99678;
    --accent-cool: #758b8f;
}

body {
    background:
        linear-gradient(180deg, #050505 0%, #0b0b0b 48%, #050505 100%);
}

header {
    background: rgba(5, 5, 5, 0.72);
}

header.scrolled {
    background: rgba(5, 5, 5, 0.9);
}

.hero::before {
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.76) 0%,
            rgba(0, 0, 0, 0.62) 42%,
            rgba(0, 0, 0, 0.9) 100%);
}

.hero::after {
    background:
        radial-gradient(circle at 50% 46%,
            rgba(0, 0, 0, 0.14) 0%,
            rgba(0, 0, 0, 0.42) 48%,
            rgba(0, 0, 0, 0.96) 100%);
}

.work-section,
.process-section,
.contact-section {
    background: #070707;
}

.capabilities-section,
.material-section {
    background:
        linear-gradient(135deg, rgba(169, 150, 120, 0.045), transparent 38%),
        #060606;
}

.project-grid {
    grid-auto-flow: dense;
}

.project-card {
    background: #0d0d0d;
    border-color: rgba(240, 237, 230, 0.095);
}

.project-card::after {
    background:
        linear-gradient(180deg, transparent 24%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 62%);
}

.service-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018));
}

.footer::before {
    display: none;
}

.footer {
    padding: 110px 10% 34px;
    background:
        linear-gradient(180deg, #070707 0%, #030303 100%);
    color: rgba(240, 237, 230, 0.68);
    border-top: 1px solid var(--line);
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto 64px;
    grid-template-columns: minmax(280px, 1.4fr) minmax(180px, 0.55fr) minmax(240px, 0.7fr);
    align-items: start;
}

.footer-logo {
    font-size: clamp(34px, 5vw, 72px);
    line-height: 0.95;
    max-width: 520px;
}

.footer-left p {
    max-width: 420px;
    margin-top: 24px;
    color: var(--muted);
}

.footer-links {
    gap: 16px;
}

.footer-links a,
.footer-contact p {
    color: rgba(240, 237, 230, 0.5);
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-bottom {
    max-width: 1320px;
    margin: auto;
    color: rgba(240, 237, 230, 0.32);
    border-top: 1px solid var(--line);
}

@media(max-width: 1180px) {
    .section {
        padding-left: 7%;
        padding-right: 7%;
    }

    .about.section {
        padding-left: 7%;
        padding-right: 7%;
    }

    .section-head h2 {
        font-size: 50px;
    }

    .project-card,
    .project-card-large,
    .project-card-wide {
        grid-column: span 6;
    }

    .footer-container {
        grid-template-columns: 1.2fr 0.6fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media(max-width: 820px) {
    header {
        position: absolute;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
        border-bottom: 0;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .links {
        justify-content: flex-start;
    }

    .hero {
        min-height: 760px;
        padding: 120px 24px 72px;
        align-items: flex-end;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .hero-actions {
        width: 100%;
    }

    .btn {
        flex: 1 1 180px;
    }

    .section-head,
    .section-head-split,
    .material-section {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card-large,
    .project-card-wide {
        grid-column: span 12;
        min-height: 440px;
    }

    .footer {
        padding: 84px 24px 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

@media(max-width: 560px) {
    .links {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        gap: 10px 18px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero {
        min-height: 700px;
    }

    .hero-proof {
        display: grid;
        gap: 10px;
    }

    .section {
        padding: 72px 20px;
    }

    .about.section {
        padding: 84px 20px;
    }

    .about h2,
    .section-head h2,
    .material-panel h2,
    .contact-section h2 {
        font-size: 36px;
    }

    .project-card,
    .project-card-large,
    .project-card-wide {
        min-height: 380px;
    }

    .project-overlay {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .project-overlay h3 {
        font-size: 26px;
    }

    .side-panel {
        width: 100vw;
        padding: 42px 22px;
    }

    .panel-content img {
        height: 240px;
    }

    .footer-bottom {
        align-items: flex-start;
        text-align: left;
    }
}

/* =========================
   MOBILE NAV + FORM MODAL
========================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1px;
    background: currentColor;
    transition: transform 0.28s ease, top 0.28s ease;
}

.menu-toggle span:first-child {
    top: 17px;
}

.menu-toggle span:last-child {
    top: 25px;
}

body.nav-open .menu-toggle span:first-child {
    top: 21px;
    transform: rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
    top: 21px;
    transform: rotate(-45deg);
}

.form-overlay {
    position: fixed;
    inset: 0;
    z-index: 1999;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.form-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 22px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.contact-modal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-modal-inner {
    width: min(760px, 100%);
    max-height: min(760px, 92vh);
    overflow-y: auto;
    padding: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        #090909;
    border: 1px solid var(--line);
}

.contact-modal h2 {
    margin-top: 16px;
    font-family: "Playfair Display", serif;
    font-size: 44px;
    line-height: 1;
}

.contact-modal-inner>p {
    max-width: 560px;
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.modal-close {
    float: right;
    padding: 9px 13px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.contact-form label {
    display: grid;
    gap: 9px;
    color: rgba(240, 237, 230, 0.62);
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(169, 150, 120, 0.72);
}

.contact-form option {
    background: #090909;
}

.form-wide,
.form-submit,
.form-status {
    grid-column: 1 / -1;
}

.form-submit {
    width: fit-content;
    margin-top: 6px;
}

.form-status {
    margin: 0;
    min-height: 18px;
    color: var(--muted);
    font-size: 13px;
}

body.modal-open {
    overflow: hidden;
}

.contact-section .btn {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

@media(max-width: 820px) {
    header {
        position: fixed;
        background: rgba(5, 5, 5, 0.88);
        border-bottom: 1px solid var(--line);
    }

    .nav {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 14px 20px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1201;
    }

    .links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        z-index: 1200;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
            #070707;
        border: 1px solid var(--line);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.24s ease, transform 0.24s ease;
    }

    body.nav-open .links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        padding: 15px 8px;
        border-bottom: 1px solid rgba(240, 237, 230, 0.08);
        font-size: 13px;
    }

    .nav-link:last-child {
        border-bottom: 0;
    }

    .nav-link::after {
        display: none;
    }

    .btn {
        flex: 0 0 auto;
    }
}

@media(max-width: 560px) {
    .links {
        grid-template-columns: 1fr;
    }

    .contact-modal {
        padding: 12px;
        align-items: end;
    }

    .contact-modal-inner {
        max-height: 90vh;
        padding: 28px 20px;
    }

    .contact-modal h2 {
        font-size: 34px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-submit {
        width: 100%;
    }

    .contact-section .btn {
        width: fit-content;
        max-width: 100%;
    }
}

/* =========================
   LIGHT CONTRACTOR THEME
========================= */

:root {
    --ink: #171512;
    --muted: rgba(23, 21, 18, 0.62);
    --muted-soft: rgba(23, 21, 18, 0.42);
    --line: rgba(23, 21, 18, 0.12);
    --panel: #ffffff;
    --paper: #f5f1ea;
    --paper-soft: #ebe4d8;
    --accent: #9d7a4f;
    --accent-cool: #62787a;
}

body {
    background: var(--paper);
    color: var(--ink);
}

header,
header.scrolled {
    background: rgba(246, 242, 235, 0.94);
    border-bottom: 1px solid rgba(23, 21, 18, 0.1);
}

.logo,
.nav-link {
    color: var(--ink);
}

.nav-link::after {
    background: var(--ink);
}

.progress-bar {
    background: var(--accent);
}

.hero {
    color: #fff;
    min-height: 720px;
}

.hero::before {
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.44) 54%,
            rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.62) 100%);
}

.hero::after {
    background: radial-gradient(circle at 42% 48%,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(0, 0, 0, 0.22) 48%,
            rgba(0, 0, 0, 0.7) 100%);
}

.hero .eyebrow,
.hero-proof,
.hero p {
    color: rgba(255, 255, 255, 0.76);
}

.hero h1 {
    color: #fff;
}

.hero .btn-primary {
    background: #fff;
    border-color: #fff;
    color: #171512;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.eyebrow,
.about-kicker {
    color: var(--accent);
}

.section,
.work-section,
.process-section,
.contact-section,
.capabilities-section,
.material-section {
    background: var(--paper);
}

.lead-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
    gap: 54px;
    align-items: start;
    padding-top: 84px;
    background:
        linear-gradient(135deg, rgba(157, 122, 79, 0.12), transparent 42%),
        #f7f3ec;
    border-bottom: 1px solid var(--line);
}

.lead-copy h2 {
    margin-top: 18px;
    max-width: 720px;
    font-family: "Playfair Display", serif;
    font-size: 58px;
    line-height: 1;
}

.lead-copy p {
    margin-top: 22px;
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.lead-points {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.lead-points span {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: rgba(23, 21, 18, 0.72);
}

.lead-form,
.sticky-form {
    display: grid;
    gap: 15px;
}

.lead-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(23, 21, 18, 0.1);
    box-shadow: 0 24px 60px rgba(53, 43, 30, 0.12);
}

.lead-form label,
.sticky-form label {
    display: grid;
    gap: 8px;
    color: rgba(23, 21, 18, 0.58);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.sticky-form input,
.sticky-form select,
.sticky-form textarea {
    width: 100%;
    border: 1px solid rgba(23, 21, 18, 0.14);
    background: #faf8f4;
    color: var(--ink);
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

.lead-form textarea,
.sticky-form textarea {
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.sticky-form input:focus,
.sticky-form select:focus,
.sticky-form textarea:focus {
    border-color: rgba(157, 122, 79, 0.75);
    background: #fff;
}

.form-wide,
.form-submit,
.form-status {
    grid-column: 1 / -1;
}

.form-status {
    min-height: 18px;
    color: var(--muted);
}

.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-secondary {
    background: rgba(23, 21, 18, 0.035);
    border-color: rgba(23, 21, 18, 0.14);
    color: var(--ink);
}

.about {
    color: #fff;
}

.about p,
.about-stats span {
    color: rgba(255, 255, 255, 0.68);
}

.section-head p,
.service-card p,
.process-item p,
.material-panel p,
.contact-section p {
    color: var(--muted);
}

.project-card,
.service-card {
    background: #fff;
    border-color: rgba(23, 21, 18, 0.12);
}

.service-card {
    box-shadow: none;
}

.process-section {
    background: #f1eadf;
}

.material-section {
    background:
        linear-gradient(135deg, rgba(157, 122, 79, 0.12), transparent 40%),
        #f7f3ec;
}

.material-list span {
    color: rgba(23, 21, 18, 0.76);
}

.contact-section {
    background: #efe7da;
}

.side-panel {
    background: #fff;
    color: var(--ink);
    border-left: 1px solid var(--line);
}

.panel-content p {
    color: var(--muted);
}

#closeBtn {
    color: var(--ink);
    border-color: var(--line);
}

.footer {
    background: #171512;
    color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
    color: #fff;
}

.footer-left p,
.footer-links a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.58);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.38);
    border-top-color: rgba(255, 255, 255, 0.12);
}

.sticky-lead {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1500;
}

.sticky-lead-toggle {
    min-height: 44px;
    padding: 0 17px;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    box-shadow: 0 16px 40px rgba(23, 21, 18, 0.18);
}

.sticky-lead-panel {
    position: absolute;
    left: 0;
    bottom: 58px;
    width: min(360px, calc(100vw - 28px));
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(23, 21, 18, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.sticky-lead.active .sticky-lead-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sticky-lead-panel h3 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1;
}

.sticky-lead-panel p {
    margin: 10px 0 16px;
    color: var(--muted);
    line-height: 1.5;
}

.sticky-lead-close {
    float: right;
    padding: 7px 10px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    font-size: 12px;
}

.sticky-form .btn {
    width: 100%;
}

@media(max-width: 980px) {
    .lead-section {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 820px) {
    header,
    header.scrolled {
        background: rgba(247, 243, 236, 0.96);
    }

    .links {
        background: #fff;
        border-color: var(--line);
    }

    .nav-link {
        border-bottom-color: rgba(23, 21, 18, 0.09);
    }
}

@media(max-width: 560px) {
    .lead-section {
        padding-top: 72px;
    }

    .lead-copy h2 {
        font-size: 36px;
    }

    .lead-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .sticky-lead {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .sticky-lead-toggle {
        width: 100%;
    }

    .sticky-lead-panel {
        width: 100%;
        bottom: 56px;
    }
}

/* Final light cleanup */
:root {
    --ink: #211c17;
    --muted: rgba(33, 28, 23, 0.66);
    --muted-soft: rgba(33, 28, 23, 0.44);
    --line: rgba(33, 28, 23, 0.13);
    --accent: #a96532;
    --accent-strong: #7f431f;
    --paper: #f8f2e8;
    --paper-soft: #fffaf4;
}

html,
body {
    cursor: auto;
}

body {
    background: var(--paper);
    color: var(--ink);
}

a {
    color: inherit;
}

a:hover {
    color: var(--accent-strong);
}

@media (pointer: fine) {
    body,
    a,
    button,
    .card {
        cursor: auto !important;
    }

    a,
    button,
    .project-card,
    .service-card,
    #closeBtn,
    .sticky-lead-toggle {
        cursor: pointer !important;
    }
}

.progress-bar {
    background: var(--accent-strong);
}

header,
header.scrolled {
    background: rgba(255, 250, 242, 0.93);
    color: var(--ink);
    border-bottom: 1px solid rgba(33, 28, 23, 0.1);
    box-shadow: 0 12px 32px rgba(33, 28, 23, 0.08);
    backdrop-filter: blur(18px);
}

.logo,
.nav-link {
    color: var(--ink);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-strong);
}

.nav-link::after {
    background: var(--accent-strong);
}

.hero {
    color: #fff;
}

.hero .btn-primary {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.hero .btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
}

.section,
.lead-section,
.work-section,
.capabilities-section,
.process-section {
    background: var(--paper);
    color: var(--ink);
}

.lead-section {
    background:
        linear-gradient(135deg, rgba(169, 101, 50, 0.1), transparent 42%),
        var(--paper-soft);
}

.section-head h2,
.lead-copy h2,
.about h2,
.service-card h3,
.process-item h3,
.panel-content h2 {
    color: var(--ink);
}

.section-head p,
.lead-copy p,
.service-card p,
.process-item p,
.panel-content p,
.lead-points span {
    color: var(--muted);
}

.eyebrow,
.about-kicker,
.service-card span,
.process-item span {
    color: var(--accent-strong);
}

.lead-form,
.project-card,
.service-card,
.process-item {
    background: #fffdf8;
    border-color: var(--line);
    box-shadow: 0 18px 52px rgba(56, 43, 28, 0.08);
}

.lead-form label,
.sticky-form label {
    color: rgba(33, 28, 23, 0.62);
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.sticky-form input,
.sticky-form select,
.sticky-form textarea {
    background: #fffaf2;
    border-color: rgba(33, 28, 23, 0.16);
    color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.sticky-form input:focus,
.sticky-form select:focus,
.sticky-form textarea:focus {
    background: #fff;
    border-color: rgba(127, 67, 31, 0.62);
    box-shadow: 0 0 0 3px rgba(169, 101, 50, 0.12);
}

.about {
    min-height: auto;
    background: #fff7ec;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about::before {
    background:
        linear-gradient(90deg,
            rgba(255, 250, 242, 0.98) 0%,
            rgba(255, 250, 242, 0.9) 50%,
            rgba(255, 250, 242, 0.7) 100%);
}

.about-media img {
    opacity: 0.18;
    filter: saturate(0.85) contrast(1.04);
}

.about p,
.about-stats span {
    color: var(--muted);
}

.about-stats {
    border-top-color: var(--line);
}

.about-stats strong {
    color: var(--ink);
}

.process-section {
    background: #f3eadf;
}

.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(33, 28, 23, 0.04);
    border-color: var(--line);
    color: var(--ink);
}

.btn-secondary:hover {
    background: rgba(169, 101, 50, 0.1);
    border-color: rgba(127, 67, 31, 0.4);
    color: var(--accent-strong);
}

.project-overlay {
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
}

.project-overlay h3,
.project-overlay p,
.project-overlay span {
    color: #fff;
}

.overlay {
    background: rgba(33, 28, 23, 0.28);
    backdrop-filter: none;
}

.side-panel {
    background: #fffdf8;
    color: var(--ink);
    border-left: 1px solid var(--line);
    box-shadow: -28px 0 80px rgba(33, 28, 23, 0.16);
}

.panel-content img {
    border-radius: 6px;
}

#closeBtn,
.sticky-lead-close {
    color: var(--ink);
    border-color: var(--line);
}

#closeBtn:hover,
.sticky-lead-close:hover {
    color: #fff;
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.footer {
    background: #efe5d7;
    color: var(--muted);
    border-top: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.footer::before,
.footer::after {
    content: none !important;
    display: none !important;
}

.footer-logo,
.footer-links a {
    color: var(--ink);
}

.footer-left p,
.footer-contact p,
.footer-bottom {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--accent-strong);
}

.footer-links a::after {
    background: var(--accent-strong);
}

.footer-bottom {
    border-top-color: var(--line);
}

.sticky-lead {
    left: auto;
    right: 24px;
    bottom: 24px;
    z-index: 1600;
}

.sticky-lead-toggle {
    min-height: 54px;
    padding: 0 22px;
    background: var(--accent-strong);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 48px rgba(127, 67, 31, 0.32);
    animation: sticky-nudge 5s ease-in-out infinite;
}

.sticky-lead-toggle:hover {
    background: var(--ink);
    color: #fff;
}

.sticky-lead.active .sticky-lead-toggle {
    animation: none;
}

.sticky-lead-panel {
    left: auto;
    right: 0;
    bottom: 66px;
    background: #fffdf8;
    border-color: var(--line);
    box-shadow: 0 24px 80px rgba(33, 28, 23, 0.2);
}

.sticky-lead-panel h3 {
    color: var(--ink);
}

.sticky-lead-panel p,
.form-status {
    color: var(--muted);
}

@keyframes sticky-nudge {
    0%,
    86%,
    100% {
        transform: translateY(0);
    }

    90% {
        transform: translateY(-9px);
    }

    94% {
        transform: translateY(0);
    }

    97% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-lead-toggle {
        animation: none;
    }
}

@media(max-width: 820px) {
    header,
    header.scrolled {
        background: rgba(255, 250, 242, 0.97);
    }

    .links {
        background: #fffdf8;
        border-color: var(--line);
        box-shadow: 0 22px 58px rgba(33, 28, 23, 0.13);
    }

    .nav-link {
        color: var(--ink);
        border-bottom-color: rgba(33, 28, 23, 0.09);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(169, 101, 50, 0.08);
        color: var(--accent-strong);
    }

    .about::before {
        background: rgba(255, 250, 242, 0.9);
    }
}

@media(max-width: 560px) {
    .sticky-lead {
        left: auto;
        right: 14px;
        bottom: 14px;
        max-width: calc(100vw - 28px);
    }

    .sticky-lead-toggle {
        width: auto;
        min-width: 150px;
    }

    .sticky-lead-panel {
        right: 0;
        left: auto;
        width: min(360px, calc(100vw - 28px));
        bottom: 64px;
    }
}

/* Contractor reference rebuild */
:root {
    --ink: #181512;
    --muted: #665f56;
    --line: #ded4c6;
    --paper: #f7f1e7;
    --paper-soft: #fffaf2;
    --surface: #ffffff;
    --accent: #e77924;
    --accent-strong: #b95612;
    --green: #2f6b54;
}

body {
    background: var(--paper);
    color: var(--ink);
}

.site-header,
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    border-bottom: 1px solid rgba(24, 21, 18, 0.1);
    box-shadow: 0 10px 30px rgba(38, 29, 20, 0.08);
    backdrop-filter: blur(16px);
}

.top-strip {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    border-bottom: 1px solid rgba(24, 21, 18, 0.08);
}

.top-strip a {
    color: var(--accent-strong);
    font-weight: 800;
}

.nav {
    max-width: 1280px;
    padding: 15px 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    border-radius: 2px;
    box-shadow: 0 12px 24px rgba(183, 86, 18, 0.22);
}

.links {
    gap: 22px;
}

.nav-link {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-strong);
}

.nav-link::after {
    background: var(--accent-strong);
    height: 2px;
}

.nav-cta {
    padding: 12px 16px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 2px;
    box-shadow: 0 12px 28px rgba(183, 86, 18, 0.22);
}

.nav-cta:hover,
.nav-cta.active {
    background: var(--accent-strong);
    color: #fff !important;
}

.nav-cta::after {
    display: none;
}

.contractor-hero {
    min-height: 760px;
    height: auto;
    display: block;
    padding: 154px 24px 86px;
    background: #f2ebdf;
    color: var(--ink);
}

.contractor-hero .hero-video {
    z-index: 0;
    opacity: 0.18;
    filter: saturate(0.85) contrast(1.05);
}

.contractor-hero::before {
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(255, 250, 242, 0.98) 0%,
            rgba(255, 250, 242, 0.9) 48%,
            rgba(255, 250, 242, 0.6) 100%);
}

.contractor-hero::after {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(247, 241, 231, 0.88));
}

.contractor-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 420px);
    gap: 48px;
    align-items: center;
    opacity: 1;
    transform: none;
    animation: none;
}

.contractor-hero .eyebrow,
.quote-section .eyebrow,
.contractor-services .eyebrow,
.contractor-projects .eyebrow,
.trust-section .eyebrow,
.contractor-process .eyebrow {
    color: var(--accent-strong);
    font-weight: 800;
    letter-spacing: 1.6px;
}

.contractor-hero h1 {
    max-width: 790px;
    margin-top: 18px;
    font-family: Inter, sans-serif;
    font-size: clamp(44px, 6.4vw, 82px);
    line-height: 0.96;
    letter-spacing: 0;
    color: var(--ink);
}

.contractor-hero p {
    max-width: 690px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-checklist {
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
    color: #352d25;
    font-weight: 600;
}

.hero-checklist li {
    position: relative;
    padding-left: 30px;
}

.hero-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    clip-path: polygon(14% 48%, 40% 74%, 88% 20%, 100% 32%, 41% 96%, 0 56%);
}

.contractor-hero .hero-actions {
    margin-top: 34px;
}

.contractor-hero .btn-primary,
.quote-section .btn-primary,
.sticky-form .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.contractor-hero .btn-primary:hover,
.quote-section .btn-primary:hover,
.sticky-form .btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.contractor-hero .btn-secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.contractor-hero .btn-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.contractor-proof {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contractor-proof span {
    display: block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.contractor-proof strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
}

.hero-card {
    padding: 32px;
    background: #fff;
    border: 1px solid rgba(24, 21, 18, 0.1);
    box-shadow: 0 28px 70px rgba(68, 47, 28, 0.16);
    border-top: 5px solid var(--accent);
}

.card-kicker {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero-card h2 {
    margin-top: 16px;
    font-family: Inter, sans-serif;
    font-size: 34px;
    line-height: 1.05;
    color: var(--ink);
}

.hero-card p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 15px;
}

.hero-card .btn {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
}

.hero-card small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    text-align: center;
}

.quote-section {
    max-width: 1280px;
    margin: -46px auto 0;
    padding: 0 24px 88px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 620px);
    gap: 28px;
    align-items: stretch;
    background: transparent;
    position: relative;
    z-index: 4;
}

.quote-section .lead-copy {
    padding: 34px;
    background: #1c1915;
    color: #fff;
    border-top: 5px solid var(--accent);
    box-shadow: 0 22px 55px rgba(34, 25, 18, 0.14);
}

.quote-section .lead-copy h2 {
    max-width: 700px;
    margin-top: 16px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}

.quote-section .lead-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.quote-section .lead-points {
    margin-top: 28px;
}

.quote-section .lead-points span {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.quote-section .lead-form {
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(24, 21, 18, 0.12);
    border-top: 5px solid var(--accent);
    box-shadow: 0 22px 55px rgba(34, 25, 18, 0.12);
}

.form-heading {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
    margin-bottom: 4px;
}

.form-heading strong {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.15;
}

.form-heading span {
    color: var(--muted);
    font-size: 14px;
}

.lead-form label,
.sticky-form label {
    color: #4c443d;
    font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.sticky-form input,
.sticky-form select,
.sticky-form textarea {
    background: #fffaf2;
    border: 1px solid #d8cdbd;
    border-radius: 2px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.sticky-form input:focus,
.sticky-form select:focus,
.sticky-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(231, 121, 36, 0.14);
}

.contractor-services {
    padding: 92px 24px;
    background: #fff;
}

.section-head {
    max-width: 1280px;
    margin: 0 auto 36px;
}

.section-head-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 36px;
    align-items: end;
}

.section-head h2 {
    font-family: Inter, sans-serif;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1;
    color: var(--ink);
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.service-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: 0 14px 34px rgba(46, 36, 26, 0.08);
}

.service-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.service-body {
    padding: 22px;
}

.service-card span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.service-card h3 {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.15;
}

.service-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.65;
}

.contractor-projects {
    padding: 92px 24px;
    background: var(--paper);
}

.project-grid {
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    min-height: 390px;
    border-radius: 3px;
    border: 1px solid rgba(24, 21, 18, 0.1);
    box-shadow: 0 18px 42px rgba(46, 36, 26, 0.12);
}

.project-card-large {
    grid-column: span 2;
    min-height: 440px;
}

.project-card-wide {
    grid-column: span 2;
}

.project-overlay {
    padding: 26px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(12, 10, 8, 0.88) 100%);
}

.project-overlay span {
    color: #ffb070;
    font-weight: 800;
}

.project-overlay h3 {
    margin-top: 8px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 30px;
}

.project-overlay p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
}

.project-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.project-specs em {
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.trust-section {
    max-width: none;
    min-height: auto;
    padding: 92px 24px;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: center;
    background: #fff;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-section::before {
    display: none;
}

.trust-media,
.trust-copy {
    max-width: 620px;
}

.trust-media {
    justify-self: end;
    position: relative;
    width: 100%;
}

.trust-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 24px 58px rgba(46, 36, 26, 0.14);
}

.trust-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 18px 20px;
    background: #fff;
    border-left: 5px solid var(--accent);
    box-shadow: 0 16px 40px rgba(30, 22, 16, 0.18);
}

.trust-badge strong {
    display: block;
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
}

.trust-badge span {
    color: var(--muted);
    font-size: 13px;
}

.trust-copy h2 {
    margin-top: 16px;
    color: var(--ink);
    font-family: Inter, sans-serif;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1;
}

.trust-copy>p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.trust-list {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.trust-list article {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    padding: 18px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
}

.trust-list strong {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
}

.trust-list h3 {
    color: var(--ink);
    font-size: 19px;
}

.trust-list p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.55;
}

.contractor-process {
    padding: 92px 24px;
    background: #f2eadf;
}

.process-list {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process-item {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: 0 14px 34px rgba(46, 36, 26, 0.08);
}

.process-item span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.process-item h3 {
    color: var(--ink);
    font-size: 22px;
}

.process-item p {
    color: var(--muted);
}

.side-panel {
    background: #fff;
    border-left: 1px solid var(--line);
}

.panel-meta,
.panel-scope span {
    color: var(--accent-strong);
    font-weight: 800;
}

.footer {
    background: #181512;
    color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
    color: #fff;
    font-family: Inter, sans-serif;
}

.footer-left p,
.footer-contact p,
.footer-bottom {
    color: rgba(255, 255, 255, 0.62);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
    color: #ffb070;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.sticky-lead-toggle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.sticky-lead-toggle:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

@media(max-width: 1100px) {
    .contractor-hero .hero-content,
    .quote-section,
    .trust-section {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .quote-section .lead-form,
    .quote-section .lead-copy,
    .trust-media,
    .trust-copy {
        max-width: none;
    }

    .trust-media {
        justify-self: stretch;
    }

    .service-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 820px) {
    .top-strip {
        padding: 8px 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .nav {
        padding: 13px 18px;
    }

    .menu-toggle {
        background: #fff;
        color: var(--ink);
        border-color: var(--line);
    }

    .links {
        top: 104px;
        left: 14px;
        right: 14px;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: 0 22px 55px rgba(38, 29, 20, 0.14);
    }

    .nav-link,
    .nav-cta {
        padding: 14px 12px;
        background: transparent;
        color: var(--ink) !important;
        box-shadow: none;
        border-bottom: 1px solid rgba(24, 21, 18, 0.08);
    }

    .nav-link:hover,
    .nav-link.active,
    .nav-cta:hover,
    .nav-cta.active {
        background: rgba(231, 121, 36, 0.1);
        color: var(--accent-strong) !important;
    }

    .contractor-hero {
        padding: 180px 18px 70px;
    }

    .contractor-proof {
        grid-template-columns: 1fr;
    }

    .quote-section,
    .contractor-services,
    .contractor-projects,
    .trust-section,
    .contractor-process {
        padding-left: 18px;
        padding-right: 18px;
    }

    .quote-section {
        margin-top: -24px;
    }

    .section-head-split,
    .service-grid,
    .project-grid,
    .process-list {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card-large,
    .project-card-wide {
        grid-column: auto;
        min-height: 360px;
    }
}

@media(max-width: 560px) {
    .contractor-hero h1 {
        font-size: 42px;
    }

    .hero-card,
    .quote-section .lead-copy,
    .quote-section .lead-form {
        padding: 22px;
    }

    .lead-form {
        grid-template-columns: 1fr;
    }

    .service-card img {
        height: 170px;
    }

    .trust-list article {
        grid-template-columns: 1fr;
    }

    .trust-list strong {
        grid-row: auto;
        margin-bottom: 12px;
    }

    .trust-badge {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .sticky-lead {
        right: 12px;
        bottom: 12px;
    }

    .sticky-lead-panel {
        width: min(360px, calc(100vw - 24px));
    }
}

@media (pointer: fine) {
    .service-card {
        cursor: default !important;
    }

    .project-card {
        cursor: pointer !important;
    }
}

* {
    scrollbar-width: auto;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #efe5d7;
}

::-webkit-scrollbar-thumb {
    background: #c7b7a2;
    border-radius: 999px;
}

/* Address and map */
.quote-section {
    max-width: 1280px;
    margin: -46px auto 0;
    padding: 0 24px 72px;
    background: transparent;
}

.quote-section .lead-copy {
    background: #1c1915;
    backdrop-filter: none;
}

.quote-section .lead-form {
    background: #fff;
    backdrop-filter: none;
}

.service-area-section {
    padding: 96px 24px;
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1fr);
    gap: 36px;
    align-items: stretch;
    background: #fff;
    color: var(--ink);
    border-top: 1px solid var(--line);
}

.service-area-copy {
    max-width: 560px;
    justify-self: end;
    align-self: center;
}

.service-area-copy h2 {
    margin-top: 16px;
    font-family: Inter, sans-serif;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    color: var(--ink);
}

.service-area-copy p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
}

.contact-cards a {
    display: grid;
    gap: 5px;
    padding: 17px 18px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    color: var(--ink);
}

.contact-cards a:hover {
    border-color: rgba(231, 121, 36, 0.48);
    color: var(--accent-strong);
}

.contact-cards span {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.contact-cards strong {
    font-size: 17px;
    line-height: 1.35;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.area-tags span {
    padding: 9px 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: #433a31;
    font-size: 13px;
    font-weight: 700;
}

.map-shell {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #eee3d3;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(46, 36, 26, 0.13);
}

.map-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.92) contrast(1.03);
}

.map-service-ring {
    position: absolute;
    left: 12%;
    right: 10%;
    top: 14%;
    bottom: 13%;
    border: 4px solid rgba(231, 121, 36, 0.92);
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        0 0 0 999px rgba(24, 21, 18, 0.08),
        0 0 28px rgba(231, 121, 36, 0.26);
}

.map-service-ring::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: rgba(231, 121, 36, 0.08);
}

.map-service-ring span {
    position: absolute;
    right: 6%;
    top: 9%;
    padding: 10px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(90, 49, 22, 0.24);
}

@media(max-width: 1100px) {
    .service-area-section {
        grid-template-columns: 1fr;
    }

    .service-area-copy {
        max-width: none;
        justify-self: stretch;
    }
}

@media(max-width: 820px) {
    .quote-section {
        padding: 72px 18px 80px;
    }

    .service-area-section {
        padding: 78px 18px;
    }

    .map-shell {
        min-height: 430px;
    }
}

@media(max-width: 560px) {
    .map-shell {
        min-height: 360px;
    }

    .map-service-ring {
        left: 8%;
        right: 8%;
        top: 18%;
        bottom: 14%;
        border-width: 3px;
    }

    .map-service-ring span {
        left: 50%;
        right: auto;
        top: 8%;
        transform: translateX(-50%);
        width: max-content;
        max-width: 86%;
        text-align: center;
    }
}

/* Requested layout corrections */
.contractor-hero {
    background:
        linear-gradient(90deg, rgba(255, 250, 242, 0.82), rgba(255, 250, 242, 0.28)),
        url("images/image3.jpg") center / cover no-repeat;
}

.contractor-hero .hero-video {
    opacity: 0.46;
    filter: saturate(0.98) contrast(1.08);
}

.contractor-hero::before {
    background:
        linear-gradient(90deg,
            rgba(255, 250, 242, 0.9) 0%,
            rgba(255, 250, 242, 0.72) 44%,
            rgba(255, 250, 242, 0.2) 100%);
}

.contractor-hero::after {
    background:
        linear-gradient(180deg, rgba(247, 241, 231, 0.06), rgba(247, 241, 231, 0.36));
}

.quote-section {
    max-width: 1280px;
    margin: -46px auto 0;
    padding: 0 24px 72px;
    background: transparent;
}

.quote-section .lead-copy {
    background: #1c1915;
    backdrop-filter: none;
}

.quote-section .lead-form {
    background: #fff;
    backdrop-filter: none;
}

.contractor-projects {
    padding: 64px 24px 72px;
}

.contractor-projects .section-head {
    margin-bottom: 24px;
}

.contractor-projects .project-grid {
    gap: 16px;
}

.contractor-projects .project-card {
    min-height: 300px;
    box-shadow: 0 12px 30px rgba(46, 36, 26, 0.1);
}

.contractor-projects .project-card-large {
    min-height: 350px;
}

.contractor-projects .project-card-wide {
    min-height: 300px;
}

.contractor-projects .project-overlay {
    padding: 20px;
}

.contractor-projects .project-overlay h3 {
    font-size: 24px;
    line-height: 1.05;
}

.contractor-projects .project-overlay p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.contractor-projects .project-specs {
    margin-top: 10px;
}

.contractor-process {
    padding: 68px 24px 76px;
}

.contractor-process .section-head {
    margin-bottom: 26px;
}

.contractor-process .process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    border-top: 0;
}

.contractor-process .process-item {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(46, 36, 26, 0.08);
}

.contractor-process .process-item span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin: 0 0 18px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.contractor-process .process-item h3 {
    margin: 0;
    font-family: Inter, sans-serif;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.12;
}

.contractor-process .process-item p {
    margin-top: 11px;
    color: var(--muted);
    line-height: 1.58;
}

.map-shell iframe {
    pointer-events: none;
}

.map-service-ring,
.map-service-area {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
    pointer-events: none;
    box-shadow: none;
}

.map-service-ring::before {
    content: none;
}

.map-service-area .zone {
    position: absolute;
    display: block;
    border: 3px solid rgba(231, 121, 36, 0.95);
    background: rgba(231, 121, 36, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.62),
        0 12px 30px rgba(126, 67, 24, 0.18);
}

.zone-sacramento {
    left: 31%;
    top: 30%;
    width: 30%;
    height: 34%;
    border-radius: 46% 54% 52% 48% / 42% 44% 56% 58%;
    transform: rotate(-8deg);
}

.zone-north {
    left: 38%;
    top: 12%;
    width: 28%;
    height: 28%;
    border-radius: 58% 42% 48% 52% / 50% 62% 38% 50%;
    transform: rotate(15deg);
}

.zone-east {
    left: 55%;
    top: 28%;
    width: 31%;
    height: 31%;
    border-radius: 48% 52% 46% 54% / 58% 44% 56% 42%;
    transform: rotate(10deg);
}

.zone-south {
    left: 39%;
    top: 57%;
    width: 33%;
    height: 28%;
    border-radius: 52% 48% 58% 42% / 48% 44% 56% 52%;
    transform: rotate(-4deg);
}

.zone-west {
    left: 12%;
    top: 34%;
    width: 31%;
    height: 30%;
    border-radius: 50% 50% 42% 58% / 46% 58% 42% 54%;
    transform: rotate(-14deg);
}

.map-label,
.map-service-ring span.map-label {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 10px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(90, 49, 22, 0.24);
}

.map-pin {
    position: absolute;
    left: 43%;
    top: 45%;
    padding: 7px 10px;
    background: #181512;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 22px rgba(24, 21, 18, 0.28);
}

.map-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}

@media(max-width: 1100px) {
    .contractor-process .process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 820px) {
    .quote-section {
        margin-top: -24px;
        padding: 0 18px 64px;
    }

    .contractor-projects,
    .contractor-process {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .contractor-projects .project-grid,
    .contractor-process .process-list {
        grid-template-columns: 1fr;
    }

    .contractor-projects .project-card,
    .contractor-projects .project-card-large,
    .contractor-projects .project-card-wide {
        grid-column: auto;
        min-height: 300px;
    }

    .map-label,
    .map-service-ring span.map-label {
        right: 12px;
        top: 12px;
    }
}

@media(max-width: 560px) {
    .contractor-hero .hero-video {
        opacity: 0.38;
    }

    .contractor-projects .project-card,
    .contractor-projects .project-card-large,
    .contractor-projects .project-card-wide {
        min-height: 280px;
    }

    .map-service-area .zone {
        border-width: 2px;
    }

    .map-label,
    .map-service-ring span.map-label {
        left: 12px;
        right: auto;
        width: max-content;
        max-width: calc(100% - 24px);
        transform: none;
    }

    .map-pin {
        left: 44%;
        top: 47%;
    }
}

/* Real interactive service map */
.service-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: inherit;
    font-family: Inter, sans-serif;
}

.map-loading {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 1;
    padding: 10px 12px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(46, 36, 26, 0.12);
}

.map-note {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 500;
    margin: 0;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.9);
    color: #4c443d;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(46, 36, 26, 0.12);
    pointer-events: none;
}

.map-shell .leaflet-container {
    width: 100%;
    height: 100%;
    background: #eef0e8;
    font-family: Inter, sans-serif;
}

.map-shell .leaflet-control-zoom a {
    color: var(--ink);
}

.map-shell .leaflet-control-attribution {
    font-size: 10px;
}

.service-zone-label {
    pointer-events: none;
}

.service-zone-label span {
    display: block;
    width: max-content;
    max-width: 160px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(216, 91, 8, 0.38);
    color: #2b241e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 8px 20px rgba(46, 36, 26, 0.12);
}

.office-marker {
    pointer-events: auto;
}

.office-marker span {
    position: relative;
    display: block;
    padding: 8px 10px;
    background: #181512;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 10px 22px rgba(24, 21, 18, 0.28);
}

.office-marker span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #181512;
    transform: translateX(-50%) rotate(45deg);
}

.map-shell .leaflet-popup-content-wrapper {
    border-radius: 3px;
}

.map-shell .leaflet-popup-content {
    font-family: Inter, sans-serif;
    line-height: 1.45;
}

@media(max-width: 820px) {
    .service-zone-label span {
        max-width: 132px;
        padding: 6px 8px;
        font-size: 10px;
    }
}

@media(max-width: 560px) {
    .map-note {
        left: 10px;
        right: 10px;
        bottom: 10px;
        text-align: center;
    }
}

/* Map and hero polish */
.contractor-hero {
    background: #f4eadb;
}

.contractor-hero .hero-video {
    opacity: 0.72;
    filter: saturate(0.95) contrast(1.04) brightness(1.02);
}

.contractor-hero::before {
    background:
        linear-gradient(90deg,
            rgba(255, 250, 242, 0.92) 0%,
            rgba(255, 250, 242, 0.78) 42%,
            rgba(255, 250, 242, 0.38) 72%,
            rgba(255, 250, 242, 0.22) 100%);
}

.contractor-hero::after {
    background:
        linear-gradient(180deg, rgba(247, 241, 231, 0.02) 0%, rgba(247, 241, 231, 0.3) 100%);
}

.contractor-hero .hero-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.map-shell {
    min-height: 390px;
}

.service-map {
    min-height: 390px;
}

.map-note {
    left: 14px;
    bottom: 14px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.92);
}

.map-legend {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 500;
    display: grid;
    gap: 7px;
    width: min(260px, calc(100% - 28px));
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(222, 212, 198, 0.9);
    box-shadow: 0 14px 32px rgba(46, 36, 26, 0.14);
}

.map-legend span {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 8px;
    align-items: center;
    color: #2b241e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.22;
}

.map-legend i {
    width: 12px;
    height: 12px;
    display: block;
    background: var(--zone-color);
    border: 2px solid #d85b08;
    opacity: 0.75;
}

.service-zone-label {
    display: none;
}

@media(max-width: 1100px) {
    .map-shell,
    .service-map {
        min-height: 360px;
    }
}

@media(max-width: 820px) {
    .map-shell,
    .service-map {
        min-height: 330px;
    }

    .map-legend {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-note {
        display: none;
    }
}

@media(max-width: 560px) {
    .contractor-hero .hero-video {
        opacity: 0.56;
    }

    .map-shell,
    .service-map {
        min-height: 300px;
    }

    .map-legend {
        grid-template-columns: 1fr;
    }
}

/* Final UX cleanup */
.site-header,
.site-header.scrolled {
    transition:
        background-color 0.42s ease,
        box-shadow 0.42s ease,
        border-color 0.42s ease,
        transform 0.42s ease;
}

.site-header .top-strip {
    max-height: 38px;
    overflow: hidden;
    transition:
        max-height 0.38s ease,
        opacity 0.28s ease,
        padding 0.38s ease,
        border-color 0.38s ease;
}

.site-header .nav {
    transition: padding 0.38s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 38px rgba(38, 29, 20, 0.12);
}

.site-header.scrolled .top-strip {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom-color: transparent;
}

.site-header.scrolled .nav {
    padding-top: 10px;
    padding-bottom: 10px;
}

.contractor-hero {
    background:
        linear-gradient(90deg,
            rgba(255, 250, 242, 0.96) 0%,
            rgba(255, 250, 242, 0.9) 42%,
            rgba(255, 250, 242, 0.48) 70%,
            rgba(255, 250, 242, 0.18) 100%),
        url("images/real-home-addition.jpg") center right / cover no-repeat;
}

.contractor-hero .hero-video {
    display: none;
}

.contractor-hero::before {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.03), rgba(247, 241, 231, 0.28));
}

.contractor-hero::after {
    background: linear-gradient(180deg, transparent 62%, rgba(247, 241, 231, 0.56) 100%);
}

.contractor-projects {
    padding: 46px 24px 54px;
}

.contractor-projects .section-head {
    margin-bottom: 18px;
}

.contractor-projects .section-head h2 {
    font-size: clamp(30px, 3.2vw, 42px);
}

.contractor-projects .section-head p {
    max-width: 760px;
    font-size: 15px;
}

.contractor-projects .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contractor-projects .project-card,
.contractor-projects .project-card-large,
.contractor-projects .project-card-wide {
    grid-column: auto;
    min-height: 230px;
}

.contractor-projects .project-overlay {
    padding: 16px;
}

.contractor-projects .project-overlay span {
    font-size: 10px;
}

.contractor-projects .project-overlay h3 {
    font-size: 20px;
}

.contractor-projects .project-overlay p {
    display: none;
}

.contractor-projects .project-specs {
    margin-top: 9px;
}

.contractor-projects .project-specs em {
    padding: 6px 8px;
    font-size: 11px;
}

.map-shell {
    min-height: 320px;
    border-radius: 6px;
    box-shadow: 0 18px 44px rgba(46, 36, 26, 0.12);
}

.service-map {
    min-height: 320px;
}

.map-shell .leaflet-container {
    border-radius: 6px;
}

.map-shell .leaflet-interactive {
    transition: fill-opacity 0.18s ease, stroke-width 0.18s ease;
}

.map-legend {
    top: 12px;
    right: 12px;
    width: min(230px, calc(100% - 24px));
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 5px;
}

.map-legend strong {
    color: var(--ink);
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.map-legend span {
    grid-template-columns: 10px 1fr;
    gap: 7px;
    font-size: 11px;
}

.map-legend i {
    width: 10px;
    height: 10px;
    border-width: 1px;
}

.map-zone-tooltip {
    padding: 7px 9px;
    border: 1px solid rgba(216, 91, 8, 0.28);
    border-radius: 4px;
    color: var(--ink);
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(46, 36, 26, 0.14);
}

.sticky-lead {
    right: 28px;
    bottom: 28px;
    z-index: 2200;
}

.sticky-lead-toggle {
    position: relative;
    min-height: 60px;
    padding: 0 26px;
    background: linear-gradient(135deg, #ff7a1a, #d85b08);
    border-color: #ff8a2a;
    border-radius: 5px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow:
        0 20px 48px rgba(216, 91, 8, 0.36),
        0 0 0 5px rgba(255, 122, 26, 0.12);
}

.sticky-lead-toggle::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(255, 122, 26, 0.35);
    border-radius: 7px;
    opacity: 0;
    animation: sticky-pulse 2.8s ease-out infinite;
}

.sticky-lead.active .sticky-lead-toggle::after {
    display: none;
}

.sticky-lead-panel {
    border-top: 4px solid var(--accent);
}

@keyframes sticky-pulse {
    0% {
        transform: scale(0.96);
        opacity: 0.85;
    }

    70%,
    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

@media(max-width: 1100px) {
    .contractor-projects .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 820px) {
    .site-header.scrolled .links {
        top: 68px;
    }

    .contractor-projects {
        padding: 44px 18px 52px;
    }

    .contractor-projects .project-grid {
        grid-template-columns: 1fr;
    }

    .contractor-projects .project-card,
    .contractor-projects .project-card-large,
    .contractor-projects .project-card-wide {
        min-height: 220px;
    }

    .map-shell,
    .service-map {
        min-height: 300px;
    }

    .map-legend {
        margin-top: 8px;
        padding: 10px;
        grid-template-columns: 1fr;
    }
}

@media(max-width: 560px) {
    .contractor-hero {
        background:
            linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(255, 250, 242, 0.72)),
            url("images/real-home-addition.jpg") center / cover no-repeat;
    }

    .map-shell,
    .service-map {
        min-height: 270px;
    }

    .sticky-lead {
        right: 12px;
        bottom: 12px;
    }

    .sticky-lead-toggle {
        min-height: 56px;
        padding: 0 20px;
    }
}

/* Final nav CTA and quote spacing fix */
.nav-cta {
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: #9f470e;
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(159, 71, 14, 0.34);
    transform: translateY(-2px);
}

.quote-section {
    margin-top: 0;
    padding-top: 42px;
}

@media(max-width: 820px) {
    .quote-section {
        margin-top: 0;
        padding-top: 30px;
    }
}

/* Light construction footer */
.footer {
    position: relative;
    overflow: hidden;
    padding: 72px 24px 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.94)),
        linear-gradient(90deg, rgba(231, 121, 36, 0.12), rgba(38, 93, 79, 0.1));
    color: var(--ink);
    border-top: 1px solid rgba(24, 21, 18, 0.1);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(231, 121, 36, 0.16) 0 5px, transparent 5px 100%),
        linear-gradient(180deg, rgba(24, 21, 18, 0.06), transparent 34%);
    background-size: 74px 100%, auto;
    opacity: 0.28;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(160px, 1fr));
    gap: 34px;
    align-items: start;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 900;
}

.footer-logo .logo-mark {
    width: 42px;
    height: 42px;
}

.footer-brand p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.footer-social {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px 0 10px;
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(24, 21, 18, 0.12);
    border-radius: 4px;
    box-shadow: 0 14px 30px rgba(46, 36, 26, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.footer-social-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.google-icon {
    background:
        conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
}

.yelp-icon {
    background: #d32323;
}

.footer-social-text {
    font-size: 14px;
    font-weight: 900;
}

.footer-social:hover,
.footer-social:focus-visible {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 18px 36px rgba(183, 86, 18, 0.24);
    transform: translateY(-2px);
}

.footer-column h3 {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: #5f554b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.footer-links a::after {
    display: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-strong);
}

.footer-contact p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
}

.footer-estimate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    min-height: 46px;
    padding: 0 18px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 3px;
    box-shadow: 0 14px 30px rgba(183, 86, 18, 0.22);
}

.footer-estimate:hover,
.footer-estimate:focus-visible {
    background: var(--accent-strong);
    color: #fff !important;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 42px auto 0;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #7a6f65;
    border-top: 1px solid rgba(24, 21, 18, 0.1);
    font-size: 13px;
}

@media(max-width: 1000px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        max-width: none;
        grid-column: 1 / -1;
    }
}

@media(max-width: 640px) {
    .footer {
        padding: 54px 18px 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        margin-top: 34px;
    }
}

/* Detailed services and projects panel */
.service-card,
.project-card {
    cursor: pointer;
}

.service-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card:hover,
.service-card:focus-visible {
    border-color: rgba(231, 121, 36, 0.34);
    box-shadow: 0 22px 48px rgba(46, 36, 26, 0.14);
    transform: translateY(-4px);
    outline: none;
}

.project-card:focus-visible {
    outline: 3px solid rgba(231, 121, 36, 0.5);
    outline-offset: 4px;
}

.side-panel {
    width: min(640px, 94vw);
    z-index: 2600;
}

.overlay {
    z-index: 2500;
}

.panel-content h2 {
    margin-bottom: 10px;
    color: var(--ink);
    font-family: Inter, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
}

.panel-meta {
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12px;
}

.panel-content img {
    height: min(330px, 34vh);
    border-radius: 6px;
}

.panel-content p {
    color: var(--muted);
}

.panel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 8px;
}

.panel-stats[hidden],
.panel-detail-block[hidden],
.panel-outcome[hidden] {
    display: none !important;
}

.panel-stats div {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(46, 36, 26, 0.06);
}

.panel-stats span,
.panel-detail-block span,
.panel-outcome span,
.panel-scope span {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.panel-stats strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.panel-scope,
.panel-detail-block,
.panel-outcome {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(24, 21, 18, 0.12);
}

.panel-scope p,
.panel-outcome p {
    margin: 0;
    color: #5f554b;
}

.panel-detail-block ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.panel-detail-block li {
    position: relative;
    padding-left: 24px;
    color: #5f554b;
    line-height: 1.55;
}

.panel-detail-block li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
}

#closeBtn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 3px;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#closeBtn:hover,
#closeBtn:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

@media(max-width: 640px) {
    .side-panel {
        padding: 34px 22px;
    }

    .panel-stats {
        grid-template-columns: 1fr;
    }
}

/* Final mobile adaptation */
@media(max-width: 820px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background: #fffaf2;
        padding-bottom: 82px;
    }

    .site-header,
    header {
        background: rgba(255, 250, 242, 0.98);
        box-shadow: 0 10px 28px rgba(38, 29, 20, 0.1);
    }

    .top-strip {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 7px 14px;
        text-align: center;
        font-size: 11px;
        line-height: 1.25;
    }

    .top-strip span {
        display: none;
    }

    .nav {
        min-height: 62px;
        padding: 10px 16px;
    }

    .logo {
        min-width: 0;
        gap: 9px;
        font-size: 16px;
        line-height: 1;
    }

    .logo span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        flex: 0 0 44px;
        margin-left: 10px;
        border-radius: 4px;
    }

    .links {
        position: fixed;
        top: 86px;
        left: 12px;
        right: 12px;
        z-index: 2400;
        max-height: calc(100dvh - 106px);
        overflow-y: auto;
        padding: 8px;
        border-radius: 8px;
    }

    .site-header.scrolled .links {
        top: 68px;
    }

    .nav-link,
    .nav-cta {
        min-height: 48px;
        display: flex;
        align-items: center;
        border-radius: 5px;
        font-size: 15px;
    }

    .contractor-hero {
        min-height: auto;
        padding: 126px 18px 46px;
        background-position: center top;
    }

    .contractor-hero .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contractor-hero h1 {
        max-width: 12ch;
        font-size: clamp(42px, 12vw, 58px);
        line-height: 0.96;
    }

    .contractor-hero p {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-checklist {
        gap: 10px;
        margin-top: 22px;
    }

    .hero-checklist li {
        align-items: flex-start;
        font-size: 14px;
        line-height: 1.45;
    }

    .contractor-hero .hero-actions,
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .btn,
    .hero-card .btn,
    .form-submit,
    .footer-estimate {
        width: 100%;
        min-height: 50px;
        justify-content: center;
        text-align: center;
    }

    .contractor-proof,
    .hero-proof {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .hero-proof span {
        min-height: 58px;
        padding: 12px 14px;
    }

    .hero-card {
        padding: 22px;
        border-radius: 6px;
    }

    .hero-card h2 {
        font-size: 27px;
    }

    .section,
    .quote-section,
    .contractor-services,
    .contractor-projects,
    .trust-section,
    .contractor-process,
    .service-area-section {
        padding: 52px 18px;
    }

    .quote-section {
        margin-top: 0;
        padding-top: 34px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .quote-section .lead-copy,
    .quote-section .lead-form {
        padding: 22px;
        border-radius: 6px;
    }

    .quote-section .lead-copy h2,
    .section-head h2,
    .trust-copy h2,
    .service-area-copy h2 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.02;
    }

    .lead-points {
        margin-top: 22px;
    }

    .lead-points span {
        padding: 12px 0;
        font-size: 14px;
        line-height: 1.45;
    }

    .lead-form,
    .quote-section .lead-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lead-form label,
    .sticky-form label {
        gap: 7px;
        font-size: 11px;
    }

    .lead-form input,
    .lead-form select,
    .lead-form textarea,
    .sticky-form input,
    .sticky-form select,
    .sticky-form textarea {
        min-height: 48px;
        padding: 13px 14px;
        font-size: 16px;
        border-radius: 4px;
    }

    .lead-form textarea,
    .sticky-form textarea {
        min-height: 118px;
    }

    .section-head,
    .section-head-split {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    .section-head p {
        max-width: none;
        font-size: 15px;
        line-height: 1.65;
    }

    .service-grid,
    .project-grid,
    .contractor-projects .project-grid,
    .process-list,
    .contractor-process .process-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card {
        border-radius: 6px;
    }

    .service-card img {
        height: 210px;
    }

    .service-body {
        padding: 20px;
    }

    .service-card h3,
    .process-item h3 {
        font-size: 21px;
    }

    .service-card p,
    .process-item p {
        font-size: 14px;
        line-height: 1.6;
    }

    .project-card,
    .project-card-large,
    .project-card-wide,
    .contractor-projects .project-card,
    .contractor-projects .project-card-large,
    .contractor-projects .project-card-wide {
        grid-column: auto;
        min-height: 310px;
        border-radius: 6px;
    }

    .project-overlay,
    .contractor-projects .project-overlay {
        padding: 18px;
    }

    .project-overlay h3,
    .contractor-projects .project-overlay h3 {
        font-size: 24px;
        line-height: 1.08;
    }

    .project-overlay p,
    .contractor-projects .project-overlay p {
        font-size: 14px;
        line-height: 1.45;
    }

    .project-specs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .trust-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trust-media {
        min-height: 320px;
        border-radius: 6px;
    }

    .trust-badge {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
        border-radius: 5px;
    }

    .trust-list {
        gap: 12px;
        margin-top: 22px;
    }

    .trust-list article,
    .process-item {
        padding: 18px;
        border-radius: 6px;
    }

    .service-area-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-area-copy {
        max-width: none;
        justify-self: stretch;
    }

    .contact-cards a {
        padding: 15px;
        border-radius: 6px;
    }

    .area-tags {
        gap: 8px;
    }

    .area-tags span {
        font-size: 12px;
    }

    .map-shell {
        min-height: 0;
        border-radius: 6px;
    }

    .service-map {
        min-height: 320px;
    }

    .map-legend {
        position: static;
        width: 100%;
        margin-top: 10px;
        border-radius: 6px;
    }

    .footer {
        padding: 50px 18px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-social {
        flex: 1 1 130px;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        margin-top: 30px;
    }

    .sticky-lead {
        left: auto;
        right: 14px;
        bottom: 14px;
        width: auto;
        max-width: calc(100vw - 28px);
    }

    .sticky-lead-toggle {
        width: auto;
        min-width: 132px;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 7px;
        font-size: 14px;
    }

    .sticky-lead-panel {
        left: auto;
        right: 0;
        bottom: 62px;
        width: min(330px, calc(100vw - 28px));
        max-height: min(70dvh, 500px);
        overflow-y: auto;
        border-radius: 8px;
    }

    .side-panel {
        inset: 0 0 0 auto;
        width: 100vw;
        max-width: 100vw;
        padding: 30px 18px 96px;
    }

    .panel-content h2 {
        font-size: 31px;
    }

    .panel-content img {
        height: 230px;
    }

    .panel-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #closeBtn {
        width: 100%;
    }
}

@media(max-width: 520px) {
    .top-strip {
        display: none;
    }

    .links,
    .site-header.scrolled .links {
        top: 70px;
        max-height: calc(100dvh - 88px);
    }

    .contractor-hero {
        padding-top: 104px;
    }

    .logo {
        font-size: 15px;
    }

    .contractor-hero h1 {
        max-width: none;
        font-size: clamp(38px, 12vw, 48px);
    }

    .hero-card {
        display: none;
    }

    .section,
    .quote-section,
    .contractor-services,
    .contractor-projects,
    .trust-section,
    .contractor-process,
    .service-area-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .quote-section .lead-copy,
    .quote-section .lead-form {
        padding: 20px;
    }

    .service-card img {
        height: 190px;
    }

    .project-card,
    .project-card-large,
    .project-card-wide,
    .contractor-projects .project-card,
    .contractor-projects .project-card-large,
    .contractor-projects .project-card-wide {
        min-height: 285px;
    }

    .trust-media {
        min-height: 260px;
    }

    .service-map {
        min-height: 280px;
    }

    .sticky-lead {
        right: 12px;
        bottom: 12px;
    }

    .sticky-lead-toggle {
        min-width: 118px;
        min-height: 46px;
        padding: 0 16px;
    }

    .sticky-lead-panel {
        width: min(310px, calc(100vw - 24px));
        bottom: 58px;
        padding: 18px;
    }
}

@media(max-width: 380px) {
    .logo span:last-child {
        max-width: 190px;
    }

    .contractor-hero h1 {
        font-size: 36px;
    }

    .quote-section .lead-copy h2,
    .section-head h2,
    .trust-copy h2,
    .service-area-copy h2 {
        font-size: 30px;
    }

    .project-overlay,
    .contractor-projects .project-overlay {
        padding: 15px;
    }
}

@media (pointer: fine) {
    .service-card,
    .project-card {
        cursor: pointer !important;
    }
}

/* Compact mobile card grids */
@media(max-width: 820px) and (min-width: 481px) {
    .service-grid,
    .project-grid,
    .contractor-projects .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-card img {
        height: 150px;
    }

    .service-body {
        padding: 15px;
    }

    .service-card span {
        width: 32px;
        height: 32px;
        margin-bottom: 12px;
        font-size: 12px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 13px;
        line-height: 1.45;
    }

    .project-card,
    .project-card-large,
    .project-card-wide,
    .contractor-projects .project-card,
    .contractor-projects .project-card-large,
    .contractor-projects .project-card-wide {
        min-height: 235px;
    }

    .project-overlay,
    .contractor-projects .project-overlay {
        padding: 14px;
    }

    .project-overlay span,
    .contractor-projects .project-overlay span {
        font-size: 10px;
        letter-spacing: 0.9px;
    }

    .project-overlay h3,
    .contractor-projects .project-overlay h3 {
        font-size: 19px;
    }

    .project-overlay p,
    .contractor-projects .project-overlay p {
        display: none;
    }

    .project-specs,
    .contractor-projects .project-specs {
        margin-top: 10px;
    }

    .project-specs em,
    .contractor-projects .project-specs em {
        padding: 5px 7px;
        font-size: 10px;
    }
}

@media(max-width: 480px) {
    .service-grid,
    .project-grid,
    .contractor-projects .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .service-card img {
        height: 118px;
    }

    .service-body {
        padding: 12px;
    }

    .service-card span {
        width: 28px;
        height: 28px;
        margin-bottom: 9px;
        font-size: 11px;
    }

    .service-card h3 {
        font-size: 16px;
        line-height: 1.1;
    }

    .service-card p {
        display: none;
    }

    .project-card,
    .project-card-large,
    .project-card-wide,
    .contractor-projects .project-card,
    .contractor-projects .project-card-large,
    .contractor-projects .project-card-wide {
        min-height: 190px;
    }

    .project-overlay,
    .contractor-projects .project-overlay {
        padding: 12px;
    }

    .project-overlay span,
    .contractor-projects .project-overlay span {
        font-size: 9px;
        letter-spacing: 0.7px;
    }

    .project-overlay h3,
    .contractor-projects .project-overlay h3 {
        font-size: 16px;
        line-height: 1.08;
    }

    .project-overlay p,
    .contractor-projects .project-overlay p {
        display: none;
    }

    .project-specs,
    .contractor-projects .project-specs {
        gap: 5px;
        margin-top: 8px;
    }

    .project-specs em,
    .contractor-projects .project-specs em {
        padding: 4px 6px;
        font-size: 9px;
    }
}

/* Compact mobile footer */
@media(max-width: 820px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        align-items: start;
    }

    .footer-brand p {
        grid-column: 1 / -1;
        max-width: 620px;
        margin-top: 0;
    }

    .footer-socials {
        justify-content: flex-end;
        margin-top: 0;
    }

    .footer-social {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 12px 0 9px;
    }

    .footer-column h3 {
        margin-bottom: 12px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-column.footer-contact {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        align-items: start;
    }

    .footer-column.footer-contact h3 {
        grid-column: 1 / -1;
    }

    .footer-column.footer-contact p {
        margin: 0;
    }

    .footer-estimate {
        grid-column: 1 / -1;
        width: auto;
        justify-self: start;
        min-width: 220px;
    }
}

@media(max-width: 520px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .footer-brand {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-logo {
        font-size: 19px;
    }

    .footer-brand p {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-socials {
        justify-content: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column h3 {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .footer-links a,
    .footer-contact a {
        font-size: 13px;
        line-height: 1.3;
    }

    .footer-column.footer-contact {
        grid-template-columns: 1fr;
    }

    .footer-estimate {
        width: 100%;
        min-width: 0;
    }

    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 12px;
    }
}
