/* Unified homepage canvas, hero transition, and post-hero content system. */

body.rw-home-page {
    --rw-home-canvas: #f4f7fb;
    --rw-home-canvas-rgb: 244, 247, 251;
    --rw-home-surface: rgba(255, 255, 255, 0.88);
    --rw-home-surface-solid: #ffffff;
    --rw-home-ink: #111827;
    --rw-home-muted: #5f6b7a;
    --rw-home-line: rgba(15, 23, 42, 0.09);
    --rw-home-accent: #0077ff;
    --rw-home-accent-soft: rgba(0, 119, 255, 0.09);
    --rw-home-shadow: 0 22px 55px rgba(15, 23, 42, 0.09);
    background: var(--rw-home-canvas);
}

/* Fade the hero artwork into the shared homepage canvas. */
.rw-home-section-fade {
    position: absolute;
    z-index: 26;
    right: 0;
    bottom: -1px;
    left: 0;
    height: clamp(92px, 11vh, 132px);
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(var(--rw-home-canvas-rgb), 0) 0%,
        rgba(var(--rw-home-canvas-rgb), 0.18) 28%,
        rgba(var(--rw-home-canvas-rgb), 0.68) 68%,
        var(--rw-home-canvas) 100%
    );
}

/* Keep every homepage section below the hero on one continuous surface. */
body.rw-home-page .rw-route-content > .homepage-featured-design,
body.rw-home-page .rw-route-content > .rw-home-section,
body.rw-home-page .rw-route-content > .idx-reviews-wrapper {
    background-color: var(--rw-home-canvas) !important;
    background-image: none !important;
}

.rw-home-section {
    position: relative;
    padding: clamp(76px, 8vw, 116px) 0;
    scroll-margin-top: 104px;
}

.rw-home-about {
    padding-top: clamp(82px, 9vw, 126px);
}

.rw-home-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 119, 255, 0.16);
    border-radius: 999px;
    background: var(--rw-home-accent-soft);
    color: var(--rw-home-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.rw-home-title {
    margin: 0;
    color: var(--rw-home-ink);
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.rw-home-section-heading {
    max-width: 760px;
    margin: 0 auto clamp(34px, 4vw, 52px);
    text-align: center;
}

.rw-home-section-heading .rw-home-kicker {
    margin-right: auto;
    margin-left: auto;
}

.rw-home-section-heading > p {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--rw-home-muted);
    font-size: 17px;
    line-height: 1.75;
}

.rw-home-about-heading {
    margin-bottom: clamp(30px, 3.5vw, 46px);
}

.rw-home-about-heading .rw-home-title {
    max-width: 100%;
    font-size: clamp(22px, 5vw, 52px);
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.rw-home-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    gap: clamp(44px, 6vw, 84px);
    align-items: center;
}

.rw-home-about-copy {
    max-width: 590px;
}

.rw-home-about-copy > p {
    margin: 22px 0 30px;
    color: var(--rw-home-muted);
    font-size: 18px;
    line-height: 1.82;
}

.rw-home-about-media {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--rw-home-line);
    border-radius: 30px;
    background: var(--rw-home-surface-solid);
    box-shadow: var(--rw-home-shadow);
}

.rw-home-about-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.rw-home-about-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rw-home-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-width: max-content;
    white-space: nowrap !important;
}

.rw-home-cta span,
.rw-home-text-link span {
    transition: transform 0.2s ease;
}

.rw-home-cta:hover span,
.rw-home-text-link:hover span {
    transform: translateX(3px);
}

.rw-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rw-home-feature-card,
.rw-home-service-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--rw-home-line);
    background: var(--rw-home-surface);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.065);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.rw-home-feature-card {
    position: relative;
    display: block;
    height: 238px;
    border-radius: 24px;
    isolation: isolate;
    cursor: pointer;
    outline: none;
}

.rw-home-feature-card:hover,
.rw-home-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 119, 255, 0.22);
    box-shadow: var(--rw-home-shadow);
}

