/* ============================================================
   PLUSFAB -- "BRIGHT STEEL" HERO (2026-10-06, redesign phase 2)
   ------------------------------------------------------------
   Styles partials/_hero_bright.php (the split_media Hero). Loaded
   after moretech-hero.css. The markup uses its own .pf-hero__*
   classes, so the older .mt-hero__* rules do not reach it; only the
   two root rules (.mt-hero and .mt-hero::before) are re-declared in
   §1 below.

   Design language: bright white sheet, logo black + logo yellow.
     - a faint drawing grid behind the copy
     - a yellow marker under the headline's closing phrase
     - the image/video in a frame with two cut corners (the folded
       sheet in the logo), a yellow slab offset behind it and a short
       hazard-stripe tab
     - buttons with one cut corner
     - a moving yellow ticker band that closes the section
   All motion is wrapped in prefers-reduced-motion: no-preference.
============================================================ */


/* ============================================================
   §1  ROOT
============================================================ */
body.tpl-plusfab_industrial .mt-hero.pf-hero {
    --pf-ink:    var(--mt-brand-primary, #15171A);
    --pf-yellow: var(--mt-accent, #FFCC00);
    --pf-cut:    56px;   /* size of the frame's cut corners */
    --pf-offset: 18px;   /* how far the yellow slab is offset */
    --pf-shape:  polygon(var(--pf-cut) 0, 100% 0, 100% calc(100% - var(--pf-cut)),
                         calc(100% - var(--pf-cut)) 100%, 0 100%, 0 var(--pf-cut));

    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    color: var(--pf-ink);
    font-family: var(--mt-font-sans);
}

/* The older hero draws a 3px accent line with ::before; here the same
   pseudo-element is the drawing grid, fading out towards the media. */
body.tpl-plusfab_industrial .mt-hero.pf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    z-index: 0;
    pointer-events: none;
    background-color: transparent;
    background-image:
        linear-gradient(rgba(21, 23, 26, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 23, 26, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(110% 95% at 0% 0%, #000 0%, transparent 72%);
            mask-image: radial-gradient(110% 95% at 0% 0%, #000 0%, transparent 72%);
}

body.tpl-plusfab_industrial .pf-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    padding-top: clamp(48px, 8vh, 96px);
    padding-bottom: clamp(56px, 9vh, 104px);
}
body.tpl-plusfab_industrial .pf-hero--media-start .pf-hero__media { order: -1; }


/* ============================================================
   §2  COPY
============================================================ */
body.tpl-plusfab_industrial .pf-hero__micro {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 var(--mt-space-6, 24px);
    font-family: var(--mt-font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pf-ink);
}
/* A small yellow square with a black offset: the frame + slab in miniature. */
body.tpl-plusfab_industrial .pf-hero__micro::before {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: var(--pf-yellow);
    box-shadow: 4px 4px 0 var(--pf-ink);
}

body.tpl-plusfab_industrial .pf-hero__title {
    margin: 0 0 var(--mt-space-6, 24px);
    font-family: var(--mt-font-heading);
    font-size: clamp(2.25rem, 1rem + 3.2vw, 3.9rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--pf-ink);
    text-wrap: balance;
}
/* Yellow marker: a band behind the lower part of the text, repeated on
   every line the phrase wraps to. */
body.tpl-plusfab_industrial .pf-hero__mark {
    padding: 0 0.08em;
    background-image: linear-gradient(var(--pf-yellow), var(--pf-yellow));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 100% 0.42em;
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
}

body.tpl-plusfab_industrial .pf-hero__subtitle {
    margin: 0 0 var(--mt-space-3, 12px);
    max-width: 46ch;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--mt-neutral-800, #22262A);
}
body.tpl-plusfab_industrial .pf-hero__desc {
    margin: 0;
    max-width: 52ch;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--mt-neutral-600, #555C63);
}


/* ============================================================
   §3  BUTTONS
============================================================ */
body.tpl-plusfab_industrial .pf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: var(--mt-space-8, 32px);
}
body.tpl-plusfab_industrial .pf-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 28px;
    border: 2px solid var(--pf-ink);
    font-family: var(--mt-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s var(--mt-ease-default),
                border-color 0.2s var(--mt-ease-default),
                color 0.2s var(--mt-ease-default);
}
body.tpl-plusfab_industrial .pf-hero__btn i {
    transition: transform 0.2s var(--mt-ease-default);
}

/* Primary: black, one cut corner; turns logo yellow on hover. */
body.tpl-plusfab_industrial .pf-hero__btn--primary {
    background: var(--pf-ink);
    color: #FFFFFF;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
body.tpl-plusfab_industrial .pf-hero__btn--primary i { color: var(--pf-yellow); }
body.tpl-plusfab_industrial .pf-hero__btn--primary:hover,
body.tpl-plusfab_industrial .pf-hero__btn--primary:focus-visible {
    background: var(--pf-yellow);
    border-color: var(--pf-yellow);
    color: var(--pf-ink);
    outline: none;
}
body.tpl-plusfab_industrial .pf-hero__btn--primary:hover i,
body.tpl-plusfab_industrial .pf-hero__btn--primary:focus-visible i {
    color: var(--pf-ink);
    transform: translateX(5px);
}

/* Secondary: black outline; fills black on hover. */
body.tpl-plusfab_industrial .pf-hero__btn--secondary {
    background: transparent;
    color: var(--pf-ink);
}
body.tpl-plusfab_industrial .pf-hero__btn--secondary:hover,
body.tpl-plusfab_industrial .pf-hero__btn--secondary:focus-visible {
    background: var(--pf-ink);
    color: #FFFFFF;
}
body.tpl-plusfab_industrial .pf-hero__btn--secondary:focus-visible {
    outline: 3px solid var(--pf-yellow);
    outline-offset: 3px;
}


/* ============================================================
   §4  FIGURES ROW (Hero items[])
============================================================ */
body.tpl-plusfab_industrial .pf-hero__stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: var(--mt-space-10, 40px);
    border-top: 2px solid var(--pf-ink);
}
body.tpl-plusfab_industrial .pf-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 28px 0 0;
}
body.tpl-plusfab_industrial .pf-hero__stat + .pf-hero__stat {
    padding-left: 28px;
    border-left: 1px solid var(--mt-neutral-200, #E1E4E7);
}
body.tpl-plusfab_industrial .pf-hero__stat-value {
    font-family: var(--mt-font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--pf-ink);
}
body.tpl-plusfab_industrial .pf-hero__stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mt-neutral-600, #555C63);
}
body.tpl-plusfab_industrial .pf-hero__stat-caption {
    font-size: 0.8rem;
    color: var(--mt-neutral-500, #6B737A);
}
body.tpl-plusfab_industrial .pf-hero__stat-icon {
    font-size: 1.2rem;
    color: var(--pf-ink);
}
body.tpl-plusfab_industrial .pf-hero__stat-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
}


/* ============================================================
   §5  MEDIA -- framed image / video
============================================================ */
body.tpl-plusfab_industrial .pf-hero__media {
    position: relative;
    padding: 0 var(--pf-offset) var(--pf-offset) 0;   /* room for the slab */
}
body.tpl-plusfab_industrial .pf-hero__slab {
    position: absolute;
    inset: var(--pf-offset) 0 0 var(--pf-offset);
    background: var(--pf-yellow);
    clip-path: var(--pf-shape);
}
body.tpl-plusfab_industrial .pf-hero__frame {
    position: relative;
    height: clamp(360px, 60vh, 600px);
    overflow: hidden;
    background: var(--mt-neutral-100, #EEF0F2);
    clip-path: var(--pf-shape);
}
body.tpl-plusfab_industrial .pf-hero--internal .pf-hero__frame {
    height: clamp(260px, 40vh, 400px);
}
body.tpl-plusfab_industrial .pf-hero__media-el {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.tpl-plusfab_industrial .pf-hero__media-el--empty {
    background: linear-gradient(135deg, #F6F7F8 0%, #C5CBD0 100%);
}

/* Hazard-stripe tab above the frame. */
body.tpl-plusfab_industrial .pf-hero__stripes {
    position: absolute;
    top: -14px;
    right: calc(var(--pf-offset) + 32px);
    width: 132px;
    height: 14px;
    background: repeating-linear-gradient(-45deg,
        var(--pf-ink) 0 8px, var(--pf-yellow) 8px 16px);
}

/* Inset card (the supporting visual). */
body.tpl-plusfab_industrial .pf-hero__inset {
    position: absolute;
    left: -28px;
    bottom: calc(var(--pf-offset) + 40px);
    width: clamp(130px, 14vw, 190px);
    aspect-ratio: 4 / 3;
    border: 6px solid #FFFFFF;
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(21, 23, 26, 0.22);
}
body.tpl-plusfab_industrial .pf-hero--media-start .pf-hero__inset {
    left: auto;
    right: calc(var(--pf-offset) - 28px);
}
body.tpl-plusfab_industrial .pf-hero__inset img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   §6  TICKER -- the Hero highlights, moving
============================================================ */
body.tpl-plusfab_industrial .pf-hero__ticker {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--pf-yellow);
    color: var(--pf-ink);
}
body.tpl-plusfab_industrial .pf-hero__ticker-track {
    display: flex;
    width: max-content;
}
body.tpl-plusfab_industrial .pf-hero__ticker-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}
body.tpl-plusfab_industrial .pf-hero__ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 17px 0 17px 28px;
    font-family: var(--mt-font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}
/* The separator is a plus sign -- PLUS fab. */
body.tpl-plusfab_industrial .pf-hero__ticker-item::after {
    content: "+";
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}


/* ============================================================
   §7  ALIGNMENT (Hero text_align)
============================================================ */
body.tpl-plusfab_industrial .pf-hero--align-center .pf-hero__copy { text-align: center; }
body.tpl-plusfab_industrial .pf-hero--align-center .pf-hero__subtitle,
body.tpl-plusfab_industrial .pf-hero--align-center .pf-hero__desc { margin-left: auto; margin-right: auto; }
body.tpl-plusfab_industrial .pf-hero--align-center .pf-hero__actions,
body.tpl-plusfab_industrial .pf-hero--align-center .pf-hero__stats { justify-content: center; }

body.tpl-plusfab_industrial .pf-hero--align-right .pf-hero__copy { text-align: right; }
body.tpl-plusfab_industrial .pf-hero--align-right .pf-hero__subtitle,
body.tpl-plusfab_industrial .pf-hero--align-right .pf-hero__desc { margin-left: auto; }
body.tpl-plusfab_industrial .pf-hero--align-right .pf-hero__actions,
body.tpl-plusfab_industrial .pf-hero--align-right .pf-hero__stats { justify-content: flex-end; }


/* ============================================================
   §8  MOTION
============================================================ */
@media (prefers-reduced-motion: no-preference) {
    /* Copy rises in, one element after another. */
    body.tpl-plusfab_industrial .pf-hero__copy > * {
        animation: pf-hero-rise 0.7s var(--mt-ease-default) both;
    }
    body.tpl-plusfab_industrial .pf-hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
    body.tpl-plusfab_industrial .pf-hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
    body.tpl-plusfab_industrial .pf-hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
    body.tpl-plusfab_industrial .pf-hero__copy > *:nth-child(5) { animation-delay: 0.32s; }
    body.tpl-plusfab_industrial .pf-hero__copy > *:nth-child(6) { animation-delay: 0.40s; }

    /* The marker is drawn after the headline has landed. */
    body.tpl-plusfab_industrial .pf-hero__mark {
        animation: pf-hero-mark 0.7s var(--mt-ease-default) 0.65s both;
    }

    /* Frame slides in; the slab follows a beat later. */
    body.tpl-plusfab_industrial .pf-hero__frame {
        animation: pf-hero-frame 0.9s var(--mt-ease-default) 0.1s both;
    }
    body.tpl-plusfab_industrial .pf-hero__slab,
    body.tpl-plusfab_industrial .pf-hero__stripes {
        animation: pf-hero-fade 0.6s var(--mt-ease-default) 0.7s both;
    }
    body.tpl-plusfab_industrial .pf-hero__inset {
        animation: pf-hero-rise 0.7s var(--mt-ease-default) 0.9s both;
    }

    /* A still image drifts slowly, so the frame is never static. */
    body.tpl-plusfab_industrial .pf-hero__frame img.pf-hero__media-el {
        animation: pf-hero-drift 22s ease-in-out infinite alternate;
    }

    body.tpl-plusfab_industrial .pf-hero__ticker-track {
        animation: pf-hero-ticker 45s linear infinite;
    }
    body.tpl-plusfab_industrial .pf-hero__ticker:hover .pf-hero__ticker-track {
        animation-play-state: paused;
    }
}

@keyframes pf-hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
@keyframes pf-hero-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pf-hero-mark {
    from { background-size: 0% 0.42em; }
    to   { background-size: 100% 0.42em; }
}
@keyframes pf-hero-frame {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: none; }
}
@keyframes pf-hero-drift {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
/* The track holds two identical groups, so -50% is one full loop. */
@keyframes pf-hero-ticker {
    to { transform: translateX(-50%); }
}


/* ============================================================
   §9  RESPONSIVE
============================================================ */
@media (max-width: 991px) {
    body.tpl-plusfab_industrial .mt-hero.pf-hero {
        --pf-cut: 36px;
        --pf-offset: 12px;
    }
    body.tpl-plusfab_industrial .pf-hero__inner {
        grid-template-columns: 1fr;
        gap: 44px;
        padding-top: 44px;
        padding-bottom: 52px;
    }
    /* Copy first, media second, whatever media_position says. */
    body.tpl-plusfab_industrial .pf-hero--media-start .pf-hero__media { order: 0; }
    body.tpl-plusfab_industrial .pf-hero__frame,
    body.tpl-plusfab_industrial .pf-hero--internal .pf-hero__frame {
        height: clamp(240px, 56vw, 420px);
    }
    body.tpl-plusfab_industrial .pf-hero__inset,
    body.tpl-plusfab_industrial .pf-hero--media-start .pf-hero__inset {
        left: 14px;
        right: auto;
        bottom: calc(var(--pf-offset) + 14px);
        width: 120px;
    }
    body.tpl-plusfab_industrial .pf-hero__stripes { width: 96px; }
}

@media (max-width: 575px) {
    body.tpl-plusfab_industrial .pf-hero__actions { flex-direction: column; }
    body.tpl-plusfab_industrial .pf-hero__btn { width: 100%; }
    body.tpl-plusfab_industrial .pf-hero__stat {
        flex: 1 1 50%;
        padding-right: 16px;
    }
    body.tpl-plusfab_industrial .pf-hero__stat + .pf-hero__stat { padding-left: 16px; }
    body.tpl-plusfab_industrial .pf-hero__ticker-item {
        padding: 13px 0 13px 20px;
        gap: 20px;
        font-size: 0.76rem;
    }
}
