/* =========================================================
   RotoEdge — "Human Expertise / AI-Powered Workflow" split banner
   Coded replacement for the homepage banner image.
   Desktop ≥1025px · Tablet 768–1024px · Mobile ≤767px
========================================================= */

.re-split-wrap {
    width: 100%;
    padding: 0;
}

.re-split {
    --re-red: #ff1f1f;
    --re-red-deep: #120304;
    --re-white: #f4f4f4;
    --re-muted: rgba(255, 255, 255, .72);
    --re-head: "Big Shoulders Display", "Oswald", "Impact", sans-serif;

    position: relative;
    isolation: isolate;
    /* also capped by screen height so it fits with the icon row above it */
    min-height: max(460px, min(clamp(470px, 38vw, 640px), calc(100vh - 290px)));
    margin: 0;
    padding: 20px 0 64px;
    display: grid;
    grid-template-columns: 1fr minmax(0, 27%) 1fr;
    align-items: center;
    overflow: hidden;
    background: #050505;
    color: var(--re-white);
    text-align: left;
}

/* ---------- background halves ---------- */

.re-split__bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: -2;
    pointer-events: none;
}

.re-split__bg--human {
    left: 0;
    background: #050505;
}

/* the artist photo sits on its own layer and fades out on its right edge (no hard seam) */
.re-split__bg--human::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    aspect-ratio: 334 / 700;
    background: url("../images/2026/08/re-split-artist-opt.webp") left center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%);
}
.re-split__bg--ai {
    right: 0;
    background:
        radial-gradient(ellipse 70% 85% at 0% 50%, rgba(170, 8, 12, .42) 0%, rgba(90, 4, 8, .22) 38%, rgba(0, 0, 0, 0) 72%),
        linear-gradient(90deg, var(--re-red-deep) 0%, #080202 60%, #050505 100%);
}

/* Glowing vertical divider */
.re-split__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, .15) 0%,
        rgba(255, 255, 255, .95) 20%,
        rgba(255, 255, 255, .35) 50%,
        rgba(255, 255, 255, .95) 80%,
        rgba(255, 255, 255, .15) 100%);
    box-shadow: 0 0 12px 1px rgba(255, 255, 255, .45);
}

/* Node-graph artwork on the AI side */
.re-split__nodes {
    position: absolute;
    top: 4%;
    right: .8%;
    width: 29%;
    height: auto;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    /* fade out towards the heading so it never sits under the text */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}

/* ---------- text columns ---------- */

.re-split__side {
    position: relative;
    z-index: 1;
    padding: 0 clamp(16px, 2.4vw, 44px);
}

.re-split__side--human {
    justify-self: end;
}

.re-split__side--ai {
    justify-self: start;
}

.re-split__title {
    margin: 0;
    font-family: var(--re-head);
    font-weight: 800;
    font-size: clamp(32px, 3.05vw, 56px);
    line-height: .98;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--re-white);
}

.re-split__title span {
    display: block;
}

.re-split__title .re-split__accent {
    color: var(--re-red);
}

.re-split__title .re-split__dot {
    display: inline;
    color: var(--re-red);
}

.re-split__rule {
    display: block;
    width: clamp(44px, 3.9vw, 68px);
    height: 2px;
    margin: clamp(16px, 1.6vw, 26px) 0 clamp(14px, 1.3vw, 22px);
    background: var(--re-red);
}

.re-split__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-split__list li {
    position: relative;
    padding-left: 1em;
    font-size: clamp(15px, 1.3vw, 22px);
    line-height: 1.85;
    color: var(--re-white);
    white-space: nowrap;
}

.re-split__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .78em;
    width: .32em;
    height: .32em;
    border-radius: 50%;
    background: var(--re-red);
}

/* ---------- center emblem ---------- */

.re-split__emblem {
    /* no z-index: a stacking context here would stop the logo's blend mode reaching the background */
    position: relative;
    width: 100%;
    max-width: min(clamp(250px, 26vw, 440px), calc(100vh - 380px));
    aspect-ratio: 1;
    justify-self: center;
}

.re-split__rings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.re-split__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    height: auto;
    transform: translate(-50%, -50%);
    /* the logo crop sits on black — drop the black so no box shows */
    mix-blend-mode: lighten;
}

/* Rotating "tech" layers: orbiting dots, dashed ring and scanning arcs.
   The white/red split rings stay fixed so they keep lining up with the divider. */
.re-split__spin {
    transform-box: view-box;
    transform-origin: 50% 50%;
    animation: re-split-spin 24s linear infinite;
}

.re-split__spin--dash  { animation-duration: 60s; animation-direction: reverse; }
.re-split__spin--scan  { animation-duration: 7s; }
.re-split__spin--scan2 { animation-duration: 11s; animation-direction: reverse; }
.re-split__spin--orbit { animation-duration: 30s; }

@keyframes re-split-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .re-split__spin { animation: none; }
}

/* ---------- tagline ---------- */

