/**
 * QuantumMesh Company Page
 *
 * Table of Contents
 * 01. Foundation
 * 02. Common Section Elements
 * 03. Introduction
 * 04. Mission / Vision / Future
 * 05. Value
 * 06. Representative Message
 * 07. Leadership
 * 08. Leadership Modal
 * 09. Company Profile
 * 10. Responsive
 */

/* =========================================================
   01. Foundation
========================================================= */

html {
    scrollbar-gutter: stable;
}

.qm-company-page {
    --qm-company-navy: #071323;
    --qm-company-blue: #005cff;
    --qm-company-blue-light: #2b7cff;
    --qm-company-cyan: #59d8ff;
    --qm-company-white: #ffffff;
    --qm-company-bg: #f5f7fa;
    --qm-company-bg-light: #fafbfd;
    --qm-company-text: #111b2c;
    --qm-company-text-light: #59677b;
    --qm-company-border: #dce3ec;
    --qm-company-shadow: 0 24px 70px rgba(7, 19, 35, 0.1);
    --qm-company-radius: 20px;
    --qm-company-section-space: 120px;
    --qm-company-transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    color: var(--qm-company-text);
    background: var(--qm-bg-standard);
}

.qm-company-page *,
.qm-company-page *::before,
.qm-company-page *::after {
    box-sizing: border-box;
}

.qm-company-page a {
    color: inherit;
    text-decoration: none;
}

.qm-company-page button {
    font: inherit;
}

.qm-company-page h2,
.qm-company-page h3,
.qm-company-page h4,
.qm-company-page p {
    margin-top: 0;
}

.qm-company-page .qm-page-section {
    position: relative;
    padding-block: var(--qm-company-section-space);
}

.qm-company-page .qm-container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 80px), 1200px);
    margin-inline: auto;
}


/* =========================================================
   02. Common Section Elements
========================================================= */

.qm-company-section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--qm-company-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
}

.qm-company-section-label::before {
    width: 40px;
    height: 1px;
    content: "";
    background: currentColor;
}

.qm-company-page .qm-page-section > .qm-container > h2,
.qm-company-page .qm-section-heading h2 {
    margin-bottom: 34px;
    color: var(--qm-company-text);
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.045em;
}

.qm-company-page .qm-page-section > .qm-container > h3 {
    max-width: 900px;
    margin-bottom: 34px;
    color: var(--qm-company-text);
    font-size: clamp(1.55rem, 2.6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.qm-company-text {
    max-width: 820px;
}

.qm-company-text p {
    margin-bottom: 22px;
    color: var(--qm-company-text);
    font-size: 1.025rem;
    line-height: 2;
    letter-spacing: 0.015em;
}

.qm-company-text p:last-child {
    margin-bottom: 0;
}

.qm-section-heading {
    margin-bottom: 64px;
}

.qm-section-description {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--qm-company-text);
    font-size: 1rem;
    line-height: 1.9;
}


/* =========================================================
   03. Introduction
========================================================= */

.qm-company-introduction {
    overflow: hidden;
    background:
        radial-gradient(
            circle at 88% 25%,
            rgba(0, 92, 255, 0.08),
            transparent 26%
        ),
        var(--qm-company-white);
}

.qm-company-introduction::after {
    position: absolute;
    top: 50%;
    right: -220px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(0, 92, 255, 0.08);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
    pointer-events: none;
}

.qm-company-introduction > .qm-container > h2 {
    max-width: 900px;
    margin-bottom: 42px;
}

/* Preserve the former .qm-page-section h2 metrics for this page's main title. */
.qm-company-introduction h1 {
    margin: 0 0 32px;
    font-size: 32px;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .qm-company-introduction h1 {
        font-size: var(--qm-mobile-section-title-size);
        line-height: var(--qm-mobile-section-title-leading);
        text-wrap: pretty;
    }
}


/* =========================================================
   04. Mission / Vision / Future
========================================================= */

.qm-company-future {
    background: var(--qm-company-bg);
}

/* =========================================================
   Company page interaction and profile layout refinements
========================================================= */
.qm-company-page .qm-company-leadership-card {
    width: 100%;
    margin: 0;
    border-style: solid;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.qm-company-page .qm-company-leadership-card:hover {
    transform: translateY(-3px);
}

.qm-company-page .qm-company-leadership-card:focus {
    outline: none;
}

.qm-company-page .qm-company-leadership-card:focus-visible {
    border-color: var(--qm-company-blue);
    outline: 3px solid rgba(0, 92, 255, 0.32);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.95), 0 18px 46px rgba(7, 19, 35, 0.12);
}

.qm-company-page .qm-company-leadership-card:hover .qm-company-leadership-link,
.qm-company-page .qm-company-leadership-card:focus-visible .qm-company-leadership-link {
    gap: 13px;
    color: var(--qm-company-blue-light) !important;
}

.qm-company-page .qm-company-leadership-card:hover .qm-company-leadership-link span:last-child,
.qm-company-page .qm-company-leadership-card:focus-visible .qm-company-leadership-link span:last-child {
    transform: translateX(4px);
}

.qm-company-page .qm-company-leadership-role,
.qm-company-page .qm-company-leadership-name {
    display: block;
}

.qm-company-modal {
    padding: clamp(16px, 3vw, 36px);
}

.qm-company-modal-overlay {
    background: rgba(5, 18, 38, 0.76);
    backdrop-filter: blur(6px);
}

.qm-company-modal-dialog {
    width: min(100%, 1060px);
    max-height: 88vh;
    max-height: 88dvh;
    border-color: rgba(96, 167, 255, 0.3);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(3, 15, 35, 0.28), 0 8px 28px rgba(7, 19, 35, 0.12);
}

.qm-company-modal-close {
    position: sticky;
    top: 18px;
    right: 18px;
    display: grid;
    float: right;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    place-items: center;
    margin: 18px 18px -70px 0;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #d8e5f5 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(7, 19, 35, 0.1) !important;
    color: #10233f !important;
    line-height: 1;
    transform: none !important;
    appearance: none;
}

.qm-company-modal-close::before,
.qm-company-modal-close::after {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    content: "";
    background: currentColor;
}

.qm-company-modal-close::before {
    transform: rotate(45deg);
}

.qm-company-modal-close::after {
    transform: rotate(-45deg);
}

.qm-company-modal-close:hover {
    border-color: var(--qm-company-blue) !important;
    background: var(--qm-company-blue) !important;
    box-shadow: 0 10px 26px rgba(0, 92, 255, 0.24) !important;
    color: #fff !important;
}

.qm-company-modal-close:focus-visible {
    border-color: var(--qm-company-blue) !important;
    outline: 3px solid rgba(0, 92, 255, 0.32);
    outline-offset: 4px;
}

.qm-company-modal-header {
    padding: 42px 76px 30px;
}

.qm-company-modal-dialog {
    width: min(calc(100vw - 32px), 940px);
    box-sizing: border-box;
}

.qm-company-modal-dialog *,
.qm-company-modal-dialog *::before,
.qm-company-modal-dialog *::after {
    box-sizing: border-box;
}

.qm-company-modal-label {
    margin-bottom: 12px;
}

.qm-company-modal-role {
    margin-bottom: 6px;
}

.qm-company-modal-name {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.qm-company-modal-content {
    width: min(100%, 900px);
    padding: 38px 76px 56px;
}

.qm-company-modal-section + .qm-company-modal-section {
    margin-top: 38px;
    padding-top: 38px;
}

.qm-company-modal-section h4 {
    margin-bottom: 20px;
}

.qm-company-modal-section p {
    line-height: 1.9;
}

.qm-company-career-item {
    padding: 17px 0;
}

.qm-company-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    gap: clamp(30px, 4vw, 56px);
    align-items: start;
}

.qm-company-profile-layout > * {
    min-width: 0;
}

.qm-company-map {
    overflow: hidden;
    border: 1px solid rgba(21, 67, 123, 0.15);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(7, 19, 35, 0.08);
}

.qm-company-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: 0;
}

