/* ==========================================================================
   Riztor public landing styles
   Palette: near-black navy base, single electric-blue accent
   ========================================================================== */

:root {
    --rz-bg: #05070d;
    --rz-bg-raised: #0a0f1c;
    --rz-card: #0c1220;
    --rz-border: rgba(148, 170, 220, 0.14);
    --rz-blue: #2f7df6;
    --rz-blue-bright: #5a9bff;
    --rz-gold: #d9b45b;
    --rz-text: #eef2f9;
    --rz-muted: #93a0b8;
    --rz-light-bg: #f2f4f8;
    --rz-light-text: #0a0f1c;
    --rz-light-muted: #4a5568;
    /* Motion */
    --rz-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --rz-dur-micro: 160ms;   /* hovers, small state changes */
    --rz-dur-enter: 420ms;   /* reveals, load-ins */
    --rz-stagger: 90ms;      /* per-item delay step */
    --rz-reveal-shift: 18px; /* how far reveals travel */
}

.rz-body {
    background-color: var(--rz-bg);
    color: var(--rz-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Starfield background --------------------------------------------------- */

.rz-starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.rz-body main {
    position: relative;
    z-index: 1;
}

/* --- Shared primitives ---------------------------------------------------- */

.rz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rz-blue-bright);
}

.rz-eyebrow::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: var(--rz-blue);
    opacity: 0.6;
}

.rz-display {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* Industry-page masthead: the RIZTOR wordmark at full presence, with a
   subordinate "for <audience>" qualifier — never a two-word brand name
   (e.g. never "RIZTOR Signs"), since that reads as Riztor operating in
   the trade rather than building software for it. */
.rz-masthead-word {
    display: block;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: var(--rz-text);
}

.rz-masthead-qualifier {
    display: block;
    margin-top: 0.375rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--rz-muted);
}

/* Signs hero visual: an illuminated channel-letter sign panel — outline
   draws in, then its LEDs light up in sequence, then a soft continuous
   glow pulse. Placeholder illustration, not a real product screenshot. */
.rz-signs-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rz-channel-letter {
    width: 100%;
    max-width: 22rem;
    height: auto;
    overflow: visible;
}

.rz-channel-letter-glow {
    transform-origin: 160px 120px;
    animation: rz-letter-pulse 3.2s var(--rz-ease) infinite;
}

.rz-channel-letter-face {
    fill: rgba(47, 125, 246, 0.08);
    opacity: 0;
}

.rz-channel-letter-outline {
    fill: none;
    stroke: var(--rz-blue-bright);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.rz-channel-letter-led {
    fill: var(--rz-gold);
    opacity: 0;
    animation-delay: calc(1.6s + var(--rz-i, 0) * 150ms);
}

.rz-reveal.rz-in .rz-channel-letter-outline {
    animation: rz-letter-draw 1.6s var(--rz-ease) forwards;
}

.rz-reveal.rz-in .rz-channel-letter-face {
    animation: rz-letter-face-in 900ms var(--rz-ease) 1.4s forwards;
}

.rz-reveal.rz-in .rz-channel-letter-led {
    animation-name: rz-led-on;
    animation-duration: 500ms;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

@keyframes rz-letter-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rz-letter-face-in {
    to {
        opacity: 1;
    }
}

@keyframes rz-led-on {
    to {
        opacity: 1;
    }
}

@keyframes rz-letter-pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.06);
    }
}

.rz-accent {
    color: var(--rz-blue-bright);
}

