html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

:root{
    --ink-blue: #0409c0;
    --glass-strong: rgba(255,255,255,0.78);
    --line: rgba(0,0,0,0.18);
}

.page {
    position: relative;
    min-height: 100vh;
    isolation: isolate;}

.page::before{
    content: "";
    position: fixed;
    inset: 0;
    background: url("../images/bg.png") center center / cover no-repeat;
    opacity: 0.62;
    filter: contrast(1.08) saturate(0.92);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -2;
}

.page::after{
    content: "";
    position: fixed;
    inset: 0;
    background:
            linear-gradient(
                    to bottom,
                    rgba(234,240,250,0.42) 0%,
                    rgba(234,240,250,0.14) 18%,
                    rgba(234,240,250,0.04) 42%,
                    rgba(234,240,250,0.12) 100%
            );
    pointer-events: none;
    z-index: -1;
}

/* =========================
   LOADER + CUBE
   ========================= */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
            radial-gradient(circle at center, rgba(255,255,255,0.72) 0%, rgba(231,237,248,0.92) 42%, rgba(205,218,242,0.98) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 900ms ease, visibility 900ms ease;
}

.loader::before,
.loader::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.loader::before{
    background:
            linear-gradient(rgba(4,9,192,0.055) 1px, transparent 1px),
            linear-gradient(90deg, rgba(4,9,192,0.055) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.7;
    animation: loader-grid-drift 18s linear infinite;
}

.loader::after{
    background:
            radial-gradient(circle at 20% 25%, rgba(4,9,192,0.10) 0%, transparent 18%),
            radial-gradient(circle at 80% 30%, rgba(4,9,192,0.08) 0%, transparent 20%),
            radial-gradient(circle at 30% 75%, rgba(4,9,192,0.08) 0%, transparent 18%),
            radial-gradient(circle at 72% 72%, rgba(4,9,192,0.10) 0%, transparent 22%);
    filter: blur(14px);
    opacity: 0.85;
    animation: loader-ambient-pulse 7s ease-in-out infinite;
}

.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__scene {
    position: relative;
    display: grid;
    place-items: center;
    gap: 18px;
}

.quote-top.is-waiting {
    visibility: hidden;
}

.main {
    opacity: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px 48px;
    box-sizing: border-box;
    transition: opacity 900ms ease;
}

.loader.is-hidden ~ .header,
.loader.is-hidden ~ .main {
    opacity: 1;
}

.cube-scene{
    --size: clamp(150px, 18vw, 200px);
    --d: calc(var(--size) / 2);
    --edge: 2px;
    --ink: rgb(4, 9, 192);
    --panelA: rgba(255,255,255,0.98);
    --panelB: rgba(236,240,255,0.95);

    position: relative;
    width: max(520px, 46vw);
    height: 280px;
    perspective: 1100px;
    display: grid;
    place-items: center;
}

.cube{
    width: var(--size);
    height: var(--size);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-14deg) rotateY(28deg);
    will-change: transform;
}

.cube::after{
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -18%;
    height: 22%;
    background: radial-gradient(closest-side, rgba(0,0,0,0.18), rgba(0,0,0,0));
    transform: translateZ(-1px);
    filter: blur(2px);
    opacity: 0.6;
    pointer-events: none;
}

.cube__face{
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1.5px solid rgba(4, 9, 192, 0.55);
    background: linear-gradient(145deg, var(--panelA), var(--panelB));
    box-shadow:
            0 0 8px rgba(4, 9, 192, 0.18),
            0 10px 20px rgba(0,0,0,0.12);
    backface-visibility: hidden;
}

.cube__face--front  { transform: translateZ(var(--d)); }
.cube__face--back   { transform: rotateY(180deg) translateZ(var(--d)); }
.cube__face--right  { transform: rotateY(90deg) translateZ(var(--d)); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(var(--d)); }
.cube__face--top    { transform: rotateX(90deg) translateZ(var(--d)); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(var(--d)); }

