
/* =====================================================================================
   OHMOXXIE DIVISIONS FULL RECOVERY V2
   Loaded AFTER each division stylesheet.
   ===================================================================================== */

html, body {
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: clip;
}

main, section, header, footer, nav,
.shell, .section-block,
.digital-hero, .props-hero, .physical-hero,
.digital-method__grid, .digital-authority__grid,
.props-brief__grid, .props-trust__grid,
.physical-process__grid, .physical-layers__grid {
    min-width: 0;
}

picture, img, video, iframe, canvas, svg {
    max-width: 100%;
}

/* Never allow important content to remain invisible on phones/tablets. */
@media (max-width: 1100px) {
    .reveal,
    .reveal--delay,
    .reveal.is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Stabilize medium desktop/laptop layouts. */
@media (min-width: 1101px) and (max-width: 1440px) {
    .digital-hero,
    .props-hero,
    .physical-hero {
        min-height: auto !important;
        gap: clamp(22px, 2.4vw, 36px) !important;
    }

    .digital-hero {
        grid-template-columns: minmax(34px, 48px) minmax(0, 1.08fr) minmax(330px, .92fr) !important;
    }

    .props-hero {
        grid-template-columns: minmax(34px, 48px) minmax(0, 1.05fr) minmax(340px, .95fr) !important;
    }

    .physical-hero {
        grid-template-columns: minmax(34px, 48px) minmax(0, 1.05fr) minmax(350px, .95fr) !important;
    }

    .system-canvas,
    .props-hero__figure,
    .props-hero__placeholder,
    .material-board {
        min-height: 540px !important;
    }
}

/* Mobile safety net. */
@media (max-width: 760px) {
    :root {
        --gutter: clamp(16px, 5vw, 22px);
        --section-y: 68px;
    }

    body {
        overflow-x: hidden !important;
    }

    .digital-hero,
    .props-hero,
    .physical-hero,
    .digital-method__grid,
    .digital-authority__grid,
    .props-brief__grid,
    .props-trust__grid,
    .physical-process__grid,
    .physical-layers__grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .digital-hero__copy,
    .props-hero__copy,
    .physical-hero__copy,
    .digital-method__statement,
    .digital-method__copy,
    .digital-authority__statement,
    .digital-authority__copy,
    .props-brief__title,
    .props-brief__copy,
    .props-trust__statement,
    .props-trust__copy,
    .physical-process__statement,
    .physical-process__copy,
    .physical-layers__statement,
    .physical-layers__content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .digital-hero__copy h1,
    .props-hero__copy h1,
    .physical-hero__copy h1,
    .digital-method__statement h2,
    .digital-authority__statement h2,
    .props-brief__title h2,
    .props-trust__statement h2,
    .physical-process__statement h2,
    .physical-layers__statement h2,
    .section-head h2,
    .contact h2 {
        max-width: 100% !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    .system-canvas,
    .material-board,
    .props-hero__figure,
    .props-hero__placeholder,
    .digital-work__grid,
    .props-work__grid,
    .physical-work__grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .digital-service,
    .props-service,
    .physical-category {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .contact__layout,
    .contact-form,
    .form-row {
        width: 100% !important;
        min-width: 0 !important;
    }

    input, select, textarea, button {
        max-width: 100% !important;
    }
}

/* Keep the Selected Work section structurally present even if no public case study exists yet. */
.division-work-empty {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line, #d0cec7);
    border-bottom: 1px solid var(--line, #d0cec7);
    padding: clamp(30px, 5vw, 58px) 0;
}

.division-work-empty span {
    display: block;
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .6;
}

.division-work-empty p {
    max-width: 680px;
    margin: 0;
    font-size: clamp(15px, 1.6vw, 20px);
    line-height: 1.55;
    opacity: .78;
}