.rz-lead {
    color: var(--rz-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 34rem;
}

.rz-btn-primary {
    --bs-btn-bg: var(--rz-blue);
    --bs-btn-border-color: var(--rz-blue);
    --bs-btn-hover-bg: var(--rz-blue-bright);
    --bs-btn-hover-border-color: var(--rz-blue-bright);
    --bs-btn-active-bg: var(--rz-blue-bright);
    --bs-btn-active-border-color: var(--rz-blue-bright);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rz-btn-ghost {
    --bs-btn-color: var(--rz-text);
    --bs-btn-border-color: rgba(148, 170, 220, 0.35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(148, 170, 220, 0.08);
    --bs-btn-hover-border-color: rgba(148, 170, 220, 0.6);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(148, 170, 220, 0.12);
    --bs-btn-active-border-color: rgba(148, 170, 220, 0.6);
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rz-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rz-blue-bright);
    text-decoration: none;
    transition: gap var(--rz-dur-micro) var(--rz-ease), color var(--rz-dur-micro) var(--rz-ease);
}

.rz-link-arrow:hover,
.rz-link-arrow:focus {
    color: #fff;
    gap: 0.875rem;
}

/* --- Navbar ---------------------------------------------------------------- */

.rz-navbar {
    background-color: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rz-border);
    transition: background var(--rz-dur-micro) var(--rz-ease),
                box-shadow var(--rz-dur-micro) var(--rz-ease);
}

.rz-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.rz-logo-mark {
    height: 3.25rem;
    width: auto;
    mix-blend-mode: screen;
}

.rz-logo-word {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #fff;
}

@media (min-width: 992px) {
    .rz-navbar .rz-nav-side {
        flex: 1 1 0;
        align-items: center;
    }

    .rz-navbar #navbarNavLeft::before,
    .rz-navbar #navbarNavRight::after {
        content: "";
        flex: 1 1 0;
        min-width: 2rem;
        height: 1px;
    }

    .rz-navbar #navbarNavLeft::before {
        margin-right: 1.5rem;
        background: linear-gradient(90deg, transparent, var(--rz-gold));
    }

    .rz-navbar #navbarNavRight::after {
        margin-left: 1.5rem;
        background: linear-gradient(90deg, var(--rz-gold), transparent);
    }

    .rz-navbar .rz-menu-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1.375rem 1rem;
        background:
            linear-gradient(180deg, rgba(217, 180, 91, 0.14), rgba(217, 180, 91, 0.03) 70%),
            rgba(5, 7, 13, 0.88);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(217, 180, 91, 0.28);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 24px 48px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.3s;
    }

    .rz-navbar .rz-has-menu:hover>.rz-menu-panel,
    .rz-navbar .rz-has-menu:focus-within>.rz-menu-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .rz-menu-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1.75rem;
        margin: 0;
    }

    .rz-menu-links a {
        display: inline-block;
        padding: 0.4rem 0.9rem;
        color: var(--rz-muted);
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 999px;
        transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }

    .rz-menu-links a:hover,
    .rz-menu-links a:focus {
        color: var(--rz-gold);
        background: linear-gradient(180deg, rgba(217, 180, 91, 0.16), rgba(217, 180, 91, 0.05));
        box-shadow:
            inset 0 0 0 1px rgba(217, 180, 91, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 20px rgba(217, 180, 91, 0.14);
    }
}

.rz-navbar .nav-link {
    color: var(--rz-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rz-navbar .nav-link:hover,
.rz-navbar .nav-link:focus,
.rz-navbar .rz-has-menu:hover>.nav-link,
.rz-navbar .rz-has-menu:focus-within>.nav-link {
    color: var(--rz-gold);
    background: linear-gradient(180deg, rgba(217, 180, 91, 0.16), rgba(217, 180, 91, 0.05));
    box-shadow:
        inset 0 0 0 1px rgba(217, 180, 91, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(217, 180, 91, 0.14);
}

.rz-navbar .nav-link.active {
    color: #fff;
}

/* --- Nav condense on scroll ------------------------------------------------- */
.rz-navbar.rz-scrolled {
    background-color: rgba(5, 7, 13, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* --- Hero ------------------------------------------------------------------ */

.rz-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    min-height: calc(100vh - 5rem);
    min-height: calc(100svh - 5rem);
}

.rz-hero::before {
    content: "";
    position: absolute;
    inset: auto -20% -55% -20%;
    height: 80%;
    background:
        radial-gradient(ellipse at 65% 100%, rgba(47, 125, 246, 0.28), transparent 60%),
        repeating-linear-gradient(90deg, rgba(90, 155, 255, 0.06) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(90, 155, 255, 0.06) 0 1px, transparent 1px 64px);
    transform: perspective(600px) rotateX(55deg);
    transform-origin: bottom;
    pointer-events: none;
}

.rz-hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.rz-hero-logo {
    display: block;
    width: min(20rem, 80%);
    height: auto;
    margin-left: -0.25rem;
}

.rz-hero-trust {
    color: var(--rz-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.8;
}

/* --- Hero dashboard visual -------------------------------------------------- */

.rz-hero-visual {
    position: relative;
}

.rz-dash {
    background: linear-gradient(160deg, #0e1526, #090d18);
    border: 1px solid var(--rz-border);
    border-radius: 1rem;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(47, 125, 246, 0.12);
    overflow: hidden;
}

.rz-dash-top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rz-border);
}

.rz-dash-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(148, 170, 220, 0.25);
}

.rz-dash-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--rz-muted);
}

.rz-dash-body {
    display: flex;
}

.rz-dash-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    border-right: 1px solid var(--rz-border);
}

