/* Final 2026-08-03 corrections. Loaded last to preserve the existing site while
   resolving the approved layout, content and responsive issues. */

:root {
    --stigma-final-blue: #3447a5;
    --stigma-final-ink: #111318;
    --stigma-final-muted: #777c86;
    --stigma-final-line: #e2e5eb;
    --stigma-final-surface: #f7f8fb;
}

html.stigma-page-is-loading #stigmaPageContent {
    opacity: .16;
    transform: translateY(4px);
}

#stigmaPageContent {
    opacity: 1;
    transition: opacity .18s ease, transform .18s ease;
}

body.stigma-modal-open { overflow: hidden; }

/* About */
.about-redesign .about-intro__description span { display: block; }
.about-redesign .about-direction__item p span { display: block; }
.about-redesign .about-pillar__visual { background: #05070b; }
.about-redesign .about-pillar__visual img { object-position: center; }
.about-redesign .about-pillars,
.about-redesign .about-direction { padding-bottom: clamp(44px, 4vw, 68px); }
.about-redesign .about-values { padding-bottom: clamp(64px, 5vw, 92px); }

/* Robot SI overview: supplied Illustrator layout */
.si-overview-page .si-overview {
    padding-bottom: clamp(82px, 6vw, 112px);
    padding-top: clamp(62px, 5vw, 84px);
}
.si-overview-page .si-overview__container {
    max-width: 1320px;
    padding-left: 32px;
    padding-right: 32px;
}
.si-overview-page .si-overview__header { margin-bottom: clamp(92px, 7vw, 124px); }
.si-overview-page .si-overview__lead span { display: block; }
body.stigma-sub-page .si-overview-page .si-overview__header h1 {
    background: linear-gradient(90deg, #3447a5 8%, #3447a5 58%, #8b1e25 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(40px, 2.8vw, 54px) !important;
    font-weight: 650 !important;
    letter-spacing: -.045em !important;
    margin-bottom: 28px;
}
body.stigma-sub-page .si-overview-page .si-overview__header p {
    color: #7d8086;
    font-size: clamp(16px, 1vw, 18px) !important;
    font-weight: 430 !important;
    line-height: 1.75 !important;
    max-width: 1240px;
}
body.stigma-sub-page .si-overview-page .si-overview__lead strong {
    color: #22242a;
    font-weight: 700;
}
.si-capability-list {
    list-style: none;
    margin: 0 auto;
    max-width: 1100px;
    padding: 0;
}
.si-capability-row {
    align-items: baseline;
    border: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 32px 230px minmax(0, 1fr);
    padding: 14px 0;
}
.si-capability-row:last-child { border: 0; }
body.stigma-sub-page .si-capability-number {
    color: #111318;
    font-family: "Roboto", sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}
body.stigma-sub-page .si-capability-row h2 {
    color: var(--stigma-final-ink);
    font-size: clamp(25px, 1.65vw, 30px) !important;
    font-weight: 720 !important;
    letter-spacing: -.045em !important;
    line-height: 1.28 !important;
    margin: 0;
}
body.stigma-sub-page .si-capability-row p {
    color: #55575d;
    font-size: clamp(16px, 1.05vw, 19px) !important;
    font-weight: 520 !important;
    letter-spacing: -.03em !important;
    line-height: 1.5 !important;
    margin: 0;
}
.si-capability-row small {
    color: #55575d;
    display: block;
    font-family: "Roboto", "Pretendard", sans-serif !important;
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

/* Robot detail pages */
.robot-product-page .robot-page-intro { padding-bottom: clamp(44px, 4vw, 64px); }
.robot-product-page .robot-overview { padding-top: clamp(22px, 2vw, 34px); }
.robot-product-page .robot-overview-media--video img {
    aspect-ratio: 16 / 9;
    background: #fff;
    object-fit: cover;
    width: 100%;
}
.robot-product-page .robot-strengths { padding: clamp(50px, 4vw, 72px) 0; }
.robot-product-page .robot-strengths > .robot-container > .robot-section-title { margin-bottom: 32px; }
.robot-strength-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.robot-strength-grid article {
    background: var(--stigma-final-surface);
    border-radius: 18px;
    min-height: 218px;
    padding: 28px 30px;
}
.robot-strength-grid article > span {
    color: var(--stigma-final-blue);
    font-family: "Roboto", sans-serif !important;
    font-size: 13px;
    font-weight: 800;
}
body.stigma-sub-page .robot-strength-grid h3 {
    color: var(--stigma-final-ink);
    font-size: 20px !important;
    font-weight: 780 !important;
    line-height: 1.4 !important;
    margin: 9px 0 14px;
}
body.stigma-sub-page .robot-strength-grid p {
    color: #6f747e;
    font-size: 15px !important;
    line-height: 1.68 !important;
    margin: 0;
}
.robot-product-page .robot-outcomes { padding-bottom: clamp(58px, 5vw, 82px); }
.robot-product-page .robot-outcomes-panel {
    display: grid;
    gap: 46px;
    grid-template-columns: .7fr 1.7fr;
    min-height: 0;
    padding: clamp(42px, 4vw, 62px) clamp(38px, 5vw, 78px);
}
.robot-outcome-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}
.robot-outcome-grid li { margin: 0; }
.robot-outcome-grid span {
    color: rgba(255,255,255,.68);
    display: block;
    font-family: "Roboto", sans-serif !important;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
}
body.stigma-sub-page .robot-outcome-grid p {
    color: #fff;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.6 !important;
    margin: 0;
}
.robot-product-page .robot-cases { padding-bottom: clamp(82px, 7vw, 118px); }
.robot-case-block {
    border-top: 1px solid var(--stigma-final-line);
    padding: clamp(30px, 3vw, 46px) 0;
    position: relative;
}
.robot-case-block:last-of-type { border-bottom: 1px solid var(--stigma-final-line); }
body.stigma-sub-page .robot-case-block > p {
    color: #7d828c;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 0 0 24px;
    max-width: 1180px;
}
.robot-case-gallery {
    align-items: stretch;
    display: grid;
    gap: 18px;
    margin-top: 24px;
}
.robot-case-gallery--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.robot-case-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.robot-case-gallery img {
    background: #f5f6f8;
    display: block;
    height: clamp(210px, 19vw, 330px);
    object-fit: contain;
    width: 100%;
}
.robot-video-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--stigma-final-blue);
    border-radius: 999px;
    color: var(--stigma-final-blue);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 750;
    gap: 9px;
    margin-top: 20px;
    padding: 10px 20px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.robot-video-button:hover,
.robot-video-button:focus { background: var(--stigma-final-blue); color: #fff; transform: translateY(-2px); }
.robot-video-button .fa { font-family: "FontAwesome" !important; }
.robot-hotspot-stage--static { margin-top: 30px; }
.robot-hotspot-stage--static .robot-hotspot { cursor: default; pointer-events: auto; }
.robot-product-page .robot-comparison-table thead th:nth-child(2) { border-radius: 999px !important; }

/* Fabric: both hardware and software are visible */
.fabric-product-page .fabric-product-intro { padding-bottom: 46px; }
.fabric-product-page .fabric-product-headline {
    font-size: clamp(42px, 3.5vw, 62px) !important;
    font-weight: 650 !important;
    margin-top: clamp(46px, 4vw, 66px);
}
.fabric-product-headline .fabric-headline-set {
    -webkit-background-clip: text;
    background: linear-gradient(135deg, #284aa7 4%, #522955 54%, #8d171e 96%);
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}
.fabric-product-headline .fabric-headline-set span { color: inherit !important; }
.fabric-product-headline .fabric-headline-set--mobile { display: none !important; }
.fabric-product-page .fabric-product-overview { padding-bottom: clamp(58px, 5vw, 76px); }
.fabric-product-page .fabric-technology { padding: clamp(54px, 4vw, 70px) 0; }
.fabric-technology-columns {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fabric-technology-card {
    background: #f8f9fb;
    border-radius: 22px;
    min-width: 0;
    padding: 26px;
}
.fabric-technology-label {
    background: #050505;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-family: "Roboto", sans-serif !important;
    font-size: 14px;
    padding: 10px 20px;
}
.fabric-technology-card .fabric-technology-grid {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 26px;
}
.fabric-technology-card .fabric-technology-copy { padding-left: 0; }
.fabric-technology-card .fabric-technology-copy h2 { font-size: 23px; }
.fabric-technology-card .fabric-technology-copy li { font-size: 14px; }
.fabric-technology-card .fabric-hardware-render { order: 0; }
.fabric-technology-card .fabric-hardware-render img { max-height: 300px; }
.fabric-technology-card .fabric-software-visual {
    min-height: 280px;
    position: relative;
}
.fabric-technology-card .fabric-software-diagram { height: 220px; width: 88%; }
.fabric-technology-card .fabric-software-ui { height: 135px; right: 0; width: 54%; }
.fabric-specifications--visible {
    border-bottom: 1px solid var(--stigma-final-line);
    border-top: 1px solid var(--stigma-final-line);
    margin: 40px 0 0 !important;
    padding: 28px 4px 12px;
}
body.stigma-sub-page .fabric-specifications--visible > h2 {
    color: var(--stigma-final-ink);
    font-size: 21px !important;
    font-weight: 750 !important;
    margin: 0 0 18px;
}
.fabric-specifications--visible .fabric-spec-grid {
    gap: clamp(34px, 5vw, 74px);
    margin: 0;
    max-width: none;
}
.fabric-specifications--visible .fabric-spec-grid dl > div {
    border-top: 1px solid #eceef2;
    grid-template-columns: minmax(118px, 150px) 1fr;
    margin: 0;
    padding: 17px 0;
}
.fabric-product-page .fabric-outcomes { padding: 34px 0 42px; }
.fabric-product-page .fabric-outcomes-panel {
    display: grid;
    gap: 44px;
    grid-template-columns: .62fr 1.8fr;
    min-height: 0;
    padding: clamp(42px, 4vw, 60px) clamp(36px, 5vw, 76px);
}
.fabric-outcome-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}
.fabric-outcome-grid span {
    color: rgba(255,255,255,.68);
    display: block;
    font-family: "Roboto", sans-serif !important;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}
body.stigma-sub-page .fabric-outcome-grid h3 {
    color: #fff;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
    margin: 0 0 10px;
}
body.stigma-sub-page .fabric-outcome-grid p {
    color: rgba(255,255,255,.88);
    font-size: 13px !important;
    line-height: 1.65 !important;
    margin: 0;
}
.fabric-product-page .fabric-verification { padding-bottom: clamp(86px, 7vw, 118px); }

/* Shared About / Contact heading */
.stigma-simple-intro { padding-bottom: clamp(54px, 5vw, 78px); }
body.stigma-sub-page .stigma-simple-intro__category { margin-bottom: 10px; }
body.stigma-sub-page .stigma-simple-intro__pill {
    align-items: center;
    background: var(--stigma-final-blue);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    min-width: 208px;
    padding: 10px 24px 11px;
    justify-content: center;
    text-align: center;
}
body.stigma-sub-page .stigma-simple-intro__title {
    background: none;
    border-radius: 0;
    color: var(--stigma-final-ink);
    display: block;
    font-size: clamp(32px, 2.8vw, 52px) !important;
    font-weight: 570 !important;
    letter-spacing: -.05em !important;
    line-height: 1.32 !important;
    margin: clamp(48px, 4vw, 68px) auto 0;
    max-width: 1150px;
    padding: 0;
}
.stigma-contact-section { padding: clamp(30px, 3vw, 48px) 0 clamp(80px, 7vw, 120px) !important; }
.stigma-contact-layout { align-items: start; display: flex; }
.stigma-contact-section .border.btm { border-color: var(--stigma-final-line) !important; padding: 18px 0 !important; }
body.stigma-sub-page .stigma-contact-section .contact_head { font-size: 18px !important; margin-bottom: 10px; }
body.stigma-sub-page .stigma-contact-section p { color: #6e737c; font-size: 15px !important; line-height: 1.6 !important; }
.stigma-kakao-map {
    background: #eef0f4;
    height: 355px;
    margin: 0 0 26px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.stigma-map-info { line-height: 1.45; min-width: 230px; padding: 12px 16px; text-align: center; }
.stigma-map-fallback { align-items: center; color: var(--stigma-final-blue); display: flex; font-weight: 700; inset: 0; justify-content: center; position: absolute; }

/* YouTube picture-in-picture style modal */
.stigma-video-modal[hidden] { display: none; }
.stigma-video-modal { align-items: center; display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 6000; }
.stigma-video-modal__backdrop { background: rgba(5, 7, 12, .82); inset: 0; position: absolute; }
.stigma-video-modal__dialog { max-width: 1120px; position: relative; width: min(90vw, 1120px); z-index: 1; }
.stigma-video-modal__frame { aspect-ratio: 16 / 9; background: #000; box-shadow: 0 28px 80px rgba(0,0,0,.38); overflow: hidden; width: 100%; }
.stigma-video-modal__frame iframe { border: 0; height: 100%; width: 100%; }
.stigma-video-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: 1199px) {
    .robot-product-page .robot-outcomes-panel,
    .fabric-product-page .fabric-outcomes-panel { grid-template-columns: 1fr; }
    .fabric-technology-columns { grid-template-columns: 1fr; }
    .fabric-technology-card .fabric-technology-grid { grid-template-columns: .85fr 1.15fr; }
}

@media (max-width: 991px) {
    .robot-strength-grid { grid-template-columns: 1fr; }
    .robot-outcome-grid,
    .fabric-outcome-grid { grid-template-columns: 1fr; }
    .robot-case-gallery--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stigma-contact-layout { display: block; }
}

@media (max-width: 767px) {
    .about-redesign .about-intro__description span { display: inline; }
    .about-redesign .about-intro__description span:not(:last-child)::after { content: " "; }
    .about-redesign .about-direction__item p span { display: inline; white-space: normal; }
    .si-overview-page .si-overview__lead span { display: inline; }
    .si-overview-page .si-overview__lead span:not(:last-child)::after { content: " "; }
    .si-capability-row {
        gap: 8px 12px;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 13px 0;
    }
    .si-capability-row p { grid-column: 2; }
    body.stigma-sub-page .si-capability-row h2 { font-size: 21px !important; }
    body.stigma-sub-page .si-capability-row p { font-size: 14px !important; }
    .robot-strength-grid article { min-height: 0; padding: 24px 22px; }
    .robot-product-page .robot-outcomes-panel,
    .fabric-product-page .fabric-outcomes-panel { gap: 30px; padding: 36px 26px; }
    .robot-outcome-grid,
    .fabric-outcome-grid { gap: 22px; }
    .robot-case-gallery--three,
    .robot-case-gallery--two { grid-template-columns: 1fr; }
    .robot-case-gallery img { height: auto; max-height: 310px; }
    .robot-hotspot-stage--static .robot-hotspot { font-size: 8px; min-height: 24px; padding: 4px 8px; }
    .fabric-product-page .fabric-product-headline { font-size: clamp(29px, 8.2vw, 39px) !important; line-height: 1.38 !important; }
    .fabric-headline-set--desktop { display: none !important; }
    .fabric-headline-set--mobile { display: block !important; }
    .fabric-technology-card { border-radius: 16px; padding: 22px 18px; }
    .fabric-technology-card .fabric-technology-grid { grid-template-columns: 1fr; }
    .fabric-technology-card .fabric-hardware-render { order: -1; }
    .fabric-technology-card .fabric-software-visual { min-height: 270px; order: -1; }
    .fabric-specifications--visible { padding-top: 22px; }
    .fabric-specifications--visible .fabric-spec-grid { grid-template-columns: 1fr; }
    .fabric-specifications--visible .fabric-spec-grid dl > div { grid-template-columns: 105px 1fr; }
    body.stigma-sub-page .stigma-simple-intro__pill { font-size: 14px !important; min-width: 148px; padding: 7px 15px 8px; }
    body.stigma-sub-page .stigma-simple-intro__title { font-size: clamp(26px, 7vw, 34px) !important; margin-top: 36px; }
    .stigma-kakao-map { height: 300px; }
    .stigma-video-modal { padding: 16px; }
    .stigma-video-modal__dialog { width: 100%; }
    .stigma-video-modal__close { right: -5px; top: -52px; }
}

@media (prefers-reduced-motion: reduce) {
    #stigmaPageContent,
    .robot-video-button { transition: none !important; }
}
