/* Layout system: all full-width bands share the same 1200px content column.
   Keep explicit selectors and physical spacing for Chromium 86 (360 Browser). */
:root {
    --content-width: 1200px;
    --gutter: max(32px,calc((100% - var(--content-width))/2));
    --section-space: 80px;
}
body {
    font-family: "Microsoft YaHei","PingFang SC",Arial,sans-serif;
    line-height: 1.6;
}
.wrap {
    width: 100%;
    max-width: none;
    margin: 0;
}
.wrap>section,
.wrap>header,
.wrap>footer,
.wrap>.crumb,
.wrap>.pn-nav,
.wrap>.detail-grid,
.wrap>.about-row,
.wrap>.m-nav,
.wrap>.project-detail {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.wrap>.cases,
.wrap>.process,
.wrap>.packages,
.wrap>.testimonials,
.wrap>.guarantee,
.wrap>.renew,
.wrap>.workspace,
.wrap>.sec,
.wrap>.timeline,
.wrap>.about-row,
.wrap>.contact-cards,
.wrap>.svc-grid {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}
.header {
    height: 88px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(53,84,74,.07);
    gap: 28px;
}
.logo-img {
    width: 138px;
    height: auto;
}
.nav {
    gap: 30px;
}
.nav a,
.m-nav-links a {
    white-space: nowrap;
    font-size: 18px;
}
.btn-pill {
    white-space: nowrap;
}
.header .menu-btn {
    display: none;
}
.hero {
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 80px;
}
.hero-left {
    min-width: 0;
    gap: 24px;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.4;
    white-space: pre-line;
    letter-spacing: -1px;
}
.hero-sub {
    max-width: 520px;
    font-size: 15px;
}
.hero-img {
    width: 46%;
    height: auto;
    aspect-ratio: 1.04;
    border-radius: 18px;
}
.hero-trust {
    gap: 32px;
}
.trust-label {
    font-size: 12px;
}
.hero-ctas {
    flex-wrap: wrap;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
}
.stat {
    width: auto;
}
.stat-num {
    font-size: 32px;
}
.stats .stat:not(:first-child) {
    border-left: 1px solid #ffffff1a;
    padding-left: 32px;
}
.page-hero {
    padding-top: 56px;
    padding-bottom: 48px;
    gap: 14px;
}
.page-hero h1 {
    font-size: 42px;
    line-height: 1.4;
    white-space: pre-line;
}
.page-hero-desc {
    max-width: 760px;
    line-height: 1.9;
}
.page-hero+.cases {
    padding-top: 8px;
    padding-bottom: 26px;
}
.page-hero+.cases .cases-head {
    margin: 0;
}
.page-hero+.cases .sec-title {
    font-size: 22px;
}
.case-tabs {
    flex-wrap: wrap;
    gap: 8px;
}
.tab {
    padding: 8px 18px;
    white-space: nowrap;
}
.cases-head {
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}
.case-grid,.project-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 28px;
}
.case-grid {
    padding-top: 40px;
    padding-bottom: 64px;
}
.project-grid {
    width: 100%;
}
.case-card {
    min-width: 0;
    width: auto;
    border: 1px solid #e9e3da;
    border-radius: 12px;
    transition: transform .2s,box-shadow .2s;
    background: #fff;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px #2b262210;
}
.case-img,.ws-img {
    height: auto !important;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.case-img img,.ws-img img {
    transition: transform .5s;
}
.case-card:hover img {
    transform: scale(1.035);
}
.case-body {
    padding: 22px;
    gap: 12px;
}
.case-title {
    font-size: 20px;
    font-family: var(--serif);
    line-height: 1.5;
}
.case-meta {
    font-size: 13px;
    line-height: 1.8;
}
.case-tags {
    flex-wrap: wrap;
}
.tag {
    font-size: 11px;
}
.card-link {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: auto;
    font-size: 12px;
    color: var(--green);
}
.renew-row,.ws-row {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px;
}
.ba-img {
    height: auto;
    aspect-ratio: 4/5;
}
.ba-imgs {
    padding: 0;
    gap: 3px;
}
.banner-strip {
    padding-top: 24px;
    padding-bottom: 24px;
}
.banner-strip img {
    height: auto;
    border-radius: 12px;
}
/* Light package section; only the lead offer carries a dark background. */
.pkg-row {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}
.package-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    background: #fff;
    border: 1px solid #e4e2d9;
    border-radius: 14px;
    padding: 32px;
    color: var(--ink);
}
.package-card:first-child {
    background: var(--green);
    border-color: var(--green);
    color: #f7f4ef;
}
.package-card h3 {
    font-size: 24px;
    line-height: 1.5;
    font-family: var(--serif);
}
.package-card p,.package-card li {
    font-size: 13px;
    line-height: 1.9;
    color: var(--body);
}
.package-card>p {
    min-height: 3.8em;
}
.package-card ul {
    padding-left: 18px;
    flex: 1;
}
.package-price {
    font-size: 40px;
    line-height: 1.4;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--green);
}
.package-price small {
    display: block;
    margin-top: 4px;
    font: 12px/1.6 "Microsoft YaHei",sans-serif;
    font-weight: 400;
    color: var(--muted);
}
.package-card .btn-primary {
    background: var(--green);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 12px;
    align-self: end;
}
.package-card .pkg-tag {
    background: var(--tag-green);
    color: var(--green);
    justify-self: start;
}
.package-card:first-child p,.package-card:first-child li {
    color: #e0e8e2;
}
.package-card:first-child .package-price {
    color: #f7f4ef;
}
.package-card:first-child .package-price small {
    color: #c8d5cd;
}
.package-card:first-child .pkg-tag {
    background: #ffffff12;
    color: #ecddc4;
}
.package-card:first-child .btn-primary {
    background: #f7f4ef;
    color: var(--green);
}
.packages-head .sec-title {
    color: var(--ink);
}
@supports (grid-template-rows:subgrid) {
    @media (min-width:769px) {
        .pkg-row {
            row-gap: 18px;
        }
        .package-card {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 6;
            align-items: start;
        }
        .package-card>p {
            min-height: 0;
        }
    }
}
.tst-row {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}
.review-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}
.review-mark {
    font: 48px/1 Georgia;
    color: #b79a70;
    height: 26px;
}
.review-card p {
    font-size: 14px;
    line-height: 2;
    flex: 1;
}
.review-card strong {
    font-size: 14px;
}
.review-card small {
    color: var(--muted);
    font-size: 12px;
}
.steps-row {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 28px;
}
.step {
    min-width: 0;
}
.step-desc {
    line-height: 1.8;
}
.svc-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
}
.svc-card {
    min-width: 0;
    padding: 26px;
}
.guarantee-row {
    gap: 48px;
}
.guarantee-img {
    width: 45%;
    height: 420px;
}
.guarantee-right {
    min-width: 0;
}
.cta {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,440px);
    align-items: center;
    gap: 80px;
    padding-top: 64px;
    padding-bottom: 64px;
}
.cta-title {
    font-size: 34px;
    line-height: 1.5;
    white-space: pre-line;
}
.cta-left {
    min-width: 0;
}
.cta-sub {
    max-width: 540px;
    line-height: 1.9;
}
.form-card {
    width: 100%;
    padding: 32px;
}
.field input {
    width: 100%;
    min-width: 0;
}
.form-note {
    line-height: 1.8;
}
.footer {
    padding-top: 56px;
    padding-bottom: 26px;
    gap: 32px;
}
.footer-top {
    gap: 48px;
}
.footer-brand {
    min-width: 0;
    flex: 1;
}
.footer-logo-row {
    flex-wrap: wrap;
    gap: 14px;
}
.footer-logo-img {
    height: 28px;
    width: auto;
}
.footer-brand-name {
    font-size: 16px;
}
.footer-links-row {
    gap: 48px;
}
.footer-col {
    min-width: 110px;
}
.footer-col span:not(.footer-col-title) {
    font-size: 12px;
    color: var(--footer-link);
}
.footer-addr {
    line-height: 1.8;
}
.footer-bottom {
    gap: 16px;
}
.about-row {
    grid-template-columns: minmax(0,1fr) minmax(0,440px);
    gap: 48px;
}
.contact-cards {
    grid-template-columns: repeat(3,minmax(0,1fr));
}
.cc-text {
    overflow-wrap: anywhere;
}
.project-detail {
    padding-top: 32px;
    padding-bottom: 80px;
}
.detail-heading {
    max-width: 800px;
    padding: 16px 0 36px;
}
.detail-heading h1 {
    font: 700 40px/1.5 var(--serif);
    margin: 16px 0;
}
.detail-heading p {
    color: var(--body);
    margin: 16px 0;
}
.project-cover {
    height: 560px;
    border-radius: 14px;
    overflow: hidden;
}
.rich-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--body);
    font-size: 15px;
    line-height: 2;
}
.detail-heading { overflow-wrap: anywhere; }
.rich-text::after { content: ""; display: block; clear: both; }
.rich-text p { margin: 0 0 24px; }
.about-text .rich-text p { margin-bottom: 20px; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text h1,.rich-text h2,.rich-text h3,.rich-text h4,.rich-text h5,.rich-text h6 {
    color: var(--ink);
    line-height: 1.5;
    margin: 1.2em 0 .6em;
}
.rich-text h1 { font-size: 30px; }
.rich-text h2 { font-size: 26px; }
.rich-text h3 { font-size: 22px; }
.rich-text h4,.rich-text h5,.rich-text h6 { font-size: 18px; }
.rich-text > :first-child { margin-top: 0; }
.rich-text ul,.rich-text ol { padding-left: 1.6em; margin: 0 0 24px; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li > ul,.rich-text li > ol { margin-bottom: 0; }
.rich-text a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.rich-text img { display: inline-block; width: auto; max-width: 100% !important; height: auto !important; object-fit: contain; vertical-align: middle; }
.rich-text div,.rich-text p { max-width: 100%; }
.rich-text table { display: block; max-width: 100% !important; overflow-x: auto; border-collapse: collapse; margin: 20px 0; }
.rich-text th,.rich-text td { min-width: 100px; padding: 10px 14px; border: 1px solid var(--line-2); text-align: left; }
.rich-text th { background: var(--tag-green); color: var(--ink); }
.rich-text blockquote { border-left: 3px solid var(--green); padding: 12px 20px; background: var(--tag-green); margin: 20px 0; }
.rich-text pre { overflow-x: auto; max-width: 100%; padding: 16px; margin: 20px 0; background: var(--tag-tan); }
.rich-text code { font-family: Consolas, monospace; }
.rich-text hr { border: 0; border-top: 1px solid var(--line-2); margin: 24px 0; }
.project-story {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 60px;
    margin-top: 48px;
}
.project-story h2,.related-projects h2 {
    font: 700 26px/1.5 var(--serif);
    margin-bottom: 22px;
}
.project-story p {
    color: var(--body);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 24px;
}
.project-story ul {
    padding-left: 18px;
    font-size: 13px;
    line-height: 2;
    color: var(--body);
}
.project-story .rich-text ul,.project-story .rich-text ol { font-size: inherit; line-height: inherit; color: inherit; }
.story-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 28px 0;
}
.project-story aside .aside-card {
    position: sticky;
    top: 24px;
}
.project-story .btn-primary {
    text-align: center;
    padding: 14px;
}
.related-projects {
    margin-top: 64px;
}
.empty-state {
    grid-column: 1/-1;
    padding: 40px;
    text-align: center;
    color: var(--muted);
}
@media (min-width:769px) and (max-width:1100px) {
    .header .pc-only {
        display: none !important;
    }
    .header .menu-btn {
        display: block;
    }
    .menu-btn svg {
        width: 26px;
        height: 26px;
    }
    .m-nav.open {
        display: flex;
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        gap: 18px;
    }
    .m-nav-links {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
    .hero {
        gap: 32px;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero-ctas a {
        padding: 13px 18px;
    }
    .hero-trust {
        gap: 16px;
    }
    .hero-sub {
        font-size: 14px;
    }
    .case-grid,.project-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .pkg-row {
        gap: 16px;
    }
    .package-card {
        padding: 22px;
    }
    .package-price {
        font-size: 34px;
    }
    .cta {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }
    .cta-title {
        font-size: 28px;
    }
    .footer-top {
        flex-direction: column;
    }
    .footer-links-row {
        justify-content: space-between;
        gap: 32px;
    }
    .svc-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .about-row {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .guarantee-img {
        width: 42%;
        height: 380px;
    }
    .guarantee-row {
        gap: 28px;
    }
    .project-story {
        gap: 28px;
        grid-template-columns: minmax(0,1fr) 260px;
    }
    .tst-row {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width:768px) {
    :root {
        --gutter: 20px;
        --section-space: 48px;
    }
    .header {
        height: 72px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .header .menu-btn {
        display: block;
    }
    .logo-img {
        width: 125px;
        height: auto;
    }
    .m-nav {
        padding-top: 8px;
        padding-bottom: 20px;
    }
    .m-nav.open {
        display: flex;
    }
    .hero {
        padding-top: 28px;
        padding-bottom: 40px;
        gap: 28px;
    }
    .hero h1 {
        font-size: 34px;
        letter-spacing: 0;
        line-height: 1.4;
    }
    .hero-sub {
        font-size: 14px;
        line-height: 1.9;
    }
    .hero-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }
    .hero-ctas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .hero-ctas a {
        padding: 13px 8px;
        font-size: 13px;
    }
    .hero-trust {
        gap: 16px;
        justify-content: space-between;
    }
    .trust-label {
        font-size: 10px;
    }
    .trust-num {
        font-size: 22px;
    }
    .stats {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 24px 20px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .stats .stat:not(:first-child) {
        border: 0;
        padding-left: 0;
    }
    .stat-num {
        font-size: 27px;
    }
    .stat-label {
        font-size: 11px;
    }
    .page-hero {
        padding-top: 36px;
        padding-bottom: 28px;
    }
    .page-hero h1 {
        font-size: 30px;
    }
    .page-hero-desc {
        font-size: 14px;
    }
    .page-hero+.cases {
        padding-top: 0;
        padding-bottom: 22px;
    }
    .cases-head {
        gap: 18px;
        align-items: flex-start;
    }
    .case-tabs {
        gap: 8px;
    }
    .tab {
        font-size: 12px;
        padding: 7px 13px;
    }
    .case-grid,.project-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 24px;
    }
    .case-grid {
        padding-top: 28px;
        padding-bottom: 48px;
    }
    .case-body {
        padding: 20px;
    }
    .case-title {
        font-size: 20px;
    }
    .case-img {
        aspect-ratio: 4/3;
    }
    .case-row+.case-row {
        margin: 0;
    }
    .renew-row,.ws-row {
        grid-template-columns: minmax(0,1fr);
        gap: 24px;
    }
    .ba-img {
        height: auto;
        aspect-ratio: 3/4;
    }
    .banner-strip {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .pkg-row,.tst-row {
        grid-template-columns: minmax(0,1fr);
        gap: 20px;
    }
    .package-card {
        padding: 26px;
    }
    .package-card .btn-primary {
        width: 100%;
    }
    .steps-row {
        grid-template-columns: minmax(0,1fr);
        gap: 12px;
    }
    .step {
        padding: 12px 0;
    }
    .step-num {
        font-size: 23px;
        min-width: 35px;
    }
    .step-desc {
        font-size: 13px;
    }
    .svc-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px;
    }
    .svc-card {
        padding: 20px 16px;
    }
    .guarantee-img {
        width: 100%;
        height: 260px;
    }
    .guarantee-row {
        gap: 28px;
    }
    .cta {
        grid-template-columns: minmax(0,1fr);
        gap: 28px;
        padding-top: 44px;
        padding-bottom: 44px;
    }
    .cta-title {
        font-size: 28px;
    }
    .cta-phone {
        font-size: 20px;
    }
    .form-card {
        padding: 24px;
    }
    .field input {
        font-size: 16px;
    }
    .form-note {
        font-size: 11px;
    }
    .footer {
        padding-top: 40px;
        padding-bottom: 24px;
        gap: 28px;
    }
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    .footer-links-row {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 28px 20px;
        width: 100%;
    }
    .footer-col:last-child {
        grid-column: 1/-1;
    }
    .footer-col {
        min-width: 0;
    }
    .footer-logo-img {
        height: 26px;
    }
    .footer-brand-name {
        font-size: 14px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
    .about-row {
        grid-template-columns: minmax(0,1fr);
        gap: 28px;
    }
    .contact-cards {
        grid-template-columns: minmax(0,1fr);
    }
    .about-img {
        height: 260px;
    }
    .project-detail {
        padding-top: 24px;
        padding-bottom: 48px;
    }
    .detail-heading h1 {
        font-size: 30px;
    }
    .project-cover {
        height: auto;
        aspect-ratio: 4/3;
    }
    .project-story {
        grid-template-columns: minmax(0,1fr);
        gap: 24px;
        margin-top: 32px;
    }
    .project-story aside .aside-card {
        position: static;
    }
    .related-projects {
        margin-top: 40px;
    }
}
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
    }
}
.cases-more a {
    justify-content: center;
}
.footer-logo-img {
    filter: grayscale(1) brightness(5);
    mix-blend-mode: screen;
}
.booking-feedback {
    font-size: 14px;
    line-height: 1.8;
    color: #913c2b;
    background: #fff1eb;
    border: 1px solid #edc6b9;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0;
}
.booking-feedback:empty {
    display: none;
}
.form-card.is-submitted > :not(.booking-confirmation) {
    display: none;
}
.form-card.is-submitted {
    justify-content: center;
}
.booking-confirmation {
    text-align: center;
    color: #35544a;
    padding-top: 20px;
    padding-bottom: 20px;
    outline: none;
}
.booking-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    color: #fff;
    background: #35544a;
    font-size: 38px;
    font-family: sans-serif;
}
.booking-confirmation h3 {
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 12px;
}
.booking-confirmation p {
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0;
}
.booking-confirmation .booking-confirmation-lead {
    font-size: 18px;
    font-weight: 500;
}
.booking-confirmation .booking-confirmation-phone {
    background: #eaf0ec;
    padding: 12px;
    border-radius: 10px;
    margin-top: 24px;
}
.booking-confirmation .booking-confirmation-note {
    color: #746c60;
    font-size: 13px;
    margin-top: 16px;
}
.btn-submit:disabled {
    opacity: .65;
    cursor: wait;
}
.tag:empty {
    display: none;
}
.sec-title {
    text-wrap: balance;
    line-height: 1.45;
}
.comparison-scroll {
    overflow: auto;
    margin-top: 28px;
}
.comparison-scroll table {
    min-width: 680px;
    white-space: normal;
    display: table;
}
.comparison-scroll th,.comparison-scroll td {
    vertical-align: top;
    line-height: 1.9;
}
.comparison-scroll ul {
    padding-left: 16px;
}
.comparison-scroll th:first-child {
    width: 120px;
}
/* Homepage metrics: a quiet card on the same content grid as the projects. */
.hero:has(+ .home-metrics) {
    padding-bottom: 40px;
}
.wrap>.home-metrics {
    padding-top: 0;
    padding-bottom: 48px;
    background: var(--bg-page);
}
.metrics-card {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 0;
    padding: 30px 36px;
    background: #efeee8;
    border: 1px solid #e4e2d9;
    border-radius: 16px;
}
.metrics-card .stat {
    min-width: 0;
    width: auto;
    gap: 10px;
    padding-left: 28px;
    padding-right: 28px;
    justify-content: center;
}
.metrics-card .stat:first-child {
    padding-left: 0;
}
.metrics-card .stat:last-child {
    padding-right: 0;
}
.metrics-card .stat+.stat {
    border-left: 1px solid #d8dcd2;
}
.metrics-card .stat-num {
    font-size: 32px;
    line-height: 1.25;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}
.metrics-card .stat-label {
    font-size: 12px;
    line-height: 1.8;
    color: #6e7469;
}
.wrap>.home-metrics+.cases {
    padding-top: 48px;
}
@media (min-width:769px) and (max-width:1100px) {
    .metrics-card {
        padding: 28px 24px;
    }
    .metrics-card .stat {
        padding-left: 20px;
        padding-right: 20px;
    }
    .metrics-card .stat-num {
        font-size: 29px;
    }
}
@media (max-width:768px) {
    .hero:has(+ .home-metrics) {
        padding-bottom: 28px;
    }
    .wrap>.home-metrics {
        padding-bottom: 32px;
    }
    .metrics-card {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px 0;
        padding: 24px 20px;
        border-radius: 14px;
    }
    .metrics-card .stat {
        padding-left: 16px;
        padding-right: 16px;
        gap: 8px;
        justify-content: flex-start;
    }
    .metrics-card .stat:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
    .metrics-card .stat:nth-child(even) {
        padding-right: 0;
    }
    .metrics-card .stat:nth-child(n/**/+3) {
        padding-top: 20px;
        border-top: 1px solid #d8dcd2;
    }
    .metrics-card .stat-num {
        font-size: 27px;
    }
    .metrics-card .stat-label {
        font-size: 11px;
        line-height: 1.7;
    }
    .wrap>.home-metrics+.cases {
        padding-top: 36px;
    }
}
/* Floating dropdown drawer: keep navigation out of the page flow. */
@media (max-width:1100px) {
    .wrap { position: relative; }
    .wrap > .m-nav {
        display: flex;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bg-page, #f7f4ef);
        max-height: calc(100vh - 88px);
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 16px 28px #2b26221a;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease, visibility .22s;
    }
    .wrap > .m-nav.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}
@media (max-width:768px) {
    .wrap > .m-nav {
        top: 72px;
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
    }
}
/* Separate the drawer, navigation choices and page beneath it. */
.menu-backdrop { display: none; }
@media (max-width:1100px) {
    .menu-backdrop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99;
        background: rgba(27, 39, 33, .32);
        backdrop-filter: blur(2px);
        visibility: hidden;
        opacity: 0;
        transition: opacity .22s ease, visibility .22s;
    }
    .menu-backdrop.open { visibility: visible; opacity: 1; }
    .header {
        position: relative;
        z-index: 101;
        background: var(--bg-page, #f7f4ef);
    }
    .wrap > .m-nav {
        background: #fffdf9;
        border-bottom: 1px solid #dedfd5;
        border-radius: 0 0 22px 22px;
        box-shadow: 0 20px 40px rgba(24, 43, 34, .2), 0 4px 10px rgba(24, 43, 34, .08);
        padding-bottom: 24px;
    }
    .m-nav-links a {
        position: relative;
        padding-left: 14px;
        padding-right: 14px;
        border-radius: 8px;
    }
    .m-nav-links a.active {
        color: var(--green);
        background: #eaf0e9;
        font-weight: 600;
        border-bottom-color: transparent;
    }
    .m-nav-links a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 30%;
        bottom: 30%;
        width: 3px;
        border-radius: 3px;
        background: var(--green);
    }
    .m-nav .btn-primary {
        box-shadow: 0 5px 12px rgba(53, 84, 74, .16);
        margin-top: 4px;
    }
    .menu-btn[aria-expanded="true"] {
        border-radius: 8px;
        background: #eaf0e9;
    }
}
/* Toggle the hamburger into a close icon while the drawer is open. */
.menu-btn[aria-expanded="true"] svg {
    display: none;
}
.menu-btn[aria-expanded="true"]::after {
    content: '\2715';
    display: block;
    width: 26px;
    height: 26px;
    font: 26px/26px Arial, sans-serif;
    text-align: center;
    color: var(--ink, #2b2622);
}

.editorial-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

/* Preserve image crops in browsers without CSS aspect-ratio. */
@supports not (aspect-ratio: 1) {
    .hero-img,.case-img,.ws-img,.ba-img {
        position: relative;
    }
    .hero-img::before,.case-img::before,.ws-img::before,.ba-img::before {
        content: '';
        display: block;
        padding-top: 75%;
    }
    .hero-img::before { padding-top: 96.153846%; }
    .ba-img::before { padding-top: 125%; }
    .hero-img > img,.case-img > img,.ws-img > img,.ba-img > img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    @media (max-width:768px) {
        .hero-img::before { padding-top: 75%; }
        .ba-img::before { padding-top: 133.333333%; }
        .project-cover { position: relative; }
        .project-cover::before {
            content: '';
            display: block;
            padding-top: 75%;
        }
        .project-cover > img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }
}