.rz-dash-side span {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 0.375rem;
    background: rgba(148, 170, 220, 0.12);
}

.rz-dash-side span:first-child {
    background: var(--rz-blue);
}

.rz-dash-main {
    flex: 1;
    padding: 1rem;
    min-width: 0;
}

.rz-dash-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rz-text);
    margin-bottom: 0.75rem;
}

.rz-stat-card {
    background: var(--rz-card);
    border: 1px solid var(--rz-border);
    border-radius: 0.625rem;
    padding: 0.75rem;
}

.rz-stat-label {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    color: var(--rz-muted);
    text-transform: uppercase;
}

.rz-stat-value {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.rz-stat-delta {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #35c98e;
}

.rz-panel {
    background: var(--rz-card);
    border: 1px solid var(--rz-border);
    border-radius: 0.625rem;
    padding: 0.75rem;
    height: 100%;
}

.rz-panel-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rz-muted);
    margin-bottom: 0.5rem;
}

.rz-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

@property --rz-donut-value {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

.rz-donut {
    --rz-donut-value: 68;
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0.25rem auto;
}

.rz-donut::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--rz-blue) calc(var(--rz-donut-value) * 1%),
            rgba(148, 170, 220, 0.15) 0);
    -webkit-mask: radial-gradient(circle at center, transparent 58%, #000 59%);
    mask: radial-gradient(circle at center, transparent 58%, #000 59%);
}

.rz-donut-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.rz-donut-legend {
    font-size: 0.625rem;
    color: var(--rz-muted);
}

.rz-donut-legend .dot {
    display: inline-block;
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    margin-right: 0.375rem;
}

/* Floating side cards */

.rz-float {
    position: absolute;
    background: linear-gradient(160deg, #101830, #0a0f1c);
    border: 1px solid rgba(90, 155, 255, 0.25);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 12.5rem;
}

.rz-float-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.375rem;
}

.rz-float-title svg {
    color: var(--rz-blue-bright);
}

.rz-float-copy {
    font-size: 0.71875rem;
    line-height: 1.55;
    color: var(--rz-muted);
    margin: 0;
}

.rz-float-automation {
    top: -1.5rem;
    right: -1.75rem;
}

.rz-float-ai {
    bottom: -3rem;
    right: -1rem;
}

/* --- Partner strip ----------------------------------------------------------- */

.rz-partners {
    background: #030409;
    border-top: 1px solid var(--rz-border);
    border-bottom: 1px solid var(--rz-border);
    padding: 2.5rem 0;
}

.rz-partners-heading {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rz-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.rz-partner {
    text-align: center;
    color: rgba(238, 242, 249, 0.7);
}

.rz-partner-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rz-partner-tag {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rz-muted);
}

/* --- What we do (light section) ---------------------------------------------- */

.rz-services {
    background: var(--rz-light-bg);
    color: var(--rz-light-text);
    padding: 6rem 0;
}

.rz-services h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    color: var(--rz-light-text);
}

.rz-services .rz-accent {
    color: var(--rz-blue);
}

