/* Homepage - Manufacturing workflow
 * Guided process rail: quieter hierarchy, wider reading measure, no hidden steps.
 */

.home .tt-manufacturing {
    --tt-workflow-line: rgba(36, 82, 189, .2);
    --tt-workflow-rule: rgba(9, 29, 58, .12);
    --tt-workflow-node: #fbfcfe;
}

/* Vietnamese diacritics need a calmer display rhythm than the Latin default. */
html[lang^="vi"] .home .tt-manufacturing__heading h2 {
    line-height: 1.11;
    letter-spacing: -.03em;
}

html[lang^="vi"] .home .tt-manufacturing__heading h2 .tt-h2-line {
    display: block;
    width: max-content;
    max-width: 100%;
}

html[lang^="vi"] .home .tt-manufacturing__lead {
    line-height: 1.7;
}

@media (min-width: 901px) {
    .home .tt-manufacturing__shell {
        display: grid;
        grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
        column-gap: clamp(48px, 5.4vw, 78px);
        align-items: start;
    }

    .home .tt-manufacturing__intro,
    .home .tt-manufacturing__gallery {
        grid-column: 1 / -1;
    }

    .home .tt-manufacturing__process-heading {
        grid-column: 1;
        grid-row: 3;
    }

    .home .tt-manufacturing__steps {
        grid-column: 2;
        grid-row: 3;
    }
}

.home .tt-manufacturing__process-heading {
    display: block;
    align-self: start;
    margin: clamp(64px, 6vw, 84px) 0 0;
    padding: clamp(32px, 3.2vw, 44px) clamp(16px, 2vw, 28px) 0 0;
    border-top: 1px solid var(--tt-workflow-rule);
}