.rw-home-feature-card > img {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #e9f1fb;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-102%);
    transition: opacity 0.28s ease, transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.rw-home-feature-card::after {
    content: attr(data-feature-label);
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: fit-content;
    max-width: calc(100% - 28px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    color: #fff;
    background: rgba(7, 18, 43, 0.68);
    box-shadow: 0 8px 24px rgba(5, 14, 35, 0.2);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.24s ease 0.14s, transform 0.3s ease 0.14s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.rw-home-feature-card:hover > img,
.rw-home-feature-card:focus-visible > img,
.rw-home-feature-card.is-image-revealed > img,
.rw-home-feature-card[aria-expanded="true"] > img {
    opacity: 1;
    transform: translateX(0);
}

.rw-home-feature-card:hover::after,
.rw-home-feature-card:focus-visible::after,
.rw-home-feature-card.is-image-revealed::after,
.rw-home-feature-card[aria-expanded="true"]::after {
    opacity: 1;
    transform: translateY(0);
}

.rw-home-feature-card:focus-visible {
    border-color: rgba(0, 119, 255, 0.58);
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.14), var(--rw-home-shadow);
}

.rw-home-feature-body {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.rw-home-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 15px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: 0.035em;
    line-height: 1.35;
    text-transform: uppercase;
}

.rw-home-badge--included {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.rw-home-badge--premium {
    background: rgba(124, 58, 237, 0.11);
    color: #6d28d9;
}

.rw-home-badge--request {
    border-radius: 13px;
    background: rgba(0, 119, 255, 0.11);
    color: #005fcf;
}

.rw-home-badge--ultimate {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.rw-home-feature-body h3,
.rw-home-service-body h3 {
    margin: 0;
    color: var(--rw-home-ink);
    font-size: 21px;
    font-weight: 820;
    letter-spacing: -0.02em;
    line-height: 1.22;
    text-wrap: balance;
}

.rw-home-feature-body p,
.rw-home-service-body p {
    margin: 12px 0 0;
    color: var(--rw-home-muted);
    font-size: 14px;
    line-height: 1.72;
}

.rw-home-feature-body p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.rw-home-availability {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 880px;
    margin: 34px auto 0;
    padding: 20px 22px 20px 26px;
    border: 1px solid var(--rw-home-line);
    border-radius: 22px;
    background: var(--rw-home-surface);
    box-shadow: 0 13px 30px rgba(15, 23, 42, 0.05);
}

.rw-home-availability p {
    margin: 0;
    color: var(--rw-home-muted);
    font-size: 15px;
    line-height: 1.65;
}

.rw-home-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.rw-home-service-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.15fr);
    border-radius: 26px;
}

.rw-home-service-card > img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    display: block;
    object-fit: cover;
    background: #e9f1fb;
}

.rw-home-service-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
}

.rw-home-service-label {
    margin-bottom: 14px;
    color: var(--rw-home-accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.07em;
    line-height: 1.35;
    text-transform: uppercase;
}

.rw-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--rw-home-accent);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.rw-home-text-link:hover {
    color: #005fcf;
}

.rw-home-text-link:focus-visible,
.rw-home-cta:focus-visible {
    outline: 3px solid rgba(0, 119, 255, 0.3);
    outline-offset: 4px;
}