.re-split__tagline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(20px, 5.2%, 46px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    font-size: clamp(11px, 1.08vw, 19px);
    font-weight: 500;
    letter-spacing: .62em;
    text-transform: uppercase;
    white-space: nowrap;
}

.re-split__tagline span:first-child {
    justify-self: end;
    padding-right: 1.1em;
    color: var(--re-white);
}

.re-split__tagline span:last-child {
    justify-self: start;
    padding-left: 1.1em;
    color: var(--re-red);
}

/* =========================================================
   TABLET — 768px to 1024px
========================================================= */
@media (max-width: 1024px) {
    .re-split {
        min-height: 480px;
        grid-template-columns: 1fr minmax(0, 30%) 1fr;
        padding-bottom: 56px;
    }

    .re-split__side {
        padding: 0 18px;
    }

    .re-split__title {
        font-size: clamp(30px, 4.2vw, 42px);
    }

    .re-split__list li {
        font-size: clamp(13px, 1.75vw, 17px);
    }

    .re-split__nodes {
        width: 40%;
        opacity: .22;
    }

    .re-split__tagline {
        bottom: 24px;
        font-size: clamp(9px, 1.25vw, 13px);
        letter-spacing: .38em;
    }
}

/* =========================================================
   MOBILE — up to 767px
   The desktop split turned on its side, sized to one phone screen:
   artist photo across the top half, red AI glow + node graph across the
   bottom half, a horizontal glow divider through the spinning emblem.
========================================================= */
@media (max-width: 767px) {
    .re-split {
        --em: clamp(132px, 22svh, 190px);
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
        height: calc(100svh - 72px);
        min-height: 540px;
        max-height: 780px;
        padding: 0;
        text-align: center;
    }

    /* halves: full-width backgrounds, meeting exactly at the divider */
    .re-split__bg {
        left: 0;
        right: 0;
        width: auto;
    }

    .re-split__bg--human {
        top: 0;
        bottom: 50%;
        background:
            linear-gradient(180deg, rgba(5, 5, 5, .5) 0%, rgba(5, 5, 5, .62) 55%, rgba(5, 5, 5, .9) 100%),
            url("../images/2026/08/re-split-artist-opt.webp") center 35% / cover no-repeat,
            #050505;
    }

    .re-split__bg--human::before { display: none; }

    .re-split__bg--ai {
        top: 50%;
        bottom: 0;
        background:
            radial-gradient(ellipse 90% 70% at 50% 0%, rgba(170, 8, 12, .5) 0%, rgba(90, 4, 8, .25) 40%, rgba(0, 0, 0, 0) 75%),
            linear-gradient(180deg, var(--re-red-deep) 0%, #080202 70%, #050505 100%);
    }

    .re-split__divider {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
        background: linear-gradient(90deg,
            rgba(255, 255, 255, .12) 0%,
            rgba(255, 255, 255, .95) 22%,
            rgba(255, 255, 255, .4) 50%,
            rgba(255, 255, 255, .95) 78%,
            rgba(255, 255, 255, .12) 100%);
    }

    /* node graph: faint, in the AI half, clear of the text */
    .re-split__nodes {
        top: auto;
        bottom: 6%;
        right: -6%;
        width: 62%;
        opacity: .2;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    }

    .re-split__side {
        justify-self: stretch;
        padding: 0 20px;
    }

    .re-split__side--human { align-self: end; padding-bottom: clamp(10px, 2svh, 22px); }
    .re-split__side--ai { align-self: start; padding-top: clamp(10px, 2svh, 22px); padding-bottom: 64px; }

    .re-split__title {
        font-size: clamp(28px, 5svh, 40px);
        line-height: .98;
    }

    /* both titles on the same two-line stack so the halves mirror each other */
    .re-split__title .re-split__dot { display: inline; }

    .re-split__rule {
        margin: clamp(10px, 1.6svh, 16px) auto clamp(10px, 1.4svh, 14px);
        width: 48px;
    }

    .re-split__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 18px;
        max-width: 340px;
        margin: 0 auto;
    }

    .re-split__list li {
        font-size: clamp(13px, 1.9svh, 15px);
        line-height: 1.6;
        white-space: nowrap;
    }

    /* emblem centred on the divider */
    .re-split__emblem {
        width: var(--em);
        max-width: none;
        height: var(--em);
        aspect-ratio: 1;
    }

    .re-split__rings { transform: rotate(-90deg); }

    .re-split__logo { width: 40%; }

    .re-split__tagline {
        bottom: clamp(14px, 2.6svh, 24px);
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 12px;
        font-size: 10px;
        letter-spacing: .3em;
        text-align: center;
        white-space: normal;
    }

    .re-split__tagline span:first-child,
    .re-split__tagline span:last-child {
        justify-self: center;
        padding: 0;
    }
}

@media (max-width: 380px) {
    .re-split__side { padding: 0 14px; }
    .re-split__list { gap: 2px 14px; }
    .re-split__tagline { letter-spacing: .2em; }
}