/* =========================================================
   RotoEdge — inner pages, built from the home page's design system
   Same canvas, container, rhythm, type and components as index.html:
   · 1320px container, 24px gutters (18px on phones)
   · sections padded clamp(32px, 3.5vw, 56px) top and bottom
   · Audiowide red section titles, bracket-pill eyebrows, Marcellus card titles
   · #171717 / glass cards with a 1px light border, 20–26px radius
   · white pill buttons, red accents and glows
   Desktop ≥1025px · Tablet 768–1024px · Mobile ≤767px
   Markup lives in partials/pages/*.html (applied by tools/apply-pages.js).
========================================================= */

.re-page {
    --rp-red: #ff1f1f;
    --rp-line: rgba(255, 255, 255, .12);
    --rp-muted: rgba(255, 255, 255, .64);
    --rp-card: #171717;
    --rp-bg: var(--e-global-color-primary, #000);
    /* the home components reused here read these */
    --svc-red: var(--rp-red);
    --svc-line: var(--rp-line);
    --svc-card: var(--rp-card);
    --svc-muted: var(--rp-muted);
    --work-red: var(--rp-red);
    --work-line: var(--rp-line);
    --work-muted: var(--rp-muted);
    display: block;
    color: #fff;
}

.re-page *,
.re-page *::before,
.re-page *::after { box-sizing: border-box; }

.re-page img { max-width: 100%; }

/* ---------- container + section rhythm (as home) ---------- */

.re-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.re-sec {
    position: relative;
    padding: clamp(32px, 3.5vw, 56px) 0;
}

/* ---------- page hero: crumbs, giant title, tagline, optional aside ---------- */

/* beats css/re-site.css "first section gets 96px" so the hero sets its own room for the header */
body:not(.home) #smooth-content .re-page > section.re-hero:first-child {
    padding-top: clamp(112px, 10vw, 150px) !important;
}

.re-hero {
    position: relative;
    isolation: isolate;
    padding-bottom: clamp(24px, 3vw, 44px);
}

.re-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 80% at 12% 0%, rgba(255, 31, 31, .18), rgba(255, 31, 31, 0) 70%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.re-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px 48px;
}

.re-hero__main { flex: 1 1 560px; min-width: 0; }

/* a touch under headings.css's 96px so two-word titles ("Commercial VFX") hold one line beside the aside */
.re-page .re-page-title {
    margin-bottom: clamp(10px, 1.2vw, 16px);
    font-size: clamp(40px, 5.4vw, 86px);
}

.re-hero__lead {
    margin: 0;
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 1.9vw, 30px);
    line-height: 1.3;
    letter-spacing: .01em;
    color: #fff;
    text-wrap: balance;
}

.re-hero__aside { flex: 0 1 380px; }

.re-hero__aside p {
    margin: 0 0 18px;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    color: var(--rp-muted);
    text-wrap: pretty;
}

/* ---------- section head: eyebrow pill + red title, optional aside ---------- */

.re-page .tp-section-subtitle-2 { margin: 0; }
.re-page .tp-subtitle-text { color: #fff; }

.re-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
    margin-bottom: clamp(24px, 2.6vw, 40px);
}

.re-head > :first-child { flex: 1 1 520px; min-width: 0; }

.re-head__aside { flex: 0 1 440px; }

.re-head__aside p {
    margin: 0 0 18px;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    color: var(--rp-muted);
    text-wrap: pretty;
}

.re-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.re-head--center > :first-child { flex: none; }

/* section titles: the home face and size (Audiowide, red, second line white) */
.re-h2,
.re-page .re-about__title {
    margin: 18px 0 0;
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 50px);
    line-height: 1.15;
    letter-spacing: .01em;
    color: var(--rp-red);
    text-wrap: balance;
}

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

.re-page .re-about__title { margin: 16px 0 18px; font-size: clamp(28px, 3vw, 48px); }

/* item titles inside a section (service rows, case studies) */
.re-h3 {
    margin: 0 0 14px;
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 2.3vw, 36px);
    line-height: 1.2;
    letter-spacing: .01em;
    color: #fff;
    text-wrap: balance;
}

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

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

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

