.main {
    padding-top: 10.25%;
    padding-bottom: 0;
}

.section {
    padding: 12% 5.1% 9.1%;
}

.section::before {
    display: inline-block;
    content: "";
    background: url(../images/line_sp.png) no-repeat top / cover;
    width: 100%;
    height: 3vw;
    position: absolute;
    top: 0;
    left: 0;
}

.section-title {
    width: min(27.2%, 132px);
}

.section-desc {
    font-weight: 300;
    line-height: 1.6;
    margin-top: 5%;
}

/* hero */
.hero {
    display: flex;
    flex-direction: column;
}

.hero-inner {
    order: 1;
}

.title {
    padding: 0 4%;
}

/* hero */
.hero-text {
    padding: 0 4%;
    margin-top: 5.7%;
}

.hero-product {
    order: 3;
    margin-top: 5%;

    & p {
        font-weight: 600;
    }
}

.hero-product-list {
    display: flex;
    margin-top: 10px;
}

.hero-product-list > li + li {
    margin-left: 8px;
}

.hero-product-item {
    width: 64px;
    height: 64px;
    background-color: var(--color-white);
    padding: 12px;
    border-radius: 50%;
    border: 1px solid var(--color-font-black);
}

.hero-product-item:nth-of-type(2) {
    padding: 13px;
}

.hero-product-item:last-of-type {
    padding: 14px;
}

.hero-img {
    order: 2;

    & .hero-img-inner {
        display: grid;
        grid-template-areas: "images";
    }

    & img {
        grid-area: images;
        margin-top: 8px;
        transition: opacity 1.5s ease;
    }
}