.qm-company-map-fallback {
    padding: 18px 20px 20px;
    border-top: 1px solid var(--qm-company-border);
}

.qm-company-map-fallback address {
    margin: 0 0 12px;
    color: var(--qm-company-text);
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.7;
}

.qm-company-map-fallback a {
    display: inline-flex;
    color: var(--qm-company-blue);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.qm-company-map-fallback a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.qm-company-map-fallback a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(0, 92, 255, 0.3);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .qm-company-profile-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .qm-company-map iframe {
        height: 340px;
    }

    .qm-company-modal-header {
        padding-inline: clamp(28px, 7vw, 58px);
    }

    .qm-company-modal-content {
        padding-inline: clamp(28px, 7vw, 58px);
    }
}

@media (max-width: 680px) {
    .qm-company-modal {
        padding: 10px;
    }

    .qm-company-modal-dialog {
        border-radius: 20px;
    }

    .qm-company-modal-close {
        top: 14px;
        right: 14px;
        margin: 14px 14px -66px 0;
    }

    .qm-company-modal-header {
        padding: 30px 24px 24px;
        padding-right: 82px;
    }

    .qm-company-modal-content {
        padding: 30px 24px 42px;
    }

    .qm-company-career-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 16px;
    }

    .qm-company-map iframe {
        height: 330px;
    }
}

.qm-company-profile-break {
    display: block;
}

@media (max-width: 680px) {
    .qm-company-profile-break {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qm-company-page .qm-company-leadership-card,
    .qm-company-page .qm-company-leadership-card::before,
    .qm-company-page .qm-company-leadership-link,
    .qm-company-page .qm-company-leadership-link span:last-child,
    .qm-company-modal,
    .qm-company-modal-dialog,
    .qm-company-modal-close {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
    }

    .qm-company-page .qm-company-leadership-card:hover {
        transform: none;
    }
}

/* =========================================================
   JP Company page refinements
========================================================= */
html[lang] .qm-company-page .qm-company-introduction {
    background-color: #10243b;
    background-image: url("../../images/company/company-hero.png");
    background-position: 58% center;
    background-size: cover;
    background-repeat: no-repeat;
}

html[lang] .qm-company-page .qm-company-introduction::before {
    display: none;
}

html[lang] .qm-company-page .qm-company-introduction::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    content: "";
    background: linear-gradient(90deg, rgba(4, 20, 40, .50) 0%, rgba(5, 23, 44, .38) 30%, rgba(7, 27, 49, .14) 48%, rgba(7, 27, 49, 0) 66%);
    transform: none;
    pointer-events: none;
}

html[lang] .qm-company-page .qm-company-introduction > .qm-container {
    z-index: 1;
}

html[lang] .qm-company-page .qm-company-introduction .qm-company-section-label,
html[lang] .qm-company-page .qm-company-introduction-content h1,
html[lang] .qm-company-page .qm-company-introduction-content .qm-company-text p {
    color: #fff;
}

.qm-company-page .qm-company-introduction-pc-line {
    display: inline;
}

@media (min-width: 1025px) {
    .qm-company-page .qm-company-introduction-pc-line {
        display: block;
    }
}

html[lang] .qm-company-page .qm-company-principle > .qm-company-text p {
    font-size: 16px;
    line-height: 1.8;
}

html[lang^="ja"] .qm-company-page .qm-company-future-pc-break {
    display: block;
}

html[lang^="ja"] .qm-company-page .qm-company-future .qm-company-text p:last-child {
    width: max-content;
    max-width: none;
    white-space: nowrap;
}

html[lang] .qm-company-page .qm-company-profile {
    padding-top: 44px !important;
    padding-bottom: 0 !important;
}

html[lang] .qm-company-page .qm-profile-head,
html[lang] .qm-company-page .qm-profile-body {
    font-size: 15px;
    line-height: 1.7;
}

html[lang] .qm-company-page .qm-company-contact-card {
    padding: 66px 20px 68px;
    background: var(--qm-bg-standard, #f5f8fc);
}

html[lang] .qm-company-page .qm-company-contact-card .qm-container {
    width: 100%;
    max-width: none;
}

html[lang] .qm-company-page .qm-company-contact-card__inner {
    display: flex;
    width: min(100%, 760px);
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-inline: auto;
    padding: 22px 30px;
    border: 1px solid #0878e8;
    border-radius: 14px;
    color: #102b4c;
    background: #fff;
    background-image: none;
    box-shadow: 0 10px 26px rgba(18, 62, 105, .09);
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

html[lang] .qm-company-page .qm-company-contact-card__icon {
    flex: 0 0 76px;
    width: 76px;
    color: #0878e8;
    transition: color .2s ease;
}

html[lang] .qm-company-page .qm-company-contact-card__icon svg {
    display: block;
    width: 76px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[lang] .qm-company-page .qm-company-contact-card__copy {
    min-width: 0;
}

html[lang] .qm-company-page .qm-company-contact-card__label {
    margin: 0 0 6px;
    color: #0878e8;
    font: 700 12px/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: .2em;
    transition: color .2s ease;
}

html[lang] .qm-company-page .qm-company-contact-card__copy h2 {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 18px;
    margin: 0;
    color: #102b4c;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.03em;
    transition: color .2s ease;
}

html[lang] .qm-company-page .qm-company-contact-card__description {
    margin: 3px 0 0;
    color: #111b2c;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    transition: color .2s ease;
}

html[lang] .qm-company-page .qm-company-contact-card__arrow {
    flex: 0 0 auto;
    color: #0878e8;
    transition: color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
html[lang] .qm-company-page .qm-company-contact-card__inner:hover {
        border-color: #66e8ff;
        color: #fff;
        background: #0878e8;
        background-image: none;
    }

html[lang] .qm-company-page .qm-company-contact-card__inner:hover .qm-company-contact-card__icon,
    html[lang] .qm-company-page .qm-company-contact-card__inner:hover h2,
    html[lang] .qm-company-page .qm-company-contact-card__inner:hover .qm-company-contact-card__description {
        color: #fff;
    }

html[lang] .qm-company-page .qm-company-contact-card__inner:hover .qm-company-contact-card__label,
    html[lang] .qm-company-page .qm-company-contact-card__inner:hover .qm-company-contact-card__arrow {
        color: #9ff7ff;
    }
}

html[lang] .qm-company-page .qm-company-contact-card__inner:focus-visible {
    outline: 3px solid #005cff;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
html[lang] .qm-company-page .qm-company-introduction {
        background-position: 62% center;
    }

html[lang] .qm-company-page .qm-company-introduction::after {
        background: linear-gradient(90deg, rgba(4, 20, 40, .55) 0%, rgba(5, 23, 44, .43) 48%, rgba(7, 27, 49, .10) 78%, rgba(7, 27, 49, 0) 100%);
    }

    html[lang] .qm-company-page .qm-company-future-pc-break {
        display: none;
    }

    html[lang] .qm-company-page .qm-company-future .qm-company-text p:last-child {
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    html[lang] .qm-company-page .qm-company-contact-card__inner {
        width: min(100%, 800px);
        gap: 28px;
        padding: 22px 26px;
    }

    html[lang] .qm-company-page .qm-company-contact-card__copy h2 {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    html[lang^="ja"] .qm-company-page .qm-company-introduction {
        background-position: 68% center;
    }

    html[lang] .qm-company-page .qm-company-introduction::after {
        background: linear-gradient(110deg, rgba(4, 20, 40, .86), rgba(5, 23, 44, .64));
    }

html[lang] .qm-company-page .qm-company-contact-card {
        padding: 64px 12px;
    }

html[lang] .qm-company-page .qm-company-contact-card__inner {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 20px 23px;
    }

    html[lang] .qm-company-page .qm-company-contact-card__copy h2 {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        font-size: 22px;
        line-height: 1.35;
    }

    html[lang] .qm-company-page .qm-company-contact-card__copy h2 > span:first-child,
    html[lang] .qm-company-page .qm-company-contact-card__description,
    html[lang] .qm-company-page .qm-profile-body {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    html[lang] .qm-company-page .qm-company-contact-card__description {
        font-size: 14px;
    }
}

.qm-company-future::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(calc(100% - 80px), 1200px);
    height: 1px;
    content: "";
    background: var(--qm-company-border);
    transform: translateX(-50%);
}

.qm-company-future .qm-company-text {
    margin-left: min(10vw, 120px);
}

.qm-company-future > .qm-container > h3 {
    margin-left: min(10vw, 120px);
}


/* =========================================================
   05. Value
========================================================= */

.qm-company-value {
    background: var(--qm-bg-standard);
}

.qm-company-value .qm-company-section-label {
    color: var(--qm-company-blue);
}

.qm-company-value > .qm-container > h2 {
    color: var(--qm-company-text);
}

.qm-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 54px;
}

.qm-company-value .qm-card {
    position: relative;
    min-height: 0;
    padding: 24px 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.qm-company-value .qm-card::before {
    position: absolute;
    top: -2px;
    left: 0;
    width: 54px;
    height: 3px;
    content: "";
    background: var(--qm-company-blue);
}

.qm-company-value .qm-card::after {
    content: none;
}

.qm-company-value .qm-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 28px;
    border-top: 1px solid #b9cad8;
}

@media (max-width: 1024px) {
    .qm-company-value .qm-card + .qm-card { border-top: 1px solid #d3dee7; }
    .qm-company-value .qm-card h3 { text-wrap: pretty; }
}

.qm-company-value .qm-card-label {
    margin-bottom: 10px;
    color: #0b4ca8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16em;
    overflow-wrap: break-word;
}

.qm-company-value .qm-card h3 {
    margin-bottom: 8px;
    color: #102a43;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: break-word;
}

.qm-company-value .qm-card > p:last-child {
    margin-bottom: 0;
    color: #111b2c;
    font-size: 16px;
    line-height: 1.8;
    text-align: start;
}

/* Keep the closing phrase intact without fixing the width of the whole sentence. */
.qm-company-value .qm-value-word {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
}

.qm-company-value .qm-value-desktop-break {
    display: none;
}

/* Use the intended desktop lines once all three columns have enough space. */
@media (min-width: 1280px) {
    .qm-company-value .qm-value-copy-line {
        display: block;
    }
}


/* =========================================================
   06. Representative Message
========================================================= */

.qm-company-message {
    overflow: hidden;
    color: var(--qm-company-white);
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(0, 92, 255, 0.28),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #071323 0%,
            #0b1d34 56%,
            #071323 100%
        );
}

.qm-company-message::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.18;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 42%,
        #000
    );
    pointer-events: none;
}

.qm-company-message-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 58px;
}

.qm-company-message .qm-company-section-label {
    color: var(--qm-company-cyan);
}

.qm-company-message-heading h2 {
    margin-bottom: 0;
    color: var(--qm-company-white);
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.045em;
}

.qm-company-message-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
    align-items: stretch;
    gap: clamp(52px, 8vw, 110px);
}