.re-copy > :last-child { margin-bottom: 0; }

.re-copy .re-h2 + .re-lead,
.re-copy .re-h2 + .re-text { margin-top: 20px; }

/* "01 —— Rotoscoping" style index line */
.re-num {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.re-num b {
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--rp-red);
}

.re-num::before {
    content: "";
    order: 1;
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, .3);
}

.re-num span { order: 2; }

/* small red label above a list */
.re-label {
    display: block;
    margin: 22px 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--rp-red);
}

/* closing tagline under a case study */
.re-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    font-family: "Audiowide", sans-serif;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}

.re-tagline li { display: inline-flex; align-items: center; gap: 14px; }
.re-tagline li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rp-red); box-shadow: 0 0 8px var(--rp-red); }

/* ---------- buttons (home: white pill in sections, red pill for project CTAs) ---------- */

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

.re-btn svg { width: 12px; height: 12px; transition: transform .3s ease; }

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

.re-btn:hover svg { transform: translateX(3px); }

.re-btn:focus-visible { outline: 2px solid var(--rp-red); outline-offset: 3px; }

.re-btn--red {
    background: var(--rp-red);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 31, 31, .35);
}

.re-btn--red:hover,
.re-btn--red:focus-visible { background: #fff; color: #111; }

/* secondary: outline pill (home social / card arrow style) */
.re-btn--ghost {
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: #fff;
}

.re-btn--ghost:hover,
.re-btn--ghost:focus-visible { border-color: var(--rp-red); background: rgba(255, 31, 31, .14); color: #fff; }

.re-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 26px;
}

/* ---------- two-column media + copy (home "About" proportions) ---------- */

.re-duo {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: center;
}

.re-duo--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.re-duo--end { align-items: end; }

/* media on the right: the copy (now first) keeps the wider column */
.re-duo--flip:not(.re-duo--even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.re-duo--flip > :first-child { order: 2; }

/* framed media: rounded card, faint grid, red glow (home founder card / showreel frame) */
.re-frame {
    position: relative;
    margin: 0;
    border: 1px solid var(--rp-line);
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 31, 31, .22), rgba(255, 31, 31, 0) 70%),
        linear-gradient(180deg, #1c1c1c 0%, #101010 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.re-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.re-frame--photo { aspect-ratio: 4 / 3.4; }

.re-frame--wide { aspect-ratio: 3 / 2; }

/* 16:9 player frame with the home showreel's red edge */
.re-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255, 31, 31, .35), 0 24px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 31, 31, .12);
}

.re-video .re-yt { position: absolute; inset: 0; }

.re-video--hero { border-radius: 24px; }

/* viewport corner marks (home founder card) */
.re-corner {
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: 2px solid var(--rp-red);
    pointer-events: none;
}

.re-corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.re-corner--br { right: 16px; bottom: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

/* ---------- stats (home "Our Services" header) ---------- */

.re-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 24px 0 0;
    padding: 0;
    border-top: 1px solid var(--rp-line);
    list-style: none;
}

.re-stats li { padding: 16px 12px 0 0; }

.re-stats li + li { padding-left: 16px; border-left: 1px solid var(--rp-line); }

.re-stats strong {
    display: block;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(30px, 2.8vw, 44px);
    line-height: 1;
    color: #fff;
}

.re-stats strong em { font-style: normal; color: var(--rp-red); }

.re-stats span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--rp-muted);
}

/* ---------- lists: red dot + soft divider ---------- */

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

.re-list li {
    position: relative;
    padding: 9px 0 9px 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, .09);
    font-size: 15px;
    line-height: 1.45;
    color: #fff;
}

.re-list li:last-child { border-bottom: 0; }

.re-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rp-red);
    box-shadow: 0 0 8px rgba(255, 31, 31, .7);
    transform: translateY(-50%);
}

.re-list--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.re-list--2 li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