/* 2 layer chồng lên nhau */
.hero-layer {
    display: none;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-layer.active {
    display: grid;
    opacity: 1;
    transition: opacity 1s ease;
}
.hero-layer.show-photo .hero-sketch {
    opacity: 0;
}
.hero-layer.show-photo .hero-photo {
    opacity: 1;
}

.hero-layer.active img {
    object-fit: contain;
}
.hero-sketch {
    opacity: 1;
}
.hero-photo {
    opacity: 0;
}
.hero-sketch,
.hero-photo {
    transition: opacity 1s ease;
}

/* intro */
.intro {
    padding: 25.7% 0 8.5%;
}

.intro-title {
    font-size: min(10.25vw, 6.4rem);
    font-weight: 600;
    writing-mode: vertical-rl;
    margin-left: auto;
}

.intro-text {
    font-size: 1.5rem;
    font-weight: 300;
}

.intro-text > p + p {
    margin-top: 8%;
}

.intro-img {
    display: block;
    margin-top: 6%;
}

.features {
    margin-top: 8%;
}

.features__item {
    position: relative;
    padding-left: 17%;

    & dt {
        font-size: min(5.1vw, 22px);
        font-weight: 600;
        line-height: 1.3;
    }

    & dd {
        font-weight: 300;
        margin-top: 2.5%;
    }
}

.features__item:not(:first-of-type) {
    margin-top: 8%;
}

.features__item::before {
    display: block;
    content: "";
    background: url(../images/top/icon_int01.png) no-repeat center / cover;
    width: min(12.3vw, 64px);
    height: min(12.3vw, 64px);
    position: absolute;
    top: 0;
    left: 0;
}

.features__item:nth-of-type(2)::before {
    background-image: url(../images/top/icon_int02.png);
}

.features__item:nth-of-type(3)::before {
    background-image: url(../images/top/icon_int03.png);
}

.features__item:nth-of-type(4)::before {
    background-image: url(../images/top/icon_int04.png);
}

.features__item:nth-of-type(5)::before {
    background-image: url(../images/top/icon_int05.png);
}

.features__item:nth-of-type(6)::before {
    background-image: url(../images/top/icon_int06.png);
}

/* product */
.section-product-item {
    margin-top: 32px;
}


@media (min-width: 1024px) {
    .main {
        /* padding-top: 10.2%; */
        padding-top: 6.5%;
    }

    .section {
        padding: 7.6% 2.8% 3%;
    }

    .section::before {
        background: url(../images/line.png) no-repeat center / contain;
    }

    .section-desc.pc {
        display: flex;

        & p {
            width: 31.8%;
            margin-right: 2%;
        }
    }

    /* hero */
    .hero {
        padding-left: 5.9%;
        display: grid;
        grid-template-rows: 60% 40%;
        grid-template-columns: 44% 56%;
        grid-template-areas:
            "areaA areaC"
            "areaB areaC";
    }

    .hero-inner {
        grid-area: areaA;
        width: min(33.4vw, 480px);
        padding-top: 12%;
    }

    .title {
        padding: 0;
    }

    .hero-text {
        padding: 0;
        margin-top: 6.7%;
    }

    .hero-product {
        grid-area: areaB;
        padding-top: 15%;
        margin-top: 0;
    }

    .hero-img {
        grid-area: areaC;
        display: flex;
        justify-content: flex-end;

        & img {
            grid-area: images;
            width: 49.8vw;
            height: 45vw;
        }
    }

    /* intro */
    .intro {
        padding: 19.1% 0 4%;
    }

    .intro-inner {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-start;
        padding: 0 5.9%;
        position: relative;
        z-index: 10;
    }

    .intro-title {
        font-size: min(4.4vw, 6.4rem);
        margin: 0;
    }

    .intro-text {
        font-size: min(1.25vw, 1.8rem);
        writing-mode: vertical-rl;
        line-height: 1.7;
        padding: 0;
        margin: 1.6% 9% 0 0;
    }

    .intro-text > p + p {
        margin-top: 0;
        margin-right: 16.3%;
    }

    .intro-img {
        margin-top: -7%;
    }

    .features {
        margin-top: 115px;
    }

    .features__list {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .features__item {
        width: 31.8%;
        padding-left: 0;
    }

    .features__item:not(:first-of-type) {
        margin-top: 0;
    }

    .features__item:nth-of-type(2),
        .features__item:nth-of-type(5) {
        margin: 0 2%;
    }

    .features__item:nth-of-type(n+4) {
        margin-top: 110px;
    }

    .features__item::before {
        top: -5vw;
    }

    /* product */
    .section-product-list {
        width: 48.9%;
    }

    .section-product-item {
        width: 47.5%;
        margin-top: 0;
    }

    .section-product-item.recommend {
        width: 100%;
    }

    .table,
    .board {
        & .section-product-item:nth-of-type(n+3) {
            margin-top: 5%;
        } 
    }

}

/* ===== Sketch (ở trên) ===== */
.fade-out {
    z-index: 2;
    animation: sketch-colorize 1.6s cubic-bezier(.4,0,.2,1) both 0.6s;
    object-fit : contain;
}

@keyframes sketch-colorize {
    0% {
        opacity: 1;
        filter:
            saturate(0)
            contrast(1.05)
            brightness(1);
    }

    35% {
        opacity: 1;
        filter:
            saturate(0.4)          /* 👈 bắt đầu có màu */
            contrast(1.02)
            brightness(1.03);
    }

    65% {
        opacity: 0.8;
        filter:
            saturate(0.8)          /* 👈 màu rõ hơn */
            contrast(1)
            brightness(1.06);
    }

    85% {
        opacity: 0.4;
        filter:
            saturate(1)            /* 👈 gần hoàn chỉnh */
            contrast(0.98)
            brightness(1.08);
    }

    100% {
        opacity: 0;
        filter:
            saturate(1)
            contrast(0.95)
            brightness(1.1);
    }
}

/* ===== Photo (ở dưới – xuất hiện NGAY) ===== */
.fade-in {
    z-index: 1;
    animation: photo-in 1.6s cubic-bezier(.22,.61,.36,1) both 0.5s;
    object-fit : contain;
}

@keyframes photo-in {
    0% {
        opacity: 0.12;                 /* có mặt ngay */
        /* transform: scale(1.03); */
        filter: blur(3px) saturate(0.9);
    }
    30% {
        opacity: 0.45;
        filter: blur(1.5px) saturate(0.95);
    }
    65% {
        opacity: 0.85;
        /* transform: scale(1.005); */
        filter: blur(0.5px) saturate(1);
    }
    100% {
        opacity: 1;
        /* transform: scale(1); */
        filter: blur(0) saturate(1);
    }
}