.rz-services .rz-lead {
    color: var(--rz-light-muted);
}

.rz-service-card {
    background: linear-gradient(165deg, #0e1526, #070b14);
    border: 1px solid var(--rz-border);
    border-radius: 0.875rem;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--rz-text);
    transition: transform var(--rz-dur-micro) var(--rz-ease), box-shadow var(--rz-dur-micro) var(--rz-ease);
}

.rz-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(10, 15, 28, 0.35);
}

.rz-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: rgba(47, 125, 246, 0.15);
    color: var(--rz-blue-bright);
    margin-bottom: 1.25rem;
}

.rz-service-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rz-service-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--rz-muted);
    flex: 1;
}

/* Feature card grid + detail panel: click a feature card to reveal its
   detail in the panel below — plain Bootstrap tabs, no custom JS. */
.rz-feature-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rz-light-muted); /* sits on the light section background */
    margin-bottom: 0.75rem;
}

.rz-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid var(--rz-border);
    border-radius: 0.75rem;
    padding: 1.25rem 0.75rem;
    color: var(--rz-light-text);
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.3;
    transition: transform var(--rz-dur-micro) var(--rz-ease),
                border-color var(--rz-dur-micro) var(--rz-ease),
                box-shadow var(--rz-dur-micro) var(--rz-ease);
}

.rz-feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--rz-blue-bright);
    box-shadow: 0 12px 24px rgba(10, 15, 28, 0.12);
}

.rz-feature-card.active {
    border-color: var(--rz-blue);
    box-shadow: inset 0 0 0 1px var(--rz-blue), 0 0 0 5px rgba(47, 125, 246, 0.16),
        0 0 22px rgba(47, 125, 246, 0.35);
    background: rgba(47, 125, 246, 0.06);
}

.rz-feature-card .rz-service-icon {
    margin-bottom: 0;
}

.rz-feature-detail-wrap {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.rz-feature-detail {
    background: linear-gradient(165deg, #0e1526, #070b14);
    border: 1px solid var(--rz-border);
    border-radius: 0.875rem;
    padding: 2.25rem;
    min-height: 14rem;
    color: var(--rz-text); /* was missing: h3/p were inheriting the section's near-black text */
}

.rz-feature-detail .tab-pane.active {
    display: block;
}

.rz-feature-detail-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.rz-feature-detail-icon-col {
    text-align: center;
}

.rz-feature-detail-icon {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1.25rem;
    font-size: 2.5rem;
}

.rz-feature-detail p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--rz-muted);
    margin-bottom: 0;
}

/* The clone that "flies" from the clicked feature card's icon to the
   detail panel's icon — see the feature-icon-fly script in
   landing-motion.js. Fixed-position, no layout participation. */
.rz-feature-icon-fly {
    position: fixed;
    z-index: 1050;
    pointer-events: none;
    margin: 0 !important;
}

/* "See everything included" collapse toggle for the highlight cards above
   the full feature list — plain Bootstrap collapse, aria-expanded driven. */
.rz-feature-toggle {
    background: none;
    border: none;
    padding: 0;
}

.rz-feature-toggle-label-less {
    display: none;
}

.rz-feature-toggle[aria-expanded="true"] .rz-feature-toggle-label-more {
    display: none;
}

.rz-feature-toggle[aria-expanded="true"] .rz-feature-toggle-label-less {
    display: inline;
}

.rz-feature-toggle-chevron {
    transition: transform var(--rz-dur-micro) var(--rz-ease);
}

.rz-feature-toggle[aria-expanded="true"] .rz-feature-toggle-chevron {
    transform: rotate(180deg);
}

/* --- Our work ----------------------------------------------------------------- */

.rz-work {
    padding: 6rem 0;
}

.rz-work h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
}

.rz-work-card {
    background: var(--rz-bg-raised);
    border: 1px solid var(--rz-border);
    border-radius: 0.875rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--rz-dur-micro) var(--rz-ease), border-color var(--rz-dur-micro) var(--rz-ease);
}

.rz-work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 155, 255, 0.4);
}