/* chips used as in-page navigation */
.re-page .re-chips { justify-content: flex-start; }

.re-chips--nav a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.re-chips--nav li { padding: 0; transition: border-color .3s ease, background .3s ease; }
.re-chips--nav a { padding: 9px 18px; }
.re-chips--nav li:hover { border-color: var(--rp-red); background: rgba(255, 31, 31, .2); }
.re-chips--nav a:focus-visible { outline: 2px solid var(--rp-red); outline-offset: 3px; border-radius: 30px; }

.re-chips--plain li {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    font-size: 13.5px;
}

/* ---------- cards ---------- */

.re-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 3 + 2 layout (Innovation capabilities) */
.re-tiles--32 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.re-tiles--32 > :nth-child(-n+3) { grid-column: span 2; }
.re-tiles--32 > :nth-child(n+4) { grid-column: span 3; }

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

/* accent line along the top edge (home formula cards) */
.re-tile::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 26px;
    right: 26px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--rp-red), transparent);
    opacity: .75;
}

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

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

/* round badge (home process icons) */
.re-tile__badge {
    display: grid;
    flex: none;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #252525, #141414 70%);
}

/* the line-art icons are mid-grey; lift them so they read on the dark badge */
.re-tile__badge img { width: 40px; height: 40px; object-fit: contain; filter: brightness(1.8) contrast(1.1); }

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

.re-tile__badge svg .accent { stroke: var(--rp-red); }

.re-tile__kicker {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--rp-red);
}

.re-tile__title {
    margin: 0 0 10px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(21px, 1.8vw, 27px);
    line-height: 1.2;
    color: #fff;
}

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

/* label + list sit together at the foot of the card, so neighbouring cards line up */
.re-tile .re-label { margin-top: auto; padding-top: 22px; }

/* ---------- rail: numbered steps on an animated line (home "Our Process") ---------- */

.re-rail {
    --rail-cycle: 10s;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-rail::before,
.re-rail::after {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 29px;
    width: 2px;
    border-radius: 2px;
}

.re-rail::before { background: var(--rp-line); }

.re-rail::after {
    background: linear-gradient(180deg, var(--rp-red), rgba(255, 31, 31, .35));
    box-shadow: 0 0 12px rgba(255, 31, 31, .6);
    transform-origin: top;
    animation: re-rail-fill var(--rail-cycle) linear infinite;
}

@keyframes re-rail-fill {
    0%   { transform: scaleY(0); opacity: 1; }
    90%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

.re-rail > li {
    --i: 0;
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 22px;
    align-items: start;
    padding: 12px 0;
}

.re-rail__badge {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #252525, #141414 70%);
    box-shadow: 0 0 0 6px var(--rp-bg);
    font-family: "Audiowide", sans-serif;
    font-size: 17px;
    color: #fff;
    animation: re-rail-light var(--rail-cycle) linear infinite;
    animation-delay: calc(var(--i) * var(--rail-cycle) * var(--rail-step, .18));
}

@keyframes re-rail-light {
    0%, 14%   { border-color: var(--rp-red); box-shadow: 0 0 0 6px var(--rp-bg), 0 0 24px rgba(255, 31, 31, .55); }
    22%, 100% { border-color: rgba(255, 255, 255, .16); box-shadow: 0 0 0 6px var(--rp-bg); }
}

.re-rail__kicker {
    display: block;
    margin: 4px 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rp-red);
}

.re-rail__title {
    margin: 0 0 6px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(20px, 1.6vw, 25px);
    line-height: 1.2;
    color: #fff;
}

.re-rail p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--rp-muted);
    text-wrap: pretty;
}

/* ---------- service / case-study rows ---------- */

.re-rows > * + * {
    margin-top: clamp(40px, 5vw, 80px);
    padding-top: clamp(40px, 5vw, 80px);
    border-top: 1px solid var(--rp-line);
}

/* anchor targets clear the fixed header */
.re-rows > [id] { scroll-margin-top: 110px; }

/* before / after media: the home "Our Work" scan reveal at 16:9 */
.re-case__media { display: block; }

