/* Homepage-only layout based on docs/ui-spec.md. */
body.home-page {
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
}

body.home-page .hp-hero .container,
body.home-page .hp-feature-section .container,
body.home-page .hp-about .container,
body.home-page .footer-area .container,
body.home-page .b2b-section .container,
body.home-page .b2b-cta .container,
body.home-page .b2b-why .container {
    width: 100%;
    max-width: 1180px;
    padding-right: 0;
    padding-left: 0;
}

/* Hero */
body.home-page .hp-hero {
    position: relative;
    height: clamp(480px, calc(100vh - 70px), 680px);
    height: clamp(480px, calc(100svh - 70px), 680px);
    min-height: 480px;
    margin-top: 70px;
    overflow: hidden;
    background: #111;
}

body.home-page .hp-hero-bg {
    position: absolute;
    inset: -3%;
    overflow: hidden;
    opacity: 1;
}

body.home-page .hp-hero-slide {
    position: absolute;
    inset: 0;
    background-position: 50% 54%;
    background-repeat: no-repeat;
    background-size: cover;
    backface-visibility: hidden;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.015);
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}

body.home-page .hp-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
}

body.home-page .hp-hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 1;
    background: linear-gradient(
    90deg,
    rgba(8, 10, 12, 0.84) 0%,
    rgba(8, 10, 12, 0.62) 35%,
    rgba(8, 10, 12, 0.18) 65%,
    rgba(8, 10, 12, 0) 100%
  );
    z-index: 1;
    transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-page .hp-hero-label,
body.home-page .hp-hero-title > span,
body.home-page .hp-hero-desc,
body.home-page .hp-hero-btns,
body.home-page .hp-stat-card {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(0, 24px, 0);
    transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, filter, transform;
}