.qm-company-message-visual {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.025)
        );
    box-shadow:
        0 38px 90px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.qm-company-message-visual::after {
    position: absolute;
    right: -110px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(89, 216, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.qm-company-message-image {
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    object-position: center top;
}

.qm-company-message-image-placeholder {
    display: flex;
    min-height: 610px;
    align-items: flex-end;
    padding: 38px;
    background:
        radial-gradient(
            circle at 70% 24%,
            rgba(89, 216, 255, 0.18),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.015)
        );
}

.qm-company-message-image-placeholder span {
    color: rgba(255, 255, 255, 0.52);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.qm-company-message-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 22px;
}

.qm-company-message-eyebrow {
    margin-bottom: 24px;
    color: var(--qm-company-cyan);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.2em;
}

.qm-company-message-content h3 {
    max-width: 760px;
    margin-bottom: 34px;
    color: var(--qm-company-white);
    font-size: clamp(2rem, 3.5vw, 3.65rem);
    font-weight: 500;
    line-height: 1.34;
    letter-spacing: -0.04em;
}

.qm-company-message-text {
    max-width: 720px;
}

.qm-company-message-text p {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 2;
    letter-spacing: 0.015em;
}

.qm-company-message-text p:last-child {
    margin-bottom: 0;
}

.qm-company-message-signature {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.qm-company-message-signature span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.qm-company-message-signature strong {
    color: var(--qm-company-white);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =========================================================
   07. Leadership
========================================================= */

.qm-company-leadership {
    background:
        linear-gradient(
            135deg,
            rgba(0, 92, 255, 0.035),
            transparent 46%
        ),
        var(--qm-company-white);
}

.qm-company-leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.qm-company-leadership-card {
    position: relative;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--qm-company-border);
    border-radius: 16px;
    background: var(--qm-company-bg-light);
    transition:
        transform var(--qm-company-transition),
        box-shadow var(--qm-company-transition),
        border-color var(--qm-company-transition),
        background-color var(--qm-company-transition);
}

.qm-company-leadership-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    content: "";
    background: linear-gradient(
        to bottom,
        var(--qm-company-blue),
        var(--qm-company-cyan)
    );
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--qm-company-transition);
}