.re-page .re-case__media .re-card__media {
    aspect-ratio: 16 / 9;
}

.re-page .re-case__media .re-card__media img { object-position: center; }

.re-page .re-case__media.re-card:hover { transform: translateY(-4px); }

/* portrait plates (green screen → composite) */
.re-page .re-case__media--tall { justify-self: center; width: 100%; max-width: 440px; }
.re-page .re-case__media--tall .re-card__media { aspect-ratio: 4 / 5; }
.re-page .re-case__media--tall .re-card__media img { object-position: center top; }

/* links inside running copy, answers and cards */
.re-text a,
.re-lead a,
.re-qa p a,
.re-tile p a,
.re-rail p a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--rp-red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .25s ease;
}

.re-text a:hover,
.re-qa p a:hover,
.re-tile p a:hover,
.re-rail p a:hover { color: var(--rp-red); }

/* a card that starts straight with its number */
.re-tile > .re-tile__kicker:first-child { margin-bottom: 14px; }

/* "learn more" link at the foot of a service card */
.re-tile__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.re-tile__more svg { width: 11px; height: 11px; color: var(--rp-red); transition: transform .3s ease; }
.re-tile__more:hover { color: var(--rp-red); }
.re-tile__more:hover svg { transform: translateX(3px); }

/* ---------- video grid ---------- */

.re-vgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-vgrid figure { margin: 0; }

.re-vgrid figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-family: "Marcellus", serif;
    font-size: clamp(19px, 1.5vw, 23px);
    color: #fff;
}

.re-vgrid figcaption em {
    font-family: "Audiowide", sans-serif;
    font-style: normal;
    font-size: 13px;
    color: var(--rp-red);
}

/* ---------- FAQ ---------- */

.re-faq {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(20px, 3vw, 48px);
    align-items: start;
}

.re-qa {
    margin: 0 0 12px;
    border: 1px solid var(--rp-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    transition: border-color .3s ease, background .3s ease;
}

.re-qa:hover { border-color: rgba(255, 31, 31, .4); }

.re-qa[open] {
    border-color: rgba(255, 31, 31, .45);
    background: linear-gradient(160deg, rgba(255, 31, 31, .08), rgba(255, 255, 255, .02));
}

.re-qa summary {
    position: relative;
    display: block;
    padding: 20px 64px 20px 22px;
    font-family: "Marcellus", serif;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.35;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.re-qa summary::-webkit-details-marker { display: none; }

/* plus → minus */
.re-qa summary::before,
.re-qa summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 26px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--rp-red);
    transition: transform .3s ease;
}

.re-qa summary::after { transform: rotate(90deg); }
.re-qa[open] summary::after { transform: rotate(0deg); }

.re-qa summary:focus-visible { outline: 2px solid var(--rp-red); outline-offset: -2px; border-radius: 16px; }

.re-qa p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rp-muted);
}

/* side card: "Have more questions?" */
.re-cta-card {
    position: sticky;
    top: 110px;
    padding: clamp(24px, 2.6vw, 36px);
    border: 1px solid rgba(255, 31, 31, .28);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 31, 31, .18), rgba(255, 31, 31, 0) 70%),
        linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.re-cta-card img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 22px;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.re-cta-card h3 {
    margin: 0 0 10px;
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
    color: #fff;
}

.re-cta-card p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rp-muted);
}

/* ---------- statement band (Innovation philosophy) ---------- */

.re-page .re-venn { margin-top: 0; }

.re-page .re-statement { margin-top: clamp(28px, 3.4vw, 48px); }

.re-page .re-venn__title {
    font-family: "Audiowide", sans-serif;
    font-size: clamp(22px, 2.1vw, 32px);
    line-height: 1.2;
}

.re-page .re-venn .re-chips { justify-content: center; }

/* ---------- contact ---------- */

.re-contact {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(20px, 3vw, 48px);
    align-items: stretch;
}

.re-contact__info {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2vw, 26px);
}

/* contact cards stack beside the form (no map since October 2026) */
.re-contact__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-contact__items li {
    padding: 16px 18px;
    border: 1px solid var(--rp-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    font-size: 15px;
    line-height: 1.45;
    color: #fff;
    overflow-wrap: anywhere;
}

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

.re-contact__items span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rp-muted);
}

.re-contact__items a { color: #fff; text-decoration: none; }
.re-contact__items a:hover { color: var(--rp-red); }

.re-map {
    flex: 1;
    min-height: 320px;
    border: 1px solid var(--rp-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.re-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    filter: grayscale(.35) contrast(1.05);
}

.re-form {
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid rgba(255, 31, 31, .28);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 31, 31, .14), rgba(255, 31, 31, 0) 70%),
        linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.re-form h2 {
    margin: 0 0 6px;
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
    color: #fff;
}

.re-form > p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rp-muted);
}

.re-field { margin: 0 0 16px; }

.re-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}

.re-field label small { font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--rp-muted); }

.re-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%) !important; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; }

.re-field select option { color: #111; }

/* input styling itself comes from css/re-site.css (dark fields, red focus ring) */
.re-field textarea { min-height: 150px; resize: vertical; }

.re-form .re-btn { width: 100%; justify-content: center; min-height: 54px; }

.re-form .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    color: var(--rp-muted);
}

.re-form .wpcf7-response-output:empty { display: none; }

/* ---------- poster band before the footer ---------- */

.re-sec--posters { padding: clamp(24px, 3vw, 44px) 0 clamp(32px, 3.5vw, 56px); }

/* ---------- blog / archive pages: theme layout aligned to the same 1320px grid ---------- */

body:not(.home) .re-page + .tp-blog-area > .container,
body:not(.home) .re-page + .tp-blog-area .container {
    max-width: 1320px;
    padding-left: 24px;
    padding-right: 24px;
}

body:not(.home) #smooth-content .re-page + .tp-blog-area { padding-top: clamp(8px, 1.5vw, 24px) !important; }

/* =========================================================
   TABLET — 768px to 1024px
========================================================= */
@media (max-width: 1024px) {
    .re-duo,
    .re-duo--even,
    .re-duo--flip:not(.re-duo--even) { grid-template-columns: 1fr; }

    .re-duo--flip > :first-child { order: 0; }

    .re-duo > .re-frame--photo,
    .re-duo > .re-frame--wide { aspect-ratio: 16 / 9; }

    .re-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-tiles--32 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-tiles--32 > :nth-child(n) { grid-column: auto; }
    .re-tiles--32 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .re-tiles--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

    .re-tile .re-list--2 { grid-template-columns: 1fr; }
    .re-tile .re-list--2 li:nth-last-child(2):nth-child(odd) { border-bottom: 1px dashed rgba(255, 255, 255, .09); }

    .re-faq { grid-template-columns: 1fr; }
    .re-cta-card { position: static; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 28px; align-items: center; }
    .re-cta-card img { grid-row: span 3; margin: 0; }

    .re-contact { grid-template-columns: 1fr; }
    .re-map { min-height: 340px; }
}

