/* =========================================================
   RotoEdge — homepage services: hover guard + "The RotoEdge formula"
   "Where Human Creativity Meets Intelligent Technology"
   Desktop ≥1025px · Tablet 768–1024px · Mobile ≤767px
========================================================= */

/* ---------- hover colour guard: the theme's a:hover must not recolour card text ---------- */
.re-svc .tp-subtitle-text { color: #fff; }

.re-pipe__link,
.re-pipe__link:hover,
.re-pipe__link:focus,
.re-pipe__link:focus-visible { color: #fff; }

.re-pipe__link:hover .re-pipe__desc { color: var(--svc-muted); }

.re-pipe__link:hover .re-pipe__out {
    color: #fff;
    border-color: var(--svc-red);
    background: rgba(255, 31, 31, .12);
}

.re-pipe__link:hover .re-pipe__title,
.re-pipe__link:focus-visible .re-pipe__title {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--svc-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* ---------- section frame ---------- */
.re-venn {
    position: relative;
    margin-top: clamp(36px, 4vw, 60px);
    padding: clamp(36px, 4vw, 60px) clamp(18px, 3vw, 48px) clamp(28px, 3vw, 44px);
    border: 1px solid var(--svc-line);
    border-radius: 28px;
    background:
        radial-gradient(ellipse 45% 60% at 50% 45%, rgba(255, 31, 31, .12), rgba(255, 31, 31, 0) 70%),
        linear-gradient(180deg, #0c0c0c 0%, #070707 100%);
    overflow: hidden;
}

/* faint compositing grid behind the diagram */
.re-venn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 20%, transparent 75%);
    pointer-events: none;
}

.re-venn > * { position: relative; }

.re-venn__head {
    margin-bottom: clamp(28px, 3.4vw, 48px);
    text-align: center;
}

.re-venn__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 31, 31, .4);
    border-radius: 30px;
    background: rgba(255, 31, 31, .08);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #ffb3b3;
}

.re-venn__kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--svc-red);
    box-shadow: 0 0 8px var(--svc-red);
}

.re-venn__title {
    margin: 0;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(26px, 2.8vw, 44px);
    line-height: 1.15;
    color: #fff;
    text-wrap: balance;
}

.re-venn__title span { color: var(--svc-red); }

/* ---------- card · diagram · card ---------- */
.re-venn__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(20px, 2.6vw, 40px);
    align-items: center;
}

.re-venn__card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(22px, 2.2vw, 32px);
    border: 1px solid var(--svc-line);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s ease, box-shadow .4s ease;
}

/* accent line along the top edge */
.re-venn__card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    right: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
}

.re-venn__card--ai {
    border-color: rgba(255, 31, 31, .32);
    background: linear-gradient(200deg, rgba(255, 31, 31, .12), rgba(255, 31, 31, .02) 60%);
    box-shadow: 0 0 40px rgba(255, 31, 31, .08);
}

.re-venn__card--ai::before { background: linear-gradient(90deg, transparent, var(--svc-red), transparent); }

.re-venn__card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}

.re-venn__card--ai:hover {
    border-color: rgba(255, 31, 31, .6);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 31, 31, .18);
}

/* connector from each card toward the diagram (desktop) */
.re-venn__card--human::after,
.re-venn__card--ai::after {
    content: "";
    position: absolute;
    top: 50%;
    width: clamp(20px, 2.6vw, 40px);
    height: 1px;
}

.re-venn__card--human::after { left: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, .5), transparent); }
.re-venn__card--ai::after { right: 100%; background: linear-gradient(270deg, rgba(255, 31, 31, .8), transparent); }

.re-venn__card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.re-venn__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
}

.re-venn__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.re-venn__card--ai .re-venn__icon {
    border-color: rgba(255, 31, 31, .5);
    background: rgba(255, 31, 31, .12);
    box-shadow: 0 0 18px rgba(255, 31, 31, .25);
}

.re-venn__card--ai .re-venn__icon svg { stroke: #ff6b6b; }

.re-venn__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.re-venn__eyebrow em {
    margin-right: 6px;
    font-style: normal;
    color: var(--svc-red);
}

.re-venn__card-title {
    margin: 0 0 10px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(22px, 1.9vw, 28px);
    line-height: 1.2;
    color: #fff;
}

.re-venn__card p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--svc-muted);
    text-wrap: pretty;
}

.re-venn__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.re-venn__tags li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    background: rgba(255, 255, 255, .04);
    font-size: 12.5px;
    line-height: 1.2;
    color: #fff;
}

.re-venn__tags li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, .7);
}