.rz-work-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(47, 125, 246, 0.35), transparent 55%),
        linear-gradient(150deg, #131c33, #080c16);
    border-bottom: 1px solid var(--rz-border);
}

.rz-work-thumb::after {
    content: "";
    position: absolute;
    inset: 18% 14% 0 14%;
    border-radius: 0.5rem 0.5rem 0 0;
    background: linear-gradient(180deg, rgba(148, 170, 220, 0.14), rgba(148, 170, 220, 0.03));
    border: 1px solid rgba(148, 170, 220, 0.2);
    border-bottom: 0;
}

.rz-work-body {
    padding: 1.375rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rz-work-client {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rz-muted);
    margin-bottom: 0.5rem;
}

.rz-work-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    flex: 1;
}

/* --- CTA ------------------------------------------------------------------------ */

.rz-cta {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    border-top: 1px solid var(--rz-border);
    background:
        radial-gradient(ellipse at 15% 110%, rgba(47, 125, 246, 0.2), transparent 55%),
        radial-gradient(ellipse at 90% -10%, rgba(47, 125, 246, 0.12), transparent 50%);
}

.rz-cta h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.rz-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.rz-step-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(90, 155, 255, 0.35);
    background: rgba(47, 125, 246, 0.1);
    color: var(--rz-blue-bright);
}

.rz-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rz-step p {
    font-size: 0.875rem;
    color: var(--rz-muted);
    margin: 0;
}

/* --- Footer ----------------------------------------------------------------------- */

.rz-footer {
    background: #030409;
    border-top: 1px solid var(--rz-border);
    padding: 4rem 0 2rem;
}

.rz-footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rz-gold);
    margin-bottom: 1rem;
}

.rz-footer .nav-link {
    color: var(--rz-muted);
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.rz-footer .nav-link:hover,
.rz-footer .nav-link:focus {
    color: var(--rz-gold);
}

.rz-footer-tagline {
    color: var(--rz-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 18rem;
}

.rz-footer-legal {
    border-top: 1px solid var(--rz-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    color: var(--rz-gold);
    font-size: 0.8125rem;
}

.rz-footer-legal a {
    color: var(--rz-muted);
    text-decoration: none;
}

.rz-footer-legal a:hover,
.rz-footer-legal a:focus {
    color: var(--rz-gold);
}

.rz-footer-contact {
    font-size: 0.875rem;
}

.rz-footer-contact a {
    color: var(--rz-muted);
    text-decoration: none;
}

.rz-footer-contact a:hover,
.rz-footer-contact a:focus {
    color: var(--rz-gold);
}

/* --- Static pages (contact, privacy) ------------------------------------------------ */

.rz-page {
    padding: 5rem 0 6rem;
}

.rz-page h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.rz-page .rz-step a {
    color: var(--rz-text);
    font-size: 1rem;
    text-decoration: none;
}

.rz-page .rz-step a:hover,
.rz-page .rz-step a:focus {
    color: var(--rz-blue-bright);
}

.rz-page-light {
    background: var(--rz-light-bg);
    color: var(--rz-light-text);
}

.rz-page-light .rz-eyebrow,
.rz-page-light .rz-accent {
    color: var(--rz-blue);
}

.rz-page-light .rz-lead,
.rz-page-light .rz-step p {
    color: var(--rz-light-muted);
}

.rz-page-light .rz-step a {
    color: var(--rz-light-text);
}

.rz-page-light .rz-step a:hover,
.rz-page-light .rz-step a:focus {
    color: var(--rz-blue);
}

.rz-page-light .rz-step-icon {
    color: var(--rz-blue);
    background: rgba(47, 125, 246, 0.08);
}

.rz-contact-form {
    background: #fff;
    border: 1px solid rgba(10, 15, 28, 0.08);
    border-radius: 0.875rem;
    padding: 2rem;
    box-shadow: 0 1rem 2.5rem rgba(10, 15, 28, 0.06);
}

.rz-contact-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--rz-light-text);
    margin-bottom: 0.375rem;
}

.rz-legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
}

.rz-legal p,
.rz-legal li {
    color: var(--rz-muted);
    line-height: 1.7;
}

