.cs3-wrap {
    --cs3-section-height: 100vh;
    --cs3-transition-duration: 450ms;
    --cs3-vertical-offset: 0px;
    --cs3-text-color: #1b1b1b;
    --cs3-muted-color: #b7b7b7;
    --cs3-accent-color: #f7891d;
    --cs3-line-color: #c9c9c9;
    position: relative;
    height: var(--cs3-section-height);
    min-height: var(--cs3-section-height);
    
    overflow: hidden;
}

.cs3-wrap .cs3-stage {
    position: relative;
    height: var(--cs3-section-height);
    display: flex;
    align-items: center;
}

.cs3-wrap .cs3-grid {
    min-height: 100%;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(18px, 3.2vw, 48px) clamp(22px, 4.4vw, 68px);
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
    gap: clamp(20px, 3.2vw, 56px);
    align-items: center;
    transform: translateY(var(--cs3-vertical-offset));
}

.cs3-wrap .cs3-left {
    position: relative;
    padding-left: 12px;
    max-width: 560px;
    z-index: 1;
}

.cs3-wrap .cs3-rail {
    position: absolute;
    top: 6px;
    bottom: 8px;
    left: 0;
    width: 4px;
    background: var(--cs3-line-color);
}

.cs3-wrap .cs3-nav {
    display: grid;
    gap: clamp(8px, 1.1vw, 14px);
}

.cs3-wrap .cs3-nav-item {
    border: 0;
    background: transparent;
    color: var(--cs3-muted-color);
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: color var(--cs3-transition-duration) ease, opacity var(--cs3-transition-duration) ease;
    z-index:2;
    -webkit-tap-highlight-color: transparent;
}

.cs3-wrap .cs3-nav-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    transition:0.3s all linear;
    padding-left:30px;
}

.cs3-wrap .cs3-nav-marker {
    width: 4px;
    height: 40px;
    margin-left: -12px;
    background: transparent;
    border-radius: 999px;
    transform: translateX(-30px);
    transition: background-color var(--cs3-transition-duration) ease, height var(--cs3-transition-duration) ease;
}

.cs3-wrap .cs3-nav-item.is-active {
    color: var(--cs3-text-color);
}
.cs3-wrap .cs3-nav-item.is-active .cs3-nav-row{
    font-size: 72px;
}

.cs3-wrap .cs3-nav-item.is-active .cs3-nav-marker {
    background: var(--cs3-accent-color);
    height:72px;
}

.cs3-wrap .cs3-nav-content {
    display: none;
    margin-top: clamp(6px, 1.8vw, 18px);
    margin-left: clamp(20px, 2.2vw, 26px);
    width:100%;
    padding-bottom:40px;
}

.cs3-wrap .cs3-nav-item.is-active .cs3-nav-content {
    display: block;
    animation: cs3-fade-in var(--cs3-transition-duration) ease both;
}

.cs3-wrap.is-initial-state .cs3-nav-content {
    display: none;
}

.cs3-wrap .cs3-panel-title {
    display: block;
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    color: var(--cs3-text-color);
}

.cs3-wrap .cs3-panel-description {
    display: block;
    margin: clamp(12px, 1.8vw, 18px) 0 0;
        width: 100%;
    text-wrap: auto;
    color: var(--cs3-text-color);
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    
}

.cs3-wrap .cs3-panel-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--cs3-accent-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
}

.cs3-wrap .cs3-panel-link-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cs3-wrap .cs3-right {
    min-height: min(86vh, 820px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cs3-wrap .cs3-svg-stage {
    width: min(100%, 690px);
    height: 100%;
    min-height: min(82vh, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs3-wrap .cs3-svg-stage svg {
    width: 100%;
    height: auto;
    max-height: min(82vh, 780px);
}

.cs3-wrap .cs3-svg-stage.is-empty {
    color: var(--cs3-muted-color);
    border: 1px dashed var(--cs3-line-color);
    border-radius: 16px;
    font-size: 15px;
    padding: 24px;
}

.cs3-wrap .cs3-svg-stage [data-cs3-managed='1'] {
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--cs3-transition-duration) ease, visibility 0s linear var(--cs3-transition-duration);
}

.cs3-wrap .cs3-svg-stage [data-cs3-managed='1'].is-revealed {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--cs3-transition-duration) ease, visibility 0s linear 0s;
}

@media (max-width: 1024px) {
    .cs3-wrap {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .cs3-wrap .cs3-stage {
        height: auto;
        display: block;
    }

    .cs3-wrap .cs3-grid {
        position: relative;
        min-height: 100vh;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
        padding-top: clamp(10px, 2vw, 18px);
        padding-bottom: clamp(14px, 2.4vw, 22px);
    }

    .cs3-wrap .cs3-left {
        position: relative;
        z-index: 1;
        max-width: 100%;
    }

    /* Decorative background layer: sits behind the nav text, cropped at the
       section's bottom-right instead of pushing the text down as its own block. */
    .cs3-wrap .cs3-right {
        position: absolute;
        right: -4%;
        bottom: 0;
        z-index: 0;
        width: 95%;
        min-height: 0;
        opacity: 0.35;
        pointer-events: none;
    }

    .cs3-wrap .cs3-svg-stage {
        width: 100%;
        min-height: 0;
    }

    .cs3-wrap .cs3-svg-stage svg {
        max-height: none;
    }

    .cs3-wrap .cs3-nav-row {
        font-size: clamp(22px, 6vw, 28px);
    }

    .cs3-wrap .cs3-nav-item.is-active .cs3-nav-row {
        font-size: clamp(24px, 7vw, 32px);
    }

    .cs3-wrap .cs3-nav-content {
        margin-left: clamp(14px, 3.2vw, 22px);
        max-width: 100%;
    }

    .cs3-wrap .cs3-panel-title {
        font-size: clamp(44px, 9vw, 62px);
    }
}

@keyframes cs3-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs3-wrap,
    .cs3-wrap * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
