/*** Motion layer — "Cyber Ronin" style in Blumagik colours.
     Space Grotesk display + Inter body, cursor-spotlight video reveal hero, floating robot,
     word pull-up headings, blur fade-up reveals, glass cards, quote video band.
     Works with both the light template and the .future-theme dark mode. ***/

:root {
    --rn-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --rn-body: 'Inter', system-ui, -apple-system, sans-serif;
    --rn-ice: #E8F6FD;
    --rn-muted: rgba(232, 246, 253, .72);
    --rn-label: rgba(232, 246, 253, .5);
    --rn-brand: #06A3DA;
    --rn-navy: #091E3E;
    --rn-navy-deep: #061429;
    --rn-card: rgba(6, 20, 41, .58);
    --rn-line: rgba(232, 246, 253, .14);
    --rn-gutter: clamp(18px, 3.2vw, 44px);
}

/* ---------- Typography ---------- */
:root body {
    font-family: var(--rn-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(6, 163, 218, .3);
}

:root h1,
:root h2,
:root h3,
:root .display-1,
:root .display-2,
:root .display-3,
:root .display-4,
:root .heading-font {
    font-family: var(--rn-display);
    font-weight: 600 !important;
    letter-spacing: -.015em;
    line-height: 1.12;
}

:root h4,
:root h5,
:root h6 {
    font-family: var(--rn-body);
    font-weight: 600;
    letter-spacing: -.01em;
}

/* Numbers & brand read better in Inter */
:root [data-toggle="counter-up"],
:root .navbar-brand h1,
:root .footer-about h1,
:root .rounded h1.display-5 {
    font-family: var(--rn-body);
    font-weight: 700 !important;
    letter-spacing: -.02em;
}

/* ---------- Section titles ---------- */
:root .section-title::before,
:root .section-title::after {
    display: none;
}

:root .section-title {
    padding-bottom: 0 !important;
}

:root .section-title h5 {
    margin-bottom: 14px !important;
    font-family: var(--rn-body);
    font-size: 12px;
    font-weight: 500 !important;
    letter-spacing: .14em;
}

:root .section-title h5::before {
    content: "// ";
    opacity: .6;
}

:root .section-title h1,
:root .section-title h2 {
    font-size: clamp(1.45rem, 2.6vw, 2.3rem);
    max-width: 26ch;
}

:root .section-title.text-center h1,
:root .section-title.text-center h2 {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
:root .btn {
    font-family: var(--rn-body);
    font-weight: 500;
    border-radius: 999px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}

:root .btn:not(.btn-square):not(.btn-sm-square):not(.btn-lg-square):not(.btn-close):hover {
    transform: translateY(-1px);
}

:root .btn-square,
:root .btn-sm-square,
:root .btn-lg-square {
    border-radius: 50%;
}

:root .input-group > .form-control {
    border-radius: 999px 0 0 999px;
    padding-left: 1.25rem !important;
}

:root .input-group > .btn {
    border-radius: 0 999px 999px 0;
}

/* ---------- Navbar ---------- */
:root .navbar-dark .navbar-nav .nav-link {
    font-family: var(--rn-body);
    font-size: 14px;
    font-weight: 400;
}

:root .navbar-dark .navbar-brand h1 {
    font-size: 1.3rem;
}

@media (min-width: 992px) {
    :root .navbar-dark {
        border-bottom-color: rgba(255, 255, 255, .12);
    }

    :root body:not(.future-theme) .navbar-dark .navbar-nav .nav-link::before {
        height: 1px;
        bottom: 24px;
    }

    :root body:not(.future-theme) .sticky-top.navbar-dark .navbar-nav .nav-link::before {
        bottom: 14px;
    }

    :root body:not(.future-theme):not(.ronin-home) .sticky-top.navbar-dark {
        background: rgba(255, 255, 255, .82);
        -webkit-backdrop-filter: blur(16px) saturate(1.4);
        backdrop-filter: blur(16px) saturate(1.4);
        box-shadow: inset 0 -1px 0 rgba(9, 30, 62, .08) !important;
    }
}

:root .dropdown-menu {
    border-radius: 12px;
    font-family: var(--rn-body);
    font-size: 14px;
}

/* =====================================================================
   HOMEPAGE HERO (.ronin)
   ===================================================================== */

/* Top bar + nav sit as glass over the hero */
:root body.ronin-home .container-fluid.bg-dark.px-5 {
    background: var(--rn-navy-deep) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

:root body.ronin-home .navbar.navbar-dark {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    box-shadow: none !important;
    transition: background-color .3s ease, transform .35s ease;
}

:root body.ronin-home .navbar.navbar-dark.sticky-top {
    background: rgba(6, 20, 41, .92) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

:root body.ronin-home .navbar-dark .navbar-nav .nav-link {
    color: var(--rn-muted);
}

:root body.ronin-home .navbar-dark .navbar-nav .nav-link:hover,
:root body.ronin-home .navbar-dark .navbar-nav .nav-link.active {
    color: var(--rn-ice);
}

:root body.ronin-home .navbar-dark .navbar-nav .nav-link::before {
    background: var(--rn-brand);
}

:root body.ronin-home .navbar-dark .navbar-brand h1 {
    color: #fff;
}

:root body.ronin-home .navbar .theme-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

:root body.ronin-home.future-theme .navbar.navbar-dark {
    width: 100%;
    border-radius: 0;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

@media (min-width: 992px) {
    :root body.ronin-home.future-theme .navbar.navbar-dark {
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
    }

    :root body.ronin-home.future-theme .navbar.navbar-dark.sticky-top {
        position: fixed;
    }

    :root body.ronin-home.future-theme .navbar.navbar-dark.nav-hidden {
        transform: translateY(-100%);
    }

    :root body.ronin-home .navbar-dark .navbar-nav .nav-link {
        padding: 30px 0;
    }

    :root body.ronin-home .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }
}

@media (max-width: 991.98px) {
    :root body.ronin-home .navbar.navbar-dark,
    :root body.ronin-home .navbar.navbar-dark.sticky-top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1030;
        transform: none;
        border-radius: 0;
        padding: 10px 18px !important;
        background: rgba(6, 20, 41, .72) !important;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    :root body.ronin-home .navbar-dark .navbar-nav .nav-link,
    :root body.ronin-home .sticky-top.navbar-dark .navbar-nav .nav-link {
        color: var(--rn-muted);
        padding: 10px 0;
    }

    :root body.ronin-home .navbar-collapse {
        margin-top: 8px;
        padding: 6px 4px 10px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    :root body.ronin-home .navbar-dark .navbar-toggler {
        color: #fff !important;
        border-color: rgba(255, 255, 255, .3) !important;
    }

    :root body.ronin-home .dropdown-menu {
        background: rgba(6, 20, 41, .94);
        border-color: rgba(255, 255, 255, .15);
    }

    :root body.ronin-home .dropdown-item {
        color: var(--rn-muted);
    }
}

/* Hero shell */
.ronin {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 620px;
    overflow: hidden;
    background: var(--rn-navy);
    color: var(--rn-ice);
}

@media (min-width: 992px) {
    .ronin {
        height: calc(100vh - 45px);
        height: calc(100dvh - 45px);
    }
}

.ronin-base,
.ronin-reveal {
    position: absolute;
    inset: 0;
}

.ronin-base {
    z-index: 1;
}

.ronin-reveal {
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent);
    mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent);
}

.ronin-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ronin-base .ronin-video {
    filter: saturate(.9) brightness(.85);
}

/* Zoom the revealed robot video so its own robot sits off-frame:
   the spotlight uncovers nebula and light trails, not a second robot */
.ronin-reveal .ronin-video {
    transform: scale(1.6);
    transform-origin: 0% 40%;
}

/* The stats row overlaps the hero's bottom edge (template's -75px). The hero gets its
   own stacking context so the stats cards paint above the robot and videos. */
.ronin {
    z-index: 0;
}

/* Navy tint keeps copy legible and ties the scene to the brand palette */
.ronin-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 20, 41, .78) 0%, rgba(6, 20, 41, .35) 45%, rgba(6, 20, 41, .1) 70%, rgba(6, 20, 41, .45) 100%),
        linear-gradient(180deg, rgba(6, 20, 41, .45) 0%, rgba(6, 20, 41, 0) 30%, rgba(6, 20, 41, 0) 70%, rgba(6, 20, 41, .7) 100%);
}