.rz-legal li {
    margin-bottom: 0.5rem;
}

.rz-legal a {
    color: var(--rz-blue-bright);
}

/* --- About page ---------------------------------------------------------------------- */

.rz-about-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% -20%, rgba(47, 125, 246, 0.18), transparent 60%);
}

.rz-about-story {
    padding: 6rem 0;
}

.rz-about-story h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
}

.rz-about-mission {
    background: #fff;
    border: 1px solid rgba(10, 15, 28, 0.08);
    border-left: 3px solid var(--rz-gold);
    border-radius: 0.875rem;
    padding: 2rem;
    box-shadow: 0 1rem 2.5rem rgba(10, 15, 28, 0.06);
}

.rz-about-mission-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rz-gold);
    margin-bottom: 0.75rem;
}

.rz-about-mission p:last-child {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--rz-light-text);
    margin: 0;
}

.rz-about-values {
    padding: 6rem 0;
}

.rz-about-values h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
}

.rz-about-process {
    padding: 6rem 0;
}

.rz-about-process h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
}

.rz-about-stats {
    background: #030409;
    border-top: 1px solid var(--rz-border);
    border-bottom: 1px solid var(--rz-border);
    padding: 3.5rem 0;
}

.rz-about-stat {
    text-align: center;
}

.rz-about-stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--rz-gold);
}

.rz-about-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--rz-muted);
    margin-top: 0.375rem;
}

.rz-about-founder {
    padding: 6rem 0;
}

.rz-about-founder h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
}

.rz-about-founder-role {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rz-gold);
}

.rz-about-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    max-width: 22rem;
    border-radius: 1rem;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(47, 125, 246, 0.35), transparent 55%),
        linear-gradient(150deg, #131c33, #080c16);
    border: 1px solid var(--rz-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.rz-about-portrait span {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: rgba(238, 242, 249, 0.85);
}

/* --- Industry showcase (dark section over the light rz-services base) ------- */
.rz-ind-showcase {
    position: relative;
    overflow: hidden;
    background: #05070d;
    color: #eef2f9;
}

.rz-ind-showcase h2 {
    color: #eef2f9;
}

.rz-ind-showcase .rz-lead {
    color: rgba(238, 242, 249, 0.78);
}

.rz-ind-bg {
    position: absolute;
    inset: 0;
    z-index: 0; /* own stacking context: the zoom clone stays behind the content */
}

.rz-ind-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.25);
    transition: opacity var(--rz-dur-enter) var(--rz-ease),
                transform 700ms var(--rz-ease);
}

.rz-ind-bg-layer.is-active {
    opacity: 1;
    transform: scale(1);
}

.rz-ind-bg-placeholder {
    background: radial-gradient(circle at 30% 20%, rgba(47, 125, 246, 0.28), transparent 60%);
}

.rz-ind-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(5, 7, 13, 0.88) 0%,
            rgba(5, 7, 13, 0.55) 50%,
            rgba(5, 7, 13, 0.25) 100%);
}

.rz-ind-panels {
    position: relative;
    display: grid; /* all panels share one cell: height stays at the tallest panel */
}

.rz-ind-panel-label {
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rz-blue-bright);
}

.rz-ind-panel {
    grid-area: 1 / 1;
    visibility: hidden;
}

.rz-ind-panel.is-active {
    visibility: visible;
    animation: rz-panel-in var(--rz-dur-enter) var(--rz-ease);
}

