/* Homepage composition. Purpose-built, editorial, and independent of legacy card layouts. */

.front-page .site-main {
    overflow: hidden;
}

.home-hero {
    background: var(--night);
    height: calc(100svh - 130px);
    max-height: 720px;
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

.home-hero__image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center 55%;
    position: absolute;
    width: 100%;
}

.home-hero__veil {
    background: linear-gradient(90deg, rgba(44, 31, 26, 0.78) 0%, rgba(44, 31, 26, 0.62) 58%, rgba(44, 31, 26, 0.42) 100%);
    inset: 0;
    position: absolute;
}

.home-hero__inner {
    align-items: flex-end;
    display: flex;
    height: 100%;
    justify-content: space-between;
    padding-bottom: 72px;
    position: relative;
    z-index: 1;
}

.home-hero__copy {
    max-width: 790px;
}

.home-kicker {
    align-items: center;
    color: rgba(255, 248, 240, 0.8);
    display: flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 12px;
    letter-spacing: 0;
    margin-bottom: 22px;
}

.home-kicker::before {
    background: var(--accent-bright);
    content: '';
    height: 2px;
    width: 28px;
}

.home-hero h1 {
    color: #fff8f0;
    font-size: 4.5rem;
    line-height: 1.02;
    margin: 0 0 24px;
    max-width: 760px;
}

.home-hero__subtitle {
    color: rgba(255, 248, 240, 0.76);
    font-size: 1.12rem;
    line-height: 1.65;
    margin-bottom: 34px;
    max-width: 650px;
}

.home-hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-hero .btn-primary {
    background: var(--white);
    border-color: var(--white);
    color: var(--brand-deep);
}

.home-hero .btn-primary:hover {
    background: var(--surface-2);
    border-color: var(--surface-2);
    color: var(--brand-deep);
}

.home-hero__caption {
    border-left: 1px solid rgba(255, 248, 240, 0.32);
    color: rgba(255, 248, 240, 0.64);
    font-size: 0.75rem;
    line-height: 1.5;
    max-width: 190px;
    padding-left: 16px;
}