body.home-page .hp-hero.is-ready .hp-hero-label,
body.home-page .hp-hero.is-ready .hp-hero-title > span,
body.home-page .hp-hero.is-ready .hp-hero-desc,
body.home-page .hp-hero.is-ready .hp-hero-btns,
body.home-page .hp-hero.is-ready .hp-stat-card {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

body.home-page .hp-hero.is-ready .hp-hero-label {
    transition-delay: 0.18s;
}
body.home-page .hp-hero.is-ready .hp-hero-title > span:nth-child(1) {
    transition-delay: 0.28s;
}
body.home-page .hp-hero.is-ready .hp-hero-title > span:nth-child(2) {
    transition-delay: 0.38s;
}
body.home-page .hp-hero.is-ready .hp-hero-title > span:nth-child(3) {
    transition-delay: 0.48s;
}
body.home-page .hp-hero.is-ready .hp-hero-desc {
    transition-delay: 0.58s;
}
body.home-page .hp-hero.is-ready .hp-hero-btns {
    transition-delay: 0.68s;
}

body.home-page .hp-stat-card {
    transform: translate3d(28px, 0, 0);
}

body.home-page .hp-hero.is-ready .hp-stat-card {
    transition-delay: 0.46s;
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .hp-hero-slide {
        opacity: 0;
        transform: scale(1.015);
        transition: none;
        animation: none;
    }

    body.home-page .hp-hero-slide.is-active {
        opacity: 1;
    }

    body.home-page .hp-hero-label,
    body.home-page .hp-hero-title > span,
    body.home-page .hp-hero-desc,
    body.home-page .hp-hero-btns,
    body.home-page .hp-stat-card {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

}

body.home-page .hp-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 18px;
}

body.home-page .hp-hero-content {
    max-width: 780px;
    padding-right: 24px;
}

body.home-page .hp-hero-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #d96a70;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

body.home-page .hp-hero-title {
    margin: 0 0 14px;
    color: #f7f5f2;
    font-family: "Poppins", sans-serif;
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.03;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
    text-transform: uppercase;
}

body.home-page .hp-hero-title span {
    display: block;
    color: #f7f5f2;
    white-space: normal;
}

body.home-page .hp-hero-title .text-gold {
    color: #d95a63;
}

body.home-page .hp-hero-desc {
    max-width: 610px;
    margin: 0 0 20px;
    padding-left: 20px;
    border-left: 3px solid #d96a70;
    color: #f1f1ee;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

body.home-page .hp-hero-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.home-page .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    height: 50px;
    padding: 0 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body.home-page .hp-btn-primary {
    border: 0;
    background: #b4121b;
    box-shadow: 0 8px 22px rgba(180, 18, 27, 0.32);
    color: #fff;
}

body.home-page .hp-btn-primary:hover {
    background: #c91822;
    color: #fff;
    transform: translateY(-2px);
}

body.home-page .hp-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    color: #fff;
}

body.home-page .hp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero statistics card */
body.home-page .hp-stat-card {
    width: 100%;
    max-width: 340px;
    min-height: 0;
    margin-left: auto;
    margin-right: 32px;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(34, 40, 43, 0.78), rgba(20, 23, 25, 0.66));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.home-page .hp-stat-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #e2e2de;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.home-page .hp-stat-card h3 {
    margin: 0 0 18px;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

body.home-page .hp-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.home-page .hp-stat:last-child {
    border-bottom: 0;
}

body.home-page .hp-stat-icon {
    display: flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(145deg, #c91420, #9e0811);
    box-shadow: 0 8px 18px rgba(156, 8, 17, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 25px;
}

body.home-page .hp-stat-number {
    display: block;
    color: #f7f5f2;
    font-family: "Anton", sans-serif;
    font-size: 37px;
    line-height: 1;
}

body.home-page .hp-stat-title {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

body.home-page .hp-stat-desc {
    display: block;
    max-width: 205px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
}

/* Feature bar */
body.home-page .hp-feature-section {
    position: relative;
    z-index: 20;
    margin-top: -44px;
}

body.home-page .hp-feature-bar {
    min-height: 108px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

body.home-page .hp-feature-col {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px 14px;
}

body.home-page .hp-feature-col:not(:last-child)::after {
    position: absolute;
    top: 20%;
    right: 0;
    width: 1px;
    height: 60%;
    background: rgba(0, 0, 0, 0.1);
    content: "";
}

body.home-page .hp-feature-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #b4121b;
    font-size: 34px;
}

body.home-page .hp-feature-title {
    display: block;
    color: #252525;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-transform: uppercase;
}

body.home-page .hp-feature-desc {
    display: block;
    margin-top: 5px;
    color: #737373;
    font-size: 14px;
    line-height: 1.5;
}

/* About, services and projects */
body.home-page .hp-about {
    padding: 64px 0;
    background: #fff;
}

/* Match the readable content width used by the B2B sections below. */
body.home-page .hp-about .container {
    max-width: 1180px;
}

body.home-page .hp-content-grid {
    margin-right: -15px;
    margin-left: -15px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.home-page .hp-about-col {
    padding-right: 15px;
    padding-left: 15px;
}

body.home-page .hp-about-company,
body.home-page .hp-services-col {
    border-right: 1px solid rgba(0, 0, 0, 0.09);
}

@media (min-width: 1200px) {
    body.home-page .hp-about-company {
        flex: 0 0 42%;
        max-width: 42%;
    }

    body.home-page .hp-services-col {
        flex: 0 0 22%;
        max-width: 22%;
    }

    body.home-page .hp-projects-col {
        flex: 0 0 36%;
        max-width: 36%;
    }
}

body.home-page .hp-about-company > .row {
    margin-right: -12px;
    margin-left: -12px;
}

body.home-page .hp-about-copy,
body.home-page .hp-about-visual {
    padding-right: 12px;
    padding-left: 12px;
}

body.home-page .hp-about-label-sm {
    display: inline-block;
    margin-bottom: 9px;
    color: #b4121b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

body.home-page .hp-about-label-sm::after {
    content: none;
}

body.home-page .hp-about-title-lg {
    margin: 0 0 16px;
    color: #171717;
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.55px;
    line-height: 1.15;
}

@media (min-width: 1200px) {
    body.home-page .hp-about-copy .hp-about-title-lg > span:first-child {
        white-space: normal;
    }
}

body.home-page .hp-about-title-lg .text-red {
    color: #b4121b;
}

body.home-page .hp-about-text p {
    margin-bottom: 13px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

body.home-page .hp-btn-selengkapnya {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 148px;
    height: 44px;
    margin-top: 4px;
    padding: 0 18px;
    border-radius: 8px;
    background: #b4121b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
}

body.home-page .hp-btn-selengkapnya:hover {
    background: #961017;
    color: #fff;
    transform: translateY(-2px);
}

body.home-page .hp-about-visual {
    display: flex;
    align-items: stretch;
}

body.home-page .hp-about-watermarked-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

body.home-page .b2b-watermarked-image {
    position: relative;
    display: block;
    width: 100%;
}

body.home-page .b2b-watermarked-image > img:not(.insights-watermark-logo) {
    display: block;
    width: 100%;
}

body.home-page .hp-about-img-below {
    display: block;
    width: 100%;
    height: 280px;
    min-height: 0;
    border-radius: 10px;
    background: #e8eaeb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    object-fit: cover;
    object-position: center 58%;
}

@media (min-width: 768px) {
    body.home-page .hp-about-company > .row {
        align-items: stretch;
    }

    body.home-page .hp-about-visual {
        height: auto;
    }

    body.home-page .hp-about-img-below {
        height: 100%;
        min-height: 280px;
    }
}

body.home-page .hp-service-rows {
    display: flex;
    flex-direction: column;
}

body.home-page .hp-service-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 7px 6px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 0;
    background: transparent;
    color: #303030;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

body.home-page .hp-service-row:hover {
    background: rgba(180, 18, 27, 0.06);
    color: #303030;
}

body.home-page .hp-srv-icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #a90f17;
    background: rgba(180, 18, 27, 0.09);
}

body.home-page .hp-srv-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    color: currentColor;
    shape-rendering: geometricPrecision;
}

body.home-page .hp-srv-label {
    flex: 1;
    color: #303030;
    font-size: 16px;
    font-weight: 600;
}

body.home-page .hp-srv-arrow {
    color: #777;
    font-size: 11px;
    transition: transform 0.25s ease;
}

body.home-page .hp-service-row:hover .hp-srv-arrow {
    color: #a90f17;
    transform: translateX(4px);
}

body.home-page .hp-link-all-red {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    min-height: 44px;
    padding: 0 17px;
    border-radius: 8px;
    color: #b4121b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.home-page .hp-link-all-red:hover {
    background: rgba(180, 18, 27, 0.08);
    color: #d01620;
}

body.home-page .hp-link-all-red-disabled,
body.home-page .hp-link-all-red-disabled:hover {
    background: transparent;
    color: #b4121b;
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

body.home-page .hp-project-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.home-page .hp-project-card-v {
    display: block;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}

body.home-page .hp-project-card-v:focus-visible {
    outline: 3px solid #8b1015;
    outline-offset: 3px;
}

body.home-page .hp-project-card-v h3 {
    overflow-wrap: anywhere;
    margin: 6px 2px 4px;
    color: #171717;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

body.home-page .hp-project-card-v p {
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 2px;
    color: #737373;
    font-size: 15px;
    line-height: 1.55;
}

body.home-page .hp-project-meta {
    display: block;
    margin: 7px 2px 0;
    color: #b4121b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.35;
    text-transform: uppercase;
}

/* Keep the three homepage columns aligned without reducing readable type. */
@media (min-width: 992px) {
    body.home-page .hp-about-copy,
    body.home-page .hp-services-col,
    body.home-page .hp-projects-col {
        display: flex;
        flex-direction: column;
    }

    body.home-page .hp-about-title-lg {
        min-height: 60px;
    }

    body.home-page .hp-btn-selengkapnya,
    body.home-page .hp-services-col > .hp-link-all-red,
    body.home-page .hp-projects-col > .hp-link-all-red {
        align-self: flex-start;
        margin-top: auto;
    }

    body.home-page .hp-project-card-v h3 {
        min-height: 42px;
    }

    body.home-page .hp-project-card-v p {
        min-height: 60px;
    }
}

/* Homepage footer alignment without changing inner pages */
body.home-page .footer-area .main-footer-area {
    padding-top: 72px;
    padding-bottom: 64px;
}

body.home-page .footer-grid {
    gap: 30px;
}

/* Floating contact */
body.hp-body .floating-social {
    position: fixed;
    top: auto;
    right: 11px;
    left: auto;
    bottom: 74px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    transform: none;
}

body.hp-body .floating-social.wechat-open {
    z-index: 1200;
}

body.hp-body .floating-social a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: #16c52f;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

body.hp-body .floating-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

body.hp-body .floating-social .fs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
}

body.hp-body .wechat-panel {
    position: absolute;
    right: -1px;
    left: auto;
    bottom: 68px;
    width: 290px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transform-origin: right bottom;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

body.hp-body .wechat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

body.hp-body .wechat-panel header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    background: #16c52f;
}

body.hp-body .wechat-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

body.hp-body .wechat-panel-body {
    padding: 8px;
}

body.hp-body .wechat-panel-body p {
    margin: 0 0 9px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f2f2f2;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

body.hp-body .wechat-panel-body img {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 1399.98px) {
    body.home-page .hp-hero-title {
        font-size: 50px;
    }
    body.home-page .hp-stat-card {
        max-width: 325px;
        margin-right: 24px;
        padding-right: 24px;
        padding-left: 24px;
    }
    body.home-page .hp-feature-col {
        gap: 10px;
        padding-right: 10px;
        padding-left: 10px;
    }
    body.home-page .hp-feature-icon {
        flex-basis: 42px;
        width: 42px;
        font-size: 30px;
    }
}

@media (max-width: 1199.98px) {
    body.home-page .hp-hero .container,
    body.home-page .hp-feature-section .container,
    body.home-page .hp-about .container,
    body.home-page .footer-area .container {
        padding-right: 12px;
        padding-left: 12px;
    }
    body.home-page .hp-hero {
        height: clamp(480px, calc(100vh - 70px), 600px);
        height: clamp(480px, calc(100svh - 70px), 600px);
        min-height: 480px;
    }
    body.home-page .hp-hero-title {
        font-size: 44px;
    }
    body.home-page .hp-hero-desc {
        font-size: 16px;
    }
    body.home-page .hp-stat-card {
        max-width: 300px;
        margin-right: 12px;
        min-height: 0;
        padding: 8px 22px;
    }
    body.home-page .hp-stat {
        min-height: 0;
        padding: 11px 0;
    }
    body.home-page .hp-stat-icon {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    body.home-page .hp-stat-number {
        font-size: 38px;
    }
    body.home-page .hp-feature-title {
        font-size: 14px;
    }
    body.home-page .hp-feature-desc {
        font-size: 14px;
    }
    body.home-page .hp-about-title-lg {
        font-size: 24px;
    }
    body.home-page .hp-about-text p {
        font-size: 16px;
    }

}

@media (max-width: 991.98px) {
    body.home-page .hp-hero {
        height: auto;
        min-height: 0;
        margin-top: 70px;
        padding: 70px 0 64px;
    }
    body.home-page .hp-hero-content {
        max-width: 680px;
        padding-right: 0;
    }
    body.home-page .hp-hero-title {
        font-size: 48px;
    }
    body.home-page .hp-hero-title span {
        white-space: normal;
    }
    body.home-page .hp-stat-card {
        max-width: 680px;
        min-height: 0;
        margin: 42px auto 0;
    }
    body.home-page .hp-feature-section {
        margin-top: 0;
        padding: 30px 0 0;
    }
    body.home-page .hp-feature-bar {
        min-height: 0;
    }
    body.home-page .hp-feature-col {
        min-height: 92px;
        padding: 18px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    body.home-page .hp-feature-col:not(:last-child)::after {
        display: none;
    }
    body.home-page .hp-feature-col:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
    body.home-page .hp-feature-title {
        font-size: 14px;
    }
    body.home-page .hp-feature-desc {
        font-size: 14px;
    }
    body.home-page .hp-about {
        padding: 52px 0 60px;
    }
    body.home-page .hp-about-col {
        margin-bottom: 44px;
        border-right: 0;
    }
    body.home-page .hp-about-company > .row {
        align-items: stretch;
    }
    body.home-page .hp-about-title-lg {
        font-size: 30px;
    }
    body.home-page .hp-about-text p {
        font-size: 16px;
    }
    body.home-page .hp-about-img-below {
        min-height: 310px;
    }
    body.home-page .hp-project-cards {
        gap: 18px;
    }

    body.home-page .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.hp-body .floating-social {
        top: auto;
        right: 14px;
        left: auto;
        bottom: 74px;
        transform: none;
    }
    body.hp-body .wechat-panel {
        right: -4px;
        left: auto;
        bottom: 62px;
    }
    body.hp-body .floating-social a {
        width: 50px;
        height: 50px;
    }
    body.hp-body .floating-social .fs-icon {
        font-size: 25px;
    }
}

@media (max-width: 767.98px) {
    body.home-page .hp-hero {
        padding: 56px 0 50px;
    }
    body.home-page .hp-hero-label {
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 1.2px;
        opacity: 0.9;
    }
    body.home-page .hp-hero-title {
        font-size: 42px;
        line-height: 0.98;
    }
    body.home-page .hp-hero-title .text-gold {
        color: #d95a63;
    }
    body.home-page .hp-hero-desc {
        font-size: 15px;
        line-height: 1.58;
    }
    body.home-page .hp-hero-btns {
        gap: 10px;
    }
    body.home-page .hp-btn-outline {
        opacity: 0.82;
    }
    body.home-page .hp-btn {
        min-width: 0;
        height: 52px;
    }
    body.home-page .hp-stat-card {
        padding: 26px;
        border-radius: 20px;
    }
    body.home-page .hp-feature-col:nth-last-child(-n + 2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    body.home-page .hp-feature-col:last-child {
        border-bottom: 0;
    }
    body.home-page .hp-about-copy {
        margin-bottom: 0;
    }
    body.home-page .hp-about-visual {
        height: 280px;
        margin-bottom: 24px;
    }
    body.home-page .hp-about-img-below {
        min-height: 0;
        clip-path: none;
    }
    body.home-page .hp-project-cards {
        grid-template-columns: 1fr;
    }

    body.home-page .hp-project-meta {
        align-self: end;
        margin: 10px 2px 0;
    }
    body.home-page .hp-project-card-v h3 {
        min-height: 0;
        margin: 6px 2px 4px;
        font-size: 17px;
    }
    body.home-page .hp-project-card-v p {
        min-height: 0;
        margin: 0 2px 12px;
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    body.home-page .hp-hero .container,
    body.home-page .hp-feature-section .container,
    body.home-page .hp-about .container,
    body.home-page .footer-area .container {
        padding-right: 16px;
        padding-left: 16px;
    }
    body.home-page .b2b-section .container,
    body.home-page .b2b-cta .container {
        padding-right: 12px;
        padding-left: 12px;
    }
    body.home-page .hp-hero-title {
        font-size: 33px;
    }
    body.home-page .hp-hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    body.home-page .hp-btn {
        width: 100%;
    }
    body.home-page .hp-stat-card h3 {
        font-size: 19px;
    }
    body.home-page .hp-stat {
        gap: 15px;
    }
    body.home-page .hp-stat-number {
        font-size: 34px;
    }
    body.home-page .hp-stat-title {
        font-size: 16px;
    }
    body.home-page .hp-feature-bar {
        padding: 6px 12px;
    }
    body.home-page .hp-feature-col {
        min-height: 84px;
        padding: 14px 8px;
    }
    body.home-page .hp-about {
        padding-top: 44px;
    }
    body.home-page .hp-about-title-lg {
        font-size: 27px;
    }

    body.home-page .footer-grid {
        grid-template-columns: 1fr;
    }
    body.hp-body .floating-social {
        right: 9px;
        left: auto;
        bottom: 66px;
    }
    body.hp-body .floating-social a {
        width: 48px;
        height: 48px;
    }
    body.hp-body .floating-social .fs-icon {
        font-size: 24px;
    }
    body.hp-body .wechat-panel {
        right: -3px;
        left: auto;
        bottom: 60px;
        width: min(290px, calc(100vw - 28px));
    }
}

@media (prefers-reduced-motion: reduce) {
}

/* Scroll animation for homepage content. JS adds .is-visible when an item enters view. */
body.home-page .home-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

body.home-page .home-reveal.home-reveal-left {
    transform: translate3d(-28px, 0, 0);
}

body.home-page .home-reveal.home-reveal-right {
    transform: translate3d(28px, 0, 0);
}

body.home-page .home-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.home-page .home-reveal-stagger > * {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}

body.home-page .home-reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.home-page .home-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
body.home-page .home-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
body.home-page .home-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
body.home-page .home-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
body.home-page .home-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
body.home-page .home-reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .48s; }
body.home-page .home-reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .56s; }

@media (prefers-reduced-motion: reduce) {
    body.home-page .hp-hero,
    body.home-page .hp-hero-bg,
    body.home-page .hp-hero-inner {
        perspective: none;
        transform: none;
        transition: none;
    }
    body.home-page .hp-hero::after { display: none; }
    body.home-page .home-reveal,
    body.home-page .home-reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
