/*
 * Individual marketing experience.
 *
 * The agency page visualizes an organization moving information through a
 * portal. The home page uses a different metaphor: one provider carrying a
 * continuous field kit through an entire shift.
 */

html,
.marketing-home {
    overflow-x: clip;
}

.marketing-home .hero-carousel-card {
    background:
        linear-gradient(115deg, rgba(124, 58, 237, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(10, 15, 25, 0.96), rgba(7, 11, 18, 0.98));
}

.marketing-home .hero-carousel-card::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(
            90deg,
            transparent 0 63%,
            rgba(167, 139, 250, 0.06) 63% 63.08%,
            transparent 63.08%
        );
    background-size:
        64px 64px,
        64px 64px,
        100% 100%;
    filter: none;
}

.marketing-home .hero-carousel-card::after {
    top: 9%;
    right: 4%;
    bottom: auto;
    width: min(42vw, 620px);
    height: min(42vw, 620px);
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle,
            rgba(167, 139, 250, 0.13) 0 1px,
            transparent 1px 58px
        ),
        conic-gradient(
            from 196deg,
            transparent 0 65%,
            rgba(56, 189, 248, 0.08) 72%,
            transparent 80%
        );
    opacity: 0.62;
    filter: none;
    animation: individual-radar-turn 24s linear infinite;
}

.marketing-home .container.hero-carousel-content {
    max-width: 1280px;
}

.marketing-home .hero-slide-media::before {
    width: 410px;
    height: 410px;
    border: 1px solid rgba(var(--hero-accent-rgb), 0.12);
    background:
        linear-gradient(
            rgba(var(--hero-accent-rgb), 0.09) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(var(--hero-accent-rgb), 0.09) 1px,
            transparent 1px
        );
    background-size: 41px 41px;
    filter: none;
    opacity: 0.66;
    transform: rotate(-4deg);
}

.marketing-home .hero-slide-media::after {
    position: absolute;
    z-index: 0;
    top: 18%;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--hero-accent-rgb), 0.62),
        transparent
    );
    box-shadow: 0 0 24px rgba(var(--hero-accent-rgb), 0.35);
    content: '';
    opacity: 0;
    animation: individual-scan 5.8s ease-in-out infinite;
    pointer-events: none;
}

.marketing-home .hero-field-readout {
    position: absolute;
    z-index: 4;
    top: 20px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7f8b9e;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateY(-100%);
}

.marketing-home .hero-field-readout strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #86efac;
    font: inherit;
}

.marketing-home .hero-field-readout i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.72);
}

.marketing-home .hero-carousel-tabs {
    border-radius: 8px;
    background: rgba(5, 8, 14, 0.68);
}

.marketing-home .hero-carousel-tab,
.marketing-home .hero-carousel-button {
    border-radius: 6px;
}

.marketing-home .hero-carousel-tab[aria-current='true'] {
    box-shadow: inset 0 -1px 0 currentColor;
}

.marketing-home .hero-media-note {
    border-radius: 4px;
    background: rgba(5, 8, 14, 0.82);
    font-family: var(--font-display);
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

@keyframes individual-radar-turn {
    to {
        transform: rotate(360deg);
    }
}

@keyframes individual-scan {
    0%,
    12% {
        opacity: 0;
        transform: translateY(0);
    }

    22% {
        opacity: 0.7;
    }

    70% {
        opacity: 0.35;
        transform: translateY(350px);
    }

    82%,
    100% {
        opacity: 0;
        transform: translateY(350px);
    }
}

/* Field journey */
.field-journey {
    --field-accent: #a78bfa;
    --field-progress: 0;

    background:
        linear-gradient(90deg, rgba(124, 58, 237, 0.075), transparent 28%),
        rgba(7, 11, 18, 0.74);
}

.field-journey-shell {
    position: relative;
}

.field-journey[data-enhanced='true'] .field-journey-shell {
    height: 380vh;
}

.field-journey-stage {
    position: relative;
    min-width: 0;
}

.field-journey[data-enhanced='true'] .field-journey-stage {
    position: sticky;
    top: 86px;
    display: flex;
    min-height: 700px;
    height: calc(100svh - 102px);
    max-height: 920px;
    flex-direction: column;
    justify-content: center;
}

.field-journey-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
    gap: clamp(36px, 7vw, 96px);
    align-items: end;
    margin-bottom: 22px;
}

