*,
*::before,
*::after {
    box-sizing: border-box;
}

.html-smooth,
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

main,
header,
section,
footer {
    width: 100%;
    max-width: 100%;
}

header,
header > div,
.header-bar {
    max-width: 100%;
    overflow-x: clip;
}

.header-actions {
    flex: 0 0 auto;
}

.header-title {
    max-width: 100%;
}

body,
header,
section,
footer,
a,
button,
input,
select,
textarea,
div {
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease;
}

main > section:not(#top) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 960px;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    transform: translateY(-180%);
    border-radius: 9999px;
    background: #1b3907;
    color: #fff;
    padding: 0.8rem 1rem;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.clip-slant {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.material-symbols-outlined {
    display: inline-block;
    direction: ltr;
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    font-variation-settings:
        "FILL" 0,
        "wght" 500,
        "GRAD" 0,
        "opsz" 48;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.asymmetric-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.reveal-on-scroll {
    opacity: 0;
}

.reveal-on-scroll.active {
    animation: fadeInUp 0.8s ease-out forwards;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-panel {
    overflow: hidden;
    border-top: 1px solid rgba(27, 57, 7, 0.08);
    max-height: 0;
    opacity: 0;
    transform: translateY(-0.4rem);
    transition:
        max-height 240ms ease,
        opacity 220ms ease,
        transform 220ms ease;
}

.mobile-menu-panel.is-open {
    max-height: 24rem;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-link,
.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mobile-menu-link {
    color: #33443a;
    background: rgba(27, 57, 7, 0.04);
}

.mobile-menu-link:hover {
    color: #1b3907;
    background: rgba(27, 57, 7, 0.09);
}

.mobile-menu-cta {
    margin-top: 0.25rem;
    color: #fff;
    background: #142018;
}

.mobile-menu-cta:hover {
    background: #1b3907;
}

.mobile-menu-toggle__bars {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}

.mobile-menu-toggle__bars span {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 9999px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform 220ms ease,
        opacity 220ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars span:nth-child(1) {
    transform: translateY(0.36rem) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars span:nth-child(3) {
    transform: translateY(-0.36rem) rotate(-45deg);
}

.blob-delay-2 {
    animation-delay: 2s;
}

.hero-media-delay {
    animation-delay: 0.2s;
}

.will-transform {
    will-change: transform;
}

.before-after {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    aspect-ratio: 2 / 3;
    max-width: 34rem;
    margin: 0 auto;
    background: #d9d2c0;
    user-select: none;
}

.before-after-carousel {
    display: grid;
    gap: 1.5rem;
}

.before-after-carousel__viewport {
    overflow: hidden;
}

.before-after-carousel__track {
    display: flex;
    transition: transform 450ms ease;
}

.before-after-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: 0.55;
    transition: opacity 250ms ease;
}

.before-after-carousel__slide.is-active {
    opacity: 1;
}

.before-after-carousel__meta {
    margin-bottom: 1rem;
    text-align: center;
}

.before-after-carousel__eyebrow {
    margin-bottom: 0.45rem;
    color: #376414;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.before-after-carousel__title {
    max-width: 42rem;
    margin: 0 auto;
    color: #142018;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
}

.before-after-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.before-after-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgba(55, 100, 20, 0.16);
    border-radius: 9999px;
    background: #fff;
    color: #142018;
    box-shadow: 0 18px 40px rgba(20, 32, 24, 0.08);
    transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.before-after-carousel__button:hover {
    transform: translateY(-2px);
    background: #376414;
    border-color: #376414;
    color: #fff;
}

.before-after-carousel__dots {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.before-after-carousel__dot {
    width: 0.85rem;
    height: 0.85rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(55, 100, 20, 0.22);
    transition: transform 200ms ease, background-color 200ms ease;
}

.before-after-carousel__dot.is-active {
    transform: scale(1.15);
    background: #376414;
}

.before-after__image {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.before-after__after {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
}

.before-after__after img {
    height: 100%;
    width: 100%;
    min-width: 100%;
    object-fit: cover;
}

.before-after__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    pointer-events: none;
}

.before-after__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    background: rgba(20, 32, 24, 0.82);
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(20, 32, 24, 0.2);
    pointer-events: none;
}

.before-after__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
}

.before-after__label {
    position: absolute;
    top: 1.5rem;
    z-index: 1;
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    background: rgba(20, 32, 24, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.before-after__label--before {
    left: 1.5rem;
}

.before-after__label--after {
    right: 1.5rem;
}

#scrollToTop.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

html.dark body {
    background: #0f1d0b;
    color: #fffdf7;
}

html.dark header {
    background: rgba(15, 29, 11, 0.88);
    border-color: rgba(234, 236, 119, 0.18);
}

html.dark header h1,
html.dark header nav a {
    color: #fffdf7 !important;
}

html.dark header nav a:hover {
    color: #eaec77 !important;
}

html.dark #themeToggle {
    background: rgba(255, 255, 255, 0.08);
    color: #fffdf7;
    border-color: rgba(234, 236, 119, 0.2);
}

html.dark #services,
html.dark #contact,
html.dark #eco,
html.dark #before-after,
html.dark #top {
    background: #13240d !important;
}

html.dark #services,
html.dark #top {
    color: #fffdf7;
}

html.dark #services .group,
html.dark #contact form > div,
html.dark #before-after .before-after,
html.dark footer .max-w-md,
html.dark #contact .relative.z-10 {
    border-color: rgba(234, 236, 119, 0.14) !important;
}

html.dark #services .group,
html.dark footer .max-w-md,
html.dark #contact .relative.z-10 {
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dark #services p,
html.dark #top p,
html.dark #eco p,
html.dark #before-after p,
html.dark #contact p,
html.dark footer p,
html.dark footer a {
    color: rgba(255, 253, 247, 0.8) !important;
}

html.dark #services h2,
html.dark #services h3,
html.dark #top h1,
html.dark #eco h2,
html.dark #eco h4,
html.dark #before-after h2,
html.dark #contact h2,
html.dark #contact .text-2xl,
html.dark footer h2,
html.dark footer .font-bold.text-ink {
    color: #fffdf7 !important;
}

html.dark #services .text-primary,
html.dark #area .text-accent,
html.dark #top .text-primary-dark,
html.dark #eco .text-primary-dark,
html.dark #contact .text-primary-dark,
html.dark #before-after .text-primary-dark,
html.dark footer .text-primary,
html.dark footer a:hover {
    color: #eaec77 !important;
}

html.dark #top .text-ink,
html.dark #top .text-ink-soft {
    color: #fffdf7 !important;
}

html.dark #top span,
html.dark #top h1,
html.dark #top p {
    color: #fffdf7;
}

html.dark #top h1 span:last-child,
html.dark #top .text-primary-dark {
    color: #eaec77 !important;
}