.cube__door{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(145deg, var(--panelA), var(--panelB));
    border: 1.5px solid rgba(4, 9, 192, 0.55);
    box-shadow:
            0 0 8px rgba(4, 9, 192, 0.18),
            0 10px 20px rgba(0,0,0,0.12);
    backface-visibility: hidden;
}

.cube__door--left{
    left: 0;
    border-radius: 8px 0 0 8px;
    transform-origin: left center;
    transform: translateZ(calc(var(--d) + 1px)) rotateY(0deg);
}

.cube__door--right{
    right: 0;
    border-radius: 0 8px 8px 0;
    transform-origin: right center;
    transform: translateZ(calc(var(--d) + 1px)) rotateY(0deg);
}

.cube__door--left::after,
.cube__door--right::after{
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(4, 9, 192, 0.25);
}

.cube__door--left::after { right: 0; }
.cube__door--right::after { left: 0; }

.cube__core{
    position: absolute;
    inset: 18%;
    border-radius: 8px;
    transform: translateZ(calc(var(--d) + 2px)) scale(0.96);
    background: rgb(255,255,255);
    border: 1.5px solid rgba(4, 9, 192, 0.75);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 320ms ease, transform 520ms cubic-bezier(.2,.9,.2,1);
}

.cube__logo{
    width: 85%;
    height: 85%;
    object-fit: contain;
    display: block;
}

.cube__tagline{
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(560px, 92vw);
    margin: 0;
    transform: translate(-50%, -50%) scale(0.92);
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.25;
    color: var(--ink-blue);
    font-weight: 700;
    letter-spacing: 0.2px;
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    will-change: transform, opacity;
}

.cube-scene.is-tagline-visible .cube__tagline{
    opacity: 1;
    transform: translate(-50%, -152px) scale(1);
    transition:
            transform 650ms cubic-bezier(.2,.9,.2,1),
            opacity 320ms ease;
}

.cube.is-spinning{
    animation: cube-spin-stop 1.9s cubic-bezier(.32,.02,.2,1) forwards;
}

.cube.is-front{
    transform: rotateX(-10deg) rotateY(0deg);
}

.cube.is-opening .cube__door--left{
    transition: transform 900ms cubic-bezier(.2,.9,.2,1);
    transform: translateZ(calc(var(--d) + 1px)) rotateY(-108deg);
}

.cube.is-opening .cube__door--right{
    transition: transform 900ms cubic-bezier(.2,.9,.2,1);
    transform: translateZ(calc(var(--d) + 1px)) rotateY(108deg);
}

.cube.is-opening .cube__core{
    opacity: 1;
    transform: translateZ(calc(var(--d) + 8px)) scale(1.02);
}

.cube.is-reveal{
    transition: transform 700ms cubic-bezier(.2,.9,.2,1);
    transform: rotateX(-14deg) rotateY(18deg);
}

/* =========================
   NAV
   ========================= */

.header{
    position: sticky;
    top: 0;
    z-index: 50;
    opacity: 0;
    transition: opacity 900ms ease;
    background:
            linear-gradient(to bottom, rgba(255,255,255,0.78), rgba(255,255,255,0.46));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.nav{
    position: relative;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 10px clamp(14px, 2.2vw, 22px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-sizing: border-box;
}

.nav__brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-blue);
}

.nav__brandMark{
    margin-top: 7px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.nav__brandText{
    font-family: "Open Sans", sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    letter-spacing: 0.4px;
    font-weight: 700;
}

.nav__list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
}

.nav__link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: rgba(2,3,40,0.88);
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav__link:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.62);
    border-color: rgba(4,9,192,0.22);
    box-shadow: 0 10px 22px rgba(0,0,42,0.12);
    color: var(--ink-blue);
}

.nav__link--active{
    background: rgba(4,9,192,0.10);
    border-color: rgba(4,9,192,0.35);
    color: var(--ink-blue);
    box-shadow: inset 0 0 0 1px rgba(4,9,192,0.10);
}