@keyframes heroImageIn {
    from { opacity: 0; transform: scale(1.18); }
    to { opacity: 1; transform: scale(1); }
}

.ronin-media-in {
    opacity: 0;
    animation: heroImageIn 1.2s cubic-bezier(.25, .46, .45, .94) .15s forwards;
}

/* Robot figure: rises in, floats, leans toward the cursor (JS sets --rx/--ry) */
.ronin-figure {
    position: absolute;
    z-index: 5;
    bottom: 0;
    left: 61%;
    height: min(86%, 900px);
    aspect-ratio: 710 / 1080;
    transform: translate3d(calc(var(--fx, -50%) + var(--rx, 0) * 16px), calc(var(--ry, 0) * 8px), 0);
    pointer-events: none;
    animation: roninRise 1.3s cubic-bezier(.16, 1, .3, 1) .35s both;
}

@keyframes roninRise {
    from { opacity: 0; translate: 0 60px; }
    to { opacity: 1; translate: 0 0; }
}

.ronin-figure__float {
    position: relative;
    z-index: 1;
    height: 100%;
    animation: roninFloat 6s ease-in-out 1.6s infinite;
}

.ronin-figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(6, 163, 218, .18));
}

@keyframes roninFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.ronin-figure__floor {
    position: absolute;
    left: 50%;
    bottom: 2%;
    width: 64%;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(6, 163, 218, .55), rgba(6, 163, 218, 0));
    transform: translateX(-50%);
    filter: blur(6px);
    animation: roninFloor 6s ease-in-out 1.6s infinite;
}

