﻿/*
 * RND Lab custom styles.
 *
 * Site-specific CSS for the static RND Lab site.
 */

/*
 * Project Showcase
 *
 * These styles are scoped to the reusable project showcase templates.
 * The section is not visible until templates/sections/project-showcase.php
 * is explicitly included in a page or template.
 */

.rndlab-page-home {
    --rndlab-page-width: min(1680px, 96vw);
    --rndlab-page-gutter: clamp(16px, 2vw, 28px);
    background: #080b0f;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.rndlab-page-home [data-vertical-spacing*="top:bottom"],
.rndlab-page-home .entry-content > .wp-block-group,
.rndlab-page-home [data-rndlab-homepage-showcase="project-showcase"] {
    max-width: var(--rndlab-page-width);
    width: var(--rndlab-page-width);
}

.rndlab-page-home .site-main,
.rndlab-page-home .entry-content,
.rndlab-page-home .entry-content > .wp-block-group,
.rndlab-page-home [data-rndlab-homepage-showcase="project-showcase"] {
    margin-left: auto;
    margin-right: auto;
}

.rndlab-page-home .entry-content > .wp-block-group {
    padding-left: var(--rndlab-page-gutter);
    padding-right: var(--rndlab-page-gutter);
}

.rndlab-page-home .entry-content > .wp-block-group > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.rndlab-page-home .rndlab-home-hero > *,
.rndlab-page-home .rndlab-home-services > *,
.rndlab-page-home .rndlab-home-about > *,
.rndlab-page-home .rndlab-home-contact > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.rndlab-page-home .rndlab-home-hero > *,
.rndlab-page-home .rndlab-home-services > *,
.rndlab-page-home .rndlab-home-about > *,
.rndlab-page-home .rndlab-home-contact > * {
    max-width: none;
}

.rndlab-page-home .rndlab-home-hero h1 {
    font-size: clamp(1.25rem, 3.5vw, 5rem);
    line-height: 1.12;
    margin-top: 0 !important;
    max-width: 1280px;
}

.rndlab-page-home .rndlab-home-hero p {
    font-size: clamp(1.25rem, 1.5vw, 5rem);
    line-height: 1.55;
}

.rndlab-page-home .rndlab-home-hero > * {
    transform: translateX(-10px);
}

.rndlab-page-home .rndlab-home-hero-video-section {
    align-items: center;
    height: 100svh;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.rndlab-page-home .rndlab-home-hero-video-section::before {
    background:
        linear-gradient(90deg, rgba(8, 11, 15, 0.86) 0%, rgba(8, 11, 15, 0.52) 44%, rgba(8, 11, 15, 0.18) 100%),
        linear-gradient(180deg, rgba(8, 11, 15, 0.18) 0%, rgba(8, 11, 15, 0.42) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.rndlab-page-home .rndlab-home-hero-video {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: -2;
}

.rndlab-project-showcase {
    --rndlab-showcase-bg: #080b0f;
    --rndlab-showcase-panel: #101820;
    --rndlab-showcase-panel-soft: #14202a;
    --rndlab-showcase-line: rgba(125, 154, 173, 0.28);
    --rndlab-showcase-text: #f3f7fa;
    --rndlab-showcase-muted: #aebbc5;
    --rndlab-showcase-accent: #e04646;
    --rndlab-showcase-warn: #e0b45f;
    --rndlab-card-width: 100vw;
    --rndlab-card-gap: clamp(20px, 3vw, 36px);
    background:
        linear-gradient(135deg, rgba(224, 70, 70, 0.16), transparent 38%),
        linear-gradient(180deg, #0b1117 0%, var(--rndlab-showcase-bg) 100%);
    color: var(--rndlab-showcase-text);
    overflow: hidden;
    height: 100svh;
    min-height: 100svh;
    padding: clamp(14px, 2vw, 28px) 0 clamp(36px, 5vw, 78px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

[data-rndlab-homepage-showcase="project-showcase"] .rndlab-project-showcase {
    margin-top: 0;
}

.rndlab-project-showcase__inner {
    column-gap: clamp(20px, 4vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
    row-gap: 6px;
    margin: 0 auto;
    max-width: var(--rndlab-page-width, min(1680px, 96vw));
    min-height: calc(100svh - clamp(50px, 7vw, 106px));
    padding: 0 var(--rndlab-page-gutter, clamp(16px, 2vw, 28px));
}

.rndlab-project-showcase__header {
    align-items: start;
    align-self: end;
    display: block;
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin-bottom: 0;
}

.rndlab-project-showcase__eyebrow {
    color: var(--rndlab-showcase-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.rndlab-project-showcase__title {
    color: #f3c34f;
    font-size: clamp(1.45rem, 2.3vw, 2.35rem);
    line-height: 1.02;
    margin: 0;
    max-width: 640px;
}

.rndlab-project-showcase__subtitle {
    color: var(--rndlab-showcase-muted);
    font-size: clamp(0.84rem, 0.95vw, 0.96rem);
    line-height: 1.45;
    margin: clamp(6px, 0.9vw, 12px) 0 0;
    max-width: 680px;
    padding: 0;
}

.rndlab-project-showcase__scroller {
    display: contents;
}

.rndlab-project-showcase__controls {
    align-self: center;
    display: flex;
    gap: 10px;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    margin: 0;
    min-height: 42px;
}

.rndlab-project-showcase__control {
    align-items: center;
    appearance: none;
    background: rgba(20, 32, 42, 0.92);
    border: 1px solid var(--rndlab-showcase-line);
    border-radius: 999px;
    color: var(--rndlab-showcase-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 500;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
    width: 42px;
}

.rndlab-project-showcase__control:hover,
.rndlab-project-showcase__control:focus-visible {
    background: var(--rndlab-showcase-accent);
    border-color: var(--rndlab-showcase-accent);
    color: #06110e;
    outline: none;
}

.rndlab-project-showcase__control:disabled {
    cursor: default;
    opacity: 0.36;
}

.rndlab-project-showcase__control span {
    display: block;
    transform: translateY(-2px);
}

.rndlab-project-showcase__viewport {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: calc((100vw - var(--rndlab-page-width, min(1680px, 96vw))) / -2);
    margin-right: calc((100vw - var(--rndlab-page-width, min(1680px, 96vw))) / -2);
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    scroll-padding-inline: var(--rndlab-page-gutter, clamp(16px, 2vw, 28px));
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(224, 70, 70, 0.52) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.rndlab-project-showcase__viewport:focus-visible {
    outline: 2px solid rgba(224, 70, 70, 0.72);
    outline-offset: 4px;
}

.rndlab-project-showcase__viewport::-webkit-scrollbar {
    height: 12px;
}

.rndlab-project-showcase__viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.rndlab-project-showcase__viewport::-webkit-scrollbar-thumb {
    background: rgba(224, 70, 70, 0.62);
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.rndlab-project-showcase__viewport::before,
.rndlab-project-showcase__viewport::after {
    display: none;
}

.rndlab-project-showcase__viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--rndlab-showcase-bg), transparent);
}

.rndlab-project-showcase__viewport::after {
    right: 0;
    background: linear-gradient(270deg, var(--rndlab-showcase-bg), transparent);
}

.rndlab-project-showcase__track {
    align-items: stretch;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap !important;
    gap: 0;
    max-width: none;
    min-width: max-content;
    padding: 0;
    white-space: normal;
    width: max-content;
}

.rndlab-project-card {
    background:
        linear-gradient(90deg, rgba(7, 12, 17, 0.88) 0%, rgba(7, 12, 17, 0.62) 42%, rgba(7, 12, 17, 0.2) 100%),
        var(--rndlab-showcase-panel);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex: 0 0 var(--rndlab-card-width) !important;
    flex-direction: column;
    max-width: var(--rndlab-card-width);
    min-height: calc(100svh - clamp(116px, 13vw, 178px));
    min-width: var(--rndlab-card-width);
    overflow: hidden;
    padding: clamp(28px, 4vw, 76px);
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    justify-content: flex-end;
}

.rndlab-project-card > *:not(.rndlab-project-card__media) {
    max-width: min(720px, 58%);
    position: relative;
    z-index: 2;
}

.rndlab-project-card::before {
    background:
        linear-gradient(90deg, rgba(7, 12, 17, 0.86) 0%, rgba(7, 12, 17, 0.58) 38%, rgba(7, 12, 17, 0.16) 72%, rgba(7, 12, 17, 0.02) 100%),
        linear-gradient(180deg, rgba(7, 12, 17, 0.1) 0%, rgba(7, 12, 17, 0.74) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.rndlab-project-card__media {
    background: #05080b;
    inset: 0;
    margin: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.rndlab-project-card__media::after {
    display: none;
}

.rndlab-project-card__media img {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.rndlab-project-card__meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(8px, 1.2vw, 16px);
}

.rndlab-project-card__number {
    color: var(--rndlab-showcase-accent);
    font-family: var(--rnd-project-number-font, ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace);
    font-size: 0.82rem;
    font-weight: 700;
}

.rndlab-project-card__category {
    color: var(--rndlab-showcase-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.rndlab-project-card__title {
    color: var(--rndlab-showcase-text);
    font-size: clamp(2rem, 4.6vw, 5.8rem);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 clamp(12px, 1.5vw, 22px);
}

.rndlab-project-card__description {
    color: #eef5f8;
    font-size: clamp(1rem, 1.25vw, 1.35rem);
    line-height: 1.42;
    margin: 0 0 clamp(18px, 2vw, 30px);
}

.rndlab-project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: auto 0 0;
    padding: 0;
}

.rndlab-project-card__tags li {
    background: var(--rndlab-showcase-panel-soft);
    border: 1px solid rgba(224, 70, 70, 0.24);
    border-radius: 999px;
    color: var(--rndlab-showcase-text);
    font-size: 0.7rem;
    line-height: 1;
    padding: 8px 10px;
}

@media (max-width: 767px) {
    .rndlab-project-showcase {
        padding: 22px 0 54px;
    }

    [data-rndlab-homepage-showcase="project-showcase"] .rndlab-project-showcase {
        margin-top: 20px;
    }

    .rndlab-project-showcase__inner {
        display: block;
    }

    .rndlab-project-showcase__controls {
        justify-content: flex-start;
        margin: 18px 0 12px;
    }

    .rndlab-project-showcase__header {
        display: block;
    }

    .rndlab-project-showcase__subtitle {
        margin-top: 14px;
    }

    .rndlab-project-showcase__viewport {
        margin: 0 calc(clamp(18px, 4vw, 40px) * -1);
    }

    .rndlab-project-showcase__viewport::before,
    .rndlab-project-showcase__viewport::after {
        display: none;
    }

    .rndlab-project-card {
        --rndlab-card-width: 100vw;
        flex-basis: var(--rndlab-card-width);
        min-height: calc(100svh - 170px);
        padding: 28px 24px;
    }

    .rndlab-project-card > *:not(.rndlab-project-card__media) {
        max-width: 100%;
    }

    .rndlab-project-card__media {
        inset: 0;
        height: 100%;
        width: 100%;
    }

    .rndlab-project-card__media::after {
        display: none;
    }

    .rndlab-project-card__title {
        font-size: clamp(2rem, 11vw, 3.6rem);
    }
}

/* Vertical Services experience */
html:has(.rndlab-page-service) {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.rndlab-page-service {
    --rnd-service-accent: #d70a64;
    --rnd-service-dark: #10151b;
    --rnd-service-ink: #171c23;
    --rnd-service-muted: #5d6671;
    background: #dfe3e8 !important;
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.rndlab-page-service .site-main,
.rndlab-page-service .rnd-container-full,
.rndlab-page-service #post-service,
.rndlab-page-service .rnd-services {
    margin: 0;
    max-width: none;
    overflow: visible;
    width: 100vw;
}

.rndlab-page-service .rnd-site-header {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.rnd-services__rail {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: fixed;
    right: clamp(10px, 1.4vw, 24px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.rnd-services__rail a {
    align-items: center;
    color: transparent;
    display: flex;
    height: 18px;
    justify-content: flex-end;
    text-decoration: none;
    width: 32px;
}

.rnd-services__rail a::after {
    background: rgba(23, 28, 35, 0.28);
    content: "";
    height: 2px;
    transition: background-color 160ms ease, width 160ms ease;
    width: 12px;
}

.rnd-services__rail a:hover::after,
.rnd-services__rail a:focus-visible::after,
.rnd-services__rail a.is-active::after {
    background: var(--rnd-service-accent);
    width: 28px;
}

.rnd-services__rail span {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.rnd-service-panel {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(215, 10, 100, 0.08) 0 4px, transparent 4px),
        linear-gradient(145deg, #f7f8fa 0%, #d8dde4 100%);
    box-sizing: border-box;
    color: var(--rnd-service-ink);
    display: flex;
    height: 100svh;
    isolation: isolate;
    min-height: 680px;
    overflow: hidden;
    padding: clamp(44px, 6vh, 72px) max(var(--rnd-content-inline, clamp(36px, 6vw, 120px)), 7vw);
    position: relative;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.rnd-service-panel:nth-of-type(odd):not(.rnd-service-hero):not(.rnd-service-final) {
    background:
        linear-gradient(90deg, rgba(24, 133, 121, 0.09) 0 4px, transparent 4px),
        linear-gradient(145deg, #e9edf1 0%, #ffffff 100%);
}

.rnd-service-panel::before {
    background-image:
        linear-gradient(rgba(23, 28, 35, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 28, 35, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.rnd-service-panel__inner {
    margin: 0;
    max-width: 1180px;
    position: relative;
    width: min(1180px, 88%);
    z-index: 2;
}

.rnd-service-panel--with-visual .rnd-service-panel__inner {
    max-width: 680px;
    width: 48%;
}

.rnd-service-panel--visual-left {
    justify-content: flex-end;
}

.rnd-service-panel--visual-left .rnd-service-panel__inner {
    margin-left: auto;
}

.rnd-service-panel__visual {
    aspect-ratio: 4 / 3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 100%);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 46%;
    z-index: 1;
}

.rnd-service-panel__visual--emc {
    background-image: url("../images/services/emc-compliance.png");
}

.rnd-service-panel__visual--consultancy {
    aspect-ratio: 4 / 3;
    background-image: url("../images/services/technical-consultancy.png");
}

.rnd-service-panel__visual--embedded {
    background-image: url("../images/services/embedded-systems.png");
}

.rnd-service-panel__visual--measurement {
    background-image: url("../images/services/measurement-systems.png");
}

.rnd-service-panel__visual--communication {
    background-image: url("../images/services/industrial-communication.png");
}

.rnd-service-panel__visual--data-logging {
    aspect-ratio: 4 / 3;
    background-image: url("../images/services/data-logging.png");
}

.rnd-service-panel__visual--user-interfaces {
    aspect-ratio: 4 / 3;
    background-image: url("../images/services/user-interfaces.png");
}

.rnd-service-panel__visual--power-electronics {
    aspect-ratio: 4 / 3;
    background-image: url("../images/services/power-electronics.png");
}

.rnd-service-panel__visual--electric-vehicles {
    aspect-ratio: 4 / 3;
    background-image: url("../images/services/electric-vehicles.png");
}

.rnd-service-panel__visual--testing-calibration {
    aspect-ratio: 4 / 3;
    background-image: url("../images/services/testing-calibration.png");
}

.rnd-service-panel__visual--custom-products {
    aspect-ratio: 4 / 3;
    background-image: url("../images/services/custom-products.png");
}

.rnd-service-panel__visual--product-development {
    aspect-ratio: 1452 / 1083;
    background-image: url("../images/services/product-development.png");
}

.rnd-service-panel--visual-left .rnd-service-panel__visual {
    left: 0;
    mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
    right: auto;
}

.rnd-service-panel--visual-left .rnd-service-panel__number {
    left: 4vw;
    right: auto;
}

.rnd-service-panel__eyebrow {
    color: var(--rnd-service-accent) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.rnd-service-panel h1,
.rnd-service-panel h2 {
    color: var(--rnd-service-ink) !important;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
    max-width: 1000px;
}

.rnd-service-panel h1 {
    font-size: 4.6rem;
    max-width: 1120px;
}

.rnd-service-panel p {
    color: var(--rnd-service-muted) !important;
    font-size: 1rem;
    line-height: 1.55;
    margin: 12px 0 0;
    max-width: 900px;
}

.rnd-service-panel .rnd-service-panel__lead {
    color: #2f3741 !important;
    font-size: 1.16rem;
    line-height: 1.5;
    margin-top: 20px;
}

.rnd-service-panel ul {
    display: grid;
    gap: 8px 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 22px 0 0;
    max-width: 920px;
    padding: 0;
}

.rnd-service-panel li {
    color: #353d47;
    font-size: 0.94rem;
    line-height: 1.35;
    padding-left: 18px;
    position: relative;
}

.rnd-service-panel li::before {
    background: var(--rnd-service-accent);
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    top: 0.65em;
    width: 8px;
}

.rnd-service-panel__number {
    color: rgba(23, 28, 35, 0.055);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 18rem;
    font-weight: 900;
    line-height: 0.8;
    pointer-events: none;
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.rnd-service-button {
    align-items: center;
    background: var(--rnd-service-dark);
    border: 1px solid var(--rnd-service-dark);
    border-radius: 4px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 16px;
    justify-content: center;
    margin-top: 26px;
    min-height: 50px;
    padding: 0 22px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rnd-service-button:hover,
.rnd-service-button:focus-visible {
    background: var(--rnd-service-accent);
    border-color: var(--rnd-service-accent);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.rnd-service-button span {
    font-size: 1.15rem;
}

.rnd-service-note {
    border-left: 3px solid var(--rnd-service-accent);
    color: #424b56;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 18px;
    max-width: 920px;
    padding: 8px 14px;
}

.rnd-service-hero {
    background:
        linear-gradient(90deg, rgba(248, 251, 253, 0.98) 0%, rgba(248, 251, 253, 0.94) 38%, rgba(248, 251, 253, 0.70) 56%, rgba(248, 251, 253, 0.12) 78%, rgba(248, 251, 253, 0.04) 100%),
        url("../images/services/services-hero-background.png") center / cover no-repeat;
    color: var(--rnd-service-ink);
}

.rnd-service-hero .rnd-service-panel__inner {
    max-width: 760px;
}

.rnd-service-hero h1 {
    font-size: 3.8rem;
}

.rnd-service-hero p {
    line-height: 1.45;
    margin-top: 10px;
}

.rnd-service-hero .rnd-service-panel__lead {
    margin-top: 16px;
}

.rnd-service-hero .rnd-service-button {
    margin-top: 20px;
}

.rnd-service-hero::before {
    display: none;
}

.rndlab-page-service .rnd-service-final h2,
.rndlab-page-service .rnd-service-final p {
    color: #ffffff !important;
}

.rndlab-page-service .rnd-service-final .rnd-service-panel__lead {
    color: rgba(255, 255, 255, 0.88) !important;
}

.rndlab-page-service .rnd-service-final p {
    color: rgba(255, 255, 255, 0.68) !important;
}

.rndlab-page-service .rnd-service-hero h1 {
    color: var(--rnd-service-ink) !important;
}

.rndlab-page-service .rnd-service-hero .rnd-service-panel__lead {
    color: rgba(23, 28, 35, 0.88) !important;
}

.rndlab-page-service .rnd-service-hero p {
    color: rgba(23, 28, 35, 0.74) !important;
}

.rnd-service-hero .rnd-service-button,
.rnd-service-final .rnd-service-button {
    background: var(--rnd-service-accent);
    border-color: var(--rnd-service-accent);
}

.rnd-service-hero .rnd-service-button:hover,
.rnd-service-hero .rnd-service-button:focus-visible,
.rnd-service-final .rnd-service-button:hover,
.rnd-service-final .rnd-service-button:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--rnd-service-dark) !important;
}

.rnd-service-scroll-cue {
    bottom: 30px;
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 0.78rem;
    left: max(var(--rnd-content-inline, clamp(36px, 6vw, 120px)), 7vw);
    position: absolute;
    text-decoration: none;
    z-index: 2;
}

.rnd-service-scroll-cue span {
    margin-left: 8px;
}

.rnd-service-hero .rnd-service-scroll-cue {
    color: rgba(23, 28, 35, 0.72) !important;
}

.rnd-service-final {
    background: url("/shared/site-theme/images/process-journey-03-services.png") center center / cover no-repeat;
}

.rnd-service-final::before {
    background-image: none;
}

.rnd-service-final .rnd-service-panel__inner {
    max-width: 780px;
}

.rnd-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rnd-service-button--secondary {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.rndlab-page-service .rnd-site-footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (max-width: 1100px) {
    .rnd-service-panel h1 {
        font-size: 3.4rem;
    }

    .rnd-service-panel h2 {
        font-size: 2.7rem;
    }

    .rnd-service-panel__number {
        font-size: 13rem;
    }

    .rnd-service-panel--with-visual .rnd-service-panel__inner {
        width: 54%;
    }

    .rnd-service-panel__visual {
        opacity: 0.72;
        width: 48%;
    }
}

@media (max-height: 780px) and (min-width: 768px) {
    .rnd-service-panel {
        min-height: 620px;
        padding-bottom: 30px;
        padding-top: 30px;
    }

    .rnd-service-panel h1 {
        font-size: 3.4rem;
    }

    .rnd-service-panel h2 {
        font-size: 2.45rem;
    }

    .rnd-service-panel p {
        line-height: 1.4;
        margin-top: 8px;
    }

    .rnd-service-panel .rnd-service-panel__lead {
        font-size: 1.04rem;
        margin-top: 14px;
    }

    .rnd-service-panel ul {
        gap: 5px 26px;
        margin-top: 14px;
    }

    .rnd-service-button {
        margin-top: 18px;
        min-height: 44px;
    }

    .rnd-service-note {
        margin-top: 12px;
        padding-bottom: 5px;
        padding-top: 5px;
    }
}

@media (max-width: 767px) {
    html:has(.rndlab-page-service) {
        scroll-snap-type: none;
    }

    .rnd-services__rail {
        display: none;
    }

    .rnd-service-panel {
        height: auto;
        min-height: 0;
        overflow: hidden;
        padding: 68px 24px;
        scroll-snap-align: none;
    }

    .rnd-service-hero {
        background:
            linear-gradient(180deg, rgba(248, 251, 253, 0.96) 0%, rgba(248, 251, 253, 0.91) 72%, rgba(248, 251, 253, 0.74) 100%),
            url("../images/services/services-hero-background.png") 48% center / cover no-repeat;
    }

    .rnd-service-panel__inner {
        width: 100%;
    }

    .rnd-service-panel--with-visual {
        align-items: stretch;
        flex-direction: column;
    }

    .rnd-service-panel--visual-left {
        justify-content: flex-start;
    }

    .rnd-service-panel--with-visual .rnd-service-panel__inner {
        margin-left: 0;
        max-width: none;
        width: 100%;
    }

    .rnd-service-panel__visual,
    .rnd-service-panel__visual--consultancy {
        aspect-ratio: 4 / 3;
        margin: 44px -24px -68px;
        mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
        opacity: 1;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: calc(100% + 48px);
    }

    .rnd-service-panel--visual-left .rnd-service-panel__visual {
        left: auto;
        mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
        right: auto;
    }

    .rnd-service-panel__visual--product-development {
        aspect-ratio: 1452 / 1083;
    }

    .rnd-service-panel--visual-left .rnd-service-panel__number {
        left: auto;
        right: -8px;
    }

    .rnd-service-panel h1,
    .rnd-service-panel h2 {
        font-size: 2.35rem;
        overflow-wrap: anywhere;
    }

    .rnd-service-panel p,
    .rnd-service-panel .rnd-service-panel__lead {
        font-size: 1rem;
    }

    .rnd-service-panel ul {
        grid-template-columns: 1fr;
    }

    .rnd-service-panel__number {
        font-size: 9rem;
        right: -8px;
        top: 82px;
        transform: none;
    }

    .rnd-service-button {
        justify-content: space-between;
        width: 100%;
    }

    .rnd-service-actions {
        display: grid;
    }

    .rnd-service-scroll-cue {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.rndlab-page-service) {
        scroll-behavior: auto;
    }

    .rnd-service-button,
    .rnd-services__rail a::after {
        transition: none;
    }
}




