/* =========================================================
   RotoEdge — homepage "About Rotoedge" with founder card
   Desktop ≥1025px · Tablet 768–1024px · Mobile ≤767px
========================================================= */

.re-about {
    --ab-red: #ff1f1f;
    --ab-line: rgba(255, 255, 255, .12);
    --ab-muted: rgba(255, 255, 255, .64);
    padding: clamp(32px, 3.5vw, 56px) 0;
    background: var(--e-global-color-primary, #121212);
    color: #fff;
}

.re-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 5.5vw, 96px);
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- founder portrait card ---------- */

.re-about__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    max-height: 640px;
    border: 1px solid var(--ab-line);
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 31, 31, .32), rgba(255, 31, 31, 0) 70%),
        radial-gradient(circle at 50% 110%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, #1c1c1c 0%, #101010 100%);
}

/* faint grid, like a compositing viewport */
.re-about__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}

/* viewport corner marks */
.re-about__corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--ab-red);
    z-index: 2;
}

.re-about__corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.re-about__corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }

.re-about__photo {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 94%;
    width: auto;
    max-width: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55));
}

.re-about__name {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(12, 12, 12, .62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.re-about__name strong {
    display: block;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.2;
    color: #fff;
}

.re-about__name span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ab-red);
}

.re-about__name img {
    flex: none;
    width: 40px;
    height: auto;
}

/* ---------- copy ---------- */

.re-about .tp-subtitle-text { color: #fff; }

.re-about__title {
    margin: 16px 0 18px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(32px, 3.4vw, 54px);
    line-height: 1.1;
    color: var(--ab-red);
    text-wrap: balance;
}

.re-about__title span {
    color: #fff;
}

.re-about__lead {
    margin: 0 0 16px;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.6;
    color: #fff;
}

.re-about__text {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ab-muted);
    text-wrap: pretty;
}

.re-about__values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.re-about__values li {
    padding: 14px 16px;
    border: 1px solid var(--ab-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}

.re-about__values b {
    display: block;
    margin-bottom: 4px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: 17px;
    color: #fff;
}

.re-about__values span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ab-muted);
}

.re-about__values li::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 12px;
    background: var(--ab-red);
}

.re-about__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 40px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
}

.re-about__btn:hover,
.re-about__btn:focus-visible {
    background: var(--ab-red);
    color: #fff;
}

.re-about__btn svg { width: 12px; height: 12px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .re-about__inner {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        gap: 36px;
    }

    .re-about__values { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .re-about__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 18px;
    }

    .re-about__media {
        width: 100%;
        max-width: 400px;
        justify-self: center;
    }

    .re-about__values { grid-template-columns: 1fr; }

    /* two short lines read cleaner on a phone than a balanced three-line wrap */
    .re-about__title span { display: block; }

    .re-about__btn { width: 100%; justify-content: center; }
}