@keyframes roninFloor {
    0%, 100% { opacity: .9; transform: translateX(-50%) scaleX(1); }
    50% { opacity: .55; transform: translateX(-50%) scaleX(.82); }
}

/* UI grid */
.ronin-ui {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 128px var(--rn-gutter) 40px;
    pointer-events: none;
}

@media (min-width: 992px) {
    .ronin-ui {
        padding-bottom: calc(75px + 32px);
    }

    .ronin-figure {
        bottom: 60px;
    }
}

.ronin-left {
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    min-width: 0;
}

.ronin-copy {
    max-width: 540px;
    padding-right: 56px;
    pointer-events: auto;
}

:root .ronin h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3.6vw, 3.15rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--rn-ice);
    text-shadow: 0 2px 28px rgba(0, 0, 0, .22);
}

.ronin h1 .pull-line {
    display: block;
}

.ronin-copy > p {
    margin: 18px 0 0;
    max-width: 360px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--rn-muted);
}

.ronin-icons {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.ronin-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(232, 246, 253, .55);
    color: var(--rn-ice);
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.ronin-icon:hover,
.ronin-icon:focus-visible {
    background: rgba(6, 163, 218, .18);
    border-color: var(--rn-brand);
    color: #fff;
}

.ronin-card {
    width: min(320px, 100%);
    display: grid;
    grid-template-columns: 86px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--rn-card);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(232, 246, 253, .1);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    pointer-events: auto;
}

.ronin-card__thumb {
    grid-column: 1;
    grid-row: 1 / -1;
    position: relative;
    min-height: 86px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(6, 163, 218, .45), var(--rn-navy) 70%);
}

.ronin-card__thumb img {
    position: absolute;
    left: 50%;
    bottom: -6%;
    width: 118%;
    height: auto;
    max-width: none;
    transform: translateX(-50%);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.ronin-card:hover .ronin-card__thumb img {
    transform: translateX(-50%) translateY(-4px) scale(1.04);
}

.ronin-card__body {
    grid-column: 2;
    grid-row: 1;
}

:root .ronin-card h2 {
    margin: 0;
    font-size: 11px;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--rn-ice);
}