html.dark #top .border-primary\/20 {
    border-color: rgba(234, 236, 119, 0.22) !important;
}

html.dark #top .bg-primary\/10,
html.dark #top .bg-primary\/5 {
    background: rgba(234, 236, 119, 0.08) !important;
}

html.dark #top .animate-blob.bg-primary\/20,
html.dark #top .animate-blob.bg-primary-soft\/60 {
    background: rgba(234, 236, 119, 0.18) !important;
}

html.dark #top .bg-white,
html.dark #top .bg-white\/90 {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark #top .border-line,
html.dark #top .border-white\/20 {
    border-color: rgba(234, 236, 119, 0.16) !important;
}

html.dark #top button,
html.dark #top a.rounded-2xl {
    color: #fffdf7;
}

html.dark #top .bg-primary {
    background: #1b3907 !important;
}

html.dark #top .hover\:bg-primary-dark:hover {
    background: #122805 !important;
}

html.dark #top .hover\:bg-primary-mist:hover {
    background: rgba(234, 236, 119, 0.12) !important;
}

html.dark #top .italic.text-ink {
    color: #fffdf7 !important;
}

html.dark #eco .bg-primary\/10,
html.dark #contact .bg-primary-mist,
html.dark #contact label.flex.items-center,
html.dark #before-after .before-after {
    background: rgba(255, 255, 255, 0.06) !important;
}

html.dark #eco .text-ink,
html.dark #eco .text-ink-soft,
html.dark #before-after .text-ink,
html.dark #before-after .text-ink-soft,
html.dark #contact .text-ink,
html.dark #contact .text-ink-soft {
    color: #fffdf7 !important;
}

html.dark #eco h2,
html.dark #eco h2 span,
html.dark #eco h4,
html.dark #eco p,
html.dark #contact h2,
html.dark #contact h2 span,
html.dark #contact p {
    color: #fffdf7 !important;
}

html.dark #eco h2 span,
html.dark #contact h2 span {
    color: #eaec77 !important;
}

html.dark #contact label,
html.dark #contact .text-ink-soft\/70,
html.dark #contact .placeholder\:text-ink-soft\/45::placeholder {
    color: rgba(255, 253, 247, 0.72) !important;
}

html.dark #contact form label,
html.dark #contact form select,
html.dark #contact form input,
html.dark #contact form textarea {
    color: #fffdf7 !important;
}

html.dark #contact .underline {
    text-decoration-color: #eaec77 !important;
}

html.dark #contact input,
html.dark #contact select,
html.dark #contact textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fffdf7 !important;
}

html.dark #contact input::placeholder,
html.dark #contact textarea::placeholder {
    color: rgba(255, 253, 247, 0.45) !important;
}

html.dark #contact select option {
    color: #13240d;
}

html.dark #before-after .before-after__label,
html.dark #scrollToTop,
html.dark #area .bg-accent {
    background: #eaec77;
    color: #13240d;
}

html.dark #scrollToTop svg,
html.dark #themeToggle svg,
html.dark #contact .bg-ink svg,
html.dark #services .bg-primary svg,
html.dark #eco .bg-primary\/10 svg,
html.dark #area .text-accent svg,
html.dark #before-after .before-after__handle svg {
    color: currentColor;
    stroke: currentColor;
}

