/*
 * STIGMA typography and Illustrator-layout alignment.
 * This file is intentionally loaded last. It only corrects the supplied
 * About / History / Product designs and does not introduce new page patterns.
 */

:root {
    --stigma-type-blue: #3046a1;
    --stigma-type-purple: #503255;
    --stigma-type-red: #8b1f2b;
    --stigma-type-ink: #14161b;
    --stigma-type-body: #777c86;
    --stigma-type-line: #d9dce3;
}

body.stigma-sub-page #stigmaPageContent {
    font-family: "Roboto", "Pretendard", sans-serif !important;
    word-break: keep-all;
}

body.stigma-sub-page .about-redesign p,
body.stigma-sub-page .si-overview-page p,
body.stigma-sub-page .robot-product-page p,
body.stigma-sub-page .fabric-product-page p,
body.stigma-sub-page .fabric-product-page li,
body.stigma-sub-page .fabric-product-page dd,
body.stigma-sub-page .stigma-history-description {
    font-family: "Roboto", "Pretendard", sans-serif !important;
    letter-spacing: -.022em !important;
}

/* One vertical headline gradient across the redesigned subpages. */
body.stigma-sub-page .about-redesign .about-intro__headline,
body.stigma-sub-page .stigma-simple-intro__title,
body.stigma-sub-page .si-overview-page .si-overview__header h1,
body.stigma-sub-page .robot-product-page .robot-page-headline,
body.stigma-sub-page .fabric-product-page .fabric-product-headline {
    background: linear-gradient(180deg, var(--stigma-type-blue) 0%, var(--stigma-type-purple) 56%, var(--stigma-type-red) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    font-family: "Roboto", "Pretendard", sans-serif !important;
}

body.stigma-sub-page .robot-product-page .robot-page-headline span,
body.stigma-sub-page .fabric-product-page .fabric-product-headline span {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

body.stigma-sub-page .fabric-product-page .fabric-product-headline .fabric-headline-set {
    background: linear-gradient(180deg, var(--stigma-type-blue) 0%, var(--stigma-type-purple) 56%, var(--stigma-type-red) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Industrial Robot SI intro is the source of truth for all lead copy. */
body.stigma-sub-page .about-redesign .about-intro__description,
body.stigma-sub-page .si-overview-page .si-overview__header p,
body.stigma-sub-page .robot-product-page .robot-page-lead,
body.stigma-sub-page .fabric-product-page .fabric-product-lead,
body.stigma-sub-page .stigma-history-description {
    font-family: "Roboto", "Pretendard", sans-serif !important;
    font-size: clamp(15px, 1.02vw, 17px) !important;
    font-weight: 400 !important;
    letter-spacing: -.022em !important;
    line-height: 1.72 !important;
}

body.stigma-sub-page .about-redesign .about-intro__description,
body.stigma-sub-page .si-overview-page .si-overview__header p,
body.stigma-sub-page .robot-product-page .robot-page-lead,
body.stigma-sub-page .fabric-product-page .fabric-product-lead {
    color: #7d818a !important;
}

/* About: exported 16:9 artwork is displayed without a second crop/mask. */
.about-redesign .about-pillar__visual {
    aspect-ratio: 16 / 9;
    background: #fff !important;
}

.about-redesign .about-pillar__visual img,
.about-redesign .about-pillar--contain .about-pillar__visual img {
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    width: 100%;
}

body.stigma-sub-page .about-redesign .about-intro__headline {
    font-size: clamp(21px, 1.5vw, 26px) !important;
    font-weight: 720 !important;
    letter-spacing: -.04em !important;
}

/* History: same headline/body rhythm, existing timeline geometry untouched. */
body.stigma-sub-page .stigma-simple-intro__title {
    font-size: clamp(34px, 2.8vw, 52px) !important;
    font-weight: 600 !important;
    letter-spacing: -.05em !important;
    line-height: 1.3 !important;
}

body.stigma-sub-page .stigma-history-description {
    color: #3f4249;
}

/* Robot SI overview: preserve each Illustrator title on one line. */
.si-overview-page .si-capability-list {
    max-width: 1160px;
}

.si-overview-page .si-capability-row {
    gap: 18px;
    grid-template-columns: 34px 286px minmax(0, 1fr);
}

body.stigma-sub-page .si-overview-page .si-capability-row h2 {
    white-space: nowrap;
}

/* Industrial Robot SI: exact lower-page hierarchy from the supplied PDF. */
.robot-industrial-page .robot-strengths {
    padding-bottom: clamp(48px, 4vw, 68px);
}

.robot-industrial-page .robot-strength-grid {
    column-gap: clamp(44px, 5vw, 74px);
    row-gap: 0;
}

.robot-industrial-page .robot-strength-grid article {
    background: transparent;
    border-radius: 0;
    border-top: 1px solid #9b9da3;
    min-height: 0;
    padding: 19px 0 30px;
}

.robot-industrial-page .robot-strength-grid article > span {
    display: none;
}

body.stigma-sub-page .robot-industrial-page .robot-strength-grid h3 {
    font-size: 17px !important;
    font-weight: 760 !important;
    letter-spacing: -.035em !important;
    line-height: 1.45 !important;
    margin: 0 0 11px;
}

body.stigma-sub-page .robot-industrial-page .robot-strength-grid p {
    color: #858991;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: -.022em !important;
    line-height: 1.62 !important;
}

.robot-industrial-page .robot-outcomes {
    padding-bottom: clamp(48px, 4vw, 68px);
}

.robot-industrial-page .robot-outcomes-panel {
    display: block;
    min-height: 338px;
    padding: 36px clamp(42px, 5.5vw, 92px) 46px;
}

body.stigma-sub-page .robot-industrial-page .robot-outcomes-panel h2 {
    font-size: clamp(25px, 1.75vw, 31px) !important;
    margin-bottom: 26px;
}

.robot-industrial-page .robot-outcome-grid {
    gap: clamp(34px, 5vw, 72px);
}

.robot-industrial-page .robot-outcome-grid li {
    text-align: center;
}

.robot-industrial-page .robot-outcome-grid span {
    border-bottom: 1px solid rgba(255,255,255,.72);
    color: #fff;
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 8px;
}

.robot-industrial-page .robot-outcome-grid i {
    color: #fff;
    display: block;
    font-size: 39px;
    margin-bottom: 21px;
}

/* AI-3D Vision: the supplied blue three-column result panel. */
.robot-vision-page .robot-outcomes-panel {
    display: block;
    min-height: 338px;
    padding: 36px clamp(42px, 5.5vw, 92px) 46px;
}

body.stigma-sub-page .robot-vision-page .robot-outcomes-panel h2 {
    font-size: clamp(25px, 1.75vw, 31px) !important;
    margin-bottom: 26px;
}

.robot-vision-page .robot-outcome-grid {
    gap: clamp(34px, 5vw, 72px);
}

.robot-vision-page .robot-outcome-grid li {
    text-align: center;
}

.robot-vision-page .robot-outcome-grid span {
    border-bottom: 1px solid rgba(255,255,255,.72);
    color: #fff;
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 8px;
}

.robot-vision-page .robot-outcome-grid i {
    color: #fff;
    display: block;
    font-size: 39px;
    margin-bottom: 21px;
}

body.stigma-sub-page .robot-vision-page .robot-outcome-grid p {
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.55 !important;
}

body.stigma-sub-page .robot-industrial-page .robot-outcome-grid p {
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.55 !important;
}

.robot-industrial-page .robot-cases .robot-container--narrow {
    max-width: 1360px;
}

.robot-industrial-page .robot-case-heading {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 8px;
}

.robot-industrial-page .robot-case-heading__copy {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.robot-industrial-page .robot-case-heading .robot-video-button {
    margin: 0;
}

.robot-industrial-page .robot-case-metrics span::before {
    content: "▶";
    font-size: 8px;
    margin-right: 6px;
    vertical-align: 1px;
}

.robot-industrial-page .robot-case-gallery {
    gap: 0;
    margin-top: 24px;
}

.robot-industrial-page .robot-case-gallery img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

/* Motrex labels show the supplied detail image while hovered or focused. */
.robot-product-page .robot-hotspot-stage--static .robot-hotspot {
    cursor: default;
    pointer-events: auto;
}

.robot-product-page .robot-hotspot-stage--static .robot-hotspot::after {
    display: none;
}

/* AI fabric inspection: preserve the Illustrator two-column HW/SW sheet. */
.fabric-product-page .fabric-technology-columns {
    gap: clamp(54px, 6vw, 96px);
}

.fabric-product-page .fabric-technology-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.fabric-product-page .fabric-technology-card .fabric-technology-grid {
    gap: 22px;
    padding-top: 18px;
}

.fabric-product-page .fabric-technology-card--hardware .fabric-technology-label {
    background: #fff;
    border: 2px solid var(--stigma-type-blue);
    color: var(--stigma-type-blue);
}

.fabric-product-page .fabric-technology-card--software .fabric-technology-label {
    background: var(--stigma-type-blue);
    border: 2px solid var(--stigma-type-blue);
    color: #fff;
}

.fabric-product-page .fabric-technology-card .fabric-technology-copy {
    padding-left: 0;
}

body.stigma-sub-page .fabric-product-page .fabric-technology-card .fabric-technology-copy h2 {
    color: var(--stigma-type-ink);
    font-size: clamp(24px, 1.7vw, 31px) !important;
    font-weight: 720 !important;
    letter-spacing: -.045em !important;
    line-height: 1.35 !important;
}

body.stigma-sub-page .fabric-product-page .fabric-technology-copy li {
    color: #555a63;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.fabric-product-page .fabric-specifications--visible {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.fabric-product-page .fabric-outcomes-panel {
    display: block;
    min-height: 380px;
    padding: 36px clamp(42px, 5.5vw, 92px) 48px;
}

body.stigma-sub-page .fabric-product-page .fabric-outcomes-panel > h2 {
    font-size: clamp(25px, 1.75vw, 31px) !important;
    margin-bottom: 26px;
}

.fabric-product-page .fabric-outcome-grid {
    gap: clamp(34px, 5vw, 72px);
}

.fabric-product-page .fabric-outcome-grid li {
    text-align: center;
}

.fabric-product-page .fabric-outcome-grid span {
    border-bottom: 1px solid rgba(255,255,255,.72);
    color: #fff;
    font-size: 24px;
    margin-bottom: 22px;
    padding-bottom: 8px;
}

.fabric-product-page .fabric-outcome-grid i {
    color: #fff;
    display: block;
    font-size: 39px;
    margin-bottom: 19px;
}

body.stigma-sub-page .fabric-product-page .fabric-outcome-grid h3 {
    font-size: 18px !important;
    margin-bottom: 8px;
}

body.stigma-sub-page .fabric-product-page .fabric-outcome-grid p {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.stigma-image-modal[hidden] {
    display: none;
}

.stigma-image-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: clamp(18px, 3vw, 46px);
    position: fixed;
    z-index: 6100;
}

.stigma-image-modal__backdrop {
    background: rgba(5, 7, 12, .84);
    inset: 0;
    position: absolute;
}

.stigma-image-modal__dialog {
    max-height: calc(100vh - 40px);
    max-width: min(1280px, 92vw);
    position: relative;
    width: auto;
    z-index: 1;
}

.stigma-image-modal__figure {
    background: #fff;
    box-shadow: 0 28px 80px rgba(0,0,0,.34);
    margin: 0;
    max-height: calc(100vh - 70px);
    overflow: auto;
}

.stigma-image-modal__figure img {
    display: block;
    height: auto;
    max-height: calc(100vh - 130px);
    max-width: min(1280px, 92vw);
    object-fit: contain;
    width: auto;
}

.stigma-image-modal__figure figcaption {
    color: #202329;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 18px 15px;
}

.stigma-image-modal__close {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 50%;
    color: #111;
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 46px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: -14px;
    top: -14px;
    width: 46px;
    z-index: 2;
}

@media (max-width: 991px) {
    .si-overview-page .si-capability-row {
        grid-template-columns: 32px 240px minmax(0, 1fr);
    }

    .robot-industrial-page .robot-strength-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.stigma-sub-page .about-redesign .about-intro__description,
    body.stigma-sub-page .si-overview-page .si-overview__header p,
    body.stigma-sub-page .robot-product-page .robot-page-lead,
    body.stigma-sub-page .fabric-product-page .fabric-product-lead,
    body.stigma-sub-page .stigma-history-description {
        font-size: 14px !important;
        letter-spacing: -.018em !important;
        line-height: 1.72 !important;
    }

    .si-overview-page .si-capability-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    body.stigma-sub-page .si-overview-page .si-capability-row h2 {
        white-space: normal;
    }

    .robot-industrial-page .robot-outcomes-panel {
        min-height: 0;
        padding: 34px 26px 40px;
    }

    .robot-vision-page .robot-outcomes-panel,
    .fabric-product-page .fabric-outcomes-panel {
        min-height: 0;
        padding: 34px 26px 40px;
    }

    .robot-industrial-page .robot-outcome-grid {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .robot-vision-page .robot-outcome-grid,
    .fabric-product-page .fabric-outcome-grid {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .robot-industrial-page .robot-case-heading {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .robot-industrial-page .robot-case-heading__copy {
        display: block;
    }

    .robot-industrial-page .robot-case-metrics {
        margin-top: 8px;
    }

    .robot-industrial-page .robot-case-gallery--three,
    .robot-industrial-page .robot-case-gallery--two {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .stigma-image-modal__close {
        right: -4px;
        top: -50px;
    }
}