.home .tt-manufacturing__process-heading > p {
    margin: 0 0 14px;
    color: var(--tt-mfg-harvest);
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.home .tt-manufacturing__process-heading h3 {
    max-width: 390px;
    margin: 0;
    color: var(--tt-mfg-ink-soft);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: .01em;
    text-align: left;
    text-wrap: balance;
}

.home .tt-manufacturing__process-heading h3 span {
    display: block;
    max-width: 15ch;
    margin-top: 11px;
    color: var(--tt-mfg-ink);
    font-size: clamp(1.9rem, 2.65vw, 2.45rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -.042em;
    text-wrap: balance;
}

html[lang^="vi"] .home .tt-manufacturing__process-heading h3 span {
    line-height: 1.15;
    letter-spacing: -.03em;
}

.home .tt-manufacturing__steps {
    display: grid;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: clamp(64px, 6vw, 84px) 0 0;
    padding: clamp(32px, 3.2vw, 44px) 0 0;
    border: 0;
    border-top: 1px solid var(--tt-workflow-rule);
    border-radius: 0;
    color: var(--tt-mfg-ink);
    background: transparent;
    box-shadow: none;
    list-style: none;
}

.home .tt-manufacturing__step {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(20px, 2.3vw, 28px);
    row-gap: 6px;
    margin: 0;
    padding: 0 0 clamp(28px, 3vw, 38px);
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home .tt-manufacturing__step:last-child {
    padding-bottom: 0;
}

.home .tt-manufacturing__step-meta {
    display: contents;
}

.home .tt-manufacturing__step-meta span:first-child {
    position: relative;
    z-index: 1;
    display: grid;
    width: 46px;
    height: 46px;
    grid-column: 1;
    grid-row: 1 / span 3;
    place-items: center;
    align-self: start;
    margin: 0;
    border: 1px solid rgba(36, 82, 189, .24);
    border-radius: 50%;
    color: var(--tt-mfg-cobalt);
    background: var(--tt-workflow-node);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .05em;
}

.home .tt-manufacturing__step-meta span:last-child {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    color: var(--tt-mfg-cobalt);
    font-size: .67rem;
    font-weight: 780;
    line-height: 1.4;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home .tt-manufacturing__step h4 {
    grid-column: 2;
    grid-row: 2;
    max-width: 34ch;
    margin: 0;
    color: var(--tt-mfg-ink);
    font-size: clamp(1.12rem, 1.45vw, 1.3rem);
    font-weight: 710;
    line-height: 1.28;
    letter-spacing: -.022em;
}

html[lang^="vi"] .home .tt-manufacturing__step h4 {
    line-height: 1.34;
    letter-spacing: -.014em;
}

.home .tt-manufacturing__step > p {
    grid-column: 2;
    grid-row: 3;
    max-width: 56ch;
    margin: 2px 0 0;
    color: #5c697b;
    font-size: .92rem;
    line-height: 1.62;
}

.home .tt-manufacturing__step-line {
    position: absolute;
    top: 46px;
    bottom: 0;
    left: 23px;
    display: block;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--tt-workflow-line), rgba(168, 95, 0, .2));
    pointer-events: none;
}

.home .tt-manufacturing__step:last-child .tt-manufacturing__step-line {
    display: none;
}

.home .tt-manufacturing__step:last-child .tt-manufacturing__step-meta span:first-child {
    border-color: var(--tt-mfg-cobalt);
    color: #fff;
    background: var(--tt-mfg-cobalt);
}

@media (max-width: 900px) {
    .home .tt-manufacturing__shell {
        display: block;
    }

    .home .tt-manufacturing__process-heading {
        margin-top: 54px;
        padding: 34px 0 0;
    }

    .home .tt-manufacturing__process-heading h3 {
        max-width: 620px;
    }

    .home .tt-manufacturing__process-heading h3 span {
        max-width: 18ch;
    }

    .home .tt-manufacturing__steps {
        margin-top: 34px;
        padding-top: 0;
        border-top: 0;
    }

    .home .tt-manufacturing__step > p {
        max-width: 62ch;
    }
}

@media (max-width: 700px) {

    html[lang^="vi"] .home .tt-manufacturing__heading h2 {
        line-height: 1.13;
        letter-spacing: -.026em;
    }

    html[lang^="vi"] .home .tt-manufacturing__lead {
        line-height: 1.68;
    }

    .home .tt-manufacturing__process-heading {
        margin-top: 48px;
        padding-top: 30px;
    }

    .home .tt-manufacturing__process-heading > p {
        margin-bottom: 12px;
        font-size: .66rem;
    }

    .home .tt-manufacturing__process-heading h3 {
        max-width: none;
        font-size: .94rem;
        line-height: 1.45;
    }

    .home .tt-manufacturing__process-heading h3 span {
        max-width: 14ch;
        margin-top: 8px;
        font-size: clamp(1.82rem, 8.2vw, 2.12rem);
        line-height: 1.1;
    }

    html[lang^="vi"] .home .tt-manufacturing__process-heading h3 span {
        max-width: 16ch;
        line-height: 1.17;
        letter-spacing: -.025em;
    }

    .home .tt-manufacturing__steps {
        margin-top: 30px;
    }

    .home .tt-manufacturing__step {
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 5px;
        padding-bottom: 30px;
    }

    .home .tt-manufacturing__step-meta span:first-child {
        width: 38px;
        height: 38px;
        font-size: .68rem;
    }

    .home .tt-manufacturing__step-meta span:last-child {
        font-size: .66rem;
        line-height: 1.4;
        letter-spacing: .11em;
    }

    html[lang^="vi"] .home .tt-manufacturing__step-meta span:last-child {
        line-height: 1.48;
    }

    .home .tt-manufacturing__step h4 {
        max-width: none;
        font-size: 1.08rem;
        line-height: 1.3;
    }

    html[lang^="vi"] .home .tt-manufacturing__step h4 {
        line-height: 1.38;
    }

    .home .tt-manufacturing__step > p {
        max-width: none;
        margin-top: 3px;
        font-size: .9rem;
        line-height: 1.58;
    }

    html[lang^="vi"] .home .tt-manufacturing__step > p {
        line-height: 1.64;
    }

    .home .tt-manufacturing__step-line {
        top: 38px;
        left: 19px;
    }
}

@media (forced-colors: active) {
    .home .tt-manufacturing__step-meta span:first-child {
        border-color: CanvasText;
        forced-color-adjust: auto;
    }

    .home .tt-manufacturing__step-line {
        background: CanvasText;
    }
}

/* Factory-to-Field mosaic: one crop contract across desktop, tablet and mobile.
 * Hero 16:9, auger 2:1, lower pair 1:1. Keep this page-local so a layout-only
 * change does not invalidate unrelated routes through the global stylesheet. */
.home .tt-manufacturing__gallery,
.home .tt-manufacturing__gallery-rail {
    gap: clamp(10px, .8vw, 12px);
}

.home .tt-manufacturing__media,
.home .tt-manufacturing__visual {
    border-radius: 8px;
}

.home .tt-manufacturing__visual {
    aspect-ratio: 16 / 9;
}

@media (min-width: 1081px) {
    .home .tt-manufacturing__gallery {
        grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr);
        grid-template-rows: auto;
        align-items: start;
        aspect-ratio: auto;
    }

    .home .tt-manufacturing__visual {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .home .tt-manufacturing__gallery-rail {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
    }

    .home .tt-manufacturing__gallery-rail .tt-manufacturing__media {
        aspect-ratio: auto;
    }

    .home .tt-manufacturing__gallery-rail .tt-manufacturing__media--auger {
        grid-column: 1 / -1;
        aspect-ratio: 2 / 1;
    }

    .home .tt-manufacturing__gallery-rail .tt-manufacturing__media--frame,
    .home .tt-manufacturing__gallery-rail .tt-manufacturing__media--formed {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 1080px) {
    .home .tt-manufacturing__gallery {
        grid-template-columns: minmax(0, 1fr);
        aspect-ratio: auto;
    }

    .home .tt-manufacturing__visual {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .home .tt-manufacturing__gallery-rail {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
    }

    .home .tt-manufacturing__gallery-rail .tt-manufacturing__media {
        aspect-ratio: 1 / 1;
    }

    .home .tt-manufacturing__gallery-rail .tt-manufacturing__media--auger {
        grid-column: 1 / -1;
        aspect-ratio: 2 / 1;
    }
}