html.dark #before-after .before-after__handle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(234, 236, 119, 0.65);
    color: #eaec77;
}

html.dark #before-after .before-after-carousel__eyebrow,
html.dark #before-after .before-after-carousel__title {
    color: #fffdf7;
}

html.dark #before-after .before-after-carousel__button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(234, 236, 119, 0.18);
    color: #fffdf7;
}

html.dark #before-after .before-after-carousel__button:hover {
    background: #eaec77;
    border-color: #eaec77;
    color: #142018;
}

html.dark #before-after .before-after-carousel__dot {
    background: rgba(234, 236, 119, 0.3);
}

html.dark #before-after .before-after-carousel__dot.is-active {
    background: #eaec77;
}

html.dark #before-after .before-after__divider {
    background: rgba(234, 236, 119, 0.95);
}

html.dark #area .bg-ink {
    background: #102009 !important;
}

html.dark #area .text-white,
html.dark #area .text-white\/80,
html.dark #area .text-white\/75 {
    color: #fffdf7 !important;
}

html.dark #area .text-accent,
html.dark #area .text-primary {
    color: #eaec77 !important;
}

html.dark #area .bg-white\/15 {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark footer {
    background: #102009;
    color: #fffdf7;
}

html.dark footer .bg-ink,
html.dark #contact .bg-ink {
    background: #eaec77 !important;
    color: #13240d !important;
}

html.dark #contact .bg-ink + div .text-2xl,
html.dark #contact .bg-ink + div .text-xs {
    color: #fffdf7 !important;
}

html.dark footer .border-primary\/10 {
    border-color: rgba(234, 236, 119, 0.16) !important;
}

html.dark .theme-icon-sun {
    display: none;
}

html.dark .theme-icon-moon {
    display: inline-flex !important;
}

html.dark .skip-link {
    background: #eaec77;
    color: #13240d;
}

html.dark .mobile-menu-panel {
    border-top-color: rgba(234, 236, 119, 0.12);
}

html.dark .mobile-menu-link {
    color: #fffdf7;
    background: rgba(255, 255, 255, 0.06);
}

html.dark .mobile-menu-link:hover {
    color: #eaec77;
    background: rgba(234, 236, 119, 0.1);
}

html.dark .mobile-menu-cta {
    color: #13240d;
    background: #eaec77;
}

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

@media (max-width: 767px) {
    .header-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .header-bar > a {
        min-width: 0;
        overflow: hidden;
    }

    .mobile-menu-panel {
        margin-top: 0.15rem;
    }

    .mobile-menu-link,
    .mobile-menu-cta {
        min-height: 2.85rem;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .before-after {
        border-radius: 1.5rem;
    }

    .before-after-carousel__controls {
        gap: 0.75rem;
    }

    .before-after-carousel__button {
        width: 2.9rem;
        height: 2.9rem;
    }

    .before-after__label {
        top: 0.85rem;
        padding: 0.45rem 0.7rem;
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .before-after__label--before {
        left: 0.85rem;
    }

    .before-after__label--after {
        right: 0.85rem;
    }

    .before-after__handle {
        width: 3.25rem;
        height: 3.25rem;
    }
}

@media (max-width: 380px) {
    header {
        left: 0;
        right: 0;
        width: 100vw;
    }

    header > div {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .header-title {
        display: none !important;
    }

    .header-actions {
        gap: 0.4rem !important;
    }

    #themeToggle,
    #mobileMenuToggle {
        width: 2.2rem !important;
        height: 2.2rem !important;
    }

    #area,
    #area > div,
    #area .bg-primary,
    #area .bg-ink,
    #area .group.relative,
    #contact,
    #contact > div,
    #services,
    #services > div,
    #eco,
    #eco > div,
    #before-after,
    #before-after > div,
    #top,
    #top > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #top .mx-auto.max-w-7xl,
    #services .mx-auto.max-w-7xl,
    #eco .mx-auto.max-w-7xl,
    #area .mx-auto.max-w-7xl,
    #before-after .mx-auto.max-w-7xl,
    #contact .mx-auto.max-w-7xl,
    footer .mx-auto.max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #top h1,
    #services h2,
    #eco h2,
    #area h2,
    #before-after h2,
    #contact h2 {
        text-wrap: balance;
    }

    #services .group,
    #contact .relative.z-10,
    #area .bg-ink,
    #area .bg-primary,
    #area .group.relative,
    .before-after-carousel__button,
    .before-after {
        border-radius: 1.5rem !important;
    }

    #top .group.will-transform,
    #area .rotate-1,
    #area .-rotate-1 {
        transform: none !important;
    }

    #area .group.relative img,
    #eco .group img,
    #top .group img {
        width: 100%;
    }

    #area .grid,
    #area .flex,
    #contact .grid,
    #services .grid {
        min-width: 0;
    }

    #contact p,
    #services p,
    #eco p,
    #before-after p,
    #area p {
        overflow-wrap: anywhere;
    }

    footer .mb-20,
    footer .border-t {
        text-align: center;
    }
}