html[data-theme="dark"] body.rw-home-page {
    --rw-home-canvas: #0f1624;
    --rw-home-canvas-rgb: 15, 22, 36;
    --rw-home-surface: rgba(27, 36, 55, 0.92);
    --rw-home-surface-solid: #1b2437;
    --rw-home-ink: #f0f4fc;
    --rw-home-muted: #bcc8d8;
    --rw-home-line: rgba(255, 255, 255, 0.09);
    --rw-home-accent: #78b9ff;
    --rw-home-accent-soft: rgba(96, 165, 250, 0.12);
    --rw-home-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .rw-home-feature-card,
html[data-theme="dark"] .rw-home-service-card,
html[data-theme="dark"] .rw-home-availability {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .rw-home-badge--included {
    background: rgba(16, 185, 129, 0.16);
    color: #86efac;
}

html[data-theme="dark"] .rw-home-badge--premium {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
}

html[data-theme="dark"] .rw-home-badge--request {
    background: rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
}

html[data-theme="dark"] .rw-home-badge--ultimate {
    background: rgba(251, 191, 36, 0.16);
    color: #fde68a;
}

@media (max-width: 1080px) {
    .rw-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rw-home-service-grid {
        grid-template-columns: 1fr;
    }

    .rw-home-service-card {
        grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 820px) {
    .rw-home-about-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .rw-home-about-copy {
        max-width: none;
    }

    .rw-home-about-media {
        order: -1;
    }
}

@media (max-width: 768px) {
    .rw-home-section-fade {
        height: 96px;
    }

    .rw-home-section {
        padding: 66px 0;
        scroll-margin-top: 28px;
    }

    .rw-home-about {
        padding-top: 70px;
    }

    .rw-home-kicker {
        margin-bottom: 13px;
        padding: 7px 12px;
        font-size: 10.5px;
    }

    .rw-home-title {
        font-size: clamp(30px, 9vw, 40px);
    }

    .rw-home-section-heading {
        margin-bottom: 30px;
        padding: 0 2px;
    }

    .rw-home-section-heading > p,
    .rw-home-about-copy > p {
        font-size: 16px;
        line-height: 1.72;
    }

    .rw-home-about-copy > p {
        margin: 18px 0 26px;
    }

    .rw-home-about-media {
        border-radius: 23px;
    }

    /* Purpose-built mobile snap strip: one focused card with the next peeking in. */
    .rw-home-feature-grid {
        display: flex;
        gap: 15px;
        margin: 0 -16px;
        padding: 4px 16px 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 16px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .rw-home-feature-grid::-webkit-scrollbar {
        display: none;
    }

    .rw-home-feature-card {
        flex: 0 0 min(84vw, 318px);
        height: 232px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .rw-home-feature-card:hover,
    .rw-home-service-card:hover {
        transform: none;
    }

    .rw-home-feature-body {
        padding: 19px;
    }

    .rw-home-feature-body h3,
    .rw-home-service-body h3 {
        font-size: 20px;
    }

    .rw-home-availability {
        align-items: stretch;
        flex-direction: column;
        margin-top: 24px;
        padding: 20px;
        text-align: left;
    }

    .rw-home-availability .rw-home-cta,
    .rw-home-about-copy .rw-home-cta {
        width: 100%;
    }

    .rw-home-service-grid {
        gap: 18px;
    }

    .rw-home-service-card {
        display: block;
        border-radius: 23px;
    }

    .rw-home-service-card > img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .rw-home-service-body {
        min-height: 255px;
        padding: 24px 22px;
    }
}

@media (max-width: 390px) {
    .rw-home-feature-card {
        flex-basis: 86vw;
    }

    .rw-home-badge {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-home-feature-card,
    .rw-home-feature-card > img,
    .rw-home-feature-card::after,
    .rw-home-service-card,
    .rw-home-cta span,
    .rw-home-text-link span {
        transition: none;
    }
}

/* Featured client work — visual parity with the refreshed Portfolio cards. */
body.rw-home-page .homepage-featured-design {
    padding: clamp(72px, 8vw, 108px) 0 clamp(54px, 6vw, 82px);
}

body.rw-home-page .homepage-featured-shell {
    --featured-accent-rgb: 8, 124, 255;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 3.2vw, 42px);
    border: 1px solid rgba(var(--featured-accent-rgb), 0.19);
    border-radius: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--featured-accent-rgb), 0.12), transparent 30%),
        var(--rw-home-surface-solid);
    box-shadow: var(--rw-home-shadow);
    transition: border-color 260ms ease, background 260ms ease;
}

body.rw-home-page .homepage-featured-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 270px;
    height: 270px;
    right: -105px;
    bottom: -125px;
    inset-block-start: auto;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.16);
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 0 0 34px rgba(var(--featured-accent-rgb), 0.028),
        0 0 0 68px rgba(var(--featured-accent-rgb), 0.018);
    pointer-events: none;
}

body.rw-home-page .homepage-featured-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: clamp(24px, 3vw, 34px);
}

body.rw-home-page .homepage-featured-heading {
    min-width: 0;
    max-width: 680px;
}

body.rw-home-page .homepage-featured-heading-kicker,
body.rw-home-page .homepage-featured-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 11px;
    padding: 7px 11px;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.19);
    border-radius: 999px;
    color: rgba(var(--featured-accent-rgb), 1);
    background: rgba(var(--featured-accent-rgb), 0.075);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1.1;
    text-transform: uppercase;
}

body.rw-home-page .homepage-featured-heading h2 {
    margin: 0;
    color: var(--rw-home-ink);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -0.042em;
    line-height: 1.06;
}