.marketing-home .field-journey-heading h2 {
    max-width: 720px;
    margin: 14px 0 0;
    font-size: clamp(2.45rem, 4.3vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.052em;
}

.field-journey-heading > p {
    max-width: 500px;
    padding-left: 24px;
    border-left: 1px solid var(--border-2);
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.55;
}

.field-journey-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    color: #8390a3;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

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

.field-journey-meter i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #a78bfa, #38bdf8, #4ade80);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.55);
    transform: scaleX(var(--field-progress));
    transform-origin: left center;
}

.field-journey-window {
    position: relative;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.4) transparent;
}

.field-journey-window::before {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(167, 139, 250, 0.1),
        rgba(56, 189, 248, 0.34),
        rgba(74, 222, 128, 0.1)
    );
    content: '';
    pointer-events: none;
}

.field-journey[data-enhanced='true'] .field-journey-window {
    overflow: hidden;
}

.field-journey-track {
    position: relative;
    z-index: 1;
    display: flex;
    width: max-content;
    gap: clamp(34px, 5vw, 72px);
    padding: 0 1px;
    will-change: transform;
}

.field-journey[data-enhanced='true'] .field-journey-track {
    transform: translate3d(var(--field-track-x, 0), 0, 0);
}

.field-stop {
    --stop-accent: #a78bfa;
    --stop-accent-rgb: 167, 139, 250;

    position: relative;
    display: grid;
    width: min(960px, calc(100vw - 164px));
    min-height: 430px;
    grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.78fr);
    gap: clamp(34px, 6vw, 88px);
    align-items: center;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border-top: 1px solid rgba(var(--stop-accent-rgb), 0.34);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(
            112deg,
            rgba(var(--stop-accent-rgb), 0.1),
            transparent 42%
        ),
        rgba(13, 19, 31, 0.94);
    opacity: 0.42;
    transition:
        opacity 360ms ease,
        border-color 360ms ease;
}

.field-stop::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--stop-accent);
    box-shadow: 0 0 28px rgba(var(--stop-accent-rgb), 0.52);
    content: '';
}

.field-stop.is-active {
    border-bottom-color: rgba(var(--stop-accent-rgb), 0.28);
    opacity: 1;
}

.field-stop--route {
    --stop-accent: #fb923c;
    --stop-accent-rgb: 251, 146, 60;
}

.field-stop--scene {
    --stop-accent: #38bdf8;
    --stop-accent-rgb: 56, 189, 248;
}

.field-stop--transport {
    --stop-accent: #4ade80;
    --stop-accent-rgb: 74, 222, 128;
}

.field-stop--clear {
    --stop-accent: #f472b6;
    --stop-accent-rgb: 244, 114, 182;
}