/* =========================================================
   MOBILE — up to 767px
========================================================= */
@media (max-width: 767px) {
    .re-wrap { padding: 0 18px; }

    body:not(.home) #smooth-content .re-page > section.re-hero:first-child { padding-top: 104px !important; }

    .re-page .re-page-title { font-size: clamp(32px, 10vw, 46px); }

    .re-hero__inner { gap: 18px; }
    .re-hero__aside { flex-basis: 100%; }

    .re-h2,
    .re-page .re-about__title { font-size: clamp(24px, 7.2vw, 32px); }

    .re-h3 { font-size: clamp(22px, 6.4vw, 28px); }

    .re-head { gap: 16px; }

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

    .re-stats li + li { padding-left: 10px; }
    .re-stats span { font-size: 12px; }
    .re-stats strong { font-size: 30px; }

    .re-list--2 { grid-template-columns: 1fr; }
    .re-list--2 li:nth-last-child(2):nth-child(odd) { border-bottom: 1px dashed rgba(255, 255, 255, .09); }

    .re-tiles,
    .re-tiles--3,
    .re-tiles--32 { grid-template-columns: 1fr; }
    .re-tiles > :nth-child(n) { grid-column: auto; }

    .re-tile { border-radius: 18px; }
    .re-tile:hover { transform: none; }

    .re-rail::before,
    .re-rail::after { left: 23px; top: 24px; bottom: 24px; }
    .re-rail > li { grid-template-columns: 48px 1fr; column-gap: 16px; padding: 8px 0; }
    .re-rail__badge { width: 48px; height: 48px; font-size: 14px; box-shadow: 0 0 0 5px var(--rp-bg); }

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

    .re-video,
    .re-frame { border-radius: 18px; }

    .re-qa summary { padding: 16px 52px 16px 18px; }
    .re-qa summary::before,
    .re-qa summary::after { right: 20px; }
    .re-qa p { padding: 0 18px 16px; }

    .re-cta-card { display: block; }
    .re-cta-card img { margin-bottom: 18px; }

    .re-contact__items { grid-template-columns: 1fr; }
    .re-map,
    .re-map iframe { min-height: 280px; }

    .re-tagline { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .re-rail::after { animation: none; transform: scaleY(1); }
    .re-rail__badge { animation: none; }
    .re-tile,
    .re-btn svg { transition: none; }
}

/* buttons inside a page hero sit directly under the aside copy */
.re-hero__aside .re-actions { margin-top: 0; }


/* ---------- legal pages (privacy policy, terms) ---------- */
.re-legal { max-width: 820px; }
.re-legal h2 { margin: 40px 0 12px; font-family: "Audiowide", sans-serif; font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; color: #fff; }
.re-legal h3 { margin: 22px 0 8px; font-family: "Marcellus", serif; font-weight: 400; font-size: 19px; color: #fff; }
.re-legal p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: var(--rp-muted); }
.re-legal > p:first-child { font-size: clamp(16px, 1.2vw, 18px); color: #fff; }
.re-legal .re-list { margin: 4px 0 16px; }
.re-legal a { color: #fff; text-decoration: underline; text-decoration-color: var(--rp-red); text-underline-offset: 4px; }
.re-legal a:hover { color: var(--rp-red); }

/* ---------- 404 ---------- */
.re-hero--404 .re-page-title { color: var(--rp-red); }
.re-404__alt { margin: 6px 0 0; font-size: 14px; color: var(--rp-muted); }
.re-hero--404 .re-actions { margin-top: 28px; }

/* spam honeypot: off-screen, never seen or filled by real visitors */
.re-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }



/* =========================================================
   Long-form content: guides, articles, glossary, security, case studies
   Markup conventions (partials/pages/*.html):
     <div class="re-wrap re-article">
       <article class="re-prose"> h2 / h3 / p / ul / ol / .re-table / .re-callout </article>
       <aside class="re-article__side"> .re-toc + .re-cta-card </aside>
     </div>
========================================================= */
.re-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.re-article__side { position: sticky; top: 110px; display: grid; gap: 20px; }
.re-article__side .re-cta-card { position: static; }

.re-prose { max-width: 800px; min-width: 0; }
.re-prose > :first-child { margin-top: 0; }
.re-prose h2 { margin: 48px 0 14px; font-family: "Audiowide", sans-serif; font-weight: 400; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.3; color: #fff; scroll-margin-top: 110px; }
.re-prose h3 { margin: 28px 0 10px; font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; color: #fff; scroll-margin-top: 110px; }
.re-prose p,
.re-prose li { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .74); }
.re-prose p { margin: 0 0 16px; }
.re-prose > p:first-child,
.re-prose .re-prose__intro { font-size: clamp(17px, 1.3vw, 19px); color: #fff; }
.re-prose ul,
.re-prose ol { margin: 0 0 18px; padding-left: 22px; }
.re-prose li { margin: 0 0 8px; }
.re-prose li::marker { color: var(--rp-red); }
.re-prose strong { color: #fff; font-weight: 600; }
.re-prose a { color: #fff; text-decoration: underline; text-decoration-color: var(--rp-red); text-underline-offset: 4px; }
.re-prose a:hover { color: var(--rp-red); }
.re-prose .re-btn { text-decoration: none; }
.re-prose figure { margin: 24px 0; }
.re-prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--rp-muted); }

.re-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 13px; letter-spacing: .04em; color: var(--rp-muted); }
.re-meta li + li::before { content: "\00B7"; margin-right: 18px; color: var(--rp-red); }

/* "On this page" box */
.re-toc { padding: 22px 24px; border: 1px solid var(--rp-line); border-radius: 20px; background: var(--rp-card); }
.re-toc h2,
.re-toc .re-toc__title { margin: 0 0 12px; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--rp-red); }
.re-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.re-toc li { counter-increment: toc; margin: 0; padding: 7px 0; border-top: 1px dashed rgba(255, 255, 255, .09); font-size: 14px; line-height: 1.45; }
.re-toc li:first-child { border-top: 0; }
.re-toc li::before { content: counter(toc, decimal-leading-zero); margin-right: 10px; font-family: "Audiowide", sans-serif; font-size: 11px; color: var(--rp-red); }
.re-toc a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.re-toc a:hover,
.re-toc a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: var(--rp-red); }

/* callouts: tips, notes, "what to send" boxes */
.re-callout { margin: 24px 0; padding: 20px 24px; border: 1px solid rgba(255, 31, 31, .35); border-left: 3px solid var(--rp-red); border-radius: 16px; background: linear-gradient(135deg, rgba(255, 31, 31, .08), rgba(255, 255, 255, .02)); }
.re-callout > :last-child { margin-bottom: 0; }
.re-callout__title { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--rp-red); }

/* tables (comparisons, pricing factors): scroll sideways on small screens instead of overflowing the page */
.re-table { margin: 24px 0; overflow-x: auto; border: 1px solid var(--rp-line); border-radius: 18px; -webkit-overflow-scrolling: touch; }
.re-table:focus-visible { outline: 2px solid var(--rp-red); outline-offset: 3px; }
.re-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.re-table caption { padding: 14px 18px 0; text-align: left; font-size: 13px; color: var(--rp-muted); caption-side: top; }
.re-table th,
.re-table td { padding: 14px 18px; border-top: 1px solid var(--rp-line); text-align: left; vertical-align: top; color: rgba(255, 255, 255, .78); }
.re-table thead th { border-top: 0; background: #1d1d1d; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.re-table tbody th { font-family: "Marcellus", serif; font-weight: 400; font-size: 16px; color: #fff; }

/* checklists (plate prep, brief) */
.re-check { margin: 0 0 20px; padding: 0; list-style: none; }
.re-prose .re-check { padding-left: 0; }
.re-check li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px dashed rgba(255, 255, 255, .09); }
.re-check li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border: 1.5px solid var(--rp-red); border-radius: 5px; }