.home-proof {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.home-proof__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home-proof__item {
    border-left: 1px solid var(--line);
    padding: 30px 28px;
}

.home-proof__item:last-child {
    border-right: 1px solid var(--line);
}

.home-proof__item strong,
.home-proof__item span {
    display: block;
}

.home-proof__item strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.home-proof__item span {
    color: var(--ink-3);
    font-size: 0.78rem;
}

.home-section {
    padding-block: 112px;
}

.home-section--muted {
    background: var(--canvas);
}

.home-section__intro {
    align-items: end;
    display: grid;
    gap: 72px;
    grid-template-columns: 1.05fr 0.95fr;
    margin-bottom: 66px;
}

.home-section__label {
    color: var(--brand);
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.home-section__intro h2,
.home-section__heading h2 {
    font-size: 3rem;
    line-height: 1.08;
    max-width: 760px;
}

.home-section__intro-copy {
    max-width: 550px;
}

.home-section__intro-copy p {
    font-size: 1.04rem;
    line-height: 1.72;
    margin-bottom: 22px;
}

.home-text-link,
.home-service__link,
.home-heading-link {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 9px;
}

.home-text-link svg,
.home-service__link svg,
.home-heading-link svg {
    color: var(--brand);
    transition: transform var(--transition);
}

.home-text-link:hover svg,
.home-service__link:hover svg,
.home-heading-link:hover svg {
    transform: translateX(4px);
}

.home-services {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.home-service {
    min-height: 320px;
    padding: 38px 42px 42px 0;
    position: relative;
}

.home-service:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 48px;
}

.home-service:nth-child(even) {
    padding-left: 48px;
}

.home-service:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
}

.home-service__number {
    color: var(--brand);
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 54px;
}

.home-service h3 {
    font-size: 1.55rem;
    margin-bottom: 16px;
    max-width: 430px;
}

.home-service p {
    font-size: 0.93rem;
    line-height: 1.72;
    margin-bottom: 24px;
    max-width: 480px;
}

.home-service__link {
    margin-top: auto;
}

.home-about {
    align-items: center;
    display: grid;
    gap: 86px;
    grid-template-columns: 1.08fr 0.92fr;
}

.home-about__media img {
    aspect-ratio: 5 / 4;
    border-radius: 5px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.home-about__media--founder img {
    aspect-ratio: 4 / 5;
    object-position: 50% 38%;
}

.home-about__media figcaption {
    color: var(--ink-3);
    font-size: 0.74rem;
    margin-top: 12px;
}

.home-about__copy h2 {
    font-size: 3rem;
    margin-bottom: 26px;
}

.home-about__copy > p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.home-about__features {
    border-top: 1px solid var(--line-strong);
    display: grid;
    gap: 0 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 32px 0 30px;
    padding: 0;
}

.home-about__features li {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
    min-height: 58px;
    padding: 13px 0;
}

.home-about__features li > span:last-child {
    color: var(--ink-2);
    font-size: 0.86rem;
    line-height: 1.45;
}

.home-about__feature-icon {
    align-items: center;
    color: var(--brand);
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.home-about__feature-icon svg {
    stroke-width: 2;
}

.home-facts {
    border-top: 1px solid var(--line-strong);
    margin: 34px 0 32px;
}

.home-fact {
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: 0.8fr 1.2fr;
    padding: 15px 0;
}

.home-fact dt {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.home-fact dd {
    color: var(--ink-2);
    font-size: 0.86rem;
    margin: 0;
}

.home-section__heading {
    align-items: end;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 46px;
}

.home-section__heading-copy {
    max-width: 760px;
}

.home-product-grid {
    display: grid;
    gap: 30px 18px;
    grid-template-columns: repeat(12, 1fr);
}

.home-product {
    color: var(--ink);
    display: block;
    grid-column: span 3;
}

.home-product--featured {
    grid-column: span 6;
    grid-row: span 2;
}

.home-product__image {
    background: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.home-product__image img {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms var(--ease-standard), filter 420ms var(--ease-standard);
    width: 100%;
}

.home-product--featured .home-product__image img {
    aspect-ratio: 4 / 3.08;
}

.home-product:hover .home-product__image img {
    filter: saturate(0.9);
    transform: scale(1.025);
}

.home-product__label {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    font-size: 0.88rem;
    font-weight: 600;
    justify-content: space-between;
    padding: 14px 2px 13px;
}

.home-product__label svg {
    color: var(--ink-3);
    transition: transform var(--transition), color var(--transition);
}

.home-product:hover .home-product__label svg {
    color: var(--brand);
    transform: translateX(3px);
}

.home-process {
    background: var(--surface-2);
}

.home-process__grid {
    border-top: 1px solid var(--line-strong);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin-bottom: 0;
    margin-top: 52px;
    padding: 0;
}

.home-process__step {
    border-right: 1px solid var(--line-strong);
    min-height: 290px;
    padding: 30px 30px 32px 0;
}

.home-process__step:not(:first-child) {
    padding-left: 30px;
}

.home-process__step:last-child {
    border-right: 0;
}

.home-process__number {
    color: var(--brand);
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 72px;
}

.home-process__step h3 {
    font-size: 1.2rem;
    margin-bottom: 13px;
}

.home-process__step p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.home-yiwu {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    min-height: 650px;
}

.home-yiwu__media {
    min-height: 100%;
    overflow: hidden;
}

.home-yiwu__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.home-yiwu__copy {
    align-items: flex-start;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 9vw 80px 72px;
}

.home-yiwu__copy h2 {
    font-size: 2.75rem;
    margin-bottom: 24px;
}

.home-yiwu__copy > p {
    line-height: 1.75;
    margin-bottom: 18px;
}

.home-yiwu__data {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 22px 0 30px;
    width: 100%;
}

.home-yiwu__datum {
    padding: 18px 0;
}

.home-yiwu__datum + .home-yiwu__datum {
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.home-yiwu__datum strong,
.home-yiwu__datum span {
    display: block;
}

.home-yiwu__datum strong {
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 600;
}

.home-yiwu__datum span {
    color: var(--ink-3);
    font-size: 0.78rem;
    margin-top: 3px;
}

.home-assurance {
    background: var(--night);
    color: var(--white);
}

.home-assurance__intro {
    display: grid;
    gap: 50px;
    grid-template-columns: 0.8fr 1.2fr;
    margin-bottom: 64px;
}

.home-assurance .home-section__label {
    color: var(--accent-bright);
}

.home-assurance h2 {
    color: var(--white);
    font-size: 3rem;
    max-width: 680px;
}

.home-assurance__grid {
    border-top: 1px solid var(--night-line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home-assurance__item {
    border-right: 1px solid var(--night-line);
    padding: 34px 38px 0 0;
}

.home-assurance__item:not(:first-child) {
    padding-left: 38px;
}

.home-assurance__item:last-child {
    border-right: 0;
}

.home-assurance__item span {
    color: var(--accent-bright);
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 58px;
}

.home-assurance__item h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.home-assurance__item p {
    color: rgba(255, 248, 240, 0.66);
    font-size: 0.9rem;
    line-height: 1.72;
}

.home-testimonials {
    background: var(--canvas);
}

.home-testimonials__header {
    align-items: end;
    display: grid;
    gap: 72px;
    grid-template-columns: 1.25fr 0.75fr;
    margin-bottom: 58px;
}

.home-testimonials__heading h2 {
    font-size: 3rem;
    line-height: 1.08;
    margin: 0;
    max-width: 780px;
}

.home-testimonials__disclosure {
    border-left: 2px solid var(--brand);
    max-width: 430px;
    padding-left: 20px;
}

.home-testimonials__disclosure strong {
    color: var(--ink);
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.home-testimonials__disclosure p {
    color: var(--ink-3);
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0;
}

.home-testimonials__viewport {
    border-bottom: 1px solid var(--line-strong);
    border-top: 1px solid var(--line-strong);
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-testimonials__viewport::-webkit-scrollbar {
    display: none;
}

.home-testimonial {
    align-items: center;
    display: grid;
    flex: 0 0 100%;
    gap: 80px;
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
    min-height: 330px;
    padding: 48px 28px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.home-testimonial__profile {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.home-testimonial__profile img {
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.home-testimonial__sample {
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 600;
    margin: 20px 0 5px;
}

.home-testimonial__profile strong {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
}

.home-testimonial__profile > span:last-child {
    color: var(--ink-3);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 4px;
}

.home-testimonial__rating {
    color: var(--accent);
    display: flex;
    gap: 5px;
    margin-bottom: 28px;
}

.home-testimonial__rating svg {
    fill: currentColor;
    stroke-width: 1.25;
}

.home-testimonial blockquote {
    margin: 0;
}

.home-testimonial blockquote p {
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.48;
    margin: 0;
    max-width: 850px;
}

.home-testimonials__controls {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.home-testimonials__pagination {
    align-items: center;
    display: flex;
    gap: 2px;
}

.home-testimonials__pagination button {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 36px;
}

.home-testimonials__pagination button span {
    background: var(--line-strong);
    display: block;
    height: 2px;
    transition: background-color var(--transition), width var(--transition);
    width: 20px;
}

.home-testimonials__pagination button:hover span {
    background: var(--ink-3);
}

.home-testimonials__pagination button[aria-current="true"] span {
    background: var(--brand);
    width: 30px;
}

.home-testimonials__actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.home-testimonials__autoplay {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0 5px;
}

.home-testimonials__autoplay:hover {
    border-bottom-color: var(--brand);
    color: var(--ink);
}

.home-testimonials__arrow {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
    width: 44px;
}

.home-testimonials__arrow:hover {
    background: var(--surface);
    border-color: var(--ink-3);
    color: var(--brand);
    transform: translateY(-1px);
}

.home-testimonials__arrow:active {
    transform: translateY(0);
}

.home-testimonials__arrow--previous svg {
    transform: rotate(180deg);
}

.home-faq {
    background: var(--surface);
}

.home-faq__layout {
    display: grid;
    gap: 100px;
    grid-template-columns: 0.72fr 1.28fr;
}

.home-faq__intro h2 {
    font-size: 2.7rem;
    margin-bottom: 20px;
}

.home-faq__intro p {
    line-height: 1.7;
    margin-bottom: 24px;
}

.home-faq .faq-grid {
    max-width: none;
}

.home-cta {
    background: var(--brand);
    color: var(--white);
    padding-block: 76px;
}

.home-cta__inner {
    align-items: center;
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.home-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.home-cta p {
    color: rgba(255, 248, 240, 0.76);
    margin: 0;
}

.home-cta .btn {
    background: var(--white);
    border-color: var(--white);
    color: var(--brand-deep);
    flex-shrink: 0;
}

.home-cta .btn:hover {
    background: var(--surface-2);
    border-color: var(--surface-2);
    color: var(--brand-deep);
}

@media (max-width: 1024px) {
    .home-hero h1 {
        font-size: 3.75rem;
    }

    .home-hero__caption {
        display: none;
    }

    .home-section__intro,
    .home-about,
    .home-faq__layout {
        gap: 56px;
    }

    .home-about {
        grid-template-columns: 1fr 1fr;
    }

    .home-product-grid {
        gap: 28px 16px;
    }

    .home-product {
        grid-column: span 6;
    }

    .home-product--featured {
        grid-column: span 12;
        grid-row: auto;
    }

    .home-product--featured .home-product__image img {
        aspect-ratio: 16 / 8;
    }

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

    .home-process__step {
        border-bottom: 1px solid var(--line-strong);
        min-height: 240px;
    }

    .home-process__step:nth-child(2) {
        border-right: 0;
    }

    .home-process__number {
        margin-bottom: 46px;
    }

    .home-yiwu {
        grid-template-columns: 1fr 1fr;
    }

    .home-yiwu__copy {
        padding: 68px 48px;
    }

    .home-assurance__intro,
    .home-testimonials__header,
    .home-faq__layout {
        grid-template-columns: 1fr;
    }

    .home-testimonials__header {
        gap: 34px;
    }

    .home-testimonials__disclosure {
        max-width: 520px;
    }

    .home-faq__layout {
        gap: 46px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        height: calc(100svh - 110px);
        max-height: 640px;
        min-height: 540px;
    }

    .home-hero__image {
        object-position: 58% center;
    }

    .home-hero__veil {
        background: rgba(44, 31, 26, 0.72);
    }

    .home-hero__inner {
        align-items: flex-end;
        padding-bottom: 48px;
    }

    .home-kicker {
        font-size: 0.75rem;
        margin-bottom: 18px;
    }

    .home-hero h1 {
        font-size: 2.75rem;
        margin-bottom: 20px;
    }

    .home-hero__subtitle {
        font-size: 0.98rem;
        margin-bottom: 28px;
    }

    .home-hero__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .home-hero__actions .btn {
        width: 100%;
    }

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

    .home-proof__item {
        border-bottom: 1px solid var(--line);
        padding: 22px 18px;
    }

    .home-proof__item:nth-child(odd) {
        border-left: 0;
    }

    .home-proof__item:last-child {
        border-right: 0;
    }

    .home-section {
        padding-block: 78px;
    }

    .home-section__intro,
    .home-about {
        gap: 36px;
        grid-template-columns: 1fr;
        margin-bottom: 44px;
    }

    .home-section__intro h2,
    .home-section__heading h2,
    .home-about__copy h2,
    .home-assurance h2,
    .home-testimonials__heading h2 {
        font-size: 2.25rem;
    }

    .home-services {
        grid-template-columns: 1fr;
    }

    .home-service,
    .home-service:nth-child(odd),
    .home-service:nth-child(even) {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        min-height: 0;
        padding: 30px 0 34px;
    }

    .home-service:last-child {
        border-bottom: 0;
    }

    .home-service__number {
        margin-bottom: 34px;
    }

    .home-about__media {
        order: 2;
    }

    .home-about__features {
        grid-template-columns: 1fr;
    }

    .home-fact {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .home-section__heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 36px;
    }

    .home-product-grid {
        grid-template-columns: 1fr;
    }

    .home-product,
    .home-product--featured {
        grid-column: auto;
    }

    .home-product__image img,
    .home-product--featured .home-product__image img {
        aspect-ratio: 4 / 3;
    }

    .home-process__grid {
        grid-template-columns: 1fr;
        margin-top: 38px;
    }

    .home-process__step,
    .home-process__step:not(:first-child) {
        border-bottom: 1px solid var(--line-strong);
        border-right: 0;
        min-height: 0;
        padding: 26px 0 30px;
    }

    .home-process__number {
        margin-bottom: 28px;
    }

    .home-yiwu {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-yiwu__media img {
        aspect-ratio: 4 / 3;
    }

    .home-yiwu__copy {
        padding: 68px 20px;
    }

    .home-yiwu__copy h2 {
        font-size: 2.25rem;
    }

    .home-assurance__intro {
        gap: 24px;
        margin-bottom: 44px;
    }

    .home-assurance__grid {
        grid-template-columns: 1fr;
    }

    .home-assurance__item,
    .home-assurance__item:not(:first-child) {
        border-bottom: 1px solid var(--night-line);
        border-right: 0;
        padding: 28px 0 32px;
    }

    .home-assurance__item:last-child {
        border-bottom: 0;
    }

    .home-assurance__item span {
        margin-bottom: 30px;
    }

    .home-testimonials__header {
        margin-bottom: 42px;
    }

    .home-testimonial {
        align-items: start;
        gap: 36px;
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 38px 4px 42px;
    }

    .home-testimonial__profile {
        display: grid;
        gap: 2px 16px;
        grid-template-columns: 58px 1fr;
    }

    .home-testimonial__profile img {
        grid-row: 1 / 4;
        height: 58px;
        width: 58px;
    }

    .home-testimonial__sample {
        margin: 0 0 1px;
    }

    .home-testimonial__profile > span:last-child {
        margin-top: 0;
    }

    .home-testimonial__rating {
        margin-bottom: 20px;
    }

    .home-testimonial blockquote p {
        font-size: 1.2rem;
        line-height: 1.55;
    }

    .home-testimonials__controls {
        margin-top: 18px;
    }

    .home-faq__intro h2 {
        font-size: 2.25rem;
    }

    .home-cta {
        padding-block: 62px;
    }

    .home-cta__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .home-cta h2 {
        font-size: 2.15rem;
    }

    .home-cta .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-testimonials__viewport {
        scroll-behavior: auto;
    }
}

@media (max-width: 420px) {
    .home-hero h1 {
        font-size: 2.35rem;
    }

    .home-proof__item {
        padding-inline: 12px;
    }

    .home-proof__item strong {
        font-size: 0.82rem;
    }

    .home-proof__item span {
        font-size: 0.72rem;
    }
}