.ronin-card p {
    margin: 6px 0 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--rn-muted);
}

.ronin-card__btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: end;
    padding: 7px 16px;
    border: 1px solid var(--rn-ice);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rn-ice);
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.ronin-card__btn:hover,
.ronin-card__btn:focus-visible {
    border-color: var(--rn-brand);
    background: var(--rn-brand);
    color: #fff;
    transform: translateY(-1px);
}

.ronin-page {
    position: absolute;
    top: 128px;
    right: var(--rn-gutter);
    margin: 0;
    font-size: 13px;
    letter-spacing: .08em;
    color: rgba(232, 246, 253, .78);
}

.ronin-specs {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    width: min(340px, 100%);
    padding: 14px 16px 8px;
    border-radius: 16px;
    background: rgba(6, 20, 41, .4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

:root .ronin-specs h3 {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rn-ice);
}

.ronin-spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 7px 0;
}

.ronin-spec + .ronin-spec {
    border-top: 1px solid var(--rn-line);
}

.ronin-spec__label {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rn-label);
}

.ronin-spec__value {
    font-size: 12.5px;
    color: var(--rn-ice);
    text-align: right;
    white-space: nowrap;
}

.ronin-icon:focus-visible,
.ronin-card__btn:focus-visible {
    outline: 2px solid var(--rn-ice);
    outline-offset: 3px;
}

/* Hero responsive */
@media (max-width: 1024px) {
    .ronin-specs { width: min(300px, 100%); }
    .ronin-figure { left: 64%; height: min(74%, 760px); }
}

@media (max-width: 991.98px) {
    .ronin-ui { padding-top: 104px; }
    .ronin-page { top: 104px; }
}

@media (max-width: 900px) {
    :root .ronin h1 { font-size: clamp(1.35rem, 7.2vw, 2.4rem); }
    .ronin-video { object-position: 40% center; }
    .ronin-specs { width: min(280px, 100%); }
}

@media (max-width: 768px) {
    .ronin-ui {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        padding: 96px max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    }

    .ronin-left { grid-row: 1 / 3; gap: 24px; }
    .ronin-page { top: 96px; right: max(20px, env(safe-area-inset-right)); }
    .ronin-specs { grid-column: 1; grid-row: 3; justify-self: stretch; width: 100%; margin: 8px 0 0; }
    .ronin-figure { --fx: 0%; left: auto; right: -8%; height: 62%; bottom: 18%; }
}

@media (max-width: 720px) {
    .ronin { height: auto; min-height: 100vh; min-height: 100dvh; }

    .ronin-ui {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 28px;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 92px max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    }

    .ronin-left { width: 100%; justify-content: flex-start; }
    .ronin-copy { max-width: 100%; padding-right: 40%; }
    .ronin-copy > p { font-size: 12.5px; max-width: none; }
    .ronin-card { width: 100%; margin-top: auto; }
    .ronin-specs { margin-top: auto; }
    .ronin-spec__value { white-space: normal; }
    .ronin-page { display: none; }
    .ronin-figure { right: -14%; height: 54%; bottom: auto; top: 90px; }
    .ronin-figure__floor { display: none; }
}

@media (max-width: 480px) {
    .ronin-ui { gap: 22px; }
    :root .ronin h1 { font-size: clamp(1.1rem, 8.5vw, 1.65rem); }
    .ronin-copy { padding-right: 34%; }
    .ronin-copy > p { font-size: 12px; margin-top: 14px; }
    .ronin-icons { margin-top: 16px; gap: 8px; }
    .ronin-icon { width: 34px; height: 34px; }
    .ronin-left { gap: 22px; }
    .ronin-card { grid-template-columns: 72px 1fr; gap: 8px 12px; padding: 10px; border-radius: 14px; }
    .ronin-card__thumb { min-height: 72px; border-radius: 10px; }
    :root .ronin-card h2 { font-size: 10px; }
    .ronin-card p { font-size: 11px; }
    .ronin-card__btn { padding: 6px 14px; font-size: 11px; }
    :root .ronin-specs h3 { font-size: 10px; margin-bottom: 8px; }
    .ronin-spec { padding: 6px 0; gap: 10px; }
    .ronin-spec__label,
    .ronin-spec__value { font-size: 11px; }
    .ronin-figure { right: -20%; height: 46%; }
}