@keyframes rz-panel-in {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.rz-ind-slider {
    overflow: hidden;
}

.rz-ind-track {
    position: relative; /* offsetParent for the cards, so offsetLeft is track-relative */
    display: flex;
    gap: 1rem;
    transition: transform var(--rz-dur-enter) var(--rz-ease);
}

.rz-ind-card {
    flex: 0 0 230px;
    background: linear-gradient(160deg, rgba(148, 170, 220, 0.10), rgba(148, 170, 220, 0.03));
    border: 1px solid rgba(148, 170, 220, 0.14);
    border-radius: 0.75rem;
    padding: 0.875rem;
    cursor: pointer;
    transition: transform var(--rz-dur-micro) var(--rz-ease),
                border-color var(--rz-dur-micro) var(--rz-ease);
}

.rz-ind-card:hover {
    transform: translateY(-4px);
}

.rz-ind-card.is-active {
    border-color: var(--rz-blue);
}

.rz-ind-card-thumb {
    height: 140px;
    border-radius: 0.5rem;
    /* Zoomed-in detail: the card teases a small part of the photo,
       and the reveal expands it to the whole image. */
    background-size: 220%;
    background-position: center;
    margin-bottom: 0.875rem;
}

.rz-ind-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--rz-blue-bright);
    background: linear-gradient(160deg, rgba(47, 125, 246, 0.22), rgba(148, 170, 220, 0.06));
}

.rz-ind-zoom {
    position: absolute;
    inset: 0;
    /* No z-index: paints above the bg layers but below the section scrim,
       so the revealed image is darkened identically at every frame.
       The image sits at its FINAL full-section position from the start;
       the clip window expands from the card to reveal it. */
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transition: clip-path 800ms cubic-bezier(0.5, 0, 0.15, 1),
                opacity 300ms var(--rz-ease);
}

.rz-ind-nav {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(148, 170, 220, 0.3);
    background: transparent;
    color: #eef2f9;
    transition: border-color var(--rz-dur-micro) var(--rz-ease),
                background var(--rz-dur-micro) var(--rz-ease);
}

.rz-ind-nav:hover {
    border-color: var(--rz-blue);
    background: rgba(47, 125, 246, 0.15);
}

.rz-ind-progress {
    flex: 1;
    height: 2px;
    border-radius: 1px;
    overflow: hidden;
    background: rgba(238, 242, 249, 0.15);
}

.rz-ind-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--rz-blue);
}

.rz-ind-progress-bar.is-running {
    width: 100%;
    transition: width var(--rz-ind-interval, 5000ms) linear;
}

/* --- Scroll reveal --------------------------------------------------------- */
.js .rz-reveal {
    opacity: 0;
    transform: translateY(var(--rz-reveal-shift));
    transition:
        opacity var(--rz-dur-enter) var(--rz-ease),
        transform var(--rz-dur-enter) var(--rz-ease);
    will-change: opacity, transform;
}

.js .rz-reveal.rz-in {
    opacity: 1;
    transform: none;
}

/* Staggered children: parent gets .rz-reveal-group, each direct grid column
   carries --rz-i (0,1,2,3). Delay applies only once the parent is revealed. */
.js .rz-reveal-group > [style*="--rz-i"] {
    opacity: 0;
    transform: translateY(var(--rz-reveal-shift));
    transition:
        opacity var(--rz-dur-enter) var(--rz-ease),
        transform var(--rz-dur-enter) var(--rz-ease);
}

.js .rz-reveal-group.rz-in > [style*="--rz-i"] {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--rz-i) * var(--rz-stagger));
}

/* --- Hero dashboard load-in ------------------------------------------------ */
.js .rz-dash-boot .rz-dash {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition:
        opacity var(--rz-dur-enter) var(--rz-ease),
        transform var(--rz-dur-enter) var(--rz-ease);
}
.js .rz-dash-boot .rz-stat-card,
.js .rz-dash-boot .rz-panel {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--rz-dur-enter) var(--rz-ease),
        transform var(--rz-dur-enter) var(--rz-ease);
}
.js .rz-dash-boot .rz-float {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition:
        opacity var(--rz-dur-enter) var(--rz-ease),
        transform var(--rz-dur-enter) var(--rz-ease);
}

.js .rz-dash-boot .rz-chart-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 900ms var(--rz-ease);
}
.js .rz-dash-boot .rz-chart-area {
    opacity: 0;
    transition: opacity var(--rz-dur-enter) var(--rz-ease);
}

.rz-donut {
    transition: --rz-donut-value 900ms var(--rz-ease);
}
.js .rz-dash-boot .rz-donut {
    --rz-donut-value: 0;
}

