@media (max-width: 1439px) {

    /* No room beside the container at this width - bring the arrows inside. */
    .testimonials-slider-wrap {
        padding: 0 60px;
    }

    .testimonials-arrow-prev {
        left: 0;
    }

    .testimonials-arrow-next {
        right: 0;
    }

    .story-layout {
        grid-template-columns: 1fr 560px;
    }

    .story-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 250px 250px;
    }

    .knowledge-layout {
        grid-template-columns: 1fr 1fr;
    }

    .video-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
    }

    .article-card-row {
        grid-template-columns: 240px 1fr;
    }
}

/* Mulish ExtraBold 16px fills the whole 1370px header container, so the bar is
   tightened over this range and drops to the burger menu below it. */
@media (min-width: 1280px) and (max-width: 1420px) {
    .main-nav-list {
        gap: 15px;
    }

    .main-nav-link {
        gap: 5px;
        font-size: 14px;
    }

    .site-logo img {
        width: 64px;
    }

    .site-header-actions {
        gap: 12px;
    }

    .header-cta {
        padding: 12px 22px;
        font-size: 15px;
    }
}

@media (max-width: 1279px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        padding: 20px;
        overflow-y: auto;
        background-color: var(--color-surface);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity var(--transition-base) var(--easing),
            transform var(--transition-base) var(--easing),
            visibility var(--transition-base) var(--easing);
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav-item+.main-nav-item {
        border-top: 1px solid var(--color-border);
    }

    .main-nav-item.is-active::before {
        display: none;
    }

    .main-nav-link {
        justify-content: space-between;
        padding: 16px 4px;
    }

    .submenu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 12px 14px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav-item.is-open>.submenu {
        display: block;
    }

    .main-nav-item:hover>.submenu {
        transform: none;
    }
}

@media (max-width: 1199px) {
    .process-step {
        height: auto;
    }

    .consultation-form {
        margin-top: 34px;
    }

    .consultation-section .section-title {
        font-size: 34px !important;
    }

    .consultation-section .script-title {
        font-size: 42px !important;
    }

    .projects-section .section-title .display-title {
        font-size: 44px;
    }

    .certification-section {
        padding: 40px 0;
    }

    .certification-pagination {
        margin-top: 15px;
    }

    .hero-slider {
        height: 520px;
    }

    .slider-arrow-prev {
        left: 20px;
    }

    .slider-arrow-next {
        right: 20px;
    }

    /* minmax(0, …) is required: a bare 1fr track sizes to its max-content, and
       the certification Swiper feeds its own slide widths back into that. */
    .story-layout,
    .split-layout,
    .works-section .split-layout,
    .certification-layout,
    .process-layout,
    .knowledge-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Stacked on one column, a nested scroller is awkward - show every step. */
    .process-list {
        height: auto;
        overflow-y: visible;
    }

    /* One column: the tab row no longer sits beside the text. */
    .works-section .split-content {
        padding-top: 0;
    }

    .story-gallery {
        grid-template-rows: 230px 230px;
    }

    .story-figure-tall {
        grid-row: span 1;
    }

    .filter-list-stacked {
        flex-direction: row;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
    }

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

    .video-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .video-card .video-card-image {
        height: 200px;
    }

    .video-card-featured .video-card-image {
        height: 320px;
    }

    .standards-layout {
        grid-template-columns: 1fr 1fr;
        column-gap: 29px;
    }

    .standards-content {
        grid-column: span 2;
        order: -1;
        padding-left: 0;
        text-align: center;
    }

    .standards-content .dot-nav,
    .standards-content .badge-pill {
        margin-inline: auto;
    }

    .testimonials-slider-wrap {
        padding: 0 60px;
    }

    .contact-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-figure img {
        height: 360px;
    }

    .footer-layout {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-column-contact {
        grid-column: span 3;
    }
}

@media (max-width: 991px) {
    .hotline-list {
        gap: 15px;
    }

    .hotline-card {
        gap: 15px;
        padding: 15px;
    }

    .site-footer {
        padding: 40px 0 0;
    }

    .video-grid {
        gap: 15px;
    }

    .section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .script-title {
        font-size: 68px;
    }

    .section-overline {
        font-size: 26px;
    }

    .story-title .display-title,
    .projects-section .section-title .display-title,
    .standards-content .section-title .display-title {
        font-size: 36px;
    }

    .projects-section .section-title .highlight,
    .standards-content .section-title .subtitle {
        font-size: 28px;
    }

    .consultation-section .script-title {
        font-size: 38px;
    }

    /* Scoped because the desktop rule for this one is scoped too and would
       otherwise keep its 115px past this breakpoint. */
    .team-section .section-title .script-title {
        font-size: 68px;
    }

    .consultation-section .section-title,
    .works-section .split-content .section-title {
        font-size: 32px;
    }

    .team-section .section-title .display-title {
        font-size: 30px;
    }

    .hero-slider {
        height: 420px;
    }

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

    .service-card {
        height: 430px;
    }

    .project-grid,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }

    .process-figure img {
        height: 340px;
    }

    .standards-figure img {
        height: 360px;
    }

    .team-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 150px;
    }

    .team-figure {
        grid-column: auto !important;
        grid-row: auto !important;
    }

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

    .footer-layout {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .footer-column-contact {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .section-quote-center {
        text-align: justify;
        padding-left: 45px;
    }

    .section {
        padding: 42px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .script-title {
        font-size: 68px;
    }

    .section-tag {
        font-size: 14px;
    }

    /* Tabs stay on a single swipeable row instead of wrapping. The negative
       margin lets the row bleed to the screen edges so a cut-off tab reads as
       "there is more", and "safe" keeps the first tab reachable once the row
       overflows a centred container. */
    .filter-list {
        flex-wrap: nowrap;
        justify-content: safe center;
        margin-inline: -20px;
        padding-inline: 20px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .filter-list::-webkit-scrollbar {
        display: none;
    }

    .filter-list-stacked {
        flex-direction: row;
    }

    .filter-button {
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .story-title .display-title,
    .projects-section .section-title .display-title,
    .standards-content .section-title .display-title {
        font-size: 24px;
    }

    .story-title .display-title {
        margin-top: 20px;
    }

    .consultation-section .script-title {
        font-size: 30px;
    }

    .consultation-section .section-title,
    .works-section .split-content .section-title {
        font-size: 26px;
    }

    /* "Nhân sự của HTH HOME" has to hold one line on a phone: the glyphs run
       about 12.6x the font size, so the size tracks the viewport below 390px. */
    .team-section .section-title .display-title {
        font-size: min(26px, 7.4vw - 3px);
    }

    .badge-pill,
    .badge-pill-primary {
        font-size: 16px;
        padding: 11px 22px;
    }

    .hero-slider {
        height: 300px;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
        margin-top: -21px;
        font-size: 15px;
    }

    .story-gallery {
        grid-template-rows: 180px 180px;
    }

    .stats-grid {
        gap: 22px 20px;
        margin-top: 30px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        height: 400px;
    }

    .project-grid,
    .work-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

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

    .video-card-featured {
        grid-column: span 1;
    }

    .video-card .video-card-image,
    .video-card-featured .video-card-image {
        height: 200px;
    }

    /* Eight open steps make a very long column on a phone, so the list turns
       into an accordion: the step that is active - the one already driving the
       photo below - is the only one showing its description. */
    /* Grid rather than flex: main.js moves the photo into the open step, and it
       has to span the whole width on its own row under the header. Every cell is
       placed explicitly because ::after generates after that moved child. */
    .process-step {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        column-gap: 14px;
        padding: 18px;
    }

    .process-step-number {
        grid-column: 1;
        grid-row: 1;
    }

    .process-step-body {
        grid-column: 2;
        grid-row: 1;
    }

    .process-step>.process-figure {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 16px;
    }

    .process-step::after {
        content: '\f078';
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        font-family: 'Font Awesome 7 Pro';
        font-size: 14px;
        font-weight: 300;
        color: var(--color-dark);
        transition: transform var(--transition-base) var(--easing);
    }

    .process-step.is-active::after {
        transform: rotate(180deg);
    }

    .process-step:not(.is-active) .process-step-description {
        display: none;
    }

    .process-step:not(.is-active) .process-step-title {
        margin-bottom: 0;
    }

    .process-step-number {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .process-figure-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }

    .standards-layout {
        grid-template-columns: 1fr;
    }

    .standards-content {
        grid-column: span 1;
    }

    .standards-figure img {
        height: 280px;
    }

    .testimonials-slider-wrap {
        padding: 0;
    }

    /* One card per view: keep only enough room for the avatar itself. */
    .testimonial-title {
        padding-right: 92px;
    }

    .testimonials-arrow-prev,
    .testimonials-arrow-next {
        display: none;
    }

    .article-card-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-card-row .article-thumbnail img,
    .article-card-featured .article-thumbnail img {
        height: 210px;
    }

    .team-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .contact-panel {
        padding: 36px 20px;
    }

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

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

    .site-copyright {
        margin-top: 34px;
    }
}

@media (max-width: 575px) {
    .site-logo img {
        width: 58px;
    }

    .header-cta {
        padding: 10px 18px;
        font-size: 14px;
    }

    .section-quote {
        padding-left: 32px;
    }

    .filter-button {
        padding: 11px 18px;
        font-size: 15px;
    }

    .story-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .story-figure img {
        height: 220px;
    }

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

    .form-field {
        width: 100%;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .promo-popup {
        padding: 16px;
    }

    .promo-popup-dialog {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 24px 14px 16px;
    }

    .promo-popup-title {
        font-size: 18px;
    }

    .promo-popup-text {
        font-size: 14px;
    }

    .promo-popup-banner {
        margin-top: 16px;
    }

    .promo-popup-banner img {
        max-height: max(160px, calc(100vh - 560px));
    }

    .promo-popup-link {
        font-size: 14px;
    }

    .countdown {
        gap: 4px;
    }

    .countdown-item {
        height: 60px;
        gap: 4px;
    }

    .countdown-value {
        font-size: 26px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .promo-popup-form {
        gap: 10px;
    }

    .promo-popup-form .form-control {
        height: 42px;
    }

    .promo-popup-submit {
        height: 46px;
        font-size: 15px;
    }

    .contact-dock {
        left: 12px;
        bottom: 16px;
    }

    .contact-dock-list {
        gap: 8px;
    }

    .contact-dock-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (hover: none) {
    .contact-dock-label {
        display: none;
    }
}

/* ------------------------------------------------- service pages (renovation) */

@media (max-width: 1439px) {

    /* No room outside the container for the review arrows. */
    .reviews-slider-wrap {
        padding: 0 60px;
    }

    .reviews-arrow-prev {
        left: 0;
    }

    .reviews-arrow-next {
        right: 0;
    }
}

@media (max-width: 1199px) {

    /* Below this width the before/after card in the photo slides under the
       text, so a veil keeps the copy readable. */
    .renovation-hero-section {
        background-image: linear-gradient(90deg, rgba(13, 59, 47, 0.92), rgba(13, 59, 47, 0.55)),
            url('../backgrounds/renovation-hero-background.jpg');
        background-position: center, 70% center;
    }

    .needs-layout,
    .project-showcase,
    .consult-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .needs-figure {
        height: auto;
        aspect-ratio: 628 / 416;
    }

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

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

    .review-card-featured {
        grid-column: 1 / -1;
    }

    .reviews-arrow-prev,
    .reviews-arrow-next {
        top: 50%;
    }

    .price-col-service {
        width: 280px;
    }

    .price-col-scope {
        width: 330px;
    }

    .price-col-price {
        width: 180px;
    }

    .consult-figure {
        min-height: 420px;
    }
}

@media (max-width: 991px) {
    .service-hero-inner {
        min-height: 0;
        padding: 72px 0 56px;
    }

    .service-hero-title {
        font-size: 34px;
    }

    .service-hero-subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    .service-hero-description {
        font-size: 16px;
        line-height: 26px;
    }

    .hero-feature-list {
        grid-template-columns: repeat(2, max-content);
        gap: 16px 40px;
    }

    .service-hero-actions {
        margin-top: 32px;
    }

    .renovation-needs-section,
    .renovation-categories-section,
    .renovation-risk-section,
    .renovation-pricing-section,
    .renovation-process-section,
    .renovation-projects-section,
    .reviews-section,
    .faq-section,
    .consult-section {
        padding: 52px 0;
    }

    .media-card-title {
        font-size: 20px;
    }

    .price-footer {
        flex-direction: column;
    }

    .button-tile {
        justify-content: center;
        gap: 20px;
        width: 100%;
        min-height: 70px;
    }

    .button-tile br {
        display: none;
    }

    .faq-question {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .service-hero-title {
        font-size: 30px;
    }

    .renovation-hero-section {
        background-position: center, 100% center;
    }

    .service-hero-subtitle {
        font-size: 18px;
        line-height: 26px;
    }

    .service-hero-actions .button {
        width: 100%;
    }

    .hero-feature-list {
        gap: 16px 24px;
    }

    .eyebrow-center::before,
    .eyebrow-center::after {
        width: 40px;
    }

    .caption-figure-body,
    .caption-figure-brand .caption-figure-body {
        padding: 16px 20px;
    }

    .caption-figure-title,
    .caption-figure-brand .caption-figure-title {
        font-size: 20px;
    }

    .caption-figure-text,
    .caption-figure-brand .caption-figure-text {
        font-size: 15px;
        line-height: 22px;
    }

    .price-note {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 0;
    }

    .price-note-label {
        flex-direction: row;
        justify-content: center;
        width: auto;
        margin-bottom: 10px;
    }

    .price-note-list {
        margin: 0 16px;
        padding: 10px 0 0;
        border-top: 1px solid var(--color-line);
        border-left: 0;
    }

    .step-number {
        font-size: 34px;
    }

    .step-text {
        font-size: 16px;
        line-height: 24px;
    }

    .before-after {
        height: 240px;
    }

    .meta-list-inline {
        flex-wrap: wrap;
        gap: 8px 24px;
    }

    .meta-list-inline li:last-child {
        flex-basis: 100%;
    }

    .review-card-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews-slider-wrap {
        padding: 0;
    }

    .reviews-arrow-prev,
    .reviews-arrow-next {
        display: none;
    }

    .consult-card {
        padding: 24px 18px;
    }

    .consult-title {
        font-size: 30px;
        line-height: 36px;
    }

    .consult-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .consult-figure {
        min-height: 360px;
    }

    .consult-submit {
        font-size: 17px;
    }
}

@media (max-width: 575px) {
    .breadcrumb-list {
        font-size: 13px;
    }

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

    .card-grid,
    .reviews-page,
    .project-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .project-item {
        gap: 14px;
    }

    .before-after-small {
        height: 180px;
    }

    .project-showcase .meta-list li:last-child {
        max-width: none;
    }

    .faq-question {
        padding: 10px 14px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 14px 14px 16px;
        font-size: 15px;
        line-height: 24px;
    }
}

@media (max-width: 1439px) {
    .partners-slider-wrap {
        padding: 0 60px;
    }

    .partners-arrow-prev {
        left: 0;
    }

    .partners-arrow-next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .partners-slider-wrap {
        padding: 0;
    }

    .partners-arrow-prev,
    .partners-arrow-next {
        display: none;
    }

    .partner-logo img {
        max-width: 130px;
        max-height: 64px;
    }
}

/* ------------------------------------------------- projects page */

@media (max-width: 1199px) {
    .house-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .house-filter-submit {
        grid-column: 1 / -1;
    }

    .article-row,
    .article-row-reverse {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    }
}

@media (max-width: 991px) {
    .projects-hero-section .service-hero-inner {
        padding: 72px 0 56px;
    }

    .house-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 24px;
    }

    .article-row,
    .article-row-reverse {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-row-reverse .article-figure {
        order: 0;
    }

    .article-figure {
        aspect-ratio: 16 / 10;
    }

    .gallery-title {
        line-height: 1.25;
    }

    .house-list-section,
    .townhouse-guide-section,
    .house-gallery-section,
    .house-gallery-section+.house-gallery-section {
        padding: 52px 0;
    }
}

@media (max-width: 767px) {
    .pill-list {
        gap: 10px;
    }

    .pill-button {
        flex-shrink: 0;
    }

    .projects-hero-subtitle {
        font-size: 18px;
        line-height: 26px;
    }

    .projects-hero-actions .button {
        width: 100%;
    }

    .intro-box {
        padding: 22px 18px;
    }

    .intro-box-title {
        font-size: 18px;
        line-height: 26px;
    }

    .article-heading {
        font-size: 22px;
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .gallery-item figcaption {
        margin-top: 14px;
        padding: 0;
    }
}

@media (max-width: 575px) {
    .house-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .house-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pagination-list {
        gap: 6px;
    }

    .pagination-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* --------------------------------------------- construction page */

@media (max-width: 1199px) {
    .card-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* The collage in the background would sit under the list, so the
       section drops to a plain tint and the list takes the full width. */
    .quality-section {
        padding: 60px 0;
        background-image: none;
    }

    .quality-content {
        max-width: none;
    }

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

@media (max-width: 991px) {
    .construction-hero-section {
        background-image: linear-gradient(90deg, rgba(13, 59, 47, 0.92), rgba(13, 59, 47, 0.55)),
            url('../backgrounds/construction-hero-background.jpg');
        background-position: center, 70% center;
    }

    .construction-hero-section .service-hero-inner {
        min-height: 0;
        padding: 72px 0 56px;
    }

    .construction-hero-title {
        font-size: 34px;
        line-height: 46px;
    }

    .scope-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .service-tab {
        font-size: 16px;
    }

    .construction-categories-section,
    .construction-process-section,
    .construction-projects-section,
    .engineer-team-section {
        padding: 52px 0;
    }
}

@media (max-width: 767px) {
    .construction-hero-section .projects-hero-actions {
        display: grid;
    }

    .construction-hero-title {
        font-size: 30px;
        line-height: 40px;
    }

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

    .service-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 16px 0;
    }

    .service-tab {
        flex-direction: column;
        justify-content: center;
        height: auto;
        min-height: 48px;
        padding: 6px 8px;
        font-size: 13px;
        line-height: 1.3;
        text-align: center;
    }

    .service-tab span {
        display: block;
        white-space: nowrap;
    }

    .card-grid-3,
    .engineer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .media-card-lg .media-card-image {
        height: 220px;
    }

    .step-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .step-card {
        padding: 18px;
    }

    .step-card-number {
        font-size: 38px;
    }

    .step-card-title {
        font-size: 17px;
        line-height: 24px;
    }

    .quality-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .quality-arrow {
        display: none;
    }
}

@media (max-width: 575px) {
    .step-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .quality-number {
        width: auto;
        font-size: 28px;
    }

    .quality-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .quality-body {
        flex-basis: 100%;
    }
}

@media (max-width: 575px) {
    .button-lg {
        padding: 0 14px;
        font-size: 16px;
        white-space: nowrap;
    }
}

/* ------------------------------------------------ turnkey page */

@media (max-width: 1199px) {
    .turnkey-intro-section .story-title .script-title {
        font-size: 64px;
    }

    .concern-card[data-distance="2"] {
        opacity: 0;
        pointer-events: none;
    }

    .solution-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .solution-video {
        height: 320px;
    }

    .process-layout-scope .process-list,
    .process-layout-commitment .process-list {
        height: auto;
    }

    .process-layout-scope .process-step,
    .process-layout-commitment .process-step {
        height: auto;
        gap: 0;
        column-gap: 14px;
        padding: 18px;
    }

    .turnkey-step-grid {
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .turnkey-hero-section .service-hero-inner {
        min-height: 440px;
    }

    .concern-card[data-distance="1"] {
        opacity: 0;
        pointer-events: none;
    }

    .package-card {
        height: 400px;
    }

    .package-card-title {
        margin: 0 18px 18px;
        font-size: 26px;
        line-height: 1.3;
    }

    .note-panel-text {
        font-size: 18px;
        line-height: 28px;
    }

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

    .expand-grid {
        flex-direction: column;
        height: auto;
    }

    .expand-panel {
        flex: none;
        min-height: 340px;
    }

    .expand-panel-text {
        max-height: 140px;
        margin-top: 10px;
        opacity: 1;
    }

    .expand-panel::after {
        opacity: 1;
    }

    .price-card-grid {
        grid-template-columns: minmax(0, 560px);
        justify-content: center;
    }

    .turnkey-process-section {
        padding: 56px 0;
    }
}

@media (max-width: 767px) {
    .turnkey-hero-section .service-hero-inner {
        min-height: 320px;
    }

    .turnkey-hero-action {
        bottom: 20px;
    }

    .turnkey-intro-section .story-title .script-title {
        font-size: 52px;
    }

    .turnkey-intro-section .story-title .display-title {
        font-size: 22px;
    }

    .story-actions {
        flex-wrap: wrap;
    }

    .concerns-section {
        padding: 56px 0 48px;
    }

    .concerns-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .concern-card[data-distance="0"] {
        --offset: 0px;
    }

    .concern-card[data-distance="0"][data-side="-1"] {
        opacity: 0;
        pointer-events: none;
    }

    .solution-subtitle {
        font-size: 20px;
    }

    .solution-video {
        height: 220px;
    }

    .package-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .package-card {
        height: 340px;
    }

    .note-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .process-layout-scope .process-figure-overlay,
    .process-layout-commitment .process-figure-overlay {
        padding: 20px;
    }

    .process-figure-number {
        font-size: 44px;
    }

    .process-layout-commitment .process-step-number {
        font-size: 22px;
    }

    .turnkey-step-number {
        font-size: 32px;
    }

    .turnkey-step-title {
        font-size: 16px;
        line-height: 24px;
    }

    .turnkey-process-section .section-action-center .button {
        height: auto;
        padding: 10px 15px;
    }

    .expand-panel {
        min-height: 300px;
    }

    .expand-panel-title {
        font-size: 19px;
        line-height: 26px;
    }

    .price-card-title,
    .price-card-featured .price-card-title {
        font-size: 22px;
    }

    .price-card-rate dd,
    .price-card-rate+.price-card-rate dd {
        font-size: 19px;
    }
}

@media (max-width: 575px) {
    .turnkey-intro-section .story-title .script-title {
        font-size: 44px;
    }

    .turnkey-step-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .turnkey-hero-action {
        height: 44px;
        font-size: 15px;
    }

    .price-card {
        padding: 24px 20px;
    }
}

/* ------------------------------------------------ about page */

@media (max-width: 1199px) {
    .about-hero-title .script-title {
        font-size: 96px;
    }

    .about-hero-title-accent {
        margin-left: 64px;
    }

    .about-story-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-story-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-values-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .about-value {
        padding: 0 20px;
    }

    .about-value+.about-value {
        padding-top: 40px;
        border-top: 1px solid #e1e6e4;
        background: none;
    }

    .principle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .principle-card-offset {
        grid-column: auto;
    }

    .team-collage {
        grid-template-rows: repeat(3, 220px);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .about-hero-section {
        background-image: linear-gradient(rgba(13, 59, 47, 0.62), rgba(13, 59, 47, 0.62)),
            url('../backgrounds/about-hero-background.jpg');
    }

    .about-hero-section .service-hero-inner {
        min-height: 520px;
    }

    .about-hero-content {
        padding-top: 70px;
    }

    .about-hero-title .script-title {
        font-size: 72px;
    }

    .about-hero-title-accent {
        margin-left: 40px;
    }

    .about-hero-lead {
        font-size: 24px;
    }

    .about-philosophy-section {
        padding: 70px 0;
    }

    .about-story-signature .script-title {
        font-size: 80px;
    }

    .about-team-title .script-title {
        font-size: 84px;
    }
}

@media (max-width: 767px) {
    .about-hero-section .service-hero-inner {
        min-height: 440px;
    }

    .about-hero-title .script-title {
        font-size: 52px;
    }

    .about-hero-title-accent {
        margin-left: 24px;
    }

    .about-hero-lead {
        margin-top: 20px;
        font-size: 20px;
    }

    .about-hero-text {
        font-size: 16px;
        line-height: 26px;
    }

    .about-story-gallery {
        grid-template-rows: 200px 200px;
    }

    .about-story-heading {
        font-size: 20px;
    }

    .about-story-text {
        font-size: 16px;
        line-height: 26px;
    }

    .about-story-signature .script-title {
        font-size: 58px;
    }

    .about-story-signature .display-title {
        font-size: 22px;
    }

    .about-video {
        margin-top: 30px;
    }

    .about-philosophy-bar {
        padding: 0 20px;
        font-size: 18px;
        line-height: 40px;
    }

    .about-philosophy-quote {
        padding-left: 36px;
        font-size: 16px;
        line-height: 26px;
    }

    .about-value-title {
        font-size: 28px;
    }

    .principle-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .principle-card {
        min-height: 0;
    }

    .about-team-title .script-title {
        font-size: 64px;
    }

    .team-collage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 180px;
        gap: 14px;
    }

    .team-collage-a,
    .team-collage-b,
    .team-collage-c,
    .team-collage-d,
    .team-collage-e,
    .team-collage-f {
        grid-column: auto;
        grid-row: auto;
    }

    .team-collage-b,
    .team-collage-e {
        grid-row: span 2;
    }

    .team-collage-f {
        grid-column: 1 / -1;
    }

    .about-certification-section {
        padding: 56px 0;
    }

    .about-projects-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .about-hero-title .script-title {
        font-size: 42px;
    }

    .about-story-gallery {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-rows: 220px;
    }

    .about-story-gallery .story-figure-tall {
        grid-row: auto;
    }
}

/* ------------------------------------------------ feng shui page */

@media (max-width: 1199px) {
    .benefit-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 24px 0;
    }

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

    .bagua-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .bagua-figure {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    .feng-shui-hero-section .service-hero-inner {
        min-height: 440px;
        padding-top: 120px;
    }
}

@media (max-width: 767px) {
    .feng-shui-hero-section {
        background-position: 70% center;
    }

    .feng-shui-hero-section .service-hero-inner {
        min-height: 380px;
        padding-top: 90px;
    }

    .feng-shui-hero-title {
        font-size: 30px;
    }

    .feng-shui-hero-description {
        font-size: 16px;
    }

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

    .post-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-card-image {
        height: 200px;
    }

    .feng-shui-knowledge-subtitle {
        font-size: 20px;
    }

    .bagua-content p {
        font-size: 15px;
        line-height: 24px;
    }
}

/* ------------------------------------------------ company profile */

@media (max-width: 1439px) {
    .profile-book {
        height: 760px;
    }
}

@media (max-width: 1199px) {
    .profile-book {
        height: 620px;
    }

    .profile-hero-inner {
        min-height: 600px;
    }

    .profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .sidebar-banner {
        grid-column: 1 / -1;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .profile-hero-inner {
        min-height: 420px;
    }

    .profile-hero-title {
        font-size: 30px;
    }

    .profile-heading {
        font-size: 28px;
    }

    .profile-meta {
        flex-wrap: wrap;
        gap: 14px;
    }

    .profile-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-viewer-stage {
        padding: 24px 12px 12px;
    }

    .profile-book {
        height: 440px;
    }

    .viewer-arrow {
        display: none;
    }

    .profile-toolbar {
        gap: 12px;
        padding: 8px 12px 14px;
    }
}

/* ------------------------------------------------ team page */

@media (max-width: 767px) {
    .customer-focus-section .section-title,
    .team-values-section .section-title,
    .team-culture-section .section-title {
        font-size: 26px;
    }

    .customer-mosaic {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 130px;
        gap: 10px;
        aspect-ratio: auto;
    }

    .customer-tile {
        position: static;
        width: auto;
        height: auto;
    }
}

@media (max-width: 767px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .zoom-badge {
        display: none;
    }
}

/* ------------------------------------------------ articles */

@media (max-width: 767px) {
    .articles-hero-inner {
        min-height: 300px;
    }

    .articles-hero-title {
        font-size: 30px;
    }

    .article-tabs {
        gap: 8px;
        margin-top: 24px;
    }

    .article-tab {
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* ------------------------------------------------ article detail */

@media (max-width: 1199px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 767px) {
    .detail-article .profile-heading {
        font-size: 24px;
    }

    .detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .design-price-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .design-price-title {
        font-size: 30px;
    }

    .design-price-table {
        min-width: 560px;
    }

    .design-price-notes {
        grid-template-columns: minmax(0, 1fr);
    }

    .design-price-note+.design-price-note {
        border-top: 1px solid var(--color-dark);
        border-left: 0;
    }

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

    .quote-table {
        min-width: 480px;
    }
}

@media (max-width: 575px) {
    .related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-tab i {
        display: none;
    }
}

@media (max-width: 991px) {
    .contact-page-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