@media (max-width: 360px) {
    :root .ronin h1 { font-size: 1rem; }
    .ronin-card { grid-template-columns: 64px 1fr; }
    .ronin-card__thumb { min-height: 64px; }
}

/* ---------- Quote band: slow bg-loop video + peeking robot ---------- */
:root .ronin-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--rn-navy-deep);
    color: var(--rn-muted);
}

.ronin-band__video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

:root .ronin-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 20, 41, .92) 0%, rgba(6, 20, 41, .7) 55%, rgba(6, 20, 41, .5) 100%);
}

:root .ronin-band h1,
:root .ronin-band h4,
:root .ronin-band h5:not(.text-primary) {
    color: var(--rn-ice);
}

:root .ronin-band p {
    color: var(--rn-muted);
}

.ronin-peek-host {
    position: relative;
    overflow: visible !important;
}

.ronin-peek {
    position: absolute;
    right: 28px;
    bottom: calc(100% - 22px);
    width: 120px;
    height: auto;
    pointer-events: none;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35));
    clip-path: inset(0 0 22px 0);
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}

.ronin-peek.is-in {
    opacity: 1;
    transform: translateY(0);
    animation: roninPeek 5s ease-in-out 1.2s infinite;
}

@keyframes roninPeek {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-4px) rotate(-3deg); }
    60% { transform: translateY(0) rotate(2deg); }
}

@media (max-width: 991.98px) {
    .ronin-band .col-lg-5 { margin-top: 80px; }
}

/* ---------- Inner page headers ---------- */
:root .bg-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(60vh, 540px);
    display: flex;
    align-items: flex-end;
    padding: 0 var(--rn-gutter) clamp(36px, 7vh, 64px) !important;
    background: var(--rn-navy) url(../img/hero-loop-poster.jpg) center / cover no-repeat !important;
    border: 0 !important;
}

:root .bg-header > .row {
    width: 100%;
    margin: 0;
    padding: 0 !important;
}

:root .bg-header > .row > [class*="col-"] {
    padding: 0;
    margin: 0 !important;
    text-align: left !important;
}

:root .bg-header .ms-header__video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:root .bg-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 20, 41, .8) 0%, rgba(6, 20, 41, .35) 55%, rgba(6, 20, 41, .1) 100%),
        linear-gradient(180deg, rgba(6, 20, 41, .5) 0%, rgba(6, 20, 41, 0) 45%, rgba(6, 20, 41, .6) 100%);
}

:root .bg-header h1 {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    text-transform: uppercase;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .22);
}

:root .bg-header .animated {
    animation: none !important;
}

:root .bg-header a.h5,
:root .bg-header i.fa-circle {
    font-family: var(--rn-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rn-muted) !important;
    text-decoration: none;
}

:root .bg-header i.fa-circle {
    font-size: 4px;
    vertical-align: middle;
}

:root .bg-header a.h5:hover {
    color: #fff !important;
}

/* ---------- Cards ---------- */
:root .service-item,
:root .blog-item,
:root .team-item,
:root .price-item {
    border-radius: 18px !important;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}

:root .service-item:hover,
:root .blog-item:hover,
:root .team-item:hover {
    transform: translateY(-4px);
}

:root .blog-item .blog-img,
:root .team-item .team-img {
    overflow: hidden;
}

:root .blog-item img,
:root .team-item img {
    transition: transform .7s cubic-bezier(.16, 1, .3, 1) !important;
}

:root .blog-item:hover img,
:root .team-item:hover img {
    transform: scale(1.04);
}

/* ---------- Glass footer ---------- */
:root .container-fluid.bg-dark.text-light.mt-5 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--rn-navy-deep) !important;
    border: 0 !important;
}

:root .container-fluid.bg-dark.text-light.mt-5::before {
    content: "";
    position: absolute;
    inset: -140px;
    z-index: -2;
    background: url(../img/hero-loop-poster.jpg) center 70% / cover no-repeat;
    filter: blur(40px) saturate(.9);
    opacity: .55;
}

:root .container-fluid.bg-dark.text-light.mt-5::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 20, 41, .72) 0%, rgba(9, 30, 62, .62) 60%, rgba(9, 30, 62, .78) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

:root .footer-about > div.bg-primary {
    background: var(--rn-card) !important;
    border: 1px solid rgba(232, 246, 253, .1) !important;
    border-radius: 18px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

:root .footer-about h1 {
    font-size: 1.35rem;
}

:root .footer-about p {
    color: var(--rn-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

:root .footer-about .form-control {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(232, 246, 253, .3) !important;
    color: #fff;
}

:root .footer-about .form-control::placeholder {
    color: var(--rn-label);
}

:root .footer-about .btn-dark {
    background: var(--rn-brand);
    border-color: var(--rn-brand);
    color: #fff;
}

:root .container-fluid.bg-dark.text-light.mt-5 .section-title h3 {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rn-ice) !important;
}

:root .container-fluid.bg-dark.text-light.mt-5 p,
:root .container-fluid.bg-dark.text-light.mt-5 .link-animated a {
    color: var(--rn-muted) !important;
    font-size: 13.5px;
}

:root .container-fluid.bg-dark.text-light.mt-5 .link-animated a:hover {
    color: #fff !important;
}

:root .container-fluid.bg-dark.text-light.mt-5 .text-primary {
    color: var(--rn-brand) !important;
}

:root .container-fluid.bg-dark.text-light.mt-5 .btn-square.btn-primary {
    background: transparent;
    border: 1px solid rgba(232, 246, 253, .55);
    color: var(--rn-ice);
}

:root .container-fluid.bg-dark.text-light.mt-5 .btn-square.btn-primary:hover {
    background: rgba(6, 163, 218, .18);
    border-color: var(--rn-brand);
}

:root .container-fluid.text-white[style*="#061429"] {
    background: var(--rn-navy-deep) !important;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--rn-label) !important;
    font-size: 13px;
}

:root .container-fluid.text-white[style*="#061429"] a {
    color: var(--rn-ice) !important;
}

/* ---------- Motion primitives ---------- */
:root .wow {
    visibility: visible !important;
    animation-name: none !important;
}

@keyframes wordPullUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.pull-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.pull-word:not(:last-child) {
    margin-right: .3em;
}

.words-visible .pull-word {
    animation: wordPullUp .55s ease forwards;
}

/* Hidden only once JS has taken over (head script sets .ms-js; .ms-fail is the safety net) */
:root.ms-js:not(.ms-fail) .fade-up-reveal:not(.is-visible) {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(14px);
}

.fade-up-reveal.is-visible {
    animation: fadeUp .7s ease forwards;
}

:root.ms-fail .pull-word {
    opacity: 1;
    transform: none;
}

/* Scroll progress (light mode; dark mode uses .ft-progress) */
.ms-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 2px;
    background: var(--rn-brand);
    transform-origin: 0 50%;
    transform: scaleX(0);
    pointer-events: none;
}

.future-theme .ms-progress {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .ronin-media-in,
    .ronin-figure,
    .ronin-figure__float,
    .ronin-figure__floor,
    .ronin-peek,
    .ronin-peek.is-in,
    .pull-word,
    .words-visible .pull-word,
    .fade-up-reveal,
    .fade-up-reveal.is-visible,
    :root.ms-js .fade-up-reveal:not(.is-visible) {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        translate: none !important;
    }

    .ronin-figure {
        transform: translateX(var(--fx, -50%)) !important;
    }

    .ronin-peek {
        clip-path: inset(0 0 22px 0);
    }
}