/* glossary */
.re-gloss { margin: 0; }
.re-gloss__group { margin: 0 0 8px; padding-top: 28px; font-family: "Audiowide", sans-serif; font-size: 22px; color: var(--rp-red); scroll-margin-top: 110px; }
.re-gloss dt { margin: 22px 0 6px; font-family: "Marcellus", serif; font-size: 20px; color: #fff; scroll-margin-top: 110px; }
.re-gloss dd { margin: 0 0 6px; padding-bottom: 18px; border-bottom: 1px dashed rgba(255, 255, 255, .09); font-size: 15.5px; line-height: 1.75; color: rgba(255, 255, 255, .74); }
.re-gloss dd a { color: #fff; text-decoration: underline; text-decoration-color: var(--rp-red); text-underline-offset: 4px; }
.re-azbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.re-azbar a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--rp-line); border-radius: 999px; color: #fff; font-family: "Audiowide", sans-serif; font-size: 14px; text-decoration: none; }
.re-azbar a:hover,
.re-azbar a:focus-visible { border-color: var(--rp-red); color: var(--rp-red); }

/* resource / article cards (blog hub, related reading) */
.re-tile__meta { display: block; margin: 0 0 12px; font-size: 12.5px; color: var(--rp-muted); }
.re-tile > .re-tile__more { margin-top: auto; padding-top: 18px; }

/* testimonials: rendered only from approved entries in data/testimonials.json */
.re-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.re-quote { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 28px; border: 1px solid var(--rp-line); border-radius: 22px; background: var(--rp-card); }
.re-quote blockquote { margin: 0; font-family: "Marcellus", serif; font-size: 19px; line-height: 1.55; color: #fff; }
.re-quote blockquote::before { content: "\201C"; display: block; height: 30px; font-family: "Audiowide", sans-serif; font-size: 48px; line-height: 1; color: var(--rp-red); }
.re-quote figcaption { margin-top: auto; font-size: 14px; line-height: 1.5; color: var(--rp-muted); }
.re-quote figcaption strong { display: block; color: #fff; font-weight: 600; }
.re-quote__ctx { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rp-red); }
.re-quote a { color: #fff; }

/* case studies: rendered only from approved entries in data/case-studies.json */
.re-case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 0 0 24px; padding: 0; overflow: hidden; border: 1px solid var(--rp-line); border-radius: 18px; background: var(--rp-line); list-style: none; }
.re-case-facts li { padding: 16px 18px; background: var(--rp-card); font-size: 15px; color: #fff; }
.re-case-facts span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rp-red); }

/* fact cards (home trust strip, security, audience pages): plain verified facts, no logos */
.re-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.re-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.re-facts li { padding: 24px; border: 1px solid var(--rp-line); border-radius: 22px; background: var(--rp-card); }
.re-facts h3 { margin: 0 0 8px; font-family: "Marcellus", serif; font-weight: 400; font-size: 21px; line-height: 1.25; color: #fff; }
.re-facts p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--rp-muted); }
.re-facts a { color: #fff; text-decoration: underline; text-decoration-color: var(--rp-red); text-underline-offset: 4px; }

/* contact form additions */
.re-form .re-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.re-form .re-field small { font-size: 12px; font-weight: 400; color: var(--rp-muted); }
.re-form .re-help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--rp-muted); }
.re-form [aria-invalid="true"] { border-color: var(--rp-red) !important; }
.re-form .wpcf7-response-output:not(:empty) { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--rp-line); border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.re-form .wpcf7-response-output.is-ok { border-color: rgba(70, 200, 120, .6); background: rgba(70, 200, 120, .08); color: #d8ffe6; }
.re-form .wpcf7-response-output.is-error { border-color: rgba(255, 31, 31, .6); background: rgba(255, 31, 31, .08); color: #ffd9d9; }
.re-steps-mini { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.re-steps-mini li { counter-increment: s; position: relative; padding: 0 0 14px 40px; font-size: 14.5px; line-height: 1.6; color: var(--rp-muted); }
.re-steps-mini li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--rp-red); border-radius: 50%; font-family: "Audiowide", sans-serif; font-size: 12px; color: #fff; }
.re-steps-mini strong { color: #fff; font-weight: 600; }

/* visible keyboard focus everywhere on content pages */
.re-page a:focus-visible,
.re-page button:focus-visible,
.re-page summary:focus-visible,
.re-page input:focus-visible,
.re-page select:focus-visible,
.re-page textarea:focus-visible { outline: 2px solid var(--rp-red); outline-offset: 3px; }

@media (max-width: 1024px) {
    .re-article { grid-template-columns: 1fr; }
    .re-article__side { position: static; order: -1; }
    .re-article__side .re-cta-card { display: none; }
    .re-facts,
    .re-facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .re-facts,
    .re-facts--3 { grid-template-columns: 1fr; }
    .re-form .re-field-row { grid-template-columns: 1fr; }
    .re-prose p,
    .re-prose li { font-size: 15.5px; }
    .re-quote { padding: 22px; }
}
