/* Shared light/dark theme layer. Dark remains the original default. */

.site-theme-toggle {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ed-rule, rgba(236, 231, 212, 0.16));
    border-radius: 50%;
    color: var(--ed-cream, #ece7d4);
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-theme-toggle:focus-visible {
    border-color: var(--ed-red, #e52b35);
    color: var(--ed-cream, #ece7d4);
    background: color-mix(in srgb, var(--ed-red, #e52b35) 13%, transparent);
    transform: rotate(10deg);
}

@media (hover: hover) and (pointer: fine) {
    .site-theme-toggle:hover {
        border-color: var(--ed-red, #e52b35);
        color: var(--ed-cream, #ece7d4);
        background: color-mix(in srgb, var(--ed-red, #e52b35) 13%, transparent);
        transform: rotate(10deg);
    }
}

.site-theme-toggle:focus:not(:focus-visible),
.site-theme-toggle:active {
    outline: none;
    transform: none;
}

.theme-toggle-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.site-theme-toggle--standalone {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 22000;
}

body:not(.auth-page) > .site-theme-toggle--standalone {
    display: none;
}

.analytics-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

html[data-theme="light"] {
    color-scheme: light;
    --ed-bg: #eef1f6;
    --ed-bg-deep: #f7f8fb;
    --ed-panel: rgba(255, 255, 255, 0.88);
    --ed-panel-solid: #ffffff;
    --ed-cream: #151923;
    --ed-cream-dim: rgba(21, 25, 35, 0.66);
    --ed-cream-faint: rgba(21, 25, 35, 0.12);
    --ed-blue: #315d9d;
    --ed-rule: rgba(20, 29, 44, 0.15);
    --site-canvas: #f4f6f9;
    --site-surface: #ffffff;
    --site-ink: #151923;
    --site-muted: #5d6675;
    --site-line: #d9dee7;
    background: var(--ed-bg-deep);
    scrollbar-color: rgba(21, 25, 35, 0.28) transparent;
}

html[data-theme="light"] body,
html[data-theme="light"] body:not(.auth-page),
html[data-theme="light"] .home-page {
    color: var(--ed-cream);
    background:
        radial-gradient(100% 70% at 50% 8%, rgba(91, 126, 184, 0.10), transparent 72%),
        var(--ed-bg-deep);
}

html[data-theme="light"] body::selection {
    color: #fff;
    background: var(--ed-red);
}

html[data-theme="light"] .site-field {
    opacity: 0.62;
}

html[data-theme="light"] .depth-scene-number {
    color: rgba(49, 93, 157, 0.13);
}

html[data-theme="light"] .home-page .depth-section-line {
    background: rgba(49, 75, 116, 0.32);
}

.home-page .depth-scene:not(.intro-section) > .depth-scene-number {
    top: 0;
}

/* Let section rules begin beside the large index instead of crossing through it. */
.home-page .depth-scene:not(.intro-section) > .depth-section-line {
    --section-edge: max(1.25rem, calc((100% - var(--ed-content)) / 2));
    --section-number-clearance: clamp(8rem, 10vw, 10rem);
    left: calc(var(--section-edge) + var(--section-number-clearance));
}

.home-page .depth-scene:nth-of-type(even):not(.intro-section) > .depth-section-line {
    right: calc(var(--section-edge) + var(--section-number-clearance));
    left: var(--section-edge);
}

html[data-theme="light"] .home-page .depth-scene .about-us-eyebrow {
    position: relative;
    z-index: 2;
    background: #f8e2e5;
    box-shadow: 0 0 0 4px var(--ed-bg-deep);
}

.scroll-depth-indicator {
    --depth-wave-left: 50%;
    --depth-wave-top: 3%;
    z-index: 19980;
    isolation: isolate;
}

.scroll-depth-indicator .scroll-depth-track {
    width: 46px;
    height: clamp(7rem, 22vh, 11rem);
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.scroll-depth-wave {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.scroll-depth-wave :is(.scroll-depth-wave-base, .scroll-depth-wave-progress) {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.scroll-depth-wave-base {
    stroke: var(--ed-rule);
    stroke-width: 1.15;
}

.scroll-depth-wave-progress {
    stroke: url("#scroll-depth-wave-gradient");
    stroke-width: 1.85;
    filter:
        drop-shadow(0 0 2px rgba(229, 43, 53, 0.30))
        drop-shadow(0 0 6px rgba(229, 43, 53, 0.12));
}

.scroll-depth-wave-start {
    stop-color: var(--ed-cream);
}

.scroll-depth-wave-end {
    stop-color: var(--ed-red);
}

.scroll-depth-indicator .scroll-depth-current {
    appearance: none;
    position: absolute;
    top: var(--depth-wave-top);
    left: var(--depth-wave-left);
    z-index: 2;
    min-width: 2rem;
    min-height: 1.9rem;
    margin: 0;
    color: var(--ed-cream);
    background: var(--ed-panel-solid);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    transform: translate(-50%, -50%);
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    transition:
        top 55ms cubic-bezier(0.22, 1, 0.36, 1),
        left 55ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.scroll-depth-indicator .scroll-depth-current:hover,
.scroll-depth-indicator .scroll-depth-current:focus-visible {
    border-color: var(--ed-red);
    outline: none;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--ed-red) 18%, transparent),
        0 8px 22px rgba(0, 0, 0, 0.2);
}

.scroll-depth-indicator.is-dragging .scroll-depth-current {
    border-color: var(--ed-red);
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.08);
}

html[data-theme="light"] .scroll-depth-wave-start {
    stop-color: var(--ed-blue);
}

html[data-theme="light"] .scroll-depth-indicator .scroll-depth-current {
    border-color: rgba(49, 93, 157, 0.24);
    color: #fff;
    background: #27303f;
    box-shadow: 0 6px 18px rgba(22, 31, 46, 0.18);
}

html[data-theme="light"] .scroll-depth-indicator .scroll-depth-current:hover,
html[data-theme="light"] .scroll-depth-indicator .scroll-depth-current:focus-visible,
html[data-theme="light"] .scroll-depth-indicator.is-dragging .scroll-depth-current {
    border-color: var(--ed-red);
}

.home-header .brand-logo {
    background: #fff;
    filter: none;
}

html[data-theme="dark"] .home-header .brand-logo {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .home-header {
    border-bottom-color: var(--ed-rule);
    color: var(--ed-cream);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 30px rgba(22, 31, 46, 0.06);
}

html[data-theme="light"] .home-header .brand-logo {
    border: 1px solid rgba(20, 29, 44, 0.12);
    background: #fff;
    box-shadow: 0 3px 10px rgba(22, 31, 46, 0.10);
    filter: none;
}

html[data-theme="light"] .home-header .home-nav > ul > li.has-dropdown > .dropdown-menu,
html[data-theme="light"] .mobile-nav {
    color: var(--ed-cream);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(22, 31, 46, 0.14);
}

html[data-theme="light"] .home-header .home-nav > ul > li.has-dropdown > .dropdown-menu a:hover,
html[data-theme="light"] .home-header .home-nav > ul > li.has-dropdown > .dropdown-menu a:focus-visible,
html[data-theme="light"] .mobile-nav > a:hover,
html[data-theme="light"] .mobile-nav > button:hover {
    background: rgba(21, 25, 35, 0.055);
}

html[data-theme="light"] :is(
    .product-line-card,
    .product-catalog-page .product-card,
    .careers-page .job-card,
    .catalog-selection-dock
) {
    color: var(--ed-cream);
    background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .careers-page .job-card-footer {
    color: var(--site-muted);
    background: var(--ed-bg);
    border-top-color: var(--ed-rule);
}

html[data-theme="light"] .product-line-media,
html[data-theme="light"] .product-catalog-page .product-card .card-image {
    background:
        radial-gradient(circle, rgba(49, 93, 157, 0.10), transparent 62%),
        #f1f3f7;
}

.product-catalog-page :is(.plastic-products-section, .styrofoam-products-section) .page-hero {
    border: 0;
    background: transparent;
}

.product-catalog-page :is(.plastic-products-section, .styrofoam-products-section) .page-hero::before {
    display: none;
}

.careers-page .page-hero {
    border: 0;
    background: transparent;
}

.product-hub-hero {
    position: relative;
    border-bottom: 0;
}

.product-hub-hero > div:first-child {
    position: relative;
    isolation: isolate;
}

.product-hub-hero > div:first-child::before {
    content: "";
    position: absolute;
    top: -4.5rem;
    left: -3rem;
    z-index: 0;
    width: min(38rem, calc(100% + 5rem));
    height: 28rem;
    pointer-events: none;
    background:
        linear-gradient(var(--ed-rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--ed-rule) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.55;
    mask-image: linear-gradient(135deg, #000 28%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

.product-hub-hero > div:first-child > * {
    position: relative;
    z-index: 1;
}

html[data-theme="light"] .product-hub-hero > div:first-child::before {
    background:
        linear-gradient(rgba(49, 93, 157, 0.20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 157, 0.20) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 1;
    mask-image: none;
}

.product-hub-page .packaging-finder {
    border-top: 0;
}

.product-catalog-page .page-hero .hero-copy {
    position: relative;
    isolation: isolate;
}

.product-catalog-page .page-hero .hero-copy::before {
    content: "";
    position: absolute;
    top: -4.5rem;
    left: -3rem;
    z-index: 0;
    width: min(38rem, calc(100% + 5rem));
    height: 28rem;
    pointer-events: none;
    background:
        linear-gradient(var(--ed-rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--ed-rule) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.55;
    mask-image: linear-gradient(135deg, #000 28%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

.product-catalog-page .page-hero .hero-copy > * {
    position: relative;
    z-index: 1;
}

html[data-theme="light"] .product-catalog-page .page-hero .hero-copy::before {
    background:
        linear-gradient(rgba(49, 93, 157, 0.20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 157, 0.20) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 1;
    mask-image: none;
}

.home-page .intro-text {
    position: relative;
    isolation: isolate;
}

.home-page .intro-text::before {
    content: "";
    position: absolute;
    top: -4.5rem;
    left: -3rem;
    z-index: -1;
    display: block;
    width: min(38rem, calc(100% + 5rem));
    height: 28rem;
    pointer-events: none;
    background:
        linear-gradient(var(--ed-rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--ed-rule) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.55;
    mask-image: linear-gradient(135deg, #000 28%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

html[data-theme="light"] .careers-page .page-hero::before {
    display: block;
    opacity: 1;
    background:
        linear-gradient(rgba(49, 93, 157, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 157, 0.10) 1px, transparent 1px);
    background-size: 72px 72px;
}

@media (max-width: 640px) {
    .product-catalog-page .page-hero .hero-copy::before {
        top: -2.75rem;
        left: -1.25rem;
        width: calc(100% + 2.5rem);
        height: 24rem;
    }

    .product-hub-hero > div:first-child::before {
        top: -2.75rem;
        left: -1.25rem;
        width: calc(100% + 2.5rem);
        height: 24rem;
    }

    .home-page .intro-text::before {
        top: -2.75rem;
        left: -1.25rem;
        width: calc(100% + 2.5rem);
        height: 24rem;
        background-size: 56px 56px;
    }

    .scroll-depth-indicator .scroll-depth-current {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-depth-wave-progress,
    .scroll-depth-indicator .scroll-depth-current {
        transition: none;
    }
}

html[data-theme="light"] .product-catalog-page .page-hero :is(.title, .subtitle, .eyebrow) {
    text-shadow: none;
}

html[data-theme="light"] .product-catalog-page .page-hero .eyebrow,
html[data-theme="light"] .product-catalog-page .page-hero .subtitle,
html[data-theme="light"] .product-catalog-page .page-hero .filter-select label {
    color: #5f6979;
}

html[data-theme="light"] .product-catalog-page .page-hero .search {
    min-height: 54px;
    padding: 0.45rem 0.85rem;
    border: 1px solid #cfd6e2;
    color: #172033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(22, 31, 46, 0.08);
}

html[data-theme="light"] .product-catalog-page .page-hero .search:focus-within {
    border-color: #315d9d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 93, 157, 0.14);
}

html[data-theme="light"] .product-catalog-page .page-hero .search-icon {
    color: #315d9d;
}

html[data-theme="light"] .product-catalog-page .page-hero .search input {
    color: #172033;
}

html[data-theme="light"] .product-catalog-page .page-hero .search input::placeholder {
    color: #737d8d;
    opacity: 1;
}

html[data-theme="light"] .product-catalog-page .page-hero .catalog-select-trigger {
    min-height: 54px;
    border-color: #cfd6e2;
    color: #172033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(22, 31, 46, 0.08);
}

html[data-theme="light"] .product-catalog-page .page-hero .catalog-select-trigger:hover,
html[data-theme="light"] .product-catalog-page .page-hero .catalog-select-trigger:focus-visible,
html[data-theme="light"] .product-catalog-page .page-hero .filter-select.is-open .catalog-select-trigger {
    border-color: #315d9d;
    box-shadow: 0 0 0 3px rgba(49, 93, 157, 0.14);
}

html[data-theme="light"] .home-page #contact-us .area-filter :is(select, .catalog-select-trigger) {
    border: 1px solid #cfd6e2;
    color: #172033;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(22, 31, 46, 0.08);
    color-scheme: light;
}

html[data-theme="light"] .home-page #contact-us .area-filter :is(select, .catalog-select-trigger):hover,
html[data-theme="light"] .home-page #contact-us .area-filter :is(select, .catalog-select-trigger):focus-visible,
html[data-theme="light"] .home-page #contact-us .area-filter.is-open .catalog-select-trigger {
    border-color: #315d9d;
    color: #172033;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(49, 93, 157, 0.14);
    outline: none;
}

html[data-theme="light"] .product-catalog-page .catalog-select-option:hover,
html[data-theme="light"] .product-catalog-page .catalog-select-option:focus-visible {
    color: #172033;
    background: #eef2f7;
}

html[data-theme="light"] .product-catalog-page .product-card:hover {
    background: #fff;
}

html[data-theme="light"] :is(
    .product-catalog-page .product-sidebar,
    .product-catalog-page .product-inquiry-dialog,
    .careers-page .drawer,
    .careers-page .oa-modal,
    .home-page .contact-popup,
    .catalog-compare-dialog,
    .catalog-selection-panel
) {
    color: var(--ed-cream);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 28px 80px rgba(22, 31, 46, 0.18);
    color-scheme: light;
}

html[data-theme="light"] :is(
    .product-catalog-page .inquiry-modal-close,
    .product-catalog-page .close-btn,
    #privacyModal .modal-content .close,
    #termofuseModal .modal-content .close
) {
    color: var(--ed-cream);
    background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] :is(
    .product-catalog-page #inquiryForm input,
    .product-catalog-page #inquiryForm textarea,
    .careers-page .oa-form-group input,
    .careers-page .oa-form-group textarea,
    .home-page .contact-popup input,
    .home-page .contact-popup select,
    .home-page .contact-popup textarea,
    .application-page input,
    .application-page textarea,
    .application-page select
) {
    color: var(--ed-cream);
    background: rgba(21, 25, 35, 0.035);
}

html[data-theme="light"] :is(
    .product-catalog-page #inquiryForm input,
    .product-catalog-page #inquiryForm textarea,
    .careers-page .oa-form-group input,
    .careers-page .oa-form-group textarea,
    .home-page .contact-popup input,
    .home-page .contact-popup textarea
)::placeholder {
    color: rgba(21, 25, 35, 0.42);
}

html[data-theme="light"] :is(
    .catalog-select-menu,
    .careers-page .oa-address-suggestions,
    .careers-page .drawer-actions
) {
    color: var(--ed-cream);
    background: #fff;
    box-shadow: 0 18px 48px rgba(22, 31, 46, 0.14);
}

html[data-theme="light"] .careers-page .page-hero .search {
    min-height: 54px;
    padding: 0.45rem 0.8rem;
    border: 1px solid #cfd6e2;
    color: #172033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(22, 31, 46, 0.08);
}

html[data-theme="light"] .careers-page .page-hero .search:focus-within {
    border-color: #315d9d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 93, 157, 0.14);
}

html[data-theme="light"] .careers-page .page-hero .search input {
    color: #172033;
    background: transparent;
}

html[data-theme="light"] .careers-page .page-hero .search input::placeholder {
    color: #737d8d;
    opacity: 1;
}

html[data-theme="light"] .careers-page .page-hero :is(.search-icon, #clearSearch) {
    color: #315d9d;
}

html[data-theme="light"] .careers-page .page-hero #clearSearch:hover,
html[data-theme="light"] .careers-page .page-hero #clearSearch:focus-visible {
    color: var(--ed-red);
    background: rgba(229, 43, 53, 0.08);
}

html[data-theme="light"] .careers-page .page-hero .filter-btn {
    min-height: 54px;
    padding: 0 1.25rem;
    border: 1px solid #cfd6e2;
    color: #172033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(22, 31, 46, 0.08);
}

html[data-theme="light"] .careers-page .page-hero .filter-btn:hover,
html[data-theme="light"] .careers-page .page-hero .filter-btn:focus-visible {
    border-color: var(--ed-red);
    color: #a91f2a;
    background: rgba(229, 43, 53, 0.06);
    box-shadow: 0 10px 28px rgba(229, 43, 53, 0.10);
    transform: translateY(-1px);
}

html[data-theme="light"] :is(
    .product-catalog-page .sidebar-overlay,
    .product-catalog-page .product-inquiry-modal,
    .careers-page .backdrop,
    .careers-page .oa-overlay,
    .home-page .contact-overlay,
    .modal,
    #privacyModal,
    #termofuseModal
) {
    background: rgba(28, 37, 52, 0.34);
}

html[data-theme="light"] .modal .modal-content,
html[data-theme="light"] .home-page .contact-success-card,
html[data-theme="light"] .product-catalog-page .inquiry-popup-card {
    color: var(--ed-cream);
    background: #fff;
    box-shadow: 0 28px 80px rgba(22, 31, 46, 0.18);
}

html[data-theme="light"] body:not(.auth-page) .custom-footer {
    color: var(--ed-cream-dim);
    background: #eef1f5;
}

html[data-theme="light"] :is(#back-to-top, #chat-bubble) {
    border-color: var(--ed-rule);
    color: var(--ed-cream);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(22, 31, 46, 0.14);
}

html[data-theme="light"] .chatbot-panel {
    color: var(--ed-cream);
    border-color: #d7dde7;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 28px 80px rgba(22, 31, 46, 0.18);
}

html[data-theme="light"] .chatbot-header {
    background: linear-gradient(135deg, #ffffff, #f5f7fb);
}

html[data-theme="light"] .chatbot-message.inbound,
html[data-theme="light"] .chatbot-action,
html[data-theme="light"] .chatbot-close {
    color: var(--ed-cream);
    background: rgba(21, 25, 35, 0.055);
}

html[data-theme="light"] .chatbot-form :is(input, textarea),
html[data-theme="light"] .chatbot-identity input {
    color: var(--ed-cream);
    border-color: #cfd6e1;
    background: #ffffff;
}

html[data-theme="light"] .chatbot-form textarea::placeholder,
html[data-theme="light"] .chatbot-identity input::placeholder {
    color: #8a94a4;
}

html[data-theme="light"] .chatbot-form textarea:focus {
    border-color: var(--ed-blue);
    background: #ffffff;
    outline-color: rgba(49, 93, 157, 0.14);
}

html[data-theme="light"] .auth-page :is(.custom-login-page, .login-right, .custom-forgot-page, .forgot-right),
html[data-theme="light"] .application-page .form-container {
    color: var(--ed-cream);
    background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .auth-page .form-row input {
    color: var(--ed-cream);
    background: rgba(21, 25, 35, 0.035);
}

html[data-theme="light"] .auth-page .form-row input:focus {
    background: #fff;
}

html[data-theme="light"] .analytics-body {
    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-strong: #eef1f6;
    --line: rgba(20, 29, 44, 0.15);
    --muted: #626b79;
    --text: #151923;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 10%, rgba(25, 87, 210, 0.08), transparent 30rem),
        radial-gradient(circle at 5% 85%, rgba(237, 41, 57, 0.045), transparent 28rem),
        var(--background);
}

html[data-theme="light"] .analytics-body :is(.login-panel, .stat-card, .dashboard-card) {
    background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .analytics-body :is(.analytics-form input, .secondary-button) {
    color: var(--text);
    background: #fff;
}

html[data-theme="light"] .analytics-body :is(.analytics-brand, .analytics-form label, .header-actions a, .funnel-card li div span, .breakdown-card li div span) {
    color: #4d5665;
}

@media (max-width: 900px) {
    .header-theme-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .home-page .depth-scene:not(.intro-section) > .depth-section-line {
        --section-number-clearance: 7.25rem;
    }
}

/* Keep long ERP event titles clear of the stacked preview cards. */
.home-page .events-carousel {
    container-type: inline-size;
}

/* Keep the complete About/Events composition level at every viewport size. */
.motion-3d-ready .about-us-section.depth-scene > .scene-plane {
    transform: none;
    opacity: 1;
}

@media (max-width: 900px) {
    .home-page #about-us.about-us-section {
        padding-top: 6.5rem;
    }

    .home-page #contact-us.contact_us-section {
        padding-top: 7rem;
    }

}

@media (max-width: 700px) {
    .product-catalog-page .catalog-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .product-catalog-page .catalog-card-actions button {
        min-width: 0;
        padding: 0.55rem 0.35rem;
        white-space: normal;
    }

    .product-catalog-page .catalog-card-actions .catalog-card-inquiry {
        grid-column: 1 / -1;
        border-color: var(--ed-red);
        color: #fff;
        background: var(--ed-red);
    }

    .product-catalog-page .catalog-card-actions .catalog-card-inquiry:is(:hover, .is-selected) {
        color: #fff;
        background: #c91f2b;
    }
}

/* Balance the events copy and collage as one editorial composition. */
@media (min-width: 901px) {
    .home-page .our-events-description.has-events {
        grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
        gap: clamp(3rem, 5vw, 5.5rem);
    }

    .home-page .our-events-description.has-events .events-intro {
        width: 100%;
        max-width: 34rem;
        justify-self: end;
    }

    .home-page .our-events-description.has-events .events-wrapper {
        width: 100%;
        max-width: 47rem;
        justify-self: start;
    }

    .home-page .our-events-description.has-events .events-carousel {
        width: 100%;
        height: auto;
        max-height: 32.5rem;
        aspect-ratio: 4 / 3;
    }
}

.home-page .events-slide .event-item:nth-child(2)::after {
    background:
        linear-gradient(
            90deg,
            rgba(4, 8, 18, 0.94) 0%,
            rgba(4, 8, 18, 0.78) 34%,
            rgba(4, 8, 18, 0.18) 58%,
            transparent 76%
        );
}

.home-page .events-slide .event-item:nth-child(2) .event-content {
    width: calc(50% - clamp(3rem, 8cqi, 5rem));
    max-width: 34rem;
}

.home-page .event-title {
    max-width: none;
    font-size: clamp(1.85rem, 5.4cqi, 3.65rem);
    line-height: 0.94;
    overflow-wrap: normal;
    text-wrap: balance;
}

/* Event artwork stays dark in both themes, so its overlay controls need fixed contrast. */
html[data-theme="light"] .home-page .events-slide .event-content,
html[data-theme="light"] .home-page .events-slide .event-title,
html[data-theme="light"] .home-page .events-slide .event-link,
html[data-theme="light"] .home-page .events-controls .events-btn {
    color: #fff;
}

html[data-theme="light"] .home-page .events-slide .event-title {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

html[data-theme="light"] .home-page .events-slide .event-link {
    background: var(--ed-red);
}

html[data-theme="light"] .home-page .events-controls .events-btn {
    background: rgba(4, 8, 18, 0.82);
}

html[data-theme="light"] .home-page #contact-us .map_panel-link {
    border-color: #214fbd;
    color: #fff;
    background: #214fbd;
    box-shadow: 0 6px 16px rgba(33, 79, 189, 0.18);
}

html[data-theme="light"] .home-page #contact-us .map_panel-link:hover,
html[data-theme="light"] .home-page #contact-us .map_panel-link:focus-visible {
    border-color: #173e98;
    color: #fff;
    background: #173e98;
}

@media (max-width: 768px) {
    .home-page .events-slide .event-item:nth-child(2) .event-content {
        width: auto;
        max-width: calc(100% - 3rem);
    }

    .home-page .event-title {
        font-size: clamp(1.65rem, 8cqi, 2.5rem);
        line-height: 0.98;
    }
}

/* Scroll-effect upgrades: process progress, image masks, event assembly, ISO proof. */
.home-page.motion-scroll-ready .manufacturing-process {
    position: relative;
    --process-progress: 0;
}

.home-page.motion-scroll-ready .manufacturing-process::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    z-index: 1;
    width: calc(var(--process-progress) * 100%);
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--ed-red), color-mix(in srgb, var(--ed-red) 62%, var(--ed-blue)));
    box-shadow: 0 0 14px color-mix(in srgb, var(--ed-red) 32%, transparent);
    transition: width 120ms linear;
}

.home-page.motion-scroll-ready .manufacturing-process > li {
    opacity: 0.42;
    transition:
        opacity 320ms ease,
        filter 320ms ease;
}

.home-page.motion-scroll-ready .manufacturing-process > li::before {
    z-index: 2;
    background: var(--ed-rule);
    box-shadow: 0 0 0 4px var(--ed-bg);
    transform: scale(0.75);
    transition:
        background-color 260ms ease,
        box-shadow 260ms ease,
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page.motion-scroll-ready .manufacturing-process > li.is-process-active {
    opacity: 1;
    filter: none;
}

.home-page.motion-scroll-ready .manufacturing-process > li.is-process-active::before {
    background: var(--ed-red);
    box-shadow:
        0 0 0 4px var(--ed-bg),
        0 0 18px color-mix(in srgb, var(--ed-red) 42%, transparent);
    transform: scale(1);
}

.home-page.motion-scroll-ready .motion-media-reveal {
    opacity: 0.35;
    clip-path: inset(0 0 100% 0);
    transition:
        clip-path 900ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 520ms ease;
}

.home-page.motion-scroll-ready .motion-media-reveal.is-motion-visible {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.home-page.motion-scroll-ready .standard-media.motion-media-reveal > video,
.home-page.motion-scroll-ready .jobs-hero-media.motion-media-reveal img {
    transform: translateZ(12px) scale(1.055);
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page.motion-scroll-ready .standard-media.motion-media-reveal.is-motion-visible > video,
.home-page.motion-scroll-ready .jobs-hero-media.motion-media-reveal.is-motion-visible img {
    transform: translateZ(12px) scale(1);
}

.home-page.motion-scroll-ready .motion-bento-reveal:not(.is-motion-visible) .event-item {
    clip-path: var(--event-clip-start, inset(12% 12% 88% 12%));
}

.home-page.motion-scroll-ready .motion-bento-reveal .event-item:nth-child(2n) {
    --event-clip-start: inset(0 78% 72% 0);
}

.home-page.motion-scroll-ready .motion-bento-reveal .event-item:nth-child(3n) {
    --event-clip-start: inset(68% 0 0 74%);
}

.home-page.motion-scroll-ready .motion-bento-reveal.is-motion-visible .event-item {
    animation: qcmc-event-tile-assemble 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-page.motion-scroll-ready .motion-bento-reveal.is-motion-visible .event-item:nth-child(2) {
    animation-delay: 90ms;
}

.home-page.motion-scroll-ready .motion-bento-reveal.is-motion-visible .event-item:nth-child(3) {
    animation-delay: 180ms;
}

.home-page.motion-scroll-ready .motion-bento-reveal.is-motion-visible .event-item:nth-child(4) {
    animation-delay: 270ms;
}

.home-page.motion-scroll-ready .motion-bento-reveal.is-motion-visible .event-item:nth-child(n + 5) {
    animation-delay: 340ms;
}

@keyframes qcmc-event-tile-assemble {
    from {
        clip-path: var(--event-clip-start, inset(12% 12% 88% 12%));
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.home-page.motion-scroll-ready .motion-sequence-reveal .iso-logo {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0) scale(0.92);
    transition:
        opacity 520ms ease,
        transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 350ms ease;
}

.home-page.motion-scroll-ready .motion-sequence-reveal.is-motion-visible .iso-logo {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.home-page.motion-scroll-ready .motion-sequence-reveal.is-motion-visible .iso-logo:nth-child(2) {
    transition-delay: 130ms;
}

.home-page.motion-scroll-ready .motion-sequence-reveal.is-motion-visible .iso-logo:nth-child(3) {
    transition-delay: 260ms;
}

.home-page.motion-scroll-ready .motion-sequence-reveal.is-motion-visible .iso-logo:hover {
    transform: translate3d(0, -4px, 0) scale(1.025);
}

/* Soft directional transitions for the Products and Sustainability sliders. */
.home-page :is(.products-slider, .sustainability-slider) {
    touch-action: pan-y;
}

.home-page :is(.products-pagination, .sustainability-pagination) {
    z-index: 4;
    pointer-events: auto;
}

.home-page :is(.products-pagination-tab, .sustainability-pagination-tab) {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.home-page :is(.products-slide, .sustainability-slide) {
    overflow: hidden;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering,
.home-page :is(.products-slide, .sustainability-slide).is-leaving {
    transition: none;
    will-change: opacity;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering
    :is(.products-slide-content, .sustainability-slide-content, .products-slide-media, .sustainability-slide-media),
.home-page :is(.products-slide, .sustainability-slide).is-leaving
    :is(.products-slide-content, .sustainability-slide-content, .products-slide-media, .sustainability-slide-media) {
    backface-visibility: hidden;
    will-change: opacity, translate;
}

.home-page :is(.products-slide, .sustainability-slide).active {
    z-index: 2;
}

.home-page :is(.products-slide, .sustainability-slide).is-leaving {
    position: absolute;
    inset: 0;
    z-index: 1;
    visibility: visible;
    pointer-events: none;
    animation: qcmc-slide-layer-out 620ms cubic-bezier(0.4, 0, 1, 1) both;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering-next {
    animation: qcmc-slide-layer-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering-prev {
    animation: qcmc-slide-layer-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering-next
    :is(.products-slide-content, .sustainability-slide-content) {
    animation: qcmc-slide-copy-from-left 720ms cubic-bezier(0.16, 1, 0.3, 1) 30ms both;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering-prev
    :is(.products-slide-content, .sustainability-slide-content) {
    animation: qcmc-slide-copy-from-right 720ms cubic-bezier(0.16, 1, 0.3, 1) 30ms both;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering-next
    :is(.products-slide-media, .sustainability-slide-media) {
    animation: qcmc-slide-media-from-right 760ms cubic-bezier(0.16, 1, 0.3, 1) 15ms both;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering-prev
    :is(.products-slide-media, .sustainability-slide-media) {
    animation: qcmc-slide-media-from-left 760ms cubic-bezier(0.16, 1, 0.3, 1) 15ms both;
}

.home-page :is(.products-slide, .sustainability-slide).is-entering
    :is(.products-slide-headline p, .sustainability-slide-headline p) {
    animation: qcmc-slide-title-stretch 700ms cubic-bezier(0.16, 1, 0.3, 1) 45ms both;
    transform-origin: left center;
}

@keyframes qcmc-slide-layer-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qcmc-slide-layer-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes qcmc-slide-copy-from-left {
    from {
        opacity: 0;
        translate: -2rem 0;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes qcmc-slide-copy-from-right {
    from {
        opacity: 0;
        translate: 2rem 0;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes qcmc-slide-media-from-right {
    from {
        opacity: 0;
        translate: 2.5rem 0;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes qcmc-slide-media-from-left {
    from {
        opacity: 0;
        translate: -2.5rem 0;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes qcmc-slide-title-stretch {
    from {
        opacity: 0.55;
        scale: 0.94 1;
    }
    to {
        opacity: 1;
        scale: 1 1;
    }
}

@media (max-width: 700px) {
    .home-page.motion-scroll-ready .manufacturing-process::after {
        top: 0;
        left: -1px;
        width: 2px;
        height: calc(var(--process-progress) * 100%);
        background: linear-gradient(180deg, var(--ed-red), color-mix(in srgb, var(--ed-red) 62%, var(--ed-blue)));
        transition-property: height;
    }

    .home-page.motion-scroll-ready .motion-media-reveal {
        clip-path: inset(0 0 72% 0);
        transition-duration: 720ms, 420ms;
    }

    .home-page.motion-scroll-ready .motion-media-reveal.is-motion-visible {
        clip-path: inset(0);
    }

    .home-page :is(.products-slide, .sustainability-slide).is-entering-next
        :is(.products-slide-content, .sustainability-slide-content),
    .home-page :is(.products-slide, .sustainability-slide).is-entering-prev
        :is(.products-slide-content, .sustainability-slide-content),
    .home-page :is(.products-slide, .sustainability-slide).is-entering-next
        :is(.products-slide-media, .sustainability-slide-media),
    .home-page :is(.products-slide, .sustainability-slide).is-entering-prev
        :is(.products-slide-media, .sustainability-slide-media) {
        animation-duration: 680ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page.motion-scroll-ready .manufacturing-process::after {
        display: none;
    }

    .home-page.motion-scroll-ready .manufacturing-process > li,
    .home-page.motion-scroll-ready .motion-media-reveal,
    .home-page.motion-scroll-ready .motion-sequence-reveal .iso-logo {
        opacity: 1;
        clip-path: none;
        transform: none;
        transition: none;
    }

    .home-page.motion-scroll-ready .motion-bento-reveal .event-item {
        clip-path: none;
        animation: none;
    }

    .home-page :is(.products-slide, .sustainability-slide).is-entering,
    .home-page :is(.products-slide, .sustainability-slide).is-entering * {
        animation: none;
    }
}

/* Interactive chat-support mascot. */
#chat-bubble.chat-bubble--mascot {
    width: 72px;
    height: 72px;
    overflow: visible;
    isolation: isolate;
    border: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-tap-highlight-color: transparent;
}

#chat-bubble.chat-bubble--mascot .chat-mascot {
    position: absolute;
    inset: -5px;
    display: block;
    --mascot-look-x: 0px;
    --mascot-look-y: 0px;
    filter: drop-shadow(0 10px 12px rgba(0, 28, 88, 0.28));
    transform-origin: 48% 82%;
    animation: qcmc-chat-mascot-idle 4.8s ease-in-out infinite;
    will-change: transform;
}

#chat-bubble.chat-bubble--mascot .chat-mascot::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 13%;
    bottom: 12%;
    width: 76%;
    height: 12%;
    border-radius: 50%;
    background: rgba(2, 13, 38, 0.3);
    filter: blur(4px);
    opacity: 0;
    transform: scaleX(0.7);
    transition: opacity 300ms ease, transform 500ms ease;
    pointer-events: none;
}

#chat-bubble.chat-bubble--mascot .chat-mascot-rig {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-origin: 50% 62%;
    transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
    --mascot-blue-highlight: #1597ff;
    --mascot-blue-mid: #0867e8;
    --mascot-blue-deep: #0344ba;
    --mascot-hand-highlight: #0878ed;
    --mascot-hand-deep: #04399d;
    --mascot-eye-highlight: #143b75;
    --mascot-eye-mid: #071a3c;
    --mascot-eye-deep: #020712;
}

#chat-bubble.chat-bubble--mascot .chat-mascot-rig stop {
    transition: stop-color 420ms ease;
}

html[data-theme="dark"] #chat-bubble.chat-bubble--mascot .chat-mascot-rig {
    --mascot-blue-highlight: #54e2ff;
    --mascot-blue-mid: #168cff;
    --mascot-blue-deep: #2745d9;
    --mascot-hand-highlight: #24bfff;
    --mascot-hand-deep: #1232a5;
    --mascot-eye-highlight: #275da9;
    --mascot-eye-mid: #0a2450;
    --mascot-eye-deep: #020814;
}

html[data-theme="dark"] #chat-bubble.chat-bubble--mascot .chat-mascot {
    filter:
        drop-shadow(0 10px 12px rgba(0, 24, 74, 0.34))
        drop-shadow(0 0 7px rgba(36, 191, 255, 0.2));
}

#chat-bubble.chat-bubble--mascot
    :is(
        .mascot-body-group,
        .mascot-brand-badge,
        .mascot-head-group,
        .mascot-hand,
        .mascot-wave-hand,
        .mascot-foot,
        .mascot-eye,
        .mascot-eyes,
        .mascot-beak-lower,
        .mascot-hair,
        .mascot-holding-hand,
        .mascot-prop
    ) {
    transform-box: fill-box;
}

#chat-bubble.chat-bubble--mascot .mascot-body-group {
    transform-origin: center bottom;
    animation: qcmc-mascot-body-breathe 3.2s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-head-group {
    transform-origin: center bottom;
    animation: qcmc-mascot-head-bob 4.2s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-hand {
    transform-origin: center 18%;
    transition: opacity 180ms ease;
}

#chat-bubble.chat-bubble--mascot .mascot-hand--left {
    transform-origin: 70% 6%;
    animation: qcmc-mascot-hand-left 4.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-hand--right {
    transform-origin: 30% 6%;
    animation: qcmc-mascot-hand-right 4.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-wave-hand {
    opacity: 0;
    transform-origin: 76% 96%;
    pointer-events: none;
    transition: opacity 120ms ease;
}

#chat-bubble.chat-bubble--mascot .mascot-foot {
    transform-origin: center center;
}

#chat-bubble.chat-bubble--mascot .mascot-foot--left {
    animation: qcmc-mascot-foot-left 3.6s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-foot--right {
    animation: qcmc-mascot-foot-right 3.6s ease-in-out 180ms infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-eyes {
    transform-origin: center center;
    animation: qcmc-mascot-blink 5.4s linear infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-eye {
    transform:
        translate3d(
            var(--mascot-look-x),
            var(--mascot-look-y),
            0
        );
    transition: transform 180ms ease-out;
}

#chat-bubble.chat-bubble--mascot .mascot-sleep-eyes,
#chat-bubble.chat-bubble--mascot .mascot-prop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

#chat-bubble.chat-bubble--mascot .mascot-beak-lower {
    transform-origin: center top;
    animation: qcmc-mascot-beak-idle 3.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-hair--left {
    transform-origin: center bottom;
    animation: qcmc-mascot-hair-left 3.6s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-hair--right {
    transform-origin: center bottom;
    animation: qcmc-mascot-hair-right 3.6s ease-in-out 120ms infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-zzz {
    fill: #ffd149;
    font: 800 13px/1 "Manrope", sans-serif;
    transform-box: fill-box;
    transform-origin: center;
}

#chat-bubble.chat-bubble--mascot .mascot-zzz--one {
    animation: qcmc-mascot-zzz 2.2s ease-out infinite;
}

#chat-bubble.chat-bubble--mascot .mascot-zzz--two {
    animation: qcmc-mascot-zzz 2.2s ease-out 650ms infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .chat-mascot {
    animation: qcmc-chat-mascot-sleep 2.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .chat-mascot::before {
    opacity: 0.48;
    transform: scaleX(0.82);
    animation: qcmc-mascot-sleep-shadow 2.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .chat-mascot-rig {
    transform: translate3d(0, 3px, 0) scale(0.96);
    transform-origin: 50% 82%;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-head-group {
    animation: qcmc-mascot-sleep-head 2.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-body-group {
    animation: qcmc-mascot-sleep-body 2.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-eyes {
    opacity: 0;
    animation: none;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-sleep-eyes,
#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-prop--sleep {
    opacity: 1;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-zzz--one {
    animation: qcmc-mascot-zzz-upright 2.2s ease-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-zzz--two {
    animation: qcmc-mascot-zzz-upright 2.2s ease-out 650ms infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-hand--left {
    animation: qcmc-mascot-hand-fold-left 2.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-hand--right {
    animation: qcmc-mascot-hand-fold-right 2.8s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-foot {
    animation: none;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-foot--left {
    transform: translate3d(-3px, -2px, 0) rotate(-8deg);
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-foot--right {
    transform: translate3d(2px, 2px, 0) rotate(8deg);
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-beak-lower {
    animation: none;
    transform: scaleY(0.72);
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="sleeping"] .mascot-hair {
    animation-play-state: paused;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="eating"] .chat-mascot {
    animation: qcmc-chat-mascot-nibble 820ms ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="eating"] .mascot-prop--cookie {
    opacity: 1;
    animation: qcmc-mascot-cookie-nibble 820ms ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="eating"] .mascot-holding-hand--cookie-left {
    transform-origin: right center;
    animation: qcmc-mascot-cookie-hand-left 820ms ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="eating"] .mascot-holding-hand--cookie-right {
    transform-origin: left center;
    animation: qcmc-mascot-cookie-hand-right 820ms ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="eating"] .mascot-beak-lower {
    animation: qcmc-mascot-beak-chew 410ms ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="eating"] .mascot-hand {
    opacity: 0;
    animation: none;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="studying"] .chat-mascot {
    animation: qcmc-chat-mascot-study 2.2s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="studying"] .mascot-prop--book {
    opacity: 1;
    animation: qcmc-mascot-book-read 2.2s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="studying"] .mascot-holding-hand--book-left {
    transform-origin: right center;
    animation: qcmc-mascot-book-hand-left 2.2s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="studying"] .mascot-holding-hand--book-right {
    transform-origin: left center;
    animation: qcmc-mascot-book-hand-right 2.2s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="studying"] .mascot-eye {
    transform: translate3d(0, 4px, 0);
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="studying"] .mascot-hand {
    opacity: 0;
    animation: none;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="wave"] .chat-mascot {
    animation: qcmc-chat-mascot-greet 920ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="wave"] .mascot-hand--left {
    opacity: 0;
    animation: none;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="wave"] .mascot-wave-hand {
    opacity: 1;
    animation: qcmc-mascot-wave 460ms ease-in-out 3 both;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="bounce"] .chat-mascot {
    animation: qcmc-chat-mascot-bounce 780ms cubic-bezier(0.22, 1, 0.36, 1) 2;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="talk"] .chat-mascot {
    animation: qcmc-chat-mascot-talk 1.2s ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot[data-mascot-state="talk"] .mascot-beak-lower {
    animation: qcmc-mascot-beak-talk 520ms ease-in-out infinite;
}

#chat-bubble.chat-bubble--mascot .chat-mascot-speech {
    position: absolute;
    right: 60px;
    bottom: 48px;
    z-index: 4;
    width: max-content;
    max-width: min(190px, calc(100vw - 110px));
    padding: 0.62rem 0.8rem;
    border: 1px solid rgba(236, 231, 212, 0.22);
    border-radius: 12px 12px 2px 12px;
    color: #f5f1df;
    background: rgba(9, 12, 21, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    font: 650 0.76rem/1.25 "Manrope", sans-serif;
    letter-spacing: 0.01em;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(8px, 7px, 0) scale(0.9);
    transform-origin: right bottom;
    transition:
        opacity 220ms ease,
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

#chat-bubble.chat-bubble--mascot .chat-mascot-speech::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(236, 231, 212, 0.22);
    background: rgba(9, 12, 21, 0.96);
    transform: skewX(38deg);
}

#chat-bubble.chat-bubble--mascot .chat-mascot-speech.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

#chat-bubble.chat-bubble--mascot:hover,
#chat-bubble.chat-bubble--mascot:focus-visible {
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    transform: translateY(-2px);
}

#chat-bubble.chat-bubble--mascot:focus-visible .chat-mascot {
    filter:
        drop-shadow(0 10px 12px rgba(0, 28, 88, 0.28))
        drop-shadow(0 0 6px rgba(69, 139, 255, 0.9));
}

#chat-bubble.chat-bubble--mascot:hover .chat-mascot,
#chat-bubble.chat-bubble--mascot:focus-visible .chat-mascot {
    animation: qcmc-chat-mascot-greet 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#chat-bubble.chat-bubble--mascot:not([data-mascot-state="eating"]):not([data-mascot-state="studying"]):not([data-mascot-state="sleeping"]):hover .mascot-hand--left,
#chat-bubble.chat-bubble--mascot:not([data-mascot-state="eating"]):not([data-mascot-state="studying"]):not([data-mascot-state="sleeping"]):focus-visible .mascot-hand--left {
    opacity: 0;
    animation: none;
}

#chat-bubble.chat-bubble--mascot:not([data-mascot-state="eating"]):not([data-mascot-state="studying"]):not([data-mascot-state="sleeping"]):hover .mascot-wave-hand,
#chat-bubble.chat-bubble--mascot:not([data-mascot-state="eating"]):not([data-mascot-state="studying"]):not([data-mascot-state="sleeping"]):focus-visible .mascot-wave-hand {
    opacity: 1;
    animation: qcmc-mascot-wave 460ms ease-in-out 3 both;
}

#chat-bubble.chat-bubble--mascot:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(1px) scale(0.96) !important;
}

#chat-bubble.chat-bubble--mascot[aria-expanded="true"] .chat-mascot {
    animation: none;
    transform: translateY(-1px) scale(0.94);
}

#chat-bubble.chat-bubble--mascot.is-click-reacting .chat-mascot {
    animation: qcmc-chat-mascot-click 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

#chat-bubble.chat-bubble--mascot .chat-unread-badge {
    top: 0;
    right: 0;
    z-index: 3;
}

html[data-theme="light"] #chat-bubble.chat-bubble--mascot {
    border: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="light"] #chat-bubble.chat-bubble--mascot .chat-mascot-speech {
    border-color: rgba(27, 47, 82, 0.16);
    color: #111827;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(24, 43, 75, 0.18);
}

html[data-theme="light"] #chat-bubble.chat-bubble--mascot .chat-mascot-speech::after {
    border-color: rgba(27, 47, 82, 0.16);
    background: rgba(255, 255, 255, 0.98);
}

@keyframes qcmc-chat-mascot-idle {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.4deg); }
    50% { transform: translate3d(0, -2px, 0) rotate(0.4deg); }
}

@keyframes qcmc-chat-mascot-greet {
    0% { transform: translate3d(0, 0, 0) rotate(0); }
    24% { transform: translate3d(0, -5px, 0) rotate(-7deg) scale(1.04); }
    48% { transform: translate3d(0, -3px, 0) rotate(5deg) scale(1.04); }
    72% { transform: translate3d(0, -4px, 0) rotate(-3deg) scale(1.02); }
    100% { transform: translate3d(0, -2px, 0) rotate(0) scale(1.02); }
}

@keyframes qcmc-chat-mascot-sleep {
    0%, 100% { transform: translate3d(0, 1px, 0); }
    50% { transform: translate3d(0, 0, 0); }
}

@keyframes qcmc-mascot-sleep-shadow {
    0%, 100% { opacity: 0.42; transform: scaleX(0.78); }
    50% { opacity: 0.52; transform: scaleX(0.86); }
}

@keyframes qcmc-mascot-sleep-head {
    0%, 100% { transform: translate3d(-2px, 3px, 0) rotate(-5deg); }
    50% { transform: translate3d(-2px, 4px, 0) rotate(-6deg); }
}

@keyframes qcmc-mascot-sleep-body {
    0%, 100% { transform: scale(1, 1); }
    50% { transform: scale(1.012, 1.025); }
}

@keyframes qcmc-chat-mascot-nibble {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    45% { transform: translate3d(0, -3px, 0) rotate(-1.5deg) scale(1.025); }
    65% { transform: translate3d(0, -1px, 0) rotate(1deg) scale(0.99); }
}

@keyframes qcmc-chat-mascot-study {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50% { transform: translate3d(0, -2px, 0) rotate(1deg); }
}

@keyframes qcmc-chat-mascot-bounce {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    45% { transform: translate3d(0, -9px, 0) scale(1.04, 0.97); }
    70% { transform: translate3d(0, 1px, 0) scale(0.98, 1.03); }
}

@keyframes qcmc-chat-mascot-talk {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50% { transform: translate3d(-2px, -3px, 0) rotate(2deg); }
}

@keyframes qcmc-chat-mascot-click {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    45% { transform: translate3d(0, 3px, 0) scale(0.88, 1.08); }
    100% { transform: translate3d(0, -2px, 0) scale(1.03); }
}

@keyframes qcmc-mascot-body-breathe {
    0%, 100% { transform: scale(1, 1); }
    50% { transform: scale(1.018, 1.025); }
}

@keyframes qcmc-mascot-head-bob {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.4deg); }
    50% { transform: translate3d(0, -1px, 0) rotate(0.4deg); }
}

@keyframes qcmc-mascot-hand-left {
    0%, 100% { transform: rotate(-2deg) scale(1.2); }
    50% { transform: rotate(2deg) scale(1.2); }
}

@keyframes qcmc-mascot-hand-right {
    0%, 100% { transform: rotate(2deg) scale(1.2); }
    50% { transform: rotate(-2deg) scale(1.2); }
}

@keyframes qcmc-mascot-foot-left {
    0%, 72%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    82% { transform: translate3d(0, -2px, 0) rotate(-5deg); }
}

@keyframes qcmc-mascot-foot-right {
    0%, 72%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    82% { transform: translate3d(0, -2px, 0) rotate(5deg); }
}

@keyframes qcmc-mascot-blink {
    0%, 44%, 48%, 92%, 96%, 100% { transform: scaleY(1); }
    46%, 94% { transform: scaleY(0.08); }
}

@keyframes qcmc-mascot-beak-idle {
    0%, 88%, 100% { transform: scaleY(1); }
    94% { transform: scaleY(1.16); }
}

@keyframes qcmc-mascot-beak-chew {
    0%, 100% { transform: rotate(0) scaleY(0.82); }
    50% { transform: rotate(1deg) scaleY(1.22); }
}

@keyframes qcmc-mascot-beak-talk {
    0%, 100% { transform: scaleY(0.7); }
    50% { transform: scaleY(1.4); }
}

@keyframes qcmc-mascot-hair-left {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(4deg); }
}

@keyframes qcmc-mascot-hair-right {
    0%, 100% { transform: rotate(2deg); }
    50% { transform: rotate(-4deg); }
}

@keyframes qcmc-mascot-wave {
    0%, 100% { transform: rotate(-7deg) scale(1.55); }
    50% { transform: rotate(9deg) scale(1.55); }
}

@keyframes qcmc-mascot-hand-fold-left {
    0%, 100% { transform: translate3d(9px, 3px, 0) rotate(35deg) scale(1.12); }
    50% { transform: translate3d(10px, 4px, 0) rotate(38deg) scale(1.12); }
}

@keyframes qcmc-mascot-hand-fold-right {
    0%, 100% { transform: translate3d(-9px, 3px, 0) rotate(-35deg) scale(1.12); }
    50% { transform: translate3d(-10px, 4px, 0) rotate(-38deg) scale(1.12); }
}

@keyframes qcmc-mascot-hold-left {
    0%, 100% { transform: translate3d(8px, 2px, 0) rotate(28deg); }
    50% { transform: translate3d(9px, 0, 0) rotate(31deg); }
}

@keyframes qcmc-mascot-hold-right {
    0%, 100% { transform: translate3d(-8px, 2px, 0) rotate(-28deg); }
    50% { transform: translate3d(-9px, 0, 0) rotate(-31deg); }
}

@keyframes qcmc-mascot-cookie-nibble {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    50% { transform: translate3d(0, -3px, 0) rotate(2deg); }
}

@keyframes qcmc-mascot-cookie-hand-left {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg) scale(1.18); }
    50% { transform: translate3d(1px, -1px, 0) rotate(3deg) scale(1.18); }
}

@keyframes qcmc-mascot-cookie-hand-right {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg) scale(1.18); }
    50% { transform: translate3d(-1px, -1px, 0) rotate(-3deg) scale(1.18); }
}

@keyframes qcmc-mascot-book-read {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50% { transform: translate3d(0, -1px, 0) rotate(1deg); }
}

@keyframes qcmc-mascot-book-hand-left {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1.18); }
    50% { transform: translate3d(1px, -1px, 0) rotate(2deg) scale(1.18); }
}

@keyframes qcmc-mascot-book-hand-right {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(1deg) scale(1.18); }
    50% { transform: translate3d(-1px, -1px, 0) rotate(-2deg) scale(1.18); }
}

@keyframes qcmc-mascot-zzz {
    0% { opacity: 0; transform: translate3d(0, 3px, 0) scale(0.8); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(5px, -8px, 0) scale(1.08); }
}

@keyframes qcmc-mascot-zzz-upright {
    0% { opacity: 0; transform: translate3d(0, 3px, 0) rotate(72deg) scale(0.8); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(5px, -8px, 0) rotate(72deg) scale(1.08); }
}

@media (max-width: 600px) {
    #chat-bubble.chat-bubble--mascot {
        width: 58px;
        height: 58px;
    }

    #chat-bubble.chat-bubble--mascot .chat-mascot-speech {
        right: 48px;
        bottom: 39px;
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #chat-bubble.chat-bubble--mascot .chat-mascot,
    #chat-bubble.chat-bubble--mascot .chat-mascot-rig * {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .site-theme-toggle {
        display: none !important;
    }
}
/* The Explore rail replaces the browser's main page scrollbar. */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Product directories retain a conventional scrollbar for long catalogs. */
html:has(body.product-hub-page),
html:has(body.product-catalog-page) {
    scrollbar-width: thin;
    scrollbar-color: rgba(238, 43, 54, 0.72) rgba(8, 11, 20, 0.9);
}

html:has(body.product-hub-page)::-webkit-scrollbar,
html:has(body.product-catalog-page)::-webkit-scrollbar,
body.product-hub-page::-webkit-scrollbar,
body.product-catalog-page::-webkit-scrollbar {
    display: block;
    width: 7px;
    height: 7px;
}

html:has(body.product-hub-page)::-webkit-scrollbar-track,
html:has(body.product-catalog-page)::-webkit-scrollbar-track,
body.product-hub-page::-webkit-scrollbar-track,
body.product-catalog-page::-webkit-scrollbar-track {
    background: rgba(8, 11, 20, 0.9);
}

html:has(body.product-hub-page)::-webkit-scrollbar-thumb,
html:has(body.product-catalog-page)::-webkit-scrollbar-thumb,
body.product-hub-page::-webkit-scrollbar-thumb,
body.product-catalog-page::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(238, 43, 54, 0.72);
}

html[data-theme="light"]:has(body.product-hub-page),
html[data-theme="light"]:has(body.product-catalog-page) {
    scrollbar-color: rgba(25, 56, 110, 0.48) rgba(224, 230, 240, 0.82);
}

html[data-theme="light"]:has(body.product-hub-page)::-webkit-scrollbar-track,
html[data-theme="light"]:has(body.product-catalog-page)::-webkit-scrollbar-track,
html[data-theme="light"] body.product-hub-page::-webkit-scrollbar-track,
html[data-theme="light"] body.product-catalog-page::-webkit-scrollbar-track {
    background: rgba(224, 230, 240, 0.82);
}

html[data-theme="light"]:has(body.product-hub-page)::-webkit-scrollbar-thumb,
html[data-theme="light"]:has(body.product-catalog-page)::-webkit-scrollbar-thumb,
html[data-theme="light"] body.product-hub-page::-webkit-scrollbar-thumb,
html[data-theme="light"] body.product-catalog-page::-webkit-scrollbar-thumb {
    background: rgba(25, 56, 110, 0.48);
}

/* Refined support trigger: compact, legible, and aligned with QC/MC colors. */
#chat-bubble:not(.chat-bubble--mascot) {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(78, 125, 211, 0.58);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(23, 67, 151, 0.98), rgba(8, 17, 40, 0.98));
    box-shadow:
        0 12px 28px rgba(0, 20, 62, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

#chat-bubble:not(.chat-bubble--mascot) .icon {
    width: 23px;
    height: 23px;
    transition: transform 180ms ease;
}

#chat-bubble:not(.chat-bubble--mascot):hover,
#chat-bubble:not(.chat-bubble--mascot):focus-visible {
    border-color: rgba(255, 90, 99, 0.86);
    color: #fff;
    background:
        linear-gradient(145deg, #ed2939, #9f1624);
    box-shadow:
        0 15px 34px rgba(180, 25, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#chat-bubble:not(.chat-bubble--mascot):hover .icon,
#chat-bubble:not(.chat-bubble--mascot):focus-visible .icon {
    transform: scale(1.06);
}

#chat-bubble:not(.chat-bubble--mascot):active {
    transform: translateY(0) scale(0.96);
}

#chat-bubble:not(.chat-bubble--mascot)[aria-expanded="true"] {
    border-color: rgba(255, 90, 99, 0.74);
    background:
        linear-gradient(145deg, rgba(190, 31, 45, 0.98), rgba(86, 14, 25, 0.98));
}

html[data-theme="light"] #chat-bubble:not(.chat-bubble--mascot) {
    border-color: rgba(28, 70, 145, 0.3);
    color: #123f91;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 12px 28px rgba(26, 51, 91, 0.16),
        inset 0 1px 0 #fff;
}

html[data-theme="light"] #chat-bubble:not(.chat-bubble--mascot):hover,
html[data-theme="light"] #chat-bubble:not(.chat-bubble--mascot):focus-visible,
html[data-theme="light"] #chat-bubble:not(.chat-bubble--mascot)[aria-expanded="true"] {
    border-color: #ed2939;
    color: #fff;
    background: #ed2939;
}

@media (max-width: 600px) {
    #chat-bubble:not(.chat-bubble--mascot) {
        width: 48px;
        height: 48px;
    }

    #chat-bubble:not(.chat-bubble--mascot) .icon {
        width: 21px;
        height: 21px;
    }
}

/* Refined back-to-top control, paired with the support trigger. */
#back-to-top {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(78, 125, 211, 0.42);
    color: #dbe7ff;
    background:
        linear-gradient(145deg, rgba(15, 25, 48, 0.96), rgba(7, 10, 19, 0.98));
    box-shadow:
        0 12px 28px rgba(0, 16, 48, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

#back-to-top .icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: transform 180ms ease;
}

#back-to-top:hover,
#back-to-top:focus-visible {
    border-color: rgba(255, 90, 99, 0.86);
    color: #fff;
    background:
        linear-gradient(145deg, #ed2939, #9f1624);
    box-shadow:
        0 15px 34px rgba(180, 25, 39, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#back-to-top:hover .icon,
#back-to-top:focus-visible .icon {
    transform: translateY(-2px);
}

#back-to-top:active {
    transform: translateY(0) scale(0.96) !important;
}

html[data-theme="light"] #back-to-top {
    border-color: rgba(28, 70, 145, 0.28);
    color: #123f91;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 12px 28px rgba(26, 51, 91, 0.15),
        inset 0 1px 0 #fff;
}

html[data-theme="light"] #back-to-top:hover,
html[data-theme="light"] #back-to-top:focus-visible {
    border-color: #ed2939;
    color: #fff;
    background: #ed2939;
}

@media (max-width: 600px) {
    #back-to-top {
        width: 48px;
        height: 48px;
    }

    #back-to-top .icon {
        width: 20px;
        height: 20px;
    }
}