.field-stop-copy {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.field-stop-kicker,
.field-stop-signal,
.field-stop-visual figcaption {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.field-stop-kicker {
    color: var(--stop-accent);
}

.field-stop-copy h3 {
    max-width: 580px;
    margin: 14px 0 14px;
    font-size: clamp(2rem, 3.4vw, 3.45rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.field-stop-copy > p {
    max-width: 540px;
    color: #b0b9c7;
    font-size: 1.04rem;
    line-height: 1.55;
}

.field-stop-copy ul {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    list-style: none;
}

.field-stop-copy li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dce3ec;
    font-size: 0.92rem;
}

.field-stop-copy li::before {
    width: 14px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--stop-accent);
    content: '';
}

.field-stop-visual {
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-rows: auto auto auto;
    gap: 14px;
    align-items: center;
    justify-items: center;
}

.field-stop-visual::before,
.field-stop-visual::after {
    position: absolute;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.field-stop-visual::before {
    width: 330px;
    height: 330px;
    border: 1px solid rgba(var(--stop-accent-rgb), 0.2);
    background: repeating-radial-gradient(
        circle,
        transparent 0 52px,
        rgba(var(--stop-accent-rgb), 0.11) 53px 54px
    );
}

.field-stop-visual::after {
    width: 8px;
    height: 8px;
    background: var(--stop-accent);
    box-shadow: 0 0 22px rgba(var(--stop-accent-rgb), 0.92);
    transform: translate(166px, -38px);
}

.field-stop-phone {
    position: relative;
    z-index: 2;
    grid-row: 2;
    width: 190px;
    padding: 10px;
    border-color: rgba(var(--stop-accent-rgb), 0.38);
    border-radius: 32px;
    box-shadow:
        0 30px 70px -28px #000,
        0 0 52px rgba(var(--stop-accent-rgb), 0.12);
    transform: rotate(1.25deg);
}

.field-stop:nth-child(even) .field-stop-phone {
    transform: rotate(-1.25deg);
}

.field-stop-phone .phone-screen {
    border-radius: 23px;
}

.field-stop-signal {
    position: static;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 7px;
    color: var(--stop-accent);
}

.field-stop-signal::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
    content: '';
}

.field-stop-visual figcaption {
    position: static;
    grid-row: 3;
    color: #7f8b9e;
    text-align: center;
}

.field-journey-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.field-journey-nav button {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 11px 10px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #7f8b9e;
    font: 650 12px var(--font-display);
    text-align: left;
    cursor: pointer;
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.field-journey-nav button:last-child {
    border-right: 0;
}

.field-journey-nav button:hover,
.field-journey-nav button[aria-current='step'] {
    background: rgba(167, 139, 250, 0.07);
    color: #ece8ff;
}

.field-journey-nav button:focus-visible {
    position: relative;
    z-index: 2;
    outline: 2px solid #a78bfa;
    outline-offset: -2px;
}

.field-journey-nav button span {
    color: #a78bfa;
    font-variant-numeric: tabular-nums;
}

.field-journey-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 30px;
    color: #aab4c2;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 1080px) {
    .field-stop {
        width: calc(100vw - 104px);
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
        gap: 34px;
    }

    .field-stop-copy h3 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

@media (max-height: 860px) and (min-width: 821px) {
    .field-journey[data-enhanced='true'] .field-journey-stage {
        min-height: 620px;
    }

    .field-journey-heading {
        margin-bottom: 14px;
    }

    .marketing-home .field-journey-heading h2 {
        font-size: clamp(2.2rem, 3.5vw, 3.35rem);
    }

    .field-stop {
        min-height: 350px;
        padding-block: 22px;
    }

    .field-stop-copy h3 {
        font-size: clamp(1.8rem, 3vw, 2.55rem);
    }

    .field-stop-visual {
        min-height: 310px;
    }

    .field-stop-phone {
        width: 162px;
    }

    .field-stop-visual::before {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 900px) {
    .marketing-home .hero-field-readout {
        display: none;
    }

    .marketing-home .hero-carousel-card::after {
        top: 16%;
        right: 50%;
        width: 620px;
        height: 620px;
        opacity: 0.32;
        transform: translateX(50%);
        animation: none;
    }

    .field-journey[data-enhanced='true'] .field-journey-shell {
        height: auto;
    }

    .field-journey[data-enhanced='true'] .field-journey-stage,
    .field-journey-stage {
        position: static;
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .field-journey-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 42px;
    }

    .field-journey-heading > p {
        max-width: 620px;
        padding-left: 18px;
    }

    .field-journey-status,
    .field-journey-nav {
        display: none;
    }

    .field-journey[data-enhanced='true'] .field-journey-window,
    .field-journey-window {
        overflow: visible;
    }

    .field-journey-window::before {
        top: 0;
        right: auto;
        bottom: 0;
        left: 17px;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, #a78bfa, #38bdf8, #4ade80, #f472b6);
    }

    .field-journey[data-enhanced='true'] .field-journey-track,
    .field-journey-track {
        display: grid;
        width: 100%;
        gap: 22px;
        padding-left: 36px;
        transform: none;
        will-change: auto;
    }

    .field-stop {
        width: 100%;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
        padding: 30px;
        opacity: 1;
    }

    .field-stop::before {
        top: 29px;
        bottom: auto;
        left: -24px;
        width: 12px;
        height: 12px;
        border: 3px solid var(--bg);
        border-radius: 50%;
    }

    .field-stop-visual {
        min-height: 310px;
    }

    .field-stop-phone {
        width: 165px;
    }

    .field-journey-foot {
        margin-top: 34px;
    }
}

@media (max-width: 680px) {
    .marketing-home .hero-slide-media::before {
        width: 310px;
        height: 310px;
        background-size: 31px 31px;
    }

    .marketing-home .hero-slide-media::after {
        display: none;
    }

    .marketing-home .field-journey-heading h2 {
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .field-stop {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 24px;
    }

    .field-stop-copy h3 {
        font-size: clamp(1.9rem, 9vw, 2.65rem);
    }

    .field-stop-copy > p {
        font-size: 1rem;
    }

    .field-stop-visual {
        min-height: 330px;
    }

    .field-stop-phone {
        width: 174px;
    }

    .field-journey-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketing-home .hero-carousel-card::after,
    .marketing-home .hero-slide-media::after {
        animation: none;
    }

    .field-stop,
    .field-journey-nav button {
        transition: none;
    }

    .field-journey-track {
        will-change: auto;
    }
}