.js .rz-dash-boot.rz-booted .rz-dash { opacity: 1; transform: none; }
.js .rz-dash-boot.rz-booted .rz-stat-card,
.js .rz-dash-boot.rz-booted .rz-panel {
    opacity: 1;
    transform: none;
}
.js .rz-dash-boot.rz-booted .rz-stat-card { transition-delay: calc(var(--rz-i, 0) * var(--rz-stagger)); }
.js .rz-dash-boot.rz-booted .rz-panel     { transition-delay: calc((var(--rz-i, 0) + 3) * var(--rz-stagger)); }

.js .rz-dash-boot.rz-booted .rz-chart-line { stroke-dashoffset: 0; transition-delay: 420ms; }
.js .rz-dash-boot.rz-booted .rz-chart-area { opacity: 1; transition-delay: 900ms; }
.js .rz-dash-boot.rz-booted .rz-donut { --rz-donut-value: 68; transition-delay: 500ms; }

.js .rz-dash-boot.rz-booted .rz-float-automation { opacity: 1; transform: none; transition-delay: 700ms; }
.js .rz-dash-boot.rz-booted .rz-float-ai         { opacity: 1; transform: none; transition-delay: 820ms; }

/* --- Hover micro-interactions ---------------------------------------------- */
.rz-service-icon {
    transition: transform var(--rz-dur-micro) var(--rz-ease),
                background var(--rz-dur-micro) var(--rz-ease);
}
.rz-service-card:hover .rz-service-icon {
    transform: translateY(-2px) scale(1.06);
    background: rgba(47, 125, 246, 0.22);
}

.rz-work-thumb::after {
    transition: transform var(--rz-dur-micro) var(--rz-ease);
}
.rz-work-card:hover .rz-work-thumb::after {
    transform: translateY(-3px);
}

.rz-btn-primary svg,
.rz-btn-ghost svg {
    transition: transform var(--rz-dur-micro) var(--rz-ease);
}
.rz-btn-primary:hover svg,
.rz-btn-ghost:hover svg {
    transform: translateX(3px);
}

/* --- Responsive adjustments --------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .rz-float-automation {
        right: -0.5rem;
    }
}

@media (max-width: 991.98px) {
    .rz-hero {
        padding: 3.5rem 0 4.5rem;
    }

    .rz-float {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rz-starfield {
        display: none;
    }

    .rz-channel-letter-outline {
        stroke-dashoffset: 0;
    }

    .rz-channel-letter-face,
    .rz-channel-letter-led {
        opacity: 1;
    }

    .rz-channel-letter-glow {
        animation: none;
        opacity: 0.5;
    }

    .rz-service-card,
    .rz-work-card,
    .rz-feature-card,
    .rz-link-arrow {
        transition: none;
    }

    .rz-service-card:hover,
    .rz-work-card:hover,
    .rz-feature-card:hover {
        transform: none;
    }

    .rz-service-icon,
    .rz-work-thumb::after,
    .rz-btn-primary svg,
    .rz-btn-ghost svg {
        transition: none !important;
    }

    .rz-reveal,
    .rz-reveal-group > [style*="--rz-i"] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .rz-dash-boot .rz-dash,
    .rz-dash-boot .rz-stat-card,
    .rz-dash-boot .rz-panel,
    .rz-dash-boot .rz-float,
    .rz-dash-boot .rz-chart-area {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .rz-dash-boot .rz-chart-line {
        stroke-dashoffset: 0 !important;
        transition: none !important;
    }
    .rz-dash-boot .rz-donut {
        --rz-donut-value: 68 !important;
        transition: none !important;
    }
    .rz-ind-bg-layer,
    .rz-ind-card,
    .rz-ind-track,
    .rz-ind-progress-bar,
    .rz-ind-zoom {
        transition: none !important;
    }
    .rz-ind-bg-layer {
        transform: none !important;
    }
    .rz-ind-panel.is-active {
        animation: none !important;
    }
}

/* Anchored sections must not hide under the sticky navbar */
section[id] {
    scroll-margin-top: 90px;
}