.nav__toggle{
    display: none;
    border: 1px solid rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.nav__toggle:hover{
    transform: translateY(-1px);
    border-color: rgba(4,9,192,0.25);
    box-shadow: 0 10px 22px rgba(0,0,42,0.12);
}

.nav__toggleIcon{
    width: 20px;
    height: 2px;
    background: rgba(2,3,40,0.85);
    display: block;
    position: relative;
}

.nav__toggleIcon::before,
.nav__toggleIcon::after{
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: rgba(2,3,40,0.85);
}

.nav__toggleIcon::before { top: -6px; }
.nav__toggleIcon::after { top: 6px; }

.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =========================
   SERVICES ORBIT - DESKTOP
   ========================= */

.services-orbit{
    width: min(1500px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.quote-top{
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.25;
    margin: 0;
    color: #000000;
    font-weight: 700;
}

.quote-top .quote-top-bg{
    display: inline-block;
    padding: 8px 18px;
    color: #0409c0;
    background: rgba(255,255,255,0.92);
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow:
            0 12px 28px rgba(0,0,0,0.14),
            0 2px 8px rgba(4,9,192,0.08),
            inset 0 1px 0 rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.orbit-stage{
    --track-w: 980px;
    --track-h: 620px;
    --card-w: clamp(210px, 18vw, 255px);
    --card-h: clamp(180px, 18vw, 215px);
    --orbit-speed: 30s;

    position: relative;
    width: min(1300px, 100%);
    height: 900px;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    border-radius: 18px;
    filter: drop-shadow(0 20px 32px rgba(0,0,0,0.10));
}


.orbit-stage::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(calc(var(--track-w) + 120px), 92%);
    height: min(calc(var(--track-h) + 120px), 86%);
    transform: translate(-50%, -50%) rotate(-0.35deg);
    border-radius: 24px;

    background:
            radial-gradient(circle at 18% 12%, rgba(255,255,255,0.10), transparent 22%),
            radial-gradient(circle at 82% 18%, rgba(255,255,255,0.06), transparent 24%),
            radial-gradient(circle at 50% 100%, rgba(0,0,0,0.08), transparent 30%),
            linear-gradient(rgba(26, 52, 145, 0.90), rgba(19, 42, 126, 0.92)),
            repeating-linear-gradient(
                    0deg,
                    rgb(255, 255, 255) 0px,
                    rgb(255, 255, 255) 1px,
                    transparent 1px,
                    transparent 64px
            ),
            repeating-linear-gradient(
                    90deg,
                    rgb(255, 255, 255) 0px,
                    rgb(255, 255, 255) 1px,
                    transparent 1px,
                    transparent 64px
            ),
            repeating-linear-gradient(
                    0deg,
                    rgb(255, 255, 255) 0px,
                    rgb(255, 255, 255) 1px,
                    transparent 1px,
                    transparent 16px
            ),
            repeating-linear-gradient(
                    90deg,
                    rgb(255, 255, 255) 0px,
                    rgb(255, 255, 255) 1px,
                    transparent 1px,
                    transparent 16px
            );

    box-shadow:
            0 24px 50px rgba(0,0,0,0.16),
            0 8px 18px rgba(0,0,0,0.10),
            inset 0 0 0 1px rgba(255,255,255,0.12),
            inset 0 1px 0 rgba(255,255,255,0.18);

    pointer-events: none;
    z-index: 0;
}

.orbit-stage::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(calc(var(--track-w) + 40px), 86%);
    height: min(calc(var(--track-h) + 40px), 78%);
    transform: translate(-50%, -50%) rotate(-0.2deg);
    border: 1px dashed rgba(255,255,255,0.46);
    border-radius: 18px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}



.logo-card{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: clamp(280px, 24vw, 360px);
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.98);
    border: 2px solid rgb(4, 9, 192);
    box-shadow: 0 18px 34px rgba(0,0,0,0.14);
    display: grid;
    place-items: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.logo-card__img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.logo-hover-panel{
    position: absolute;
    inset: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.logo-card:hover .logo-card__img{
    opacity: 0;
    transform: scale(0.98);
}

.logo-card:hover .logo-hover-panel{
    opacity: 1;
    transform: scale(1);
}

.owner-photo{
    width: min(62%, 190px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 14px 28px rgba(0,0,0,0.20);
    transition: transform 300ms ease, box-shadow 300ms ease;
    flex-shrink: 0;
}

.logo-card:hover .owner-photo{
    transform: scale(1.03);
    box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}

.speech-bubble{
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    background:
            radial-gradient(circle at 20% 18%, rgba(255,255,255,0.75), transparent 22%),
            radial-gradient(circle at 78% 30%, rgba(0,0,0,0.025), transparent 26%),
            repeating-linear-gradient(
                    0deg,
                    rgba(0,0,0,0.012) 0px,
                    rgba(0,0,0,0.012) 1px,
                    transparent 1px,
                    transparent 26px
            ),
            repeating-linear-gradient(
                    90deg,
                    rgba(0,0,0,0.008) 0px,
                    rgba(0,0,0,0.008) 1px,
                    transparent 1px,
                    transparent 24px
            ),
            linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,247,242,0.97));
    background-blend-mode: normal, multiply, normal, normal, normal;
    border: 1px solid rgba(70,70,70,0.10);
    border-radius: 10px;
    padding: 14px 16px 12px;
    box-shadow:
            0 12px 22px rgba(0,0,0,0.10),
            inset 0 1px 0 rgba(255,255,255,0.7),
            inset 0 0 28px rgba(0,0,0,0.02);
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 20;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    box-sizing: border-box;
}

.logo-card:hover .speech-bubble{
    opacity: 1;
    transform: translateY(0) rotate(-1deg) scale(1);
}

.speech-bubble::before{
    content: "";
    position: absolute;
    top: -8px;
    left: 18px;
    width: 56px;
    height: 18px;
    background: rgba(180, 196, 255, 0.35);
    border: 1px solid rgba(90,110,180,0.10);
    border-radius: 4px;
    transform: rotate(-4deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.speech-bubble::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background:
            linear-gradient(135deg, transparent 0 92%, rgba(210,210,210,0.55) 92% 100%);
    opacity: 0.65;
    pointer-events: none;
}

.bubble-text{
    margin: 0 0 10px 0;
    font-family: "Bpmf Iansui", cursive;
    font-size: 14px;
    line-height: 1.42;
    color: #1a1a1a;
}

.bubble-signature{
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-family: "Bpmf Iansui", cursive;
    font-size: 14px;
    line-height: 1.2;
    color: #2a2a2a;
}

.bubble-signature span{
    display: block;
    font-size: 11px;
    opacity: 0.72;
    margin-top: 4px;
    font-family: "Open Sans", sans-serif;
    letter-spacing: 0.2px;
}

.orbit-card{
    position: absolute;
    width: var(--card-w);
    height: var(--card-h);
    overflow: visible;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    color: #ffffff;
    background: radial-gradient(circle at center, #2563eb 0%, #1e40af 50%, #0f1f4b 100%);
    box-shadow:
            0 0 18px rgba(0, 0, 42, 0.45),
            0 10px 24px rgba(4, 9, 192, 0.10);
    z-index: 3;
    animation: orbit-rect var(--orbit-speed) linear infinite;
    transition:
            box-shadow 220ms ease,
            filter 220ms ease,
            transform 220ms ease;
    isolation: isolate;
}

.orbit-card::before{
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: calc(10px + 16px);
    background:
            radial-gradient(circle at center,
            rgba(4,9,192,0.30) 0%,
            rgba(4,9,192,0.16) 38%,
            rgba(4,9,192,0.05) 58%,
            rgba(4,9,192,0) 76%);
    filter: blur(14px);
    opacity: 0.85;
    pointer-events: none;
    z-index: -2;
    animation: orbit-glow-pulse 3.4s ease-in-out infinite;
}

.orbit-card::after{
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: calc(10px + 7px);
    background:
            radial-gradient(circle at center,
            rgba(111,147,255,0.42) 0%,
            rgba(4,9,192,0.18) 40%,
            rgba(4,9,192,0) 72%);
    filter: blur(8px);
    opacity: 0.75;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
    animation: orbit-glow-pulse-2 2.4s ease-in-out infinite;
}

.orbit-card__ripple{
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
            circle at var(--x, 50%) var(--y, 50%),
            rgba(255,255,255,.35) 0%,
            rgba(255,255,255,.18) 12%,
            transparent 42%
    );
    transition: opacity .3s ease;
    z-index: 4;
}

.orbit-card:active .orbit-card__ripple{
    opacity: 1;
}

.orbit-stage:has(.orbit-card:hover) .orbit-card{
    animation-play-state: paused;
}

.orbit-stage:has(.orbit-card:hover) .orbit-card::before,
.orbit-stage:has(.orbit-card:hover) .orbit-card::after{
    animation-play-state: paused;
}

.orbit-card:hover{
    box-shadow:
            0 22px 34px rgba(0, 0, 42, 0.34),
            0 0 26px rgba(4, 9, 192, 0.30);
    filter: brightness(1.06);
    transform: scale(1.03);
    z-index: 20;
}

.orbit-card:hover::before{
    opacity: 1;
    filter: blur(18px);
}

.orbit-card:hover::after{
    opacity: 1;
    filter: blur(12px);
}

.tile__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

.tile__label{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    padding: 10px 12px;
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 700;
    letter-spacing: 0.2px;
    background: linear-gradient(to top, rgba(66, 70, 250, 0.96), rgba(2, 3, 40, 0));
    z-index: 5;
}

.orbit-planet--1 .orbit-card{ animation-delay: 0s; }
.orbit-planet--2 .orbit-card{ animation-delay: calc(var(--orbit-speed) / -6 * 1); }
.orbit-planet--3 .orbit-card{ animation-delay: calc(var(--orbit-speed) / -6 * 2); }
.orbit-planet--4 .orbit-card{ animation-delay: calc(var(--orbit-speed) / -6 * 3); }
.orbit-planet--5 .orbit-card{ animation-delay: calc(var(--orbit-speed) / -6 * 4); }
.orbit-planet--6 .orbit-card{ animation-delay: calc(var(--orbit-speed) / -6 * 5); }

/* founder note hidden on desktop */
.founder-note{
    display: none;
}

/* =========================
   SCROLL REVEAL
   ========================= */

.reveal{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1200px){
    .orbit-stage{
        --track-w: 860px;
        --track-h: 560px;
        --card-w: 230px;
        --card-h: 190px;
        height: 840px;
    }

    .logo-card{
        width: 320px;
    }
}

@media (max-width: 1000px){
    .orbit-stage{
        --track-w: 760px;
        --track-h: 500px;
        --card-w: 210px;
        --card-h: 175px;
        height: 760px;
    }

    .logo-card{
        width: 285px;
    }

    .speech-bubble{
        left: auto;
        right: calc(100% + 18px);
    }

    .speech-bubble::before{
        left: auto;
        right: 18px;
    }
}
/* =========================
   FOOTER
   ========================= */

.site-footer{
    margin-top: 60px;
    padding: 28px 20px 18px;
    border-top: 1px solid rgba(4,9,192,0.18);

    background:
            linear-gradient(
                    to bottom,
                    rgba(255,255,255,0.55),
                    rgba(255,255,255,0.75)
            );

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-inner{
    width: min(1100px, 100%);
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* CONTACT */

.footer-contact{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-label{
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(2,3,40,0.6);
}

.footer-link{
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgb(4,9,192);
    text-decoration: none;
}

.footer-link:hover{
    text-decoration: underline;
}

/* SERVICE AREA */

.footer-service{
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(2,3,40,0.8);
}

.footer-service{
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(2,3,40,0.8);

    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-pin svg{
    fill: rgb(4,9,192);
    opacity: .85;
}



.footer-copy{
    text-align:center;
    font-size:12px;
    color:rgba(0,0,0,.6);
    margin-top:16px;
}

.footer-credit{
    text-align:center;
    font-size:11px;
    color:rgba(0,0,0,.5);
    margin-top:4px;
}

.footer-credit a{
    color: rgb(4,9,192);
    text-decoration: none;
    font-weight: 700;
}

.footer-credit a:hover{
    text-decoration: underline;
}


/* =========================
   FOOTER MOBILE
   ========================= */

@media (max-width: 640px){

    .footer-inner{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

}
/* =========================
   MOBILE NAV
   ========================= */

@media (max-width: 820px){
    .nav__toggle{
        display: inline-flex;
        align-items: center;
    }

    .nav__list{
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 10px);
        display: grid;
        gap: 10px;
        padding: 12px;
        background: rgba(255,255,255,0.78);
        border: 1px solid rgba(0,0,0,0.14);
        border-radius: 14px;
        box-shadow: 0 18px 36px rgba(0,0,42,0.14);
        transform: translateY(-6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
        z-index: 100;
    }

    .nav.is-open .nav__list{
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav__link{
        width: 100%;
        justify-content: flex-start;
        padding: 12px;
    }
}

/* =========================
   MOBILE LAYOUT
   ========================= */

@media (max-width: 900px){
    .page{
        background-attachment: scroll;
    }

    .main{
        padding: 18px 12px 32px;
        display: flex;
        justify-content: center;
    }
    .loader__scene{
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        place-items: center;
    }
    .cube-scene{
        --size: clamp(120px, 34vw, 160px);
        width: 100%;
        max-width: 320px;
        height: 220px;
        margin: 0 auto;
        display: grid;
        place-items: center;
    }

    .cube{
        margin: 0 auto;
    }

    .cube__tagline{
        width: min(90vw, 280px);
        text-align: center;
    }

    .cube-scene.is-tagline-visible .cube__tagline{
        transform: translate(-50%, -118px) scale(1);
    }
    .services-orbit{
        width: 100%;
        max-width: 390px;
        gap: 18px;
        align-items: center;
        margin: 0 auto;
    }

    .quote-top{
        font-size: 14px;
        line-height: 1.3;
        padding: 0 8px;
        text-align: center;
        width: 100%;
    }

    .orbit-stage{
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        overflow: visible;
        background-image: none;
        margin: 0 auto;
    }

    .orbit-stage::before,
    .orbit-stage::after{
        display: none;
    }

    .logo-card{
        position: static;
        transform: none;
        width: 100%;
        max-width: 360px;
        aspect-ratio: auto;
        min-height: auto;
        padding: 18px;
        display: grid;
        place-items: center;
        order: 1;
        margin: 0 auto;
    }

    .logo-card__img{
        opacity: 1 !important;
        transform: none !important;
        width: 100%;
        height: auto;
        max-width: 260px;
        display: block;
        margin: 0 auto;
    }

    .logo-hover-panel{
        display: none !important;
    }

    .orbit-ring{
        position: static;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        justify-content: center;
        order: 2;
        margin: 0 auto;
    }

    .orbit-planet{
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
    }

    .orbit-card{
        position: relative;
        animation: none;
        transform: none !important;
        width: 100%;
        max-width: 360px;
        height: 220px;
        overflow: hidden;
        display: block;
        margin: 0 auto;
    }

    .orbit-card::before,
    .orbit-card::after{
        display: none;
    }

    .orbit-card__ripple{
        display: block;
    }

    .tile__img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 10px;
    }

    .tile__label{
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        padding: 14px;
        font-size: 17px;
        line-height: 1.2;
        font-weight: 700;
        background: linear-gradient(to top, rgba(66, 70, 250, 0.96), rgba(2, 3, 40, 0));
        z-index: 5;
    }

    .founder-note{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: 100%;
        max-width: 360px;
        order: 3;
        margin: 0 auto;
        text-align: center;
    }


    .owner-photo--mobile{
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 14px;
        box-shadow: 0 14px 28px rgba(0,0,0,0.20);
        display: block;
        margin: 0 auto;
    }

    .speech-bubble--mobile{
        position: static;
        width: 100%;
        max-width: 320px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        margin: 0 auto;
        padding: 18px 16px;
        box-sizing: border-box;
        text-align: center;
    }

    .speech-bubble--mobile::before{
        display: none;
    }

    .bubble-text{
        margin: 0 0 14px;
        text-align: center;
    }

    .bubble-signature{
        margin: 10px 0 0;
        text-align: center;
    }

    .bubble-signature span{
        text-align: center;
    }

    .nav__brandMark{
        width: 34px;
        height: 34px;
        margin-top: 0;
    }

    .nav__brandText{
        font-size: 15px;
    }

    .quote-top .quote-top-bg{
        padding: 8px 12px;
        border-radius: 12px;
    }
}

/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce){
    .cube.is-spinning { animation: none; }
    .cube.is-opening .cube__door--left,
    .cube.is-opening .cube__door--right,
    .cube__core,
    .loader,
    .main,
    .cube__tagline,
    .orbit-ring,
    .orbit-card,
    .reveal {
        transition: none;
        animation: none;
        transform: none !important;
    }
}

/* =========================
   KEYFRAMES
   ========================= */

@keyframes orbit-rect{
    0%{
        left: calc(50% - (var(--track-w) / 2) - (var(--card-w) / 2));
        top: calc(50% - (var(--track-h) / 2) - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    12.5%{
        left: calc(50% - (var(--card-w) / 2));
        top: calc(50% - (var(--track-h) / 2) - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    25%{
        left: calc(50% + (var(--track-w) / 2) - (var(--card-w) / 2));
        top: calc(50% - (var(--track-h) / 2) - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    37.5%{
        left: calc(50% + (var(--track-w) / 2) - (var(--card-w) / 2));
        top: calc(50% - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    50%{
        left: calc(50% + (var(--track-w) / 2) - (var(--card-w) / 2));
        top: calc(50% + (var(--track-h) / 2) - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    62.5%{
        left: calc(50% - (var(--card-w) / 2));
        top: calc(50% + (var(--track-h) / 2) - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    75%{
        left: calc(50% - (var(--track-w) / 2) - (var(--card-w) / 2));
        top: calc(50% + (var(--track-h) / 2) - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    87.5%{
        left: calc(50% - (var(--track-w) / 2) - (var(--card-w) / 2));
        top: calc(50% - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
    100%{
        left: calc(50% - (var(--track-w) / 2) - (var(--card-w) / 2));
        top: calc(50% - (var(--track-h) / 2) - (var(--card-h) / 2));
        transform: rotate(0deg);
    }
}

@keyframes orbit-glow-pulse{
    0%, 100%{
        opacity: 0.72;
        transform: scale(0.98);
    }
    50%{
        opacity: 0.98;
        transform: scale(1.03);
    }
}

@keyframes orbit-glow-pulse-2{
    0%, 100%{
        opacity: 0.58;
        transform: scale(0.99);
    }
    50%{
        opacity: 0.92;
        transform: scale(1.04);
    }
}

@keyframes cube-spin-stop{
    0%   { transform: rotateX(-14deg) rotateY(28deg); }
    70%  { transform: rotateX(-14deg) rotateY(388deg); }
    100% { transform: rotateX(-10deg) rotateY(360deg); }
}

@keyframes loader-grid-drift{
    0%{ transform: translate3d(0, 0, 0); }
    100%{ transform: translate3d(26px, 26px, 0); }
}

@keyframes loader-ambient-pulse{
    0%, 100%{
        opacity: 0.55;
        transform: scale(1);
    }
    50%{
        opacity: 0.95;
        transform: scale(1.03);
    }
}