.reference-page {
    --entity-violet: #e11d48;
    --entity-cyan: #94a3b8;
    --entity-pink: #f43f5e;
}

.reference-page .immersive-hero {
    min-height: 100svh;
    isolation: isolate;
    grid-template-columns: minmax(0, 0.92fr) minmax(32rem, 1.08fr);
    gap: clamp(1rem, 3vw, 4rem);
    padding-top: clamp(9rem, 17vh, 12.5rem);
    padding-bottom: clamp(6rem, 12vh, 8rem);
    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(102, 81, 255, 0.2),
            transparent 32rem
        ),
        radial-gradient(
            circle at 62% 60%,
            rgba(255, 73, 176, 0.08),
            transparent 28rem
        ),
        #080220;
}

.reference-page .immersive-hero::before {
    background:
        linear-gradient(
            90deg,
            rgba(8, 2, 32, 0.82) 0%,
            rgba(8, 2, 32, 0.2) 57%,
            transparent 100%
        ),
        radial-gradient(
            circle at 75% 28%,
            rgba(95, 75, 255, 0.24),
            transparent 34%
        );
}

.reference-page .immersive-hero .hero-copy {
    width: auto;
    max-width: 43rem;
    margin-top: 0;
    align-self: center;
}

.reference-page .immersive-hero .hero-copy h1 {
    font-size: clamp(3.4rem, 5.25vw, 5.85rem);
    line-height: 0.96;
    letter-spacing: -0.052em;
}

.hero-entity-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.48);
    font: 600 0.7rem/1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-entity-proof span {
    display: flex;
    align-items: baseline;
    gap: 0.38rem;
}

.hero-entity-proof b {
    color: #fff;
    font-size: 0.92rem;
}

.hero-entity-proof > i {
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(121, 102, 255, 0.1),
        rgba(121, 102, 255, 0.75),
        rgba(121, 102, 255, 0.1)
    );
}

.agency-hero-stage {
    position: relative;
    z-index: 3;
    min-width: 0;
    height: clamp(32rem, 70vh, 46rem);
    perspective: 1100px;
    transform-style: preserve-3d;
    isolation: isolate;
}

.agency-hero-stage::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 8% -6% 5% 4%;
    border-radius: 36% 64% 48% 52%;
    background: radial-gradient(
        ellipse,
        rgba(110, 88, 255, 0.3),
        rgba(82, 41, 190, 0.1) 48%,
        transparent 68%
    );
    filter: blur(32px);
}

.agency-hero-frame {
    position: absolute;
    z-index: 1;
    inset: 10% -7% 10% -2%;
    overflow: hidden;
    border: 1px solid rgba(166, 151, 255, 0.26);
    border-radius: 2.4rem;
    background: #07031b;
    box-shadow:
        0 3rem 8rem rgba(0, 0, 0, 0.48),
        0 0 0 0.8rem rgba(119, 95, 255, 0.025),
        0 0 6rem rgba(91, 66, 232, 0.2),
        inset 0 1px rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: rotateY(-5deg) rotateX(1.5deg);
    transform-origin: center right;
    transform-style: preserve-3d;
    animation: agency-hero-enter 0.9s 0.24s cubic-bezier(0.16, 0.9, 0.22, 1)
        forwards;
}

.agency-hero-frame::before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 2, 29, 0.42), transparent 35%),
        linear-gradient(180deg, transparent 65%, rgba(7, 2, 29, 0.58));
    pointer-events: none;
}

.agency-hero-frame::after {
    content: '';
    position: absolute;
    z-index: 4;
    inset: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 1.85rem;
    pointer-events: none;
}

.agency-hero-frame > img,
.agency-hero-frame > video,
.agency-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.08) contrast(1.04);
    display: block;
}

.agency-hero-scan {
    position: absolute;
    z-index: 3;
    top: -22%;
    left: -30%;
    width: 36%;
    height: 145%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(125, 231, 255, 0.11),
        transparent
    );
    filter: blur(9px);
    rotate: 12deg;
    animation: agency-scan 8s 1s ease-in-out infinite;
}

.entity-stage-label,
.entity-stage-status {
    position: absolute;
    z-index: 5;
    border: 1px solid rgba(162, 145, 255, 0.3);
    background: rgba(13, 7, 44, 0.58);
    box-shadow:
        0 1.2rem 3.5rem rgba(0, 0, 0, 0.32),
        inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(1.25);
}

.entity-stage-label {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font: 700 0.72rem/1 var(--display);
    letter-spacing: 0.055em;
    text-transform: uppercase;
    animation: entity-label-float 5s ease-in-out infinite;
}

.entity-stage-label > i,
.entity-stage-status > i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--entity-violet);
    box-shadow: 0 0 0.7rem var(--entity-violet);
}

.label-software {
    top: 12%;
    left: -2%;
}

.label-marketing {
    top: 26%;
    right: -4%;
    animation-delay: -1.8s;
}

.label-marketing > i {
    background: var(--entity-pink);
    box-shadow: 0 0 0.7rem var(--entity-pink);
}

.label-automation {
    right: 4%;
    bottom: 14%;
    animation-delay: -3.4s;
}

.label-automation > i {
    background: var(--entity-cyan);
    box-shadow: 0 0 0.7rem var(--entity-cyan);
}

@media (min-width: 1051px) {
    .entity-stage-label {
        gap: 0.72rem;
        padding: 0.88rem 1.28rem;
        border-color: rgba(190, 178, 255, 0.62);
        background: linear-gradient(
            135deg,
            rgba(37, 25, 90, 0.94),
            rgba(12, 7, 39, 0.86)
        );
        box-shadow:
            0 1.4rem 3.8rem rgba(0, 0, 0, 0.46),
            0 0 1.8rem rgba(121, 102, 255, 0.22),
            inset 0 1px rgba(255, 255, 255, 0.16);
        color: rgba(255, 255, 255, 0.98);
        font-size: 0.88rem;
        letter-spacing: 0.065em;
        text-shadow: 0 0 1rem rgba(255, 255, 255, 0.2);
    }

    .entity-stage-label > i {
        width: 0.56rem;
        height: 0.56rem;
        box-shadow:
            0 0 0 0.22rem rgba(121, 102, 255, 0.12),
            0 0 1rem var(--entity-violet);
    }

    .label-marketing {
        border-color: rgba(255, 91, 184, 0.56);
        box-shadow:
            0 1.4rem 3.8rem rgba(0, 0, 0, 0.46),
            0 0 1.9rem rgba(255, 91, 184, 0.2),
            inset 0 1px rgba(255, 255, 255, 0.16);
    }

    .label-automation {
        border-color: rgba(102, 231, 255, 0.52);
        box-shadow:
            0 1.4rem 3.8rem rgba(0, 0, 0, 0.46),
            0 0 1.9rem rgba(102, 231, 255, 0.18),
            inset 0 1px rgba(255, 255, 255, 0.16);
    }
}

.entity-stage-status {
    bottom: 6%;
    left: 3%;
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.65rem;
    color: rgba(255, 255, 255, 0.52);
    font: 600 0.58rem/1 var(--display);
    letter-spacing: 0.12em;
}

.entity-stage-status > i {
    background: #69f5b1;
    box-shadow: 0 0 0.7rem #69f5b1;
    animation: entity-status-pulse 1.8s ease-in-out infinite;
}

/* Three capabilities become one continuous story. */
.immersive-bridge {
    position: relative;
    z-index: 4;
    overflow: hidden;
    border-block: 1px solid rgba(143, 125, 255, 0.12);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(109, 85, 255, 0.06),
            transparent
        ),
        #090321;
}

.immersive-bridge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(70rem, 90vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, #7b68ff, transparent);
    transform: translateX(-50%);
}

.immersive-bridge .trust-title {
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.entity-capability-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(143, 125, 255, 0.14);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.capability-segment {
    --capability-accent: var(--entity-violet);
    --capability-delay: 0s;
    position: relative;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 5.6rem;
    padding: 1rem 1.4rem;
    border-right: 1px solid rgba(143, 125, 255, 0.14);
    background: radial-gradient(
        circle at 50% 140%,
        rgba(116, 91, 255, 0.15),
        transparent 55%
    );
    overflow: hidden;
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.85, 0.25, 1),
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}

.entity-capability-strip.reveal .capability-segment {
    opacity: 0;
    transform: translateY(1.15rem);
}

.entity-capability-strip.reveal.visible .capability-segment {
    opacity: 1;
    transform: translateY(0);
}

.entity-capability-strip.reveal.visible .capability-segment:nth-child(2) {
    transition-delay: 0.12s;
}

.entity-capability-strip.reveal.visible .capability-segment:nth-child(3) {
    transition-delay: 0.24s;
}

.capability-segment::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 -42%;
    width: 34%;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--capability-accent) 16%, transparent),
        transparent
    );
    filter: blur(0.2rem);
    transform: skewX(-17deg);
    animation: capability-light-pass 7.2s var(--capability-delay) ease-in-out
        infinite;
    pointer-events: none;
}

.capability-segment:last-child {
    border-right: 0;
}

.capability-segment:nth-child(2) {
    --capability-accent: var(--entity-pink);
    --capability-delay: -2.35s;
}

.capability-segment:nth-child(3) {
    --capability-accent: var(--entity-cyan);
    --capability-delay: -4.7s;
}

.capability-segment > span {
    color: rgba(255, 255, 255, 0.25);
    font: 700 0.64rem/1 var(--display);
    letter-spacing: 0.08em;
}

.capability-segment > i {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(139, 121, 255, 0.25);
    border-radius: 0.8rem;
    background: rgba(113, 89, 255, 0.09);
    color: var(--entity-violet);
    font-style: normal;
    box-shadow: 0 0 1.5rem rgba(114, 90, 255, 0.12);
    animation: capability-icon-breathe 3.8s var(--capability-delay) ease-in-out
        infinite;
}

.capability-segment:nth-child(2) > i {
    color: var(--entity-pink);
}

.capability-segment:nth-child(3) > i {
    color: var(--entity-cyan);
}

.capability-segment > strong {
    display: inline-flex;
    font: 600 clamp(1.05rem, 1.5vw, 1.35rem)/1 var(--display);
}

.capability-segment > strong > span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    animation: capability-letter-wave 5.8s
        calc(var(--capability-delay) + var(--letter-index) * 0.055s) ease-in-out
        infinite;
}

@media (hover: hover) and (pointer: fine) {
    .entity-capability-strip.reveal.visible .capability-segment:hover {
        z-index: 2;
        background-color: color-mix(
            in srgb,
            var(--capability-accent) 8%,
            transparent
        );
        box-shadow: inset 0 0 2.8rem
            color-mix(in srgb, var(--capability-accent) 9%, transparent);
        transform: translateY(-0.25rem);
        transition-delay: 0s;
    }
}

.entity-journey {
    position: relative;
    z-index: 3;
    background: #060119;
}

.journey-shell {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 45rem;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 77% 49%,
            rgba(100, 74, 255, 0.19),
            transparent 31rem
        ),
        radial-gradient(
            circle at 62% 80%,
            rgba(255, 69, 173, 0.075),
            transparent 25rem
        ),
        linear-gradient(180deg, #08021f, #050117);
}

.journey-shell::before,
.journey-shell::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.journey-shell::before {
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(
        circle,
        rgba(166, 148, 255, 0.55) 0 1px,
        transparent 1.5px
    );
    background-size: 5rem 5rem;
    mask-image: linear-gradient(90deg, transparent, black 55%, transparent);
}

.journey-shell::after {
    right: -12rem;
    bottom: -18rem;
    width: 48rem;
    height: 48rem;
    border: 1px solid rgba(120, 96, 255, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 7rem rgba(120, 96, 255, 0.025),
        0 0 0 14rem rgba(120, 96, 255, 0.015);
}

.journey-grid {
    position: relative;
    z-index: 2;
    height: 100%;
}

.journey-heading {
    position: absolute;
    z-index: 6;
    top: clamp(5.5rem, 11vh, 8rem);
    left: 0;
    width: min(42%, 39rem);
}

.journey-heading .eyebrow {
    margin-bottom: 1.2rem;
}

.journey-heading h2 {
    margin: 0;
    font-size: clamp(2.7rem, 4.25vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.journey-heading h2 em {
    color: transparent;
    background: linear-gradient(90deg, #9c86ff, #6c62ff 48%, #62ddff);
    background-clip: text;
    -webkit-background-clip: text;
    font-style: normal;
}

.journey-heading > p {
    max-width: 30rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.9rem;
}

.journey-copy-stack {
    position: absolute;
    z-index: 7;
    bottom: clamp(6rem, 12vh, 9rem);
    left: 0;
    width: min(39%, 34rem);
    min-height: 17rem;
}

.journey-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.journey-panel:not(:first-child) {
    visibility: hidden;
    opacity: 0;
}

.journey-panel-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.42);
    font: 700 0.66rem/1 var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journey-panel-meta > span {
    color: #9b88ff;
}

.journey-panel-meta > i {
    width: 2.6rem;
    height: 1px;
    background: rgba(144, 124, 255, 0.42);
}

.journey-panel-meta > small {
    font: inherit;
}

.journey-panel h3 {
    margin-bottom: 0.85rem;
    font-size: clamp(2.1rem, 3.2vw, 3.35rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.journey-panel > p {
    max-width: 31rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
    line-height: 1.65;
}

.journey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.journey-tags > span {
    padding: 0.43rem 0.72rem;
    border: 1px solid rgba(144, 124, 255, 0.2);
    border-radius: 999px;
    background: rgba(128, 101, 255, 0.055);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.63rem;
}

.journey-panel > a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #b4a7ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.journey-panel > a svg {
    transition: transform 0.25s ease;
}

.journey-panel > a:hover svg,
.journey-panel > a:focus-visible svg {
    transform: translate(0.18rem, -0.18rem);
}

.journey-mobile-visual {
    display: none;
}

.journey-visual-stack {
    position: absolute;
    z-index: 3;
    top: 5%;
    right: -5%;
    width: 65%;
    height: 90%;
    perspective: 1100px;
    transform-style: preserve-3d;
}

.journey-visual {
    position: absolute;
    z-index: 3;
    top: 15%;
    right: -1%;
    width: 91%;
    height: 70%;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(147, 127, 255, 0.17);
    border-radius: 2.1rem;
    background: #08031f;
    box-shadow:
        0 3rem 7rem rgba(0, 0, 0, 0.42),
        0 0 6rem rgba(92, 63, 235, 0.15),
        inset 0 1px rgba(255, 255, 255, 0.08);
    transform-origin: center;
    will-change: transform, opacity;
}

.journey-visual:not(:nth-of-type(1)) {
    visibility: hidden;
    opacity: 0;
}

.journey-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.14) contrast(1.05);
    transform: scale(1.035);
}

.journey-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 1, 26, 0.38), transparent 38%),
        linear-gradient(180deg, transparent 67%, rgba(7, 1, 26, 0.62)),
        radial-gradient(circle at 70% 30%, transparent, rgba(7, 1, 26, 0.22));
    pointer-events: none;
}