.re-venn__card--ai .re-venn__tags li { border-color: rgba(255, 31, 31, .32); background: rgba(255, 31, 31, .06); }
.re-venn__card--ai .re-venn__tags li::before { background: var(--svc-red); box-shadow: 0 0 6px rgba(255, 31, 31, .8); }

/* ---------- the diagram: two overlapping circles, RotoEdge at the intersection ---------- */
.re-venn__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.re-venn__graphic {
    position: relative;
    width: 100%;
    aspect-ratio: 460 / 300;
}

.re-venn__circle {
    position: absolute;
    top: 0;
    width: 65.2%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
}

.re-venn__circle b {
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.re-venn__circle--human {
    left: 0;
    padding-left: 13%;
    border: 1.5px solid rgba(255, 255, 255, .55);
    background: radial-gradient(circle at 35% 45%, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015) 70%);
    color: #fff;
    animation: re-venn-left 6s ease-in-out infinite;
}

.re-venn__circle--ai {
    right: 0;
    justify-content: flex-end;
    padding-right: 17%;
    border: 1.5px solid rgba(255, 31, 31, .85);
    background: radial-gradient(circle at 65% 45%, rgba(255, 31, 31, .22), rgba(255, 31, 31, .03) 70%);
    box-shadow: 0 0 34px rgba(255, 31, 31, .22);
    color: var(--svc-red);
    animation: re-venn-right 6s ease-in-out infinite;
}

/* dashed orbit spinning around the AI circle */
.re-venn__orbit {
    position: absolute;
    inset: -9px;
    border: 1px dashed rgba(255, 31, 31, .45);
    border-radius: 50%;
    animation: re-venn-spin 26s linear infinite;
}

.re-venn__orbit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--svc-red);
    box-shadow: 0 0 10px 2px rgba(255, 31, 31, .8);
}

.re-venn__core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%);
}

.re-venn__core img {
    width: clamp(46px, 4.4vw, 64px);
    height: auto;
    filter: drop-shadow(0 0 14px rgba(255, 31, 31, .55));
    animation: re-venn-pulse 3s ease-in-out infinite;
}

.re-venn__core em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #fff;
}

.re-venn__equation {
    margin: 0;
    padding: 8px 18px;
    border: 1px solid var(--svc-line);
    border-radius: 30px;
    background: rgba(0, 0, 0, .5);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    white-space: nowrap;
}

.re-venn__equation span { margin: 0 6px; color: var(--svc-red); }
.re-venn__equation strong { font-weight: 700; color: #fff; }

/* ---------- where they meet ---------- */
.re-venn__shared {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    margin-top: clamp(26px, 3vw, 40px);
    padding-top: clamp(22px, 2.6vw, 32px);
    border-top: 1px dashed rgba(255, 255, 255, .12);
}

.re-venn__shared-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--svc-red);
}

.re-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-chips li {
    padding: 9px 18px;
    border: 1px solid rgba(255, 31, 31, .45);
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(255, 31, 31, .14), rgba(255, 31, 31, .04));
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
}

@keyframes re-venn-left  { 50% { transform: translateX(8px); } }
@keyframes re-venn-right { 50% { transform: translateX(-8px); } }
@keyframes re-venn-spin  { to { transform: rotate(360deg); } }
@keyframes re-venn-pulse {
    50% { filter: drop-shadow(0 0 22px rgba(255, 31, 31, .85)); transform: scale(1.05); }
}

/* ---------- Tablet: diagram on top, the two cards side by side beneath ---------- */
@media (max-width: 1024px) {
    .re-venn__grid { grid-template-columns: 1fr 1fr; }

    .re-venn__center {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        width: 100%;
        max-width: 420px;
    }

    .re-venn__card--human::after,
    .re-venn__card--ai::after { display: none; }
}

/* ---------- Mobile: diagram, then the cards stacked ---------- */
@media (max-width: 767px) {
    .re-venn {
        padding: 30px 16px 24px;
        border-radius: 22px;
    }

    .re-venn__head { margin-bottom: 22px; }

    .re-venn__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .re-venn__center { max-width: 320px; gap: 14px; margin-bottom: 6px; }

    .re-venn__card { padding: 22px 20px; border-radius: 18px; }
    .re-venn__card-top { margin-bottom: 14px; }
    .re-venn__icon { width: 42px; height: 42px; border-radius: 12px; }
    .re-venn__card p { font-size: 14.5px; margin-bottom: 16px; }
    .re-venn__tags li { font-size: 12.5px; padding: 6px 12px; }

    .re-venn__equation { font-size: 11px; letter-spacing: .16em; }

    .re-venn__shared { flex-direction: column; gap: 12px; }
    .re-chips li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .re-venn__circle,
    .re-venn__orbit,
    .re-venn__core img { animation: none; }
    .re-venn__card { transition: none; }
}