.qm-company-leadership-card::after {
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(0, 92, 255, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.qm-company-leadership-card:hover {
    border-color: rgba(0, 92, 255, 0.22);
    background: var(--qm-company-white);
    box-shadow: var(--qm-company-shadow);
    transform: translateY(-6px);
}

.qm-company-leadership-card:hover::before {
    transform: scaleY(1);
}

.qm-company-leadership-role {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    color: var(--qm-company-blue);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.qm-company-leadership-name {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    color: var(--qm-company-text);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.qm-company-leadership-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 24px 0 0;
    border: 0 !important;
    border-radius: 0;
    color: var(--qm-company-blue) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    transition:
        color var(--qm-company-transition),
        gap var(--qm-company-transition);
}

.qm-company-leadership-link span:last-child {
    transition: transform var(--qm-company-transition);
}

.qm-company-leadership-link:hover,
.qm-company-leadership-link:focus,
.qm-company-leadership-link:active {
    gap: 15px;
    border: 0 !important;
    color: var(--qm-company-blue-light) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.qm-company-leadership-link:hover span:last-child {
    transform: translateX(4px);
}

.qm-company-leadership-link:focus {
    outline: none;
}

.qm-company-leadership-link:focus-visible {
    outline: 2px solid rgba(0, 92, 255, 0.35);
    outline-offset: 5px;
}

/* =========================================================
   08. Leadership Modal
========================================================= */

body.qm-company-modal-open {
    overflow: hidden;
    padding-right: calc(
        var(--qm-modal-body-padding-right, 0px) +
        var(--qm-modal-scrollbar-compensation, 0px)
    );
}

.qm-company-modal[hidden] {
    display: none;
}

.qm-company-modal {
    --qm-company-navy: #071323;
    --qm-company-blue: #005cff;
    --qm-company-blue-light: #2b7cff;
    --qm-company-cyan: #59d8ff;
    --qm-company-white: #ffffff;
    --qm-company-bg: #f5f7fa;
    --qm-company-bg-light: #fafbfd;
    --qm-company-text: #111b2c;
    --qm-company-text-light: #59677b;
    --qm-company-border: #dce3ec;
    --qm-company-shadow: 0 24px 70px rgba(7, 19, 35, 0.1);
    --qm-company-transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.qm-company-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.qm-company-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 13, 25, 0.72);
    backdrop-filter: blur(8px);
}

.qm-company-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 920px);
    max-height: min(86vh, 900px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background: var(--qm-company-white);
    box-shadow:
        0 38px 120px rgba(0, 0, 0, 0.28),
        0 10px 40px rgba(7, 19, 35, 0.16);
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-gutter: stable;
}

.qm-company-modal.is-open .qm-company-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.qm-company-modal-dialog:focus {
    outline: none;
}

.qm-company-modal-close {
    position: sticky;
    z-index: 5;
    top: 22px;
    float: right;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin: 22px 22px 0 0;
    border: 1px solid var(--qm-company-border);
    border-radius: 50%;
    color: var(--qm-company-text);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(7, 19, 35, 0.08);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color var(--qm-company-transition),
        border-color var(--qm-company-transition),
        background-color var(--qm-company-transition),
        transform var(--qm-company-transition);
}

.qm-company-modal-close:hover,
.qm-company-modal-close:focus-visible {
    color: var(--qm-company-white);
    border-color: var(--qm-company-blue);
    background: var(--qm-company-blue);
    transform: rotate(90deg);
}

.qm-company-modal-close:focus-visible {
    outline: 3px solid rgba(0, 92, 255, 0.25);
    outline-offset: 4px;
}

.qm-company-modal-header {
    padding: 64px 72px 46px;
    border-bottom: 1px solid var(--qm-company-border);
    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(0, 92, 255, 0.09),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7faff 100%
        );
}

.qm-company-modal-label {
    margin-bottom: 22px;
    color: var(--qm-company-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.qm-company-modal-role {
    margin-bottom: 10px;
    color: #111b2c;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

.qm-company-modal-name {
    margin-bottom: 0;
    color: #111b2c;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.qm-company-modal-content {
    padding: 54px 72px 70px;
}

.qm-company-modal-section + .qm-company-modal-section {
    margin-top: 52px;
    padding-top: 52px;
    border-top: 1px solid var(--qm-company-border);
}

.qm-company-modal-section h4 {
    margin-bottom: 28px;
    color: #111b2c;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.qm-company-modal-section p {
    margin-bottom: 18px;
    color: #111b2c;
    font-size: 0.96rem;
    line-height: 2;
    letter-spacing: 0.012em;
}

.qm-company-modal-section p:last-child {
    margin-bottom: 0;
}

.qm-company-career-list {
    margin: 0;
}

.qm-company-career-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 28px;
    padding: 20px 0;
    border-bottom: 1px solid var(--qm-company-border);
}

.qm-company-career-item:first-child {
    border-top: 1px solid var(--qm-company-border);
}

.qm-company-career-item dt {
    color: var(--qm-company-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.qm-company-career-item dd {
    margin: 0;
    color: #111b2c;
    font-size: 0.94rem;
    line-height: 1.8;
}


/* =========================================================
   09. Company Profile
========================================================= */

.qm-company-profile {
    background: var(--qm-bg-standard);
}

.qm-profile-table {
    border-top: 1px solid var(--qm-company-border);
}

.qm-profile-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 50px;
    padding: 30px 10px;
    border-bottom: 1px solid var(--qm-company-border);
}

.qm-profile-head {
    color: var(--qm-company-text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.8;
}

.qm-profile-body {
    color: var(--qm-company-text);
    font-size: 0.98rem;
    line-height: 1.9;
}

.qm-profile-business-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qm-profile-business-list li {
    position: relative;
    padding-left: 18px;
}

.qm-profile-business-list li::before {
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    content: "";
    background: var(--qm-company-blue);
}

/* =========================================================
   10. Responsive
========================================================= */

@media (max-width: 1024px) {

    .qm-company-page {
        --qm-company-section-space: 100px;
    }

    .qm-company-page .qm-container {
        width: min(calc(100% - 56px), 1200px);
    }

    .qm-company-future .qm-company-text,
    .qm-company-future > .qm-container > h3 {
        margin-left: 60px;
    }

    .qm-card-grid,
    .qm-company-leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qm-company-message-grid {
        grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
        gap: 54px;
    }

    .qm-company-message-visual,
    .qm-company-message-image,
    .qm-company-message-image-placeholder {
        min-height: 540px;
    }

    .qm-profile-row {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 36px;
    }

}


@media (max-width: 768px) {

    .qm-company-page {
        --qm-company-section-space: 82px;
    }

    .qm-company-page .qm-container {
        width: min(calc(100% - 36px), 1200px);
    }

    .qm-company-page .qm-page-section > .qm-container > h2,
    .qm-company-page .qm-section-heading h2 {
        margin-bottom: 28px;
        font-size: clamp(2.15rem, 9vw, 3.2rem);
    }

    .qm-company-page .qm-page-section > .qm-container > h3 {
        margin-bottom: 28px;
        font-size: 1.45rem;
    }

    .qm-company-text p {
        font-size: 0.94rem;
        line-height: 1.9;
    }

    .qm-section-heading {
        margin-bottom: 46px;
    }

    .qm-company-future .qm-company-text,
    .qm-company-future > .qm-container > h3 {
        margin-left: 0;
    }

    .qm-card-grid,
    .qm-company-leadership-grid {
        grid-template-columns: 1fr;
    }

    .qm-company-message-heading {
        margin-bottom: 42px;
    }

    .qm-company-message-heading h2 {
        font-size: clamp(2.15rem, 9vw, 3.2rem);
    }

    .qm-company-message-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .qm-company-message-visual {
        width: min(100%, 560px);
        min-height: 520px;
    }

    .qm-company-message-image,
    .qm-company-message-image-placeholder {
        min-height: 520px;
    }

    .qm-company-message-content {
        padding-block: 0;
    }

    .qm-company-message-content h3 {
        font-size: clamp(1.9rem, 7vw, 2.85rem);
    }

    .qm-company-leadership-card {
        min-height: 170px;
        padding: 26px;
    }

    .qm-company-leadership-role {
        margin-bottom: 20px;
    }

    .qm-company-leadership-name {
        font-size: 1.4rem;
    }

    .qm-company-modal {
        align-items: end;
        padding: 18px;
    }

    .qm-company-modal-dialog {
        width: 100%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .qm-company-modal-header {
        padding: 58px 28px 34px;
    }

    .qm-company-modal-content {
        padding: 34px 28px 46px;
    }

    .qm-company-modal-close {
        top: 14px;
        width: 42px;
        height: 42px;
        margin: 14px 14px 0 0;
    }

    .qm-company-modal-section + .qm-company-modal-section {
        margin-top: 38px;
        padding-top: 38px;
    }

    .qm-company-career-item {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 18px 0;
    }

    .qm-profile-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 0;
    }

    .qm-profile-head {
        color: var(--qm-company-blue);
        font-size: 0.78rem;
        letter-spacing: 0.06em;
    }

}


@media (max-width: 480px) {

    .qm-company-page {
        --qm-company-section-space: 70px;
    }

    .qm-company-page .qm-container {
        width: calc(100% - 30px);
    }

    .qm-company-section-label {
        gap: 10px;
        margin-bottom: 20px;
        font-size: 0.65rem;
    }

    .qm-company-section-label::before {
        width: 28px;
    }

    .qm-company-page .qm-page-section > .qm-container > h2,
    .qm-company-page .qm-section-heading h2 {
        font-size: 2rem;
        line-height: 1.28;
    }

    .qm-company-page .qm-page-section > .qm-container > h3 {
        font-size: 1.28rem;
    }

    .qm-company-leadership-card {
        border-radius: 14px;
    }

    .qm-company-message-heading {
        margin-bottom: 34px;
    }

    .qm-company-message-heading h2 {
        font-size: 2rem;
        line-height: 1.28;
    }

    .qm-company-message-grid {
        gap: 34px;
    }

    .qm-company-message-visual {
        min-height: 420px;
        border-radius: 18px;
    }

    .qm-company-message-image,
    .qm-company-message-image-placeholder {
        min-height: 420px;
    }

    .qm-company-message-image-placeholder {
        padding: 24px;
    }

    .qm-company-message-eyebrow {
        margin-bottom: 18px;
        font-size: 0.62rem;
    }

    .qm-company-message-content h3 {
        margin-bottom: 26px;
        font-size: 1.8rem;
    }

    .qm-company-message-text p {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .qm-company-message-signature {
        margin-top: 28px;
        padding-top: 24px;
    }

    .qm-company-leadership-card {
        min-height: 158px;
        padding: 24px;
    }

    .qm-company-leadership-link {
        padding-top: 20px;
    }

    .qm-company-modal {
        padding: 10px;
    }

    .qm-company-modal-dialog {
        max-height: 94vh;
        border-radius: 16px;
    }

    .qm-company-modal-header {
        padding: 54px 22px 30px;
    }

    .qm-company-modal-content {
        padding: 30px 22px 40px;
    }

    .qm-company-modal-name {
        font-size: 1.85rem;
    }

    .qm-company-modal-section p,
    .qm-company-career-item dd {
        font-size: 0.9rem;
    }

    .qm-profile-body {
        font-size: 0.92rem;
    }

}


/* =========================================================
   Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .qm-company-page *,
    .qm-company-page *::before,
    .qm-company-page *::after,
    .qm-company-modal,
    .qm-company-modal-dialog {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   Print
========================================================= */

@media print {

    .qm-company-page .qm-page-section {
        padding-block: 40px;
    }

    .qm-company-value {
        color: #000000;
        background: var(--qm-bg-standard);
    }

    .qm-company-value > .qm-container > h2,
    .qm-company-value .qm-card h3,
    .qm-company-value .qm-card > p:last-child {
        color: #000000;
    }

    .qm-company-value .qm-card {
        border-color: #cccccc;
        background: #ffffff;
    }

    .qm-company-modal {
        display: none !important;
    }

}

/* =========================================================
   11. Company Compact Redesign
========================================================= */

#primary.qm-company-page,
main.qm-company-page {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

.qm-company-page {
    --qm-company-section-space: 76px;
}

.qm-company-page .qm-container {
    width: min(calc(100% - 48px), 1120px);
}

.qm-company-page .qm-page-section {
    padding-block: var(--qm-company-section-space);
}

.qm-company-section-label {
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.66rem;
}

.qm-company-section-label::before {
    width: 28px;
}

.qm-company-page .qm-page-section > .qm-container > h2,
.qm-company-page .qm-section-heading h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.qm-company-page .qm-page-section > .qm-container > h3 {
    margin-bottom: 20px;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.qm-company-text p {
    margin-bottom: 14px;
    font-size: 0.94rem;
    line-height: 1.85;
}

.qm-company-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
    align-items: center;
    gap: 64px;
}

.qm-company-split-content h2 {
    margin: 0 0 20px;
    color: var(--qm-company-text);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.22;
    letter-spacing: -0.045em;
}

.qm-company-split-content h3 {
    margin: 0 0 20px;
    color: var(--qm-company-text);
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.qm-company-future::before {
    display: none;
}

.qm-company-future .qm-company-text,
.qm-company-future > .qm-container > h3 {
    margin-left: 0;
}

.qm-company-value {
    padding-block: 68px !important;
}

.qm-company-future {
    background: var(--qm-bg-standard);
}

.qm-company-future-content {
    padding: 52px;
}

.qm-company-future-content h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
}

.qm-company-future-content h3 {
    margin: 0 0 18px;
    font-size: 1.5rem;
}

.qm-company-message {
    padding-block: 61px !important;
}

.qm-company-message-heading {
    margin-bottom: 36px;
}

.qm-company-message-heading h2 {
    font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.qm-company-message-grid {
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    gap: 56px;
}

.qm-company-message-visual,
.qm-company-message-image,
.qm-company-message-image-placeholder {
    min-height: 430px;
}

.qm-company-message-content h3 {
    margin-bottom: 22px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.qm-company-message-text p {
    margin-bottom: 13px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.qm-company-message-signature {
    margin-top: 22px;
    padding-top: 20px;
}

.qm-section-heading {
    margin-bottom: 38px;
}

.qm-company-leadership {
    padding-block: 72px !important;
}

.qm-company-leadership-grid {
    gap: 16px;
}

.qm-company-leadership-card {
    min-height: 150px;
    padding: 24px;
}

.qm-company-leadership-role {
    margin-bottom: 14px;
    font-size: 0.7rem;
}

.qm-company-leadership-name {
    font-size: 1.35rem;
}

.qm-company-leadership-link {
    padding-top: 16px;
    font-size: 0.78rem;
}

.qm-company-profile {
    padding-block: 70px !important;
}

.qm-profile-row {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
    padding: 20px 8px;
}

.qm-profile-head {
    font-size: 0.85rem;
}

.qm-profile-body {
    font-size: 0.9rem;
    line-height: 1.75;
}

.qm-company-cta {
    padding: 0 24px 76px;
    background: var(--qm-bg-standard);
}

.qm-company-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    overflow: hidden;
    border-radius: 26px;
    padding: 48px 52px;
    background:
        radial-gradient(circle at 88% 15%, rgba(43, 124, 255, 0.32), transparent 26%),
        linear-gradient(145deg, #0b2d57 0%, #061a34 100%);
    color: #fff;
    box-shadow: 0 24px 64px rgba(7, 31, 61, 0.18);
}

.qm-company-cta .qm-company-section-label {
    color: var(--qm-company-cyan);
}

.qm-company-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.28;
    letter-spacing: -0.04em;
}

.qm-company-cta p:last-child {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.qm-company-cta-button {
    display: inline-flex;
    min-width: 240px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 16px 14px 20px;
    border-radius: 999px;
    background: #fff;
    color: #071d39 !important;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .qm-company-page {
        --qm-company-section-space: 64px;
    }

    .qm-company-split,
    .qm-company-cta-inner {
        grid-template-columns: 1fr;
    }

    .qm-company-future-content {
        padding: 38px;
    }

    .qm-company-message-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .qm-company-message-visual {
        width: min(100%, 520px);
    }

    .qm-company-cta-inner {
        align-items: start;
        gap: 30px;
    }

    .qm-company-cta-button {
        width: min(100%, 320px);
    }
}

@media (max-width: 680px) {
    .qm-company-page {
        --qm-company-section-space: 56px;
    }

    .qm-company-page .qm-container {
        width: calc(100% - 30px);
    }

    .qm-company-split {
        gap: 32px;
    }

    .qm-company-split-content h2 {
        font-size: 2rem;
    }

    .qm-company-value {
        padding-block: 56px !important;
    }

    .qm-company-future-content {
        padding: 30px 22px;
    }

    .qm-company-message {
        padding-block: 50px !important;
    }

    .qm-company-message-visual,
    .qm-company-message-image,
    .qm-company-message-image-placeholder {
        min-height: 360px;
    }

    .qm-company-leadership-grid {
        grid-template-columns: 1fr;
    }

    .qm-profile-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 18px 0;
    }

    .qm-company-cta {
        padding: 0 15px 58px;
    }

    .qm-company-cta-inner {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .qm-company-cta h2 {
        font-size: 2rem;
    }
}

/* =========================================================
   12. Final Polish
   Compact rhythm / leadership cards / visual balance
========================================================= */

.qm-company-introduction {
    padding-top: 64px !important;
}

/* Representative message: slightly less image-heavy */
.qm-company-message-grid {
    grid-template-columns: minmax(290px, 0.76fr) minmax(0, 1.24fr);
    gap: 52px;
}

.qm-company-message-visual,
.qm-company-message-image,
.qm-company-message-image-placeholder {
    min-height: 400px;
}

.qm-company-message-visual {
    max-width: 390px;
}

/* Leadership cards: richer, less administrative */
.qm-company-leadership-card {
    min-height: 146px;
    padding: 23px 24px;
    border-color: rgba(21, 67, 123, 0.11);
    background:
        radial-gradient(circle at 88% 18%, rgba(43, 124, 255, 0.09), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 12px 32px rgba(7, 19, 35, 0.045);
}

.qm-company-leadership-card::before {
    width: 3px;
    transform: scaleY(1);
    opacity: 0.45;
}

.qm-company-leadership-card::after {
    right: -58px;
    bottom: -66px;
    width: 150px;
    height: 150px;
    border-color: rgba(0, 92, 255, 0.07);
}

.qm-company-leadership-card:hover {
    border-color: rgba(0, 92, 255, 0.22);
    box-shadow: 0 18px 46px rgba(7, 19, 35, 0.09);
    transform: translateY(-4px);
}

.qm-company-leadership-role {
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.qm-company-leadership-name {
    font-size: 1.3rem;
}

.qm-company-leadership-link {
    gap: 8px;
    padding-top: 14px;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Company profile: remove excess vertical pause */
.qm-company-profile .qm-section-heading {
    margin-bottom: 28px;
}

.qm-company-profile {
    padding-top: 62px !important;
    padding-bottom: 64px !important;
}

.qm-profile-row {
    padding-top: 17px;
    padding-bottom: 17px;
}

/* CTA a touch tighter */
.qm-company-cta {
    padding-bottom: 66px;
}

.qm-company-cta-inner {
    padding-top: 42px;
    padding-bottom: 42px;
}

/* Improve button movement without changing visual language */
.qm-company-cta-button {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.qm-company-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

/* Tablet */
@media (max-width: 900px) {
    .qm-company-message-grid {
        grid-template-columns: 1fr;
    }

    .qm-company-message-visual {
        width: min(100%, 442px);
        max-width: none;
        justify-self: start;
        min-height: 0;
        aspect-ratio: 390 / 558.4;
    }

    .qm-company-message-image,
    .qm-company-message-image-placeholder {
        height: 100%;
        min-height: 0;
    }

}

/* Mobile */
@media (max-width: 680px) {
    .qm-company-introduction {
        padding-top: 54px !important;
    }

    .qm-company-message-visual,
    .qm-company-message-image,
    .qm-company-message-image-placeholder {
        min-height: 340px;
    }

    .qm-company-message-visual {
        width: min(100%, 390px);
        aspect-ratio: auto;
    }

    .qm-company-leadership-role {
        font-size: 0.75rem;
    }

    .qm-company-leadership-link {
        font-size: 0.8125rem;
    }

    .qm-company-profile {
        padding-top: 54px !important;
        padding-bottom: 56px !important;
    }
}

/* =========================================================
   Company Introduction Hero / Desktop
========================================================= */

@media (min-width: 1025px) {

    .qm-company-page .qm-company-introduction {
        position: relative;
        isolation: isolate;
        display: flex;
        overflow: hidden;
        background: #f5f8fc;
        box-sizing: border-box;
    }

    .qm-company-page .qm-company-introduction::before {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: auto;
        height: auto;
        max-width: none;
        border: 0;
        border-radius: 0;
        content: "";
        background: url("../../images/company/company-top.webp") right 54% / 75% auto no-repeat;
        box-shadow: none;
        clip-path: none;
        filter: saturate(.98) contrast(1.02);
        mask: none;
    }

    .qm-company-page .qm-company-introduction::after {
        position: absolute;
        inset: 0;
        z-index: -1;
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
        content: "";
        background: linear-gradient(
            90deg,
            rgba(4, 20, 40, .50) 0%,
            rgba(5, 23, 44, .38) 30%,
            rgba(7, 27, 49, .14) 48%,
            rgba(7, 27, 49, 0) 66%
        );
        transform: none;
        pointer-events: none;
    }

    .qm-company-page .qm-company-introduction > .qm-container {
        position: relative;
        z-index: 1;
    }

    .qm-company-page .qm-company-introduction-content h1 {
        color: #ffffff;
    }

    .qm-company-page .qm-company-introduction-content .qm-company-text p {
        margin-bottom: 10px;
        color: #ffffff;
    }

    .qm-company-page .qm-company-introduction-content .qm-company-text p:last-child {
        margin-bottom: 0;
    }

    .qm-company-page .qm-company-introduction-no-break {
        white-space: nowrap;
    }

    .qm-company-page .qm-company-value > .qm-container > .qm-company-section-label,
    .qm-company-page .qm-company-message .qm-company-section-label {
        transform: translateX(-40px);
    }

    .qm-company-page .qm-company-introduction .qm-company-section-label,
    .qm-company-page .qm-company-value > .qm-container > .qm-company-section-label,
    .qm-company-page .qm-company-message .qm-company-section-label,
    .qm-company-page .qm-company-leadership .qm-company-section-label,
    .qm-company-page .qm-company-profile .qm-company-section-label {
        font-size: 14px;
        letter-spacing: 2.4px;
    }

    .qm-company-page .qm-company-leadership,
    .qm-company-page .qm-company-profile {
        background: var(--qm-bg-standard);
    }

    .qm-company-page .qm-company-leadership {
        padding-block: 56px !important;
    }

    .qm-company-page .qm-company-leadership > .qm-container,
    .qm-company-page .qm-company-profile > .qm-container {
        width: min(calc(100% - 48px), 1200px);
    }

    .qm-company-page .qm-company-leadership .qm-company-section-label,
    .qm-company-page .qm-company-profile .qm-company-section-label {
        transform: none;
    }

    .qm-company-page .qm-company-leadership .qm-section-heading,
    .qm-company-page .qm-company-profile .qm-section-heading {
        margin-bottom: 32px;
    }
}

/* =========================================================
   Company Value / Future Draft — Desktop
========================================================= */
@media screen and (min-width: 1025px) {
    .qm-company-page .qm-company-value {
        isolation: isolate;
        overflow: hidden;
        padding-block: 64px 27px !important;
        background: var(--qm-bg-standard);
    }

    .qm-company-page .qm-company-value > .qm-container,
    .qm-company-page .qm-company-future > .qm-container {
        width: min(calc(100% - 48px), 1200px);
    }

    .qm-company-page .qm-company-value > .qm-container > .qm-company-section-label,
    .qm-company-page .qm-company-future > .qm-container > .qm-company-section-label {
        margin-bottom: 0;
        color: var(--qm-company-blue);
        font-size: 14px;
        letter-spacing: 2.4px;
        transform: none;
    }

    .qm-company-page .qm-company-value .qm-card-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin-top: 35px;
        border-top: 1px solid #b9cad8;
    }

    .qm-company-page .qm-company-value .qm-card {
        position: relative;
        min-height: 205px;
        padding: 20px 15px 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        color: var(--qm-company-text);
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .qm-company-page .qm-company-value .qm-card + .qm-card {
        border-left: 1px solid #d3dee7;
    }

    .qm-company-page .qm-company-value .qm-card::before {
        position: absolute;
        top: -2px;
        left: 15px;
        width: 54px;
        height: 3px;
        content: "";
        background: var(--qm-company-blue);
    }

    .qm-company-page .qm-company-value .qm-card::after {
        display: none;
    }

    .qm-company-page .qm-company-value .qm-card:hover {
        border-color: #d3dee7;
        background: transparent;
        transform: none;
    }

    .qm-company-page .qm-company-value .qm-card-label {
        position: relative;
        margin-bottom: 10px;
        padding-top: 12px;
        padding-right: 12px;
        color: #0b4ca8;
        font-size: 15px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.16em;
    }

    .qm-company-page .qm-company-value .qm-card-label::after {
        position: absolute;
        top: 15px;
        right: 0;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        content: "";
        background: #2b7cff;
    }

    .qm-company-page .qm-company-value .qm-card h3 {
        margin-bottom: 7px;
        color: #102a43;
        font-size: 25px;
        font-weight: 700;
        line-height: 1.55;
        letter-spacing: -0.02em;
        white-space: normal;
    }

    .qm-company-page .qm-company-value .qm-card > p:last-child {
        margin-bottom: 0;
        color: #111b2c;
        font-size: 16px;
        line-height: 1.75;
    }

    .qm-company-value .qm-value-desktop-break {
        display: inline;
    }

    html[lang^="en"] .qm-company-page .qm-company-value .qm-card h3 {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .qm-company-page .qm-company-future {
        overflow: hidden;
        padding-block: 12px 60px !important;
        background: var(--qm-bg-standard);
    }

    .qm-company-page .qm-company-future::before {
        display: none;
    }

    .qm-company-page .qm-company-future-content {
        max-width: 904px;
        margin-top: 10px;
        margin-left: 24px;
        padding: 0;
    }

    .qm-company-page .qm-company-future-content h3 {
        margin: 0 0 18px;
        color: #102a43;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.45;
        letter-spacing: -0.025em;
    }

    .qm-company-page .qm-company-future .qm-company-text {
        max-width: 880px;
        margin-left: 0;
        word-break: auto-phrase;
    }

    .qm-company-page .qm-company-future .qm-company-text p {
        margin-bottom: 12px;
        color: #111b2c;
        font-size: 17px;
        line-height: 1.75;
    }

    .qm-company-page .qm-company-future .qm-company-text p:last-child {
        margin-bottom: 0;
    }

    .qm-company-page .qm-company-message {
        padding-block: 37px !important;
        background:
            radial-gradient(
                circle at 88% 18%,
                rgba(20, 105, 255, 0.3),
                transparent 30%
            ),
            linear-gradient(
                135deg,
                #0b1a2e 0%,
                #102947 56%,
                #0b1a2e 100%
            );
    }

    .qm-company-page .qm-company-message .qm-company-section-label {
        color: var(--qm-company-cyan);
    }

    .qm-company-page .qm-company-message-heading {
        margin-bottom: 30px;
    }

    .qm-company-page .qm-company-message-grid {
        grid-template-columns: 292px minmax(0, 1fr);
        align-items: center;
        gap: 52px;
    }

    .qm-company-page .qm-company-message-visual {
        width: 292px;
        max-width: 292px;
        min-height: 0;
        aspect-ratio: 390 / 558.4;
    }

    .qm-company-page .qm-company-message-image,
    .qm-company-page .qm-company-message-image-placeholder {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .qm-company-page .qm-company-message-text p {
        margin-bottom: 13px;
        font-size: 17px;
        line-height: 1.8;
    }

    .qm-company-page .qm-company-message-desktop-line {
        display: block;
    }

    .qm-company-page .qm-company-message-signature {
        margin-top: 18px;
        padding-top: 16px;
    }

    .qm-company-page .qm-company-message-signature span {
        font-size: 16px;
        font-weight: 700;
    }

}

/* =========================================================
   Company Principles / Desktop
   MISSION and VISION share one continuous reading surface.
========================================================= */
@media (min-width: 1025px) {
    .qm-company-page .qm-company-principles {
        isolation: isolate;
        overflow: hidden;
        padding-block: 64px 52px;
        background: #f3f7fa;
    }

    .qm-company-page .qm-company-principles::before {
        position: absolute;
        z-index: 0;
        inset: 0;
        content: "";
        background: url("../../images/company/mission-vision.webp") right 18px center / 780px auto no-repeat;
        opacity: 0.9;
        pointer-events: none;
    }

    .qm-company-page .qm-company-principles::after {
        position: absolute;
        z-index: 0;
        inset: 0;
        content: "";
        background: linear-gradient(
            90deg,
            #f3f7fa 0%,
            rgba(243, 247, 250, 0.99) 28%,
            rgba(243, 247, 250, 0.84) 40%,
            rgba(243, 247, 250, 0.34) 52%,
            rgba(243, 247, 250, 0.06) 62%,
            rgba(243, 247, 250, 0) 70%
        );
        pointer-events: none;
    }

    .qm-company-page .qm-company-principles > .qm-container {
        position: relative;
        z-index: 1;
        width: min(calc(100% - 48px), 1200px);
    }

    .qm-company-page .qm-company-principle {
        position: relative;
        width: min(100%, 820px);
    }

    .qm-company-page .qm-company-principle--vision {
        margin-top: 60px;
    }

    .qm-company-page .qm-company-principles .qm-company-section-label {
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 2.4px;
        transform: none;
    }

    .qm-company-page .qm-company-principle > h3,
    .qm-company-page .qm-company-principle > .qm-company-text {
        margin-left: 24px;
    }

    .qm-company-page .qm-company-principle > h3 {
        max-width: 796px;
        margin-bottom: 8px;
        font-size: 34px;
        font-weight: 700;
        line-height: 1.35;
    }

    .qm-company-page .qm-company-principle > .qm-company-text {
        max-width: 760px;
    }

    .qm-company-page .qm-company-principle > .qm-company-text p {
        margin-bottom: 6px;
        line-height: 1.55;
    }

    .qm-company-page .qm-company-principle > .qm-company-text p:last-child {
        margin-bottom: 0;
    }
}

/* Final cascade: company interaction refinements must follow legacy responsive rules. */
.qm-company-page .qm-company-leadership-card {
    width: 100%;
    margin: 0;
    border-style: solid;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.qm-company-page .qm-company-leadership-card:hover {
    transform: translateY(-3px);
}

.qm-company-page .qm-company-leadership-card:focus {
    outline: none;
}

.qm-company-page .qm-company-leadership-card:focus-visible {
    border-color: var(--qm-company-blue);
    outline: 3px solid rgba(0, 92, 255, 0.32);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.95), 0 18px 46px rgba(7, 19, 35, 0.12);
}

.qm-company-page .qm-company-leadership-card:hover .qm-company-leadership-link,
.qm-company-page .qm-company-leadership-card:focus-visible .qm-company-leadership-link {
    gap: 13px;
    color: var(--qm-company-blue-light) !important;
}

.qm-company-page .qm-company-leadership-card:hover .qm-company-leadership-link span:last-child,
.qm-company-page .qm-company-leadership-card:focus-visible .qm-company-leadership-link span:last-child {
    transform: translateX(4px);
}

.qm-company-page .qm-company-leadership-role,
.qm-company-page .qm-company-leadership-name {
    display: block;
}

.qm-company-modal {
    padding: clamp(16px, 3vw, 36px);
}

.qm-company-modal-overlay {
    background: rgba(5, 18, 38, 0.76);
    backdrop-filter: blur(6px);
}

.qm-company-modal-dialog {
    width: min(100%, 1060px);
    max-height: 88vh;
    max-height: 88dvh;
    border-color: rgba(96, 167, 255, 0.3);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(3, 15, 35, 0.28), 0 8px 28px rgba(7, 19, 35, 0.12);
}

.qm-company-modal-close {
    position: sticky;
    top: 18px;
    right: 18px;
    display: grid;
    float: right;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    place-items: center;
    margin: 18px 18px -70px 0;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #d8e5f5 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(7, 19, 35, 0.1) !important;
    color: #10233f !important;
    line-height: 1;
    transform: none !important;
    appearance: none;
}

.qm-company-modal-close::before,
.qm-company-modal-close::after {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    content: "";
    background: currentColor;
}

.qm-company-modal-close::before { transform: rotate(45deg); }
.qm-company-modal-close::after { transform: rotate(-45deg); }

.qm-company-modal-close:hover {
    border-color: var(--qm-company-blue) !important;
    background: var(--qm-company-blue) !important;
    box-shadow: 0 10px 26px rgba(0, 92, 255, 0.24) !important;
    color: #fff !important;
}

.qm-company-modal-close:focus-visible {
    border-color: var(--qm-company-blue) !important;
    outline: 3px solid rgba(0, 92, 255, 0.32);
    outline-offset: 4px;
}

.qm-company-modal-header {
    padding: 42px 76px 30px;
}

.qm-company-modal-label { margin-bottom: 12px; }
.qm-company-modal-role { margin-bottom: 6px; }
.qm-company-modal-name { font-size: clamp(1.8rem, 3.5vw, 3rem); }

.qm-company-modal-content {
    width: min(100%, 900px);
    padding: 38px 76px 56px;
}

.qm-company-modal-section + .qm-company-modal-section {
    margin-top: 38px;
    padding-top: 38px;
}

.qm-company-modal-section h4 { margin-bottom: 20px; }
.qm-company-modal-section p { line-height: 1.9; }
.qm-company-career-item { padding: 17px 0; }

@media (max-width: 900px) {
    .qm-company-profile-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .qm-company-map iframe { height: 340px; }

    .qm-company-modal-header,
    .qm-company-modal-content {
        padding-inline: clamp(28px, 7vw, 58px);
    }
}

@media (max-width: 680px) {
    .qm-company-modal { padding: 10px; }
    .qm-company-modal-dialog { border-radius: 20px; }

    .qm-company-modal-close {
        top: 14px;
        right: 14px;
        margin: 14px 14px -66px 0;
    }

    .qm-company-modal-header {
        padding: 30px 82px 24px 24px;
    }

    .qm-company-modal-content { padding: 30px 24px 42px; }

    .qm-company-career-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 16px;
    }

    .qm-company-map iframe { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
    .qm-company-page .qm-company-leadership-card,
    .qm-company-page .qm-company-leadership-card::before,
    .qm-company-page .qm-company-leadership-link,
    .qm-company-page .qm-company-leadership-link span:last-child,
    .qm-company-modal,
    .qm-company-modal-dialog,
    .qm-company-modal-close {
        transition-duration: 0.01ms !important;
    }

    .qm-company-page .qm-company-leadership-card:hover { transform: none; }
}

/* =========================================================
   Compact leadership modal and map sizing
========================================================= */
.qm-company-map {
    align-self: start;
    height: auto;
}

.qm-company-map iframe {
    height: 320px;
    min-height: 0;
}

.qm-company-modal-dialog {
    display: flex;
    width: min(100%, 940px);
    max-height: 84vh;
    max-height: 84dvh;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
}

.qm-company-modal-close {
    position: absolute;
    z-index: 8;
    top: 24px;
    right: 24px;
    float: none;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0;
}

.qm-company-modal-header {
    position: relative;
    flex: 0 0 auto;
    padding: 34px 88px 26px 46px;
    border-bottom: 1px solid #dce8f5;
    background: #fbfdff;
}

.qm-company-modal-header::after {
    position: absolute;
    bottom: -1px;
    left: 46px;
    width: 72px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    content: "";
    background: var(--qm-company-blue);
}

.qm-company-modal-label {
    margin-bottom: 9px;
}

.qm-company-modal-role {
    margin-bottom: 4px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.5;
}

.qm-company-modal-name {
    font-size: clamp(2.25rem, 3.3vw, 3rem);
    line-height: 1.2;
}

.qm-company-modal-content {
    width: 100%;
    min-height: 0;
    padding: 32px 46px 40px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(0, 92, 255, 0.55) #edf3fa;
    scrollbar-width: thin;
}

.qm-company-modal-content::-webkit-scrollbar {
    width: 8px;
}

.qm-company-modal-content::-webkit-scrollbar-track {
    background: #edf3fa;
}

.qm-company-modal-content::-webkit-scrollbar-thumb {
    border: 2px solid #edf3fa;
    border-radius: 999px;
    background: rgba(0, 92, 255, 0.58);
}

.qm-company-modal-section:first-child {
    position: relative;
    padding: 24px 28px 25px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #f4f8fc;
}

.qm-company-modal-section:first-child::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: var(--qm-company-blue);
}

.qm-company-modal-section + .qm-company-modal-section {
    margin-top: 32px;
    padding-top: 0;
    border-top: 0;
}

.qm-company-modal-section h4 {
    margin-bottom: 13px;
    font-size: 1.12rem;
}

.qm-company-modal-section p,
.qm-company-career-item dd {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: strict;
    text-wrap: pretty;
}

.qm-company-modal-section p {
    max-width: 74ch;
    margin-bottom: 12px;
    line-height: 1.85;
}

.qm-company-career-list {
    margin: 0;
}

.qm-company-career-item {
    position: relative;
    display: grid;
    grid-template-columns: 88px 24px minmax(0, 1fr);
    gap: 0;
    padding: 12px 0 18px;
    border: 0;
}

.qm-company-career-item:first-child {
    border-top: 0;
}

.qm-company-career-item::before {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 94px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--qm-company-blue);
    border-radius: 50%;
    content: "";
    background: #fff;
    box-sizing: border-box;
}

.qm-company-career-item::after {
    position: absolute;
    top: 31px;
    bottom: -1px;
    left: 99px;
    width: 2px;
    content: "";
    background: #cfe1f7;
}

.qm-company-career-item:last-child::after {
    display: none;
}

.qm-company-career-item dt {
    grid-column: 1;
    padding-right: 14px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.qm-company-career-item dd {
    grid-column: 3;
    color: #111b2c;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .qm-company-map {
        align-self: start;
    }

    .qm-company-map iframe {
        height: 320px;
    }

    .qm-company-modal {
        padding: clamp(16px, 3vw, 28px);
    }

    .qm-company-modal-dialog {
        width: min(100%, 880px);
        max-height: 84dvh;
    }

    .qm-company-modal-header {
        padding: 30px 80px 24px 38px;
    }

    .qm-company-modal-header::after {
        left: 38px;
    }

    .qm-company-modal-content {
        padding: 28px 38px 40px;
    }

    .qm-company-modal-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 680px) {
    .qm-company-map iframe {
        height: 280px;
    }

    .qm-company-modal {
        padding: 16px;
    }

    .qm-company-modal-dialog {
        max-height: 84dvh;
        border-radius: 20px;
    }

    .qm-company-modal-close {
        top: 16px;
        right: 16px;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    .qm-company-modal-header {
        padding: 24px 70px 20px 24px;
    }

    .qm-company-modal-header::after {
        left: 24px;
        width: 56px;
    }

    .qm-company-modal-role {
        font-size: 0.9rem;
    }

    .qm-company-modal-name {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }

    .qm-company-modal-content {
        padding: 24px 20px 40px 24px;
    }

    .qm-company-modal-section:first-child {
        padding: 21px 20px 22px 23px;
        border-radius: 12px;
    }

    .qm-company-modal-section p {
        max-width: none;
        font-size: 0.92rem;
        line-height: 1.8;
    }

    .qm-company-career-item {
        display: block;
        padding: 9px 0 18px 28px;
    }

    .qm-company-career-item::before {
        top: 15px;
        left: 0;
    }

    .qm-company-career-item::after {
        top: 26px;
        bottom: -1px;
        left: 5px;
    }

    .qm-company-career-item dt {
        margin-bottom: 4px;
        padding-right: 0;
    }

    .qm-company-career-item dd {
        font-size: 0.9rem;
        line-height: 1.72;
    }
}

/* Modal header/content boundary and language-aware wrapping. */
.qm-company-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.qm-company-modal-header {
    z-index: 4;
    overflow: hidden;
    padding-bottom: 22px;
    background: #fbfdff;
    isolation: isolate;
}

.qm-company-modal-header::after {
    display: none;
    content: none;
}

.qm-company-modal-content {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    clip-path: inset(0);
}

html[lang^="ja"] .qm-company-modal-section p,
html[lang^="ja"] .qm-company-career-item dd {
    word-break: auto-phrase !important;
    overflow-wrap: break-word !important;
    line-break: strict;
    text-wrap: pretty;
}

html[lang^="en"] .qm-company-modal-section p,
html[lang^="en"] .qm-company-career-item dd {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: strict;
    text-wrap: pretty;
}

@media (max-width: 900px) {
    .qm-company-modal-dialog {
        width: min(calc(100vw - 32px), 880px);
    }

    .qm-company-modal-header {
        padding-bottom: 20px;
    }
}

@media (max-width: 680px) {
    .qm-company-modal-dialog {
        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;
    }

    .qm-company-modal-header,
    .qm-company-modal-content,
    .qm-company-modal-section {
        min-width: 0;
        max-width: 100%;
    }

    .qm-company-modal-header {
        padding-bottom: 18px;
    }
}

/* Body copy remains readable when the parent theme reduces the root font. */
@media (max-width: 1024px) {
    .qm-company-message-text p,
    .qm-company-modal-content p,
    .qm-company-career-item dd { font-size: 15px; line-height: 1.8; letter-spacing: 0; text-align: start; }
}