.journey-visual > span {
    position: absolute;
    z-index: 2;
    top: 1.4rem;
    right: 1.7rem;
    color: rgba(255, 255, 255, 0.24);
    font: 700 clamp(3rem, 6vw, 6rem)/1 var(--display);
    letter-spacing: -0.08em;
}

.journey-depth-grid {
    position: absolute;
    z-index: 1;
    right: -8%;
    bottom: -22%;
    width: 100%;
    height: 70%;
    background-image:
        linear-gradient(rgba(125, 104, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 104, 255, 0.13) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    mask-image: radial-gradient(ellipse, black 10%, transparent 68%);
    transform: rotateX(66deg) rotateZ(-6deg);
    transform-origin: center;
}

.journey-orbit {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 54%;
    border: 1px solid rgba(126, 104, 255, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.journey-orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--entity-cyan);
    box-shadow: 0 0 1rem var(--entity-cyan);
}

.journey-orbit.orbit-a {
    width: 79%;
    height: 50%;
    animation: journey-orbit-a 13s linear infinite;
}

.journey-orbit.orbit-b {
    width: 58%;
    height: 76%;
    animation: journey-orbit-b 17s linear infinite reverse;
}

.journey-orbit.orbit-b::after {
    background: var(--entity-pink);
    box-shadow: 0 0 1rem var(--entity-pink);
}

.journey-agency-badge {
    position: absolute;
    z-index: 5;
    right: 7%;
    bottom: 12%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(166, 149, 255, 0.32);
    border-radius: 999px;
    background: linear-gradient(
        145deg,
        rgba(121, 98, 255, 0.42),
        rgba(20, 11, 62, 0.76)
    );
    box-shadow:
        0 0 0 1rem rgba(112, 86, 255, 0.05),
        0 0 3.5rem rgba(104, 77, 255, 0.3);
    backdrop-filter: blur(12px);
}

.journey-agency-badge > span {
    color: rgba(255, 255, 255, 0.72);
    font: 700 0.68rem/1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-agency-badge > i {
    position: relative;
    width: 2.4rem;
    height: 1px;
    border-radius: 0;
    background: linear-gradient(90deg, #7d68ff, #67e4ff);
    box-shadow: 0 0 0.75rem rgba(103, 228, 255, 0.7);
}

.journey-agency-badge > i::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #72ebff;
    box-shadow: 0 0 0.7rem #72ebff;
    translate: 0 -50%;
}

.journey-navigation {
    position: absolute;
    z-index: 8;
    right: 0;
    bottom: 4.25rem;
    display: grid;
    grid-template-columns: minmax(10rem, 17rem) auto;
    align-items: center;
    gap: 0.8rem 1rem;
}

.journey-navigation > small {
    grid-column: 1 / -1;
    justify-self: end;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journey-progress {
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.journey-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #785fff, #ff5bad, #69dcff);
    box-shadow: 0 0 0.75rem #806cff;
    transform: scaleX(0.02);
    transform-origin: left;
}

.journey-dots {
    display: flex;
    gap: 0.55rem;
}

.journey-dots > i {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

/* Process as a spatial sequence. */
.reference-page .immersive-process {
    position: relative;
    min-height: 67rem;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 44%,
            rgba(100, 77, 255, 0.13),
            transparent 31rem
        ),
        linear-gradient(180deg, #050117, #090322 48%, #07021b);
    perspective: 1100px;
}

.immersive-process .giant-word {
    position: absolute;
    top: 1rem;
    left: 0;
    opacity: 0.72;
    pointer-events: none;
}

.process-intro {
    position: relative;
    z-index: 3;
    max-width: 50rem;
    margin-bottom: 6rem;
    text-align: center;
}

.process-intro .eyebrow {
    margin-bottom: 1.4rem;
}

.process-intro h2 {
    font-size: clamp(2.8rem, 4.6vw, 5rem);
    letter-spacing: -0.045em;
}

.process-intro > p {
    max-width: 38rem;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.5);
}

.process-stage {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    perspective: 1100px;
    transform-style: preserve-3d;
}

.process-energy-rail {
    position: absolute;
    z-index: 0;
    top: 48%;
    right: 10%;
    left: 10%;
    height: 2px;
    overflow: visible;
    background: rgba(126, 105, 255, 0.13);
}

.process-energy-rail > span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--entity-pink),
        var(--entity-violet),
        var(--entity-cyan)
    );
    box-shadow: 0 0 1.2rem rgba(120, 100, 255, 0.8);
    transform-origin: left;
}

.process-station {
    position: relative;
    z-index: 2;
    min-height: 24rem;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid rgba(143, 123, 255, 0.18);
    border-radius: 1.6rem;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(119, 91, 255, 0.17),
            transparent 48%
        ),
        linear-gradient(145deg, rgba(24, 14, 64, 0.9), rgba(8, 3, 28, 0.86));
    box-shadow:
        0 2rem 5rem rgba(0, 0, 0, 0.22),
        inset 0 1px rgba(255, 255, 255, 0.06);
    transform-style: preserve-3d;
}

.process-station-2 {
    margin-top: 4rem;
}

.process-station-3 {
    margin-top: 8rem;
}