body.rw-home-page .homepage-featured-heading p {
    margin: 10px 0 0;
    color: var(--rw-home-muted);
    font-size: 16px;
    line-height: 1.58;
}

body.rw-home-page .homepage-featured-carousel-controls {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px;
    border: 1px solid var(--rw-home-line);
    border-radius: 18px;
    background: var(--rw-home-surface);
    box-shadow: 0 12px 28px rgba(24, 45, 78, 0.08);
}

body.rw-home-page .homepage-featured-nav {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.18);
    border-radius: 13px;
    color: rgba(var(--featured-accent-rgb), 1);
    background: rgba(var(--featured-accent-rgb), 0.075);
    box-shadow: none;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

body.rw-home-page .homepage-featured-nav:hover {
    color: #ffffff;
    border-color: transparent;
    background: rgba(var(--featured-accent-rgb), 0.96);
    box-shadow: none;
    transform: translateY(-2px);
}

body.rw-home-page .homepage-featured-nav:focus-visible {
    outline: 3px solid rgba(var(--featured-accent-rgb), 0.23);
    outline-offset: 3px;
}

body.rw-home-page .homepage-featured-slide-indicator {
    min-width: 58px;
    color: var(--rw-home-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
}

body.rw-home-page .homepage-featured-card {
    --featured-accent-rgb: 8, 124, 255;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(310px, 0.38fr) minmax(0, 0.62fr);
    align-items: stretch;
    gap: clamp(16px, 2vw, 24px);
    min-width: 0;
    padding: clamp(14px, 1.5vw, 18px);
    overflow: hidden;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.22);
    border-radius: 29px;
    background:
        radial-gradient(circle at 7% 5%, rgba(var(--featured-accent-rgb), 0.13), transparent 29%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.91));
    box-shadow: 0 18px 42px rgba(34, 55, 89, 0.10);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease, border-color 260ms ease;
}

body.rw-home-page .homepage-featured-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, rgba(var(--featured-accent-rgb), 1), rgba(var(--featured-accent-rgb), 0.35));
}

body.rw-home-page .homepage-featured-card.is-transitioning {
    opacity: 0.62;
    transform: translateY(5px);
}

body.rw-home-page .homepage-featured-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(18px, 2.1vw, 28px);
    overflow: hidden;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.13);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.69);
}

body.rw-home-page .homepage-featured-logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    margin: 0 0 20px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.20);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(26, 43, 70, 0.13);
}

body.rw-home-page .homepage-featured-logo-wrap[hidden] {
    display: none !important;
}

body.rw-home-page .homepage-featured-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

body.rw-home-page .homepage-featured-copy h3 {
    margin: 0 0 8px;
    color: var(--rw-home-ink);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

body.rw-home-page .homepage-featured-subtitle {
    margin: 0 0 15px;
    color: rgba(var(--featured-accent-rgb), 1);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
}

body.rw-home-page .homepage-featured-description {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: var(--rw-home-muted);
    font-size: 14px;
    line-height: 1.72;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

body.rw-home-page .homepage-featured-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin: 0 0 22px;
}

body.rw-home-page .homepage-featured-chip {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.15);
    border-radius: 13px;
    color: var(--rw-home-ink);
    background: rgba(var(--featured-accent-rgb), 0.052);
    box-shadow: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

body.rw-home-page .homepage-featured-chip:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

body.rw-home-page .homepage-featured-actions {
    display: flex;
    width: 100%;
    margin-top: auto;
}

body.rw-home-page .homepage-featured-actions .trg-btn-secondary {
    width: 100%;
    min-height: 48px;
    border-color: rgba(var(--featured-accent-rgb), 0.24);
    color: rgba(var(--featured-accent-rgb), 1);
    background: rgba(var(--featured-accent-rgb), 0.07);
    box-shadow: none;
}

body.rw-home-page .homepage-featured-actions .trg-btn-secondary:hover {
    color: #ffffff;
    background: rgba(var(--featured-accent-rgb), 0.95);
}

body.rw-home-page .homepage-featured-preview {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.rw-home-page .homepage-featured-browser {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--featured-accent-rgb), 0.20);
    border-radius: 23px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(25, 43, 70, 0.15);
}

body.rw-home-page .homepage-featured-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(var(--featured-accent-rgb), 0.13);
    background: linear-gradient(135deg, rgba(var(--featured-accent-rgb), 0.075), rgba(8, 124, 255, 0.035));
}

body.rw-home-page .homepage-featured-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f57;
}

body.rw-home-page .homepage-featured-dot:nth-child(2) { background: #febc2e; }
body.rw-home-page .homepage-featured-dot:nth-child(3) { background: #28c840; }

body.rw-home-page .homepage-featured-url {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 5px;
    overflow: hidden;
    color: var(--rw-home-muted);
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.rw-home-page .homepage-featured-live {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #14804a;
    background: rgba(34, 197, 94, 0.10);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.rw-home-page .homepage-featured-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

body.rw-home-page .homepage-featured-frame {
    display: block;
    width: 100%;
    height: 470px;
    border: 0;
    background: #ffffff;
}

body.rw-home-page .homepage-featured-preview-action {
    display: flex;
    justify-content: flex-end;
}

body.rw-home-page .homepage-featured-preview-action .trg-btn-primary {
    min-height: 48px;
    border: 0;
    background: linear-gradient(135deg, rgba(var(--featured-accent-rgb), 1), rgba(var(--featured-accent-rgb), 0.72));
    box-shadow: 0 12px 25px rgba(var(--featured-accent-rgb), 0.19);
}

html[data-theme="dark"] body.rw-home-page .homepage-featured-card {
    background:
        radial-gradient(circle at 7% 5%, rgba(var(--featured-accent-rgb), 0.18), transparent 30%),
        linear-gradient(145deg, rgba(28, 40, 62, 0.98), rgba(20, 29, 46, 0.94));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.rw-home-page .homepage-featured-copy {
    background: rgba(20, 29, 46, 0.72);
}

html[data-theme="dark"] body.rw-home-page .homepage-featured-carousel-controls,
html[data-theme="dark"] body.rw-home-page .homepage-featured-browser-bar {
    background-color: rgba(24, 34, 53, 0.86);
}

@media (max-width: 1020px) {
    body.rw-home-page .homepage-featured-card {
        grid-template-columns: 1fr;
    }

    body.rw-home-page .homepage-featured-copy {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 22px;
    }

    body.rw-home-page .homepage-featured-logo-wrap {
        grid-row: 1 / 7;
    }

    body.rw-home-page .homepage-featured-kicker,
    body.rw-home-page .homepage-featured-copy h3,
    body.rw-home-page .homepage-featured-subtitle,
    body.rw-home-page .homepage-featured-description,
    body.rw-home-page .homepage-featured-meta,
    body.rw-home-page .homepage-featured-actions {
        grid-column: 2;
    }
}

@media (max-width: 767px) {
    body.rw-home-page .homepage-featured-design {
        padding: 62px 0 48px;
    }

    body.rw-home-page .homepage-featured-shell {
        padding: 17px;
        border-radius: 25px;
    }

    body.rw-home-page .homepage-featured-topbar {
        display: grid;
        gap: 18px;
        margin-bottom: 20px;
        text-align: center;
    }

    body.rw-home-page .homepage-featured-heading-kicker {
        margin-right: auto;
        margin-left: auto;
    }

    body.rw-home-page .homepage-featured-heading h2 {
        font-size: clamp(29px, 9vw, 38px);
    }

    body.rw-home-page .homepage-featured-heading p {
        font-size: 14px;
    }

    body.rw-home-page .homepage-featured-carousel-controls {
        justify-self: center;
    }

    body.rw-home-page .homepage-featured-card {
        display: grid;
        gap: 14px;
        padding: 11px;
        border-radius: 23px;
    }

    body.rw-home-page .homepage-featured-copy {
        display: flex;
        padding: 20px;
        border-radius: 19px;
    }

    body.rw-home-page .homepage-featured-logo-wrap {
        width: 92px;
        height: 92px;
        margin-bottom: 17px;
        border-radius: 20px;
    }

    body.rw-home-page .homepage-featured-copy h3 {
        font-size: clamp(25px, 8vw, 32px);
    }

    body.rw-home-page .homepage-featured-description {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }

    body.rw-home-page .homepage-featured-meta {
        grid-template-columns: 1fr;
    }

    body.rw-home-page .homepage-featured-browser {
        border-radius: 19px;
    }

    body.rw-home-page .homepage-featured-frame {
        height: 400px;
    }

    body.rw-home-page .homepage-featured-preview-action,
    body.rw-home-page .homepage-featured-preview-action .trg-btn-primary {
        width: 100%;
    }

    body.rw-home-page .homepage-featured-live {
        display: none;
    }
}

@media (max-width: 360px) {
    body.rw-home-page .homepage-featured-shell {
        padding: 13px;
    }

    body.rw-home-page .homepage-featured-copy {
        padding: 18px 16px;
    }

    body.rw-home-page .homepage-featured-frame {
        height: 350px;
    }

    body.rw-home-page .homepage-featured-slide-indicator {
        min-width: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.rw-home-page .homepage-featured-shell,
    body.rw-home-page .homepage-featured-card,
    body.rw-home-page .homepage-featured-nav {
        transition: none;
    }
}
/* Core service hub: crawlable, intent-focused links shared by desktop and mobile homepages. */
.rw-home-core-services {
    position: relative;
    padding-top: clamp(72px, 8vw, 112px);
    padding-bottom: clamp(72px, 8vw, 112px);
    background:
        radial-gradient(circle at 88% 12%, rgba(76, 201, 255, 0.15), transparent 26rem),
        linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(236, 245, 255, 0.92));
}

.rw-home-core-services-heading {
    max-width: 980px;
    margin-bottom: 34px;
}

@media (min-width: 901px) {
    .rw-home-core-services-heading .rw-home-title {
        white-space: nowrap;
    }
}

.rw-home-core-services-heading p {
    max-width: 760px;
}

.rw-home-core-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 26px);
    max-width: 980px;
    margin-inline: auto;
}

.rw-home-core-service-card {
    position: relative;
    min-width: 0;
    margin: 0;
}

.rw-home-core-service-link {
    position: relative;
    isolation: isolate;
    height: clamp(280px, 29vw, 350px);
    display: block;
    overflow: hidden;
    color: #fff;
    background: #14213a;
    border: 1px solid rgba(66, 85, 114, 0.42);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.17);
    text-decoration: none;
    transform: translateZ(0);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.rw-home-core-service-trigger {
    width: 100%;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.rw-home-core-service-link::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, rgba(4, 12, 28, 0.06) 12%, rgba(4, 12, 28, 0.25) 48%, rgba(4, 12, 28, 0.96) 100%);
    pointer-events: none;
}

.rw-home-core-service-link::after {
    position: absolute;
    inset: 0;
    z-index: 4;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

.rw-home-core-service-link > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 440ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.rw-home-core-service-card--design .rw-home-core-service-link > img {
    object-position: 52% 52%;
}

.rw-home-core-service-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(20px, 3vw, 28px);
}

.rw-home-core-service-kicker {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rw-home-core-service-content strong {
    max-width: calc(100% - 38px);
    color: #fff;
    font-size: clamp(24px, 2.7vw, 34px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.rw-home-core-service-price {
    width: fit-content;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 9px 14px;
    color: #075db8;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(3, 10, 24, 0.24);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rw-home-core-service-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(8, 125, 241, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(3, 10, 24, 0.22);
    font-size: 19px;
    font-weight: 900;
    transition: background 220ms ease, transform 220ms ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rw-home-core-service-card--design {
    height: clamp(280px, 29vw, 350px);
}

.rw-home-core-service-card--design .rw-home-core-service-trigger {
    height: 100%;
    transition: opacity 190ms ease, transform 220ms ease;
}

.rw-home-service-choices {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 9px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: linear-gradient(145deg, rgba(239, 248, 255, 0.98), rgba(218, 238, 255, 0.98));
    border: 1px solid rgba(8, 125, 241, 0.3);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 190ms ease, transform 220ms ease, visibility 190ms ease;
}

.rw-home-core-service-card--design.is-choices-open .rw-home-core-service-trigger {
    opacity: 0;
    pointer-events: none;
}

.rw-home-core-service-card--design.is-choices-open .rw-home-service-choices {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.rw-home-core-service-card--design.is-choices-open .rw-home-core-service-arrow {
    transform: rotate(45deg);
}

.rw-home-service-choice {
    position: relative;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: #13233c;
    border: 1px solid rgba(13, 87, 165, 0.24);
    border-radius: 16px;
    box-shadow: 0 9px 22px rgba(10, 35, 66, 0.16);
    text-decoration: none;
    transform: translateZ(0);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rw-home-service-choice::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, rgba(3, 12, 29, 0.02) 25%, rgba(3, 12, 29, 0.92) 100%);
    pointer-events: none;
}

.rw-home-service-choice img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 320ms ease;
}

.rw-home-service-choice span {
    position: absolute;
    right: 10px;
    bottom: 13px;
    left: 10px;
    z-index: 2;
    color: #fff;
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.rw-home-service-choice:focus-visible {
    outline: 3px solid #087df1;
    outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
    .rw-home-core-service-link:hover {
        border-color: rgba(8, 125, 241, 0.75);
        box-shadow: 0 24px 52px rgba(15, 23, 42, 0.23);
        transform: translateY(-4px);
    }

    .rw-home-core-service-link:hover > img {
        transform: scale(1.055);
        filter: saturate(1.05) contrast(1.02);
    }

    .rw-home-core-service-link:hover .rw-home-core-service-arrow {
        background: #087df1;
        transform: translateX(2px);
    }

    .rw-home-service-choice:hover {
        border-color: rgba(8, 125, 241, 0.78);
        box-shadow: 0 14px 28px rgba(10, 35, 66, 0.24);
        transform: translateY(-2px);
    }

    .rw-home-service-choice:hover img {
        transform: scale(1.055);
    }
}

.rw-home-core-service-link:focus-visible {
    outline: 3px solid #63c7ff;
    outline-offset: 4px;
}

html[data-theme="dark"] .rw-home-core-services {
    background:
        radial-gradient(circle at 88% 12%, rgba(43, 145, 255, 0.13), transparent 26rem),
        linear-gradient(180deg, #091421, #0c1929);
}

html[data-theme="dark"] .rw-home-core-service-link {
    border-color: rgba(126, 185, 247, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .rw-home-service-choices {
    background: linear-gradient(145deg, rgba(12, 29, 50, 0.99), rgba(9, 22, 39, 0.99));
    border-color: rgba(88, 170, 255, 0.34);
}

@media (max-width: 900px) {
    .rw-home-core-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rw-home-core-services {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .rw-home-core-service-card {
        width: 100%;
    }

    .rw-home-core-service-link {
        height: clamp(260px, 82vw, 330px);
        border-radius: 20px;
    }

    .rw-home-core-service-card--design {
        height: clamp(260px, 82vw, 330px);
    }

    .rw-home-service-choices {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 7px;
        padding: 8px;
        border-radius: 20px;
    }

    .rw-home-service-choice {
        border-radius: 13px;
    }

    .rw-home-service-choice img {
        object-position: center 46%;
    }

    .rw-home-service-choice span {
        bottom: 10px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-home-core-service-link,
    .rw-home-core-service-link > img,
    .rw-home-core-service-arrow,
    .rw-home-core-service-trigger,
    .rw-home-service-choices,
    .rw-home-service-choice,
    .rw-home-service-choice img {
        transition: none;
    }
}

/* Featured client showcase: open editorial copy beside one premium live-preview card. */
body.rw-home-page .homepage-featured-design {
    padding: clamp(78px, 8vw, 116px) 0 clamp(68px, 7vw, 100px);
}

body.rw-home-page .homepage-featured-shell {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.rw-home-page .homepage-featured-shell::before {
    display: none;
}

body.rw-home-page .homepage-featured-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2vw, 26px);
    margin-bottom: clamp(34px, 4vw, 52px);
    text-align: center;
}

body.rw-home-page .homepage-featured-heading {
    flex: 0 1 auto;
    width: auto;
    max-width: 680px;
    margin-inline: 0;
}

body.rw-home-page .homepage-featured-heading-kicker {
    margin-right: auto;
    margin-left: auto;
}

body.rw-home-page .homepage-featured-card {
    grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
    align-items: center;
    column-gap: clamp(42px, 6vw, 86px);
    row-gap: clamp(26px, 3vw, 38px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.rw-home-page .homepage-featured-card::before {
    display: none;
}

body.rw-home-page .homepage-featured-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin-bottom: 22px;
}

body.rw-home-page .homepage-featured-identity-copy {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

body.rw-home-page .homepage-featured-identity .homepage-featured-project-title {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    overflow: visible;
    color: var(--rw-home-ink);
    font-size: clamp(17px, 1.45vw, 23px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-align: left;
    text-overflow: clip;
    white-space: nowrap;
}

body.rw-home-page .homepage-featured-identity .homepage-featured-subtitle {
    max-width: 100%;
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

body.rw-home-page .homepage-featured-copy {
    display: flex;
    min-width: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.rw-home-page .homepage-featured-logo-wrap {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 9px;
    border-radius: 19px;
    box-shadow: 0 14px 32px rgba(26, 43, 70, 0.12);
}

body.rw-home-page .homepage-featured-description {
    max-width: 52ch;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.75;
    -webkit-line-clamp: 5;
}

body.rw-home-page .homepage-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

body.rw-home-page .homepage-featured-chip,
body.rw-home-page .homepage-featured-chip:last-child:nth-child(odd) {
    flex: 0 1 auto;
    min-height: 0;
    padding: 8px 11px;
    grid-column: auto;
    border-radius: 999px;
}

body.rw-home-page .homepage-featured-actions {
    width: auto;
    margin-top: 0;
}

body.rw-home-page .homepage-featured-actions .trg-btn-secondary {
    width: auto;
    min-height: 48px;
    padding-inline: 22px;
}

body.rw-home-page .homepage-featured-preview {
    gap: 18px;
}

body.rw-home-page .homepage-featured-browser {
    border-radius: 27px;
    box-shadow: 0 26px 62px rgba(25, 43, 70, 0.18);
}

body.rw-home-page .homepage-featured-browser-bar {
    min-height: 50px;
    padding-inline: 17px;
}

body.rw-home-page .homepage-featured-frame {
    height: clamp(440px, 39vw, 530px);
}

html[data-theme="dark"] body.rw-home-page .homepage-featured-card,
html[data-theme="dark"] body.rw-home-page .homepage-featured-copy {
    background: transparent;
    box-shadow: none;
}

@media (max-width: 1040px) {
    body.rw-home-page .homepage-featured-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

}

@media (max-width: 767px) {
    body.rw-home-page .homepage-featured-design {
        padding: 64px 0 54px;
    }

    body.rw-home-page .homepage-featured-shell {
        padding: 0;
        border-radius: 0;
    }

    body.rw-home-page .homepage-featured-topbar {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 34px;
        text-align: center;
    }

    body.rw-home-page .homepage-featured-heading {
        flex-basis: auto;
    }

    body.rw-home-page .homepage-featured-heading-kicker {
        margin-right: auto;
        margin-left: auto;
    }

    body.rw-home-page .homepage-featured-carousel-controls {
        justify-self: center;
    }

    body.rw-home-page .homepage-featured-card {
        gap: 30px;
        padding: 0;
        border-radius: 0;
    }

    body.rw-home-page .homepage-featured-copy {
        padding: 0;
        border-radius: 0;
    }

    body.rw-home-page .homepage-featured-logo-wrap {
        width: 64px;
        height: 64px;
        margin: 0;
        border-radius: 17px;
    }

    body.rw-home-page .homepage-featured-identity {
        gap: 13px;
        margin-bottom: 19px;
    }

    body.rw-home-page .homepage-featured-identity .homepage-featured-project-title {
        overflow: visible;
        font-size: clamp(20px, 6vw, 26px);
        text-overflow: clip;
        white-space: normal;
    }

    body.rw-home-page .homepage-featured-description {
        font-size: 14px;
        -webkit-line-clamp: 5;
    }

    body.rw-home-page .homepage-featured-meta {
        display: flex;
    }

    body.rw-home-page .homepage-featured-browser {
        border-radius: 21px;
    }

    body.rw-home-page .homepage-featured-frame {
        height: clamp(340px, 108vw, 440px);
    }
}

@media (max-width: 360px) {
    body.rw-home-page .homepage-featured-shell,
    body.rw-home-page .homepage-featured-copy {
        padding: 0;
    }

    body.rw-home-page .homepage-featured-frame {
        height: 330px;
    }

    body.rw-home-page .homepage-featured-identity {
        align-items: flex-start;
    }

    body.rw-home-page .homepage-featured-identity .homepage-featured-project-title {
        display: -webkit-box;
        overflow: hidden;
        font-size: 21px;
        line-height: 1.12;
        text-overflow: clip;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}