.process-station::before {
    content: '';
    position: absolute;
    right: -25%;
    bottom: -32%;
    width: 15rem;
    height: 15rem;
    border: 1px solid rgba(122, 99, 255, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 2.5rem rgba(122, 99, 255, 0.025),
        0 0 0 5rem rgba(122, 99, 255, 0.012);
}

.process-station-index {
    position: absolute;
    top: 1.5rem;
    right: 1.7rem;
    color: rgba(255, 255, 255, 0.12);
    font: 700 2.8rem/1 var(--display);
}

.process-station .process-icon {
    position: relative;
    display: grid;
    width: 4.8rem;
    height: 4.8rem;
    margin: 3.2rem 0 3.5rem;
    place-items: center;
    border: 1px solid rgba(151, 133, 255, 0.3);
    border-radius: 1.35rem;
    background: linear-gradient(
        145deg,
        rgba(119, 90, 255, 0.3),
        rgba(21, 12, 58, 0.85)
    );
    color: #a795ff;
    box-shadow:
        0 0 0 1rem rgba(112, 85, 255, 0.035),
        0 1rem 3rem rgba(28, 9, 96, 0.3);
}

.process-station-2 .process-icon {
    color: var(--entity-pink);
}

.process-station-3 .process-icon {
    color: var(--entity-cyan);
}

.process-station .process-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.process-station .process-icon > i {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0.8rem currentColor;
}

.process-station h3 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.process-station p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.86rem;
}

.process-station-signal {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(137, 116, 255, 0.25);
    border-radius: 50%;
}

.process-station-signal::after {
    content: '';
    position: absolute;
    inset: 0.55rem;
    border-radius: inherit;
    background: #8270ff;
    box-shadow: 0 0 0.8rem #8270ff;
}

/* The integration map becomes a live, explorable network. */
.reference-page .immersive-integrations {
    position: relative;
    overflow: hidden;
    min-height: 68rem;
    background:
        radial-gradient(
            ellipse at 50% 40%,
            rgba(102, 80, 255, 0.24),
            transparent 27rem
        ),
        linear-gradient(180deg, #07021b, #0b0428 48%, #07021b);
}

.integration-galaxy {
    position: relative;
    height: 38rem;
    margin-top: 2.5rem;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.integration-galaxy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(55vw, 44rem);
    height: min(55vw, 44rem);
    border: 1px solid rgba(132, 110, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 5rem rgba(111, 87, 255, 0.02),
        0 0 0 10rem rgba(111, 87, 255, 0.012);
    transform: translate(-50%, -50%) rotateX(68deg);
}

.integration-network {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.integration-network path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.integration-network-base {
    stroke: rgba(150, 132, 255, 0.2);
    stroke-width: 1;
}

.integration-network-flow {
    stroke: #8d7bff;
    stroke-width: 1.5;
    stroke-dasharray: 2 22;
    filter: drop-shadow(0 0 0.35rem rgba(130, 111, 255, 0.9));
    animation: integration-signal-flow 3.8s linear infinite;
}

.integration-entity {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: grid;
    width: 9rem;
    height: 9rem;
    place-items: center;
    border: 1px solid rgba(169, 151, 255, 0.4);
    border-radius: 2.4rem;
    background:
        radial-gradient(
            circle at 38% 30%,
            rgba(108, 227, 255, 0.25),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(116, 88, 255, 0.85),
            rgba(27, 13, 79, 0.92)
        );
    box-shadow:
        0 0 0 1.4rem rgba(113, 87, 255, 0.055),
        0 0 0 3rem rgba(113, 87, 255, 0.022),
        0 0 5rem rgba(90, 66, 225, 0.55),
        inset 0 1px rgba(255, 255, 255, 0.23);
    translate: -50% -50%;
    transform-origin: center;
    backdrop-filter: blur(15px);
}

.integration-entity > span {
    font: 600 2.4rem/1 var(--display);
    letter-spacing: -0.06em;
}

.integration-entity > small {
    position: absolute;
    bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    font: 700 0.48rem/1 var(--display);
    letter-spacing: 0.14em;
}

.integration-entity > i,
.integration-entity > b {
    position: absolute;
    inset: -1.3rem;
    border: 1px solid rgba(143, 124, 255, 0.17);
    border-radius: 2.9rem;
    animation: integration-core-pulse 3.4s ease-in-out infinite;
}

.integration-entity > b {
    inset: -2.9rem;
    border-radius: 3.8rem;
    animation-delay: -1.7s;
}

.integration-node {
    position: absolute;
    z-index: 4;
    display: grid;
    grid-template-columns: 2.55rem auto;
    align-items: center;
    gap: 0.7rem;
    min-width: 9.8rem;
    padding: 0.65rem 0.85rem 0.65rem 0.7rem;
    border: 1px solid rgba(145, 126, 255, 0.22);
    border-radius: 1rem;
    outline: none;
    background: rgba(18, 9, 53, 0.78);
    color: #fff;
    box-shadow:
        0 1.2rem 3rem rgba(0, 0, 0, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.06);
    text-align: left;
    backdrop-filter: blur(16px);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.integration-node > span {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #705dff, #39278d);
    color: #fff;
    font: 750 0.61rem/1 var(--display);
    box-shadow: 0 0 1.6rem rgba(104, 82, 255, 0.26);
}

.integration-node:nth-of-type(2n) > span {
    background: linear-gradient(145deg, #ba4fa8, #522078);
}

.integration-node:nth-of-type(3n) > span {
    background: linear-gradient(145deg, #42a9d1, #263c8e);
}

.integration-node > strong {
    color: rgba(255, 255, 255, 0.78);
    font: 700 0.72rem/1.1 var(--display);
}

.integration-node > em {
    position: absolute;
    z-index: 9;
    top: calc(100% + 0.65rem);
    left: 50%;
    width: 13.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(151, 133, 255, 0.25);
    border-radius: 0.8rem;
    background: rgba(9, 4, 31, 0.96);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.34);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.67rem;
    font-style: normal;
    line-height: 1.45;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -0.3rem);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.integration-node:hover,
.integration-node:focus-visible {
    border-color: rgba(170, 151, 255, 0.72);
    background: rgba(31, 18, 77, 0.94);
    box-shadow:
        0 1.5rem 3.5rem rgba(0, 0, 0, 0.32),
        0 0 2rem rgba(111, 86, 255, 0.16);
}

.integration-node:hover > em,
.integration-node:focus-visible > em {
    opacity: 1;
    transform: translate(-50%, 0);
}

.integration-node-1 {
    top: 12%;
    left: 1%;
}

.integration-node-2 {
    top: 2%;
    left: 27%;
}

.integration-node-3 {
    top: 2%;
    right: 27%;
}

.integration-node-4 {
    top: 12%;
    right: 1%;
}

.integration-node-5 {
    right: 1%;
    bottom: 10%;
}

.integration-node-6 {
    right: 27%;
    bottom: 0;
}

.integration-node-7 {
    bottom: 0;
    left: 27%;
}

.integration-node-8 {
    bottom: 10%;
    left: 1%;
}

.integration-particle-field {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
}

.integration-particle-field > i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.22rem;
    height: 0.22rem;
    border-radius: 50%;
    background: #8c79ff;
    box-shadow: 0 0 0.7rem #8c79ff;
    animation: integration-particle 6s ease-in-out infinite;
}

.integration-particle-field > i:nth-child(1) {
    top: 9%;
    left: 9%;
}
.integration-particle-field > i:nth-child(2) {
    top: 17%;
    left: 43%;
    animation-delay: -1s;
}
.integration-particle-field > i:nth-child(3) {
    top: 7%;
    left: 78%;
    animation-delay: -2s;
}
.integration-particle-field > i:nth-child(4) {
    top: 33%;
    left: 17%;
    animation-delay: -3s;
}
.integration-particle-field > i:nth-child(5) {
    top: 42%;
    left: 86%;
    animation-delay: -4s;
}
.integration-particle-field > i:nth-child(6) {
    top: 76%;
    left: 12%;
    animation-delay: -5s;
}
.integration-particle-field > i:nth-child(7) {
    top: 87%;
    left: 39%;
    animation-delay: -2.5s;
}
.integration-particle-field > i:nth-child(8) {
    top: 79%;
    left: 72%;
    animation-delay: -4.5s;
}
.integration-particle-field > i:nth-child(9) {
    top: 64%;
    left: 93%;
    animation-delay: -1.5s;
}
.integration-particle-field > i:nth-child(10) {
    top: 24%;
    left: 61%;
    animation-delay: -3.5s;
}
.integration-particle-field > i:nth-child(n + 11) {
    display: none;
}

/* A practical agency workspace replaces the abstract radial network. */
.reference-page .immersive-integrations {
    height: auto !important;
    min-height: 0;
    background:
        radial-gradient(
            circle at 18% 45%,
            rgba(93, 72, 229, 0.2),
            transparent 30rem
        ),
        radial-gradient(
            circle at 82% 55%,
            rgba(61, 195, 235, 0.08),
            transparent 28rem
        ),
        linear-gradient(180deg, #07021b, #0c0427 52%, #07021b);
}

.integration-workspace {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1rem, 2vw, 1.6rem);
    margin-top: 3rem;
    perspective: 1100px;
}

.integration-control,
.integration-lane {
    border: 1px solid rgba(146, 127, 255, 0.18);
    background: linear-gradient(
        145deg,
        rgba(28, 17, 68, 0.88),
        rgba(9, 4, 30, 0.92)
    );
    box-shadow:
        0 2.4rem 6rem rgba(0, 0, 0, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.055);
}

.integration-control {
    position: relative;
    overflow: hidden;
    border-radius: 1.65rem;
}

.integration-control::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 0 49%,
        rgba(126, 104, 255, 0.08) 49.2%,
        transparent 49.4%
    );
    pointer-events: none;
}

.integration-control-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(146, 127, 255, 0.13);
}

.integration-control-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 52%, rgba(9, 3, 29, 0.86)),
        linear-gradient(90deg, rgba(9, 3, 29, 0.2), transparent 45%);
    pointer-events: none;
}

.integration-control-visual > img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.08) contrast(1.04);
    will-change: transform;
}

.integration-control-visual > figcaption {
    position: absolute;
    z-index: 2;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(137, 244, 188, 0.2);
    border-radius: 999px;
    background: rgba(7, 18, 23, 0.58);
    color: rgba(255, 255, 255, 0.64);
    font: 700 0.58rem/1 var(--display);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.integration-control-visual > figcaption i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #69efa8;
    box-shadow: 0 0 0.75rem #69efa8;
    animation: entity-status-pulse 1.8s ease-in-out infinite;
}

.integration-control-copy {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 3vw, 2.4rem);
}

.integration-control-copy > span {
    color: #9583ff;
    font: 700 0.65rem/1 var(--display);
    letter-spacing: 0.14em;
}

.integration-control-copy h3 {
    max-width: 27rem;
    margin: 1rem 0 0.8rem;
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.integration-control-copy > p {
    max-width: 30rem;
    margin-bottom: 1.35rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.84rem;
}

.integration-control-copy ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.integration-control-copy li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.integration-control-copy li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid #8f7cff;
    border-radius: 50%;
    box-shadow: 0 0 0.75rem rgba(143, 124, 255, 0.58);
}

.integration-lanes {
    display: grid;
    gap: 1rem;
}

.integration-lane {
    position: relative;
    display: grid;
    grid-template-columns: minmax(11rem, 0.38fr) minmax(0, 0.62fr);
    gap: 1.25rem;
    min-height: 13.1rem;
    padding: 1.35rem;
    overflow: hidden;
    border-radius: 1.35rem;
    transform-style: preserve-3d;
}

.integration-lane::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #8d76ff, transparent);
    box-shadow: 0 0 1.4rem rgba(137, 116, 255, 0.8);
}

.integration-lane:nth-child(2)::before {
    background: linear-gradient(180deg, transparent, #ee61b4, transparent);
    box-shadow: 0 0 1.4rem rgba(238, 97, 180, 0.65);
}

.integration-lane:nth-child(3)::before {
    background: linear-gradient(180deg, transparent, #58d8f4, transparent);
    box-shadow: 0 0 1.4rem rgba(88, 216, 244, 0.58);
}

.integration-lane > header {
    position: relative;
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
    align-content: center;
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.integration-lane > header > span {
    color: #9584ff;
    font: 700 0.68rem/1 var(--display);
}

.integration-lane:nth-child(2) > header > span {
    color: #ef70bd;
}

.integration-lane:nth-child(3) > header > span {
    color: #64dff5;
}

.integration-lane h3 {
    margin: 0 0 0.45rem;
    font-size: 1.65rem;
}

.integration-lane header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.7rem;
    line-height: 1.45;
}

.integration-lane-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.65rem;
    align-content: center;
}

.integration-tool {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-height: 5.3rem;
    padding: 0.7rem;
    border: 1px solid rgba(146, 127, 255, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.integration-tool:hover {
    border-color: rgba(158, 140, 255, 0.5);
    background: rgba(121, 97, 255, 0.08);
    transform: translateY(-0.25rem);
}

.integration-tool > span {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(156, 139, 255, 0.22);
    border-radius: 0.72rem;
    background: linear-gradient(145deg, #6f5bff, #30227d);
    font: 750 0.55rem/1 var(--display);
    box-shadow: 0 0 1.4rem rgba(101, 81, 230, 0.2);
}

.integration-lane:nth-child(2) .integration-tool > span {
    background: linear-gradient(145deg, #b94b9f, #562073);
}

.integration-lane:nth-child(3) .integration-tool > span {
    background: linear-gradient(145deg, #349fc4, #253a84);
}

.integration-tool strong,
.integration-tool small {
    display: block;
}

.integration-tool strong {
    margin-bottom: 0.22rem;
    color: rgba(255, 255, 255, 0.82);
    font: 700 0.72rem/1.1 var(--display);
}

.integration-tool small {
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.57rem;
    line-height: 1.35;
}

.integration-tool > i {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: #6ee8ae;
    box-shadow: 0 0 0.6rem #6ee8ae;
}

@media (max-width: 1050px) {
    .integration-workspace {
        grid-template-columns: 1fr;
    }

    .integration-control {
        display: grid;
        grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
    }

    .integration-control-visual {
        height: 100%;
        aspect-ratio: auto;
        border-right: 1px solid rgba(146, 127, 255, 0.13);
        border-bottom: 0;
    }
}

@media (max-width: 720px) {
    .integration-workspace {
        margin-top: 2rem;
    }

    .integration-control {
        display: block;
    }

    .integration-control-visual {
        height: auto;
        aspect-ratio: 16 / 10;
        border-right: 0;
        border-bottom: 1px solid rgba(146, 127, 255, 0.13);
    }

    .integration-lane {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .integration-lane > header {
        padding: 0 0 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .integration-lane-tools {
        grid-template-columns: 1fr;
    }
}

/* Quiet 3D depth for content cards after the immersive sequence. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .reference-page .spatial-card {
        --tilt-x: 0deg;
        --tilt-y: 0deg;
        --spot-x: 50%;
        --spot-y: 50%;
        transform: perspective(950px) rotateX(var(--tilt-x))
            rotateY(var(--tilt-y));
        transform-style: preserve-3d;
        transition:
            transform 0.18s ease-out,
            border-color 0.35s ease,
            box-shadow 0.4s ease;
    }

    .reference-page .project-card.spatial-card {
        background:
            radial-gradient(
                circle at var(--spot-x) var(--spot-y),
                rgba(129, 105, 255, 0.16),
                transparent 35%
            ),
            linear-gradient(160deg, #1c133e, #120c2d);
    }

    .reference-page .blog-card.spatial-card {
        background:
            radial-gradient(
                circle at var(--spot-x) var(--spot-y),
                rgba(129, 105, 255, 0.14),
                transparent 34%
            ),
            linear-gradient(145deg, #1c143e, #10092b);
    }

    .reference-page .spatial-card:hover,
    .reference-page .spatial-card:focus-within {
        transform: perspective(950px) translateY(-0.5rem) rotateX(var(--tilt-x))
            rotateY(var(--tilt-y));
        border-color: rgba(139, 117, 255, 0.64);
        box-shadow: 0 2rem 5rem rgba(31, 12, 100, 0.32);
    }
}

.reference-page .faq-item:hover {
    transform: none;
}

.reference-skip-link {
    position: fixed;
    z-index: 200;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    background: #fff;
    color: #130a38;
    font-size: 0.78rem;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.reference-skip-link:focus {
    transform: translateY(0);
}

.agency-final-cta {
    display: grid;
    min-height: 50rem;
    align-items: center;
    text-align: left;
    background:
        linear-gradient(90deg, #080220 0%, #080220 42%, transparent 74%),
        radial-gradient(
            circle at 78% 48%,
            rgba(107, 82, 255, 0.2),
            transparent 31rem
        ),
        linear-gradient(180deg, #080220, #100631);
}

.agency-final-cta::before {
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(
        115deg,
        transparent 0 58%,
        rgba(115, 91, 255, 0.08) 58% 58.2%,
        transparent 58.2%
    );
    box-shadow: none;
    animation: none;
    translate: none;
}

.agency-final-cta > .stars {
    opacity: 0.34;
}

.agency-cta-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(27rem, 1fr);
    align-items: center;
}

.agency-cta-copy {
    position: relative;
    z-index: 4;
    max-width: 47rem;
}

.agency-final-cta .agency-cta-copy h2 {
    margin-inline: 0;
}

.agency-final-cta .agency-cta-copy p {
    max-width: 37rem;
    margin-inline: 0;
}

.agency-cta-scene {
    position: absolute;
    z-index: 1;
    top: auto;
    right: max(0rem, calc((100vw - 82rem) / 2 - 4rem));
    bottom: 4rem;
    width: min(50vw, 45rem);
    height: 31rem;
    translate: none;
    pointer-events: none;
    transform-origin: center;
}

.agency-cta-scene::before {
    content: '';
    position: absolute;
    inset: 7% 2%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(121, 95, 255, 0.25),
        transparent 68%
    );
    filter: blur(24px);
}

.agency-cta-scene > img {
    position: absolute;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(160, 143, 255, 0.25);
    border-radius: 1.4rem;
    object-fit: cover;
    box-shadow:
        0 2rem 5rem rgba(0, 0, 0, 0.45),
        inset 0 1px rgba(255, 255, 255, 0.12);
}

.agency-cta-scene > img:nth-child(1) {
    top: 0;
    right: 0;
    width: 78%;
    transform: rotate(1.5deg);
}

.agency-cta-scene > img:nth-child(2) {
    z-index: 2;
    top: auto;
    left: 0;
    bottom: 0;
    width: 45%;
    transform: rotate(-2deg);
}

.agency-cta-scene > img:nth-child(3) {
    z-index: 3;
    right: 0;
    bottom: 0;
    width: 45%;
    transform: rotate(2deg);
}

.entity-final-cta .container {
    z-index: 3;
}

/* Footer as a final agency statement rather than a decorative afterthought. */
.agency-footer.site-footer {
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(6rem, 9vw, 9rem) 0 1.5rem;
    text-align: left;
    background:
        radial-gradient(
            circle at 16% 5%,
            rgba(112, 87, 255, 0.22),
            transparent 31rem
        ),
        linear-gradient(180deg, #090221, #050111 76%);
}

.agency-footer .footer-glow {
    display: block !important;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(126, 102, 255, 0.42),
            transparent
        )
        top / 100% 1px no-repeat;
    pointer-events: none;
}

.agency-footer-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
}

.agency-footer-pitch h2 {
    max-width: 56rem;
    margin: 1.5rem 0 1.25rem;
    font-size: clamp(3rem, 5.8vw, 6.2rem);
    line-height: 0.93;
    letter-spacing: -0.055em;
}

.agency-footer-pitch h2 em {
    color: transparent;
    background: linear-gradient(90deg, #9988ff, #6cdeff 82%);
    background-clip: text;
    -webkit-background-clip: text;
    font-style: normal;
}

.agency-footer-pitch > p {
    max-width: 39rem;
    font-size: 1.02rem;
}

.agency-footer-contact {
    display: grid;
    gap: 0.9rem;
    padding: 1.6rem;
    border: 1px solid rgba(143, 124, 255, 0.18);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
    font-style: normal;
}

.agency-footer-contact > span {
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.38);
    font: 700 0.65rem/1 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.agency-footer-contact > a,
.agency-footer-contact > p {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.agency-footer-contact svg {
    width: 1.05rem;
    color: #9482ff;
}

.agency-footer-disciplines {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(4rem, 7vw, 6.5rem);
    border-block: 1px solid rgba(255, 255, 255, 0.09);
}

.agency-footer-disciplines > a {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.3rem 1rem;
    align-items: center;
    min-height: 9rem;
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.agency-footer-disciplines > a:last-child {
    border-right: 0;
}

.agency-footer-disciplines > a:hover,
.agency-footer-disciplines > a:focus-visible {
    background: rgba(121, 98, 255, 0.08);
}

.agency-footer-disciplines span {
    grid-row: 1 / 3;
    color: #8c7bff;
    font: 700 0.7rem/1 var(--display);
}

.agency-footer-disciplines strong {
    font: 600 1.45rem/1 var(--display);
}

.agency-footer-disciplines small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
}

.agency-footer-disciplines svg {
    grid-row: 1 / 3;
    width: 1.15rem;
    color: rgba(255, 255, 255, 0.32);
    transition: transform 0.25s ease;
}

.agency-footer-disciplines > a:hover svg,
.agency-footer-disciplines > a:focus-visible svg {
    transform: translate(0.2rem, -0.2rem);
}

.agency-footer-nav {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
    padding-block: 2.2rem;
}

.agency-footer .entity-brand {
    position: relative !important;
    inset: auto !important;
    width: max-content !important;
    height: auto !important;
    transform: none !important;
}

.agency-footer nav {
    position: relative;
    inset: auto;
    display: flex;
    width: auto;
    margin: 0;
}

.agency-footer-nav > nav {
    gap: 1.4rem;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.76rem;
}

.agency-footer-nav > nav a:hover,
.agency-footer-nav > nav a:focus-visible {
    color: #fff;
}

.agency-footer .socials {
    position: relative;
    inset: auto;
    display: flex;
    width: auto;
    margin: 0;
    transform: none;
}

.agency-footer .socials a {
    width: 2.45rem;
    height: 2.45rem;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.agency-footer .socials a:hover,
.agency-footer .socials a:focus-visible {
    border-color: rgba(150, 132, 255, 0.7);
    background: rgba(121, 98, 255, 0.12);
    color: #fff;
}

.agency-footer-word {
    position: relative;
    z-index: 1;
    width: 108%;
    margin: clamp(0.5rem, 2vw, 2rem) 0 0 -4%;
    overflow: hidden;
    color: transparent;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.025),
        rgba(133, 111, 255, 0.2),
        rgba(255, 255, 255, 0.025)
    );
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    font: 600 clamp(7rem, 20vw, 18rem) / 0.72 var(--display);
    letter-spacing: -0.065em;
    text-align: center;
    white-space: nowrap;
    animation: word-energy 9s linear infinite;
}

.agency-footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agency-footer-bottom > p {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
    transform: none;
}

.agency-footer-bottom > nav {
    gap: 1.2rem;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.68rem;
}

@keyframes entity-aura-breathe {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(0.94);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes entity-label-float {
    0%,
    100% {
        transform: translate3d(0, 0, 2rem);
    }
    50% {
        transform: translate3d(0, -0.75rem, 4rem);
    }
}

@keyframes entity-ring-one {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}

@keyframes entity-ring-two {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}

@keyframes entity-status-pulse {
    50% {
        opacity: 0.45;
        box-shadow: 0 0 1.25rem #69f5b1;
    }
}

@keyframes capability-light-pass {
    0%,
    56% {
        translate: 0 0;
        opacity: 0;
    }
    64% {
        opacity: 1;
    }
    86%,
    100% {
        translate: 430% 0;
        opacity: 0;
    }
}

@keyframes capability-icon-breathe {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 0 1.5rem
            color-mix(in srgb, var(--capability-accent) 12%, transparent);
    }
    50% {
        transform: translateY(-0.22rem) rotate(3deg);
        border-color: color-mix(
            in srgb,
            var(--capability-accent) 58%,
            transparent
        );
        box-shadow:
            0 0 2rem
                color-mix(in srgb, var(--capability-accent) 30%, transparent),
            inset 0 0 1.2rem
                color-mix(in srgb, var(--capability-accent) 10%, transparent);
    }
}

@keyframes capability-letter-wave {
    0%,
    58%,
    100% {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: none;
        transform: translateY(0);
    }
    68% {
        color: color-mix(in srgb, var(--capability-accent) 72%, white);
        text-shadow: 0 0 1rem
            color-mix(in srgb, var(--capability-accent) 58%, transparent);
        transform: translateY(-0.12em);
    }
    78% {
        color: rgba(255, 255, 255, 0.96);
        transform: translateY(0);
    }
}

@keyframes agency-hero-enter {
    to {
        opacity: 1;
    }
}

@keyframes agency-camera-drift {
    from {
        transform: scale(1.025) translate3d(-0.4%, 0, 0);
    }
    to {
        transform: scale(1.075) translate3d(0.8%, -0.5%, 0);
    }
}

@keyframes agency-scan {
    0%,
    22% {
        transform: translateX(-35%);
        opacity: 0;
    }
    38% {
        opacity: 0.8;
    }
    66%,
    100% {
        transform: translateX(420%);
        opacity: 0;
    }
}

@keyframes journey-orbit-a {
    to {
        rotate: 360deg;
    }
}

@keyframes journey-orbit-b {
    to {
        rotate: -360deg;
    }
}

@keyframes integration-signal-flow {
    to {
        stroke-dashoffset: -96;
    }
}

@keyframes integration-core-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.94);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes integration-particle {
    0%,
    100% {
        opacity: 0.25;
        transform: translate3d(0, 0, 0) scale(0.7);
    }
    50% {
        opacity: 0.9;
        transform: translate3d(0.7rem, -1rem, 0) scale(1.2);
    }
}

@keyframes cta-core-orbit {
    to {
        rotate: 360deg;
    }
}

@media (max-width: 1050px), (prefers-reduced-motion: reduce) {
    .entity-journey {
        padding: 7rem 0;
    }

    .journey-shell {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .journey-shell::after {
        display: none;
    }

    .journey-grid {
        height: auto;
    }

    .journey-heading {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 46rem);
    }

    .journey-copy-stack {
        position: relative;
        bottom: auto;
        left: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-height: 0;
        gap: 1rem;
        margin-top: 3.5rem;
    }

    .journey-panel,
    .journey-panel:not(:first-child) {
        position: relative;
        inset: auto;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 33rem;
        padding: 1rem 1rem 1.7rem;
        overflow: hidden;
        border: 1px solid rgba(145, 126, 255, 0.17);
        border-radius: 1.35rem;
        background: linear-gradient(
            145deg,
            rgba(27, 16, 68, 0.9),
            rgba(8, 3, 29, 0.9)
        );
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
        transform: none !important;
    }

    .journey-mobile-visual {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        margin-bottom: 1.45rem;
        border-radius: 0.95rem;
        object-fit: cover;
        filter: saturate(1.08) contrast(1.04);
    }

    .journey-panel-meta,
    .journey-panel h3,
    .journey-panel > p,
    .journey-tags,
    .journey-panel > a {
        margin-inline: 0.45rem;
    }

    .journey-panel h3 {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .journey-visual-stack,
    .journey-navigation {
        display: none;
    }

    .integration-galaxy {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        gap: 0.85rem;
        margin-top: 2rem;
    }

    .integration-galaxy::before,
    .integration-network,
    .integration-particle-field {
        display: none;
    }

    .integration-entity {
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1 / -1;
        margin: 2rem auto 4rem;
        translate: none;
        transform: none !important;
    }

    .integration-node {
        position: relative;
        inset: auto;
        grid-template-columns: 3rem 1fr;
        width: 100%;
        min-height: 8.5rem;
        align-content: center;
        transform: none !important;
    }

    .integration-node > em {
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1 / -1;
        width: auto;
        padding: 0.35rem 0 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    .reference-page .immersive-integrations {
        min-height: 0;
    }
}

@media (max-width: 1050px) {
    .reference-page .immersive-hero {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .reference-page .immersive-hero .hero-copy {
        max-width: 48rem;
        margin-inline: auto;
    }

    .agency-hero-stage {
        width: min(100%, 48rem);
        height: 36rem;
        margin-inline: auto;
    }

    .agency-hero-frame {
        inset-inline: 1%;
        transform: none;
    }

    .agency-final-cta {
        min-height: 56rem;
        align-items: start;
    }

    .agency-cta-layout {
        grid-template-columns: 1fr;
        padding-bottom: 27rem;
    }

    .agency-cta-copy {
        max-width: 43rem;
    }

    .agency-cta-scene {
        top: auto;
        right: 50%;
        bottom: 2rem;
        width: min(92vw, 43rem);
        height: 27rem;
        translate: 50% 0;
    }

    .reference-page .immersive-process {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .process-stage {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-left: 4.8rem;
    }

    .process-energy-rail {
        top: 2rem;
        bottom: 2rem;
        left: 2.5rem;
        width: 2px;
        height: auto;
    }

    .process-energy-rail > span {
        background: linear-gradient(
            180deg,
            var(--entity-pink),
            var(--entity-violet),
            var(--entity-cyan)
        );
        transform: none !important;
    }

    .process-station,
    .process-station-2,
    .process-station-3 {
        min-height: 20rem;
        margin-top: 0;
    }

    .agency-footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .agency-footer-contact {
        max-width: 34rem;
    }

    .agency-footer-nav {
        grid-template-columns: 1fr auto;
    }

    .agency-footer-nav > nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .reference-page .immersive-hero {
        min-height: 100svh;
        padding-top: 8.5rem;
        padding-bottom: 5.5rem;
    }

    .reference-page .immersive-hero .hero-copy h1 {
        font-size: clamp(3rem, 14vw, 4.2rem);
    }

    .hero-entity-proof {
        justify-content: center;
        gap: 0.55rem;
    }

    .hero-entity-proof > i {
        width: 1.25rem;
    }

    .agency-hero-stage {
        height: 27rem;
        margin-top: 1.5rem;
    }

    .agency-hero-frame {
        inset: 0;
        border-radius: 1.4rem;
    }

    .agency-hero-frame::after {
        inset: 0.5rem;
        border-radius: 1.05rem;
    }

    .agency-hero-frame > img {
        object-position: 78% center;
    }

    .entity-stage-label {
        padding: 0.58rem 0.72rem;
        font-size: 0.59rem;
    }

    .label-software {
        left: 1%;
    }

    .label-marketing {
        right: 0;
    }

    .label-automation {
        right: 1%;
    }

    .entity-stage-status {
        bottom: 6%;
        left: 2%;
    }

    .immersive-bridge .trust-title::before,
    .immersive-bridge .trust-title::after {
        display: none;
    }

    .entity-capability-strip {
        grid-template-columns: 1fr;
    }

    .capability-segment {
        min-height: 4.8rem;
        border-right: 0;
        border-bottom: 1px solid rgba(143, 125, 255, 0.14);
    }

    .capability-segment:last-child {
        border-bottom: 0;
    }

    .entity-journey {
        padding: 5.5rem 0;
    }

    .journey-heading h2 {
        font-size: clamp(2.7rem, 12vw, 3.8rem);
    }

    .journey-copy-stack {
        grid-template-columns: 1fr;
    }

    .journey-panel {
        min-height: 31rem;
    }

    .process-intro {
        margin-bottom: 3.5rem;
    }

    .process-stage {
        padding-left: 3.5rem;
    }

    .process-energy-rail {
        left: 1.3rem;
    }

    .process-station {
        padding: 1.5rem;
    }

    .integration-galaxy {
        grid-template-columns: 1fr;
    }

    .integration-entity {
        grid-column: auto;
    }

    .agency-final-cta {
        min-height: 0;
        padding-bottom: 3.5rem;
    }

    .agency-cta-layout {
        padding-bottom: 20rem;
    }

    .agency-final-cta .agency-cta-copy h2 {
        font-size: clamp(3rem, 13vw, 4.3rem);
    }

    .agency-cta-scene {
        bottom: 1.5rem;
        width: 96vw;
        height: 18rem;
    }

    .agency-footer.site-footer {
        padding-top: 5rem;
    }

    .agency-footer-pitch h2 {
        font-size: clamp(3rem, 13vw, 4.4rem);
    }

    .agency-footer-pitch .button {
        width: 100%;
        justify-content: center;
    }

    .agency-footer-disciplines {
        grid-template-columns: 1fr;
    }

    .agency-footer-disciplines > a {
        min-height: 7.5rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .agency-footer-disciplines > a:last-child {
        border-bottom: 0;
    }

    .agency-footer-nav {
        grid-template-columns: 1fr;
    }

    .agency-footer-nav > nav,
    .agency-footer .socials {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-start;
    }

    .agency-footer-nav > nav {
        gap: 0.8rem 1.15rem;
    }

    .agency-footer-word {
        font-size: 29vw;
    }

    .agency-footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
    }

    .agency-footer-bottom > nav {
        flex-wrap: wrap;
        gap: 0.65rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agency-hero-frame {
        opacity: 1;
        animation: none !important;
    }

    .agency-hero-frame > img,
    .agency-hero-scan,
    .entity-stage-label,
    .entity-stage-status > i,
    .capability-segment::after,
    .capability-segment > i,
    .capability-segment > strong > span,
    .journey-orbit,
    .integration-network-flow,
    .integration-entity > i,
    .integration-entity > b,
    .integration-particle-field > i,
    .agency-footer-word {
        animation: none !important;
    }
}
