/* =========================================================
   SERVICES
========================================================= */
/* =========================================================
   SERVICES SECTION
========================================================= */

.services-section {

    position: relative;

    z-index: 10;

    margin-top: -12vh;

    

    padding-top: 18vh;
    padding-bottom: 20vh;

    border-top-left-radius: 32px;
    border-top-right-radius: 32px;

    background: #0f0f0f;

    box-shadow:
        0 -120px 140px rgba(0,0,0,.24);

}

.services-section::after {

    content: "";

    position: absolute;

    top: -120px;
    left: 0;

    width: 100%;
    height: 220px;

    background:
        linear-gradient(to bottom,
            transparent,
            rgba(15, 15, 15, .95));

    pointer-events: none;

}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}



[data-theme="light"] .services-section {
    background: #f0ebe5;
    box-shadow:
        0 -80px 120px rgba(0,0,0,.05);
}

[data-theme="light"] .services-section::before {

    background:
        linear-gradient(to bottom,
            #f6f3ee 0%,
            transparent 100%);

}

[data-theme="light"] .services-section::after {

    background:
        linear-gradient(to bottom,
            transparent,
            rgba(246, 243, 238, .96));

}

.services-intro {

    max-width: 680px;

    margin-bottom: 8vh;

}

.services-kicker {

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;

    text-transform: uppercase;

    color: var(--accent-primary);

    margin-bottom: 1.5rem;

}

.services-title {

    margin-top: 1.2rem;

    max-width: 14ch;

    font-size:
        clamp(2.2rem, 3.2vw, 3.6rem);

    line-height: 0.95;

    letter-spacing: -0.05em;

}

.services-description {

    margin-top: 1.5rem;

    max-width: 44ch;

    font-size: 1.1rem;

    line-height: 1.9;

}

/* ── Credibility Metrics ── */

.services-metrics {

    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2.5rem;

    margin-top: 3.5rem;

    padding-top: 2rem;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

}

[data-theme="light"] .services-metrics {
    border-color: rgba(0, 0, 0, 0.08);
}

.services-metric {

    display: flex;
    flex-direction: column;
    gap: 0.3rem;

}

.metric-value {

    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.03em;

    color: var(--text-primary);

}

.metric-label {

    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: var(--text-secondary);

}

/* ── STICKY STACKING SYSTEM ── */

.services-stack {

    position: relative;

    display: flex;
    flex-direction: column;

}

.service-card {

    position: sticky;

    top: 10vh;

    height: auto;
    min-height: 100svh;
    perspective: 1200px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 12vh;

}

/* Stacking depth offsets */
.service-card:nth-child(2) {
    top: 2vh;
}

.service-card:nth-child(3) {
    top: 4vh;
}

.service-card:nth-child(4) {
    top: 6vh;
}

/* Non-standard grids */
.service-card:nth-child(1) .service-card-content {
    width: 92vw;
    padding: 3.8rem;
}
.service-card:nth-child(2) .service-card-content {
    width: 90vw;
    padding: 3rem 5rem;
}
.service-card:nth-child(3) .service-card-content {
    width: 94vw;
    padding: 5rem 3.5rem;
}
.service-card:nth-child(4) .service-card-content {
    width: 91vw;
    padding: 3.8rem 6rem;
}

.service-card-content {

    position: relative;

    width: 92vw;

    min-height: 82vh;

    padding: 3.8rem;

    border-radius: 24px;
    transform-style: preserve-3d;

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0)),
        #171412;

    border:
        1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 24px 80px rgba(0,0,0,.18),
        0 4px 20px rgba(0, 0, 0, 0.08);

    transform-origin: top center;

    display: flex;
    flex-direction: column;

}

[data-theme="light"] .service-card-content {
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0)),
        #f0ebe5;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 24px 80px rgba(0,0,0,.06),
        0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Subtle editorial top shimmer */
.service-card-content::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.02),
            transparent 20%);

    pointer-events: none;

}

/* ── MAC WINDOW BAR ── */

.window-bar {

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;

    padding-bottom: 1.2rem;

    margin-bottom: 2rem;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);

}

[data-theme="light"] .window-bar {
    border-color: rgba(0, 0, 0, 0.08);
}

.window-dots {

    display: flex;
    gap: 0.45rem;

}

.window-dots .dot {

    width: 10px;
    height: 10px;

    border-radius: 50%;

}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.window-title {

    font-size: 0.78rem;
    letter-spacing: 0.08em;

    color: var(--text-secondary);

    text-transform: lowercase;

}

.window-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    opacity: 0.8;
    margin-left: auto;

}

.card-websites .sys-browser {

    transform:
        scale(1.08) translateX(4%) translateY(3%);

}

.card-saas .sys-dashboard {

    transform:
        scale(1.12) translateY(4%);

}

/* ── CARD BODY GRID (text + visual) ── */

.service-card-body {

    display: grid;

    grid-template-columns:
        1fr 1.1fr;

    gap: 2.5rem;

    align-items: start;

    flex: 1;

}

/* Card 2: Visual-first — visual dominates left, text right */
.card-body-visual-first {
    grid-template-columns: 1.3fr 0.7fr;
    direction: rtl;
}

.card-body-visual-first>* {
    direction: ltr;
}

/* Card 4: Visual-dominant — terminal almost fullscreen */
.card-body-visual-dominant {
    grid-template-columns: 0.7fr 1.3fr;
}

/* ── MICRO-IDENTITY ANIMATIONS ── */

/* AI card — subtle warm glow pulse */
.card-automation .service-visual {
    box-shadow: inset 0 0 60px rgba(198, 124, 78, 0.03);
    animation: warm-pulse 4s ease infinite;
}

/* =========================================================
   SECONDARY SERVICES
========================================================= */

/* =========================================================
   OPERATIONAL CAPABILITIES
========================================================= */

.capabilities-section {

    margin-top: 20vh;

    padding-bottom: 4vh;

}

.capabilities-header {

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 4rem;

    padding-bottom: 2rem;

    margin-bottom: 2rem;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);

}

[data-theme="light"] .capabilities-header {

    border-color:
        rgba(0, 0, 0, 0.08);

}

.capabilities-label {

    font-size: .72rem;
    font-weight: 600;

    letter-spacing: .18em;

    text-transform: uppercase;

    color: var(--accent-primary);

}

.capabilities-description {

    max-width: 38ch;

    font-size: 1.1rem;

    line-height: 1.85;

    color: var(--text-secondary);

}

.capabilities-list {

    display: flex;
    flex-direction: column;

}

.capability-row {

    display: grid;

    grid-template-columns:
        80px 1fr auto;

    align-items: center;

    gap: 2rem;

    padding: 2rem 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);

    transition:
        background 300ms ease,
        transform 300ms ease;

    border-radius: 18px;
    padding-inline: 1.5rem;

}

[data-theme="light"] .capability-row {
    border-color: rgba(0, 0, 0, 0.08);
}

.capability-row:hover {
    background: rgba(255, 255, 255, 0.025);
    transform: translateX(6px);
}

[data-theme="light"] .capability-row:hover {
    background: rgba(0, 0, 0, 0.025);
}

.capability-index {

    font-size: .72rem;

    font-weight: 600;

    letter-spacing: .12em;

    color: var(--accent-primary);

}

.capability-main h4 {

    font-size: 1.65rem;

    letter-spacing: -0.03em;

}

.capability-main p {

    margin-top: .5rem;

    max-width: 42ch;

    color: var(--text-secondary);

    font-size: 1.05rem;

    line-height: 1.8;

}

.capability-tools {

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: .6rem;

}

.capability-tools span {

    padding:
        .55rem .8rem;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid rgba(255, 255, 255, 0.06);

    font-size: .75rem;

    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;

}

.capability-tools span img {

    flex-shrink: 0;

    opacity: .92;

}

[data-theme="light"] .capability-tools span {

    background:
        rgba(0, 0, 0, 0.03);

    border-color:
        rgba(0, 0, 0, 0.08);

}

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

@media (max-width:768px) {

    .capabilities-header {

        flex-direction: column;
        align-items: flex-start;

        gap: 1rem;

    }

    .capability-row {

        grid-template-columns: 1fr;

        gap: 1rem;

    }

    .capability-tools {

        justify-content: flex-start;

    }

}



/* Web card — loading shimmer on hero block */
.card-websites .sys-hero-block {
    position: relative;
    overflow: hidden;
}

.card-websites .sys-hero-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.04),
            transparent);
    animation: shimmer-load 3s ease infinite;
}



/* SaaS card — counter pulse on values */
.card-saas .sys-metric-value {
    animation: value-tick 2s ease infinite;
}



/* Light theme cards */
[data-theme="light"] .service-card-content {
    background: #f4efe9;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

/* Warm surface tones per card — editorial, not uniform */

.service-card:nth-child(1) .service-card-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        #1c1613;
    /* Warm operational brown */
}

.service-card:nth-child(2) .service-card-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        #141517;
    /* Cool charcoal */
}

.service-card:nth-child(3) .service-card-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        #171718;
    /* Neutral graphite */
}

.service-card:nth-child(4) .service-card-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        #0b0c0d;
    /* Near-black terminal */
}

[data-theme="light"] .service-card:nth-child(1) .service-card-content {
    background: #f4efe9;
}

[data-theme="light"] .service-card:nth-child(2) .service-card-content {
    background: #f0ebe4;
}

[data-theme="light"] .service-card:nth-child(3) .service-card-content {
    background: #ece7e0;
}

[data-theme="light"] .service-card:nth-child(4) .service-card-content {
    background: #f2ece5;
}


.service-index {

    display: inline-flex;

    margin-bottom: 1rem;

    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;

    color: var(--accent-primary);

}

.service-copy h3 {

    font-size: clamp(2.2rem, 3.6vw, 3.4rem);

    line-height: 0.95;

    letter-spacing: -0.04em;

    max-width: 12ch;

}

.service-copy p {

    margin-top: 1.4rem;

    max-width: 34ch;

    font-size: 1.08rem;

    line-height: 1.8;

    color: var(--text-secondary);

}

.service-tags {

    display: flex;
    flex-wrap: wrap;

    gap: 0.75rem;

    margin-top: 2rem;

}

.service-tags span {

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding:
        0.6rem 0.9rem;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    font-size: 0.8rem;

    color: var(--text-secondary);

}

.service-tags span img {
    flex-shrink: 0;
}

[data-theme="light"] .service-tags span {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.service-visual {

    position: relative;

    height: 100%;

    min-height: 380px;

    border-radius: 12px;

    background: #0a0a0a;

}

.service-visual::before {

    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,.04),
            transparent 45%
        );

    pointer-events: none;
    z-index: 10;

}

/* Unique card visual areas */

.card-automation .service-visual {

    background:
        linear-gradient(135deg,
            #15110f,
            #241914);

}

.card-websites .service-visual {

    background:
        linear-gradient(135deg,
            #151515,
            #1d1d1d);

}

.card-saas .service-visual {

    background:
        linear-gradient(135deg,
            #141518,
            #1a1d22);

}

.card-infra .service-visual {

    background:
        linear-gradient(135deg,
            #090909,
            #121212);

}

[data-theme="light"] .service-visual {
    background: #e8e0d6;
}

/* =========================================================
   SYSTEM MOCKUPS — Operational visuals
========================================================= */

.sys-mockup {
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-websites .sys-browser {
    transform: scale(1.04) translateX(2%) translateY(2%);
}

.card-saas .sys-dashboard {
    transform: scale(1.06) translateY(3%);
}

[data-theme="light"] .sys-mockup {
    color: rgba(0, 0, 0, 0.6);
}

/* ── CARD 1: Chat + Automation Flow ── */

.sys-automation {
    gap: 1rem;
}

/* Status bar */
.sys-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

[data-theme="light"] .sys-status-bar {
    border-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.35);
}

.sys-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 2s ease infinite;
}



/* Timestamps */
.sys-time {
    display: block;
    margin-top: 4px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .sys-time {
    color: rgba(0, 0, 0, 0.2);
}

/* Typing indicator */
.sys-typing {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0.5rem 0.8rem;
    align-self: flex-end;
}

.sys-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(198, 124, 78, 0.5);
    animation: typing-bounce 1.4s ease infinite;
}

.sys-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.sys-typing span:nth-child(3) {
    animation-delay: 0.4s;
}



.sys-chat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.sys-bubble {
    max-width: 80%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.sys-bubble-in {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sys-bubble-out {
    align-self: flex-end;
    background: rgba(198, 124, 78, 0.15);
    border: 1px solid rgba(198, 124, 78, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .sys-bubble-in {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sys-bubble-out {
    background: rgba(198, 124, 78, 0.12);
    border-color: rgba(198, 124, 78, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.sys-flow {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sys-flow {
    border-color: rgba(0, 0, 0, 0.06);
}

.sys-node {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .sys-node {
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
}

.sys-node-active {
    border-color: rgba(198, 124, 78, 0.4);
    color: var(--accent-primary);
    background: rgba(198, 124, 78, 0.08);
}

.sys-connector {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

[data-theme="light"] .sys-connector {
    background: rgba(0, 0, 0, 0.1);
}

/* ── CARD 2: Browser Wireframe ── */

.sys-browser {
    gap: 0;
    padding: 0;
}

.sys-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sys-browser-bar {
    border-color: rgba(0, 0, 0, 0.06);
}

.sys-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .sys-dot {
    background: rgba(0, 0, 0, 0.12);
}

.sys-url {
    margin-left: 12px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono, monospace);
}

[data-theme="light"] .sys-url {
    color: rgba(0, 0, 0, 0.3);
}

.sys-browser-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.sys-hero-block {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sys-hero-block {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.sys-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.sys-grid-card {
    height: 80px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .sys-grid-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.sys-text-block {
    width: 80%;
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.sys-text-short {
    width: 50%;
}

[data-theme="light"] .sys-text-block {
    background: rgba(0, 0, 0, 0.04);
}

/* ── CARD 3: Dashboard Metrics ── */

.sys-dashboard {
    justify-content: space-between;
}

.sys-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sys-metric {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sys-metric {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.sys-metric-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .sys-metric-label {
    color: rgba(0, 0, 0, 0.4);
}

.sys-metric-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.03em;
}

[data-theme="light"] .sys-metric-value {
    color: rgba(0, 0, 0, 0.85);
}

.sys-metric-delta {
    font-size: 0.72rem;
    color: #4ade80;
}

.sys-delta-good {
    color: #4ade80;
}

.sys-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 140px;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sys-chart {
    border-color: rgba(0, 0, 0, 0.06);
}

.sys-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, 0.06);
    transition: background 300ms ease;
}

[data-theme="light"] .sys-bar {
    background: rgba(0, 0, 0, 0.06);
}

.sys-bar-current {
    background: var(--accent-primary);
}

/* ── CARD 4: Terminal ── */

.sys-terminal {
    gap: 0;
    padding: 0;
    font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);
}

.sys-term-bar {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .sys-term-bar {
    border-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.3);
}

.sys-term-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.sys-line {
    font-size: 0.75rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .sys-line {
    color: rgba(0, 0, 0, 0.6);
}

.sys-dim {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .sys-dim {
    color: rgba(0, 0, 0, 0.35);
}

.sys-prompt {
    color: var(--accent-primary);
    margin-right: 6px;
}

.sys-green {
    color: #4ade80;
}

.sys-success {
    color: #4ade80;
}

.sys-cursor {
    animation: blink 1s steps(1) infinite;
    color: var(--accent-primary);
}



.service-visual img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.02);

}

/* =========================================================
   SECONDARY SERVICES
========================================================= */

.secondary-services {

    display: flex;
    flex-direction: column;
    gap: 1rem;

    margin-top: 12rem;

}

.secondary-card {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.5rem 2.5rem;

    border-radius: 12px;

    background: transparent;

    border:
        1px solid rgba(255, 255, 255, 0.04);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 400ms ease,
        border 400ms ease,
        background 400ms ease,
        padding-left 400ms ease;

}

.secondary-card:hover {

    transform: none;

    background: rgba(255, 255, 255, 0.02);

    padding-left: 3rem;

    border-color:
        rgba(255, 255, 255, 0.08);

}

.secondary-card h4 {

    font-size: 1.25rem;

}

.secondary-card p {

    margin-top: 0;

    font-size: 0.95rem;

    color: var(--text-secondary);

    max-width: 40%;
    text-align: right;

}

@media (max-width:1024px) {

    .service-card-body,
    .card-body-visual-first,
    .card-body-visual-dominant {

        grid-template-columns: 1fr;

        gap: 2rem;

        direction: ltr;

    }

    .services-intro {

        max-width: 100%;

    }

    .secondary-services {

        grid-template-columns:
            repeat(2, 1fr);

    }

}

@media (max-width:768px) {

    .services-section {

        padding-top: 12vh;
        padding-bottom: 14vh;

    }

    .service-card {

        position: relative;

        height: auto;

        padding-top: 0;
        padding-bottom: 2rem;

        top: 0 !important;

    }

    .service-card-content {

        min-height: auto;

        padding: 1.5rem;

        border-radius: 14px;

        transform: scale(1) !important;

    }

    .service-card-body {

        grid-template-columns: 1fr;

        gap: 1.5rem;

    }

    .window-bar {
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .service-copy h3 {

        font-size: 1.8rem;

    }

    .service-visual {

        min-height: 260px;

    }

    .sys-metrics {
        grid-template-columns: 1fr;
    }

    .sys-flow {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .sys-connector {
        display: none;
    }

    .sys-grid-row {
        grid-template-columns: 1fr 1fr;
    }

    .secondary-services {

        grid-template-columns: 1fr;

        margin-top: 5rem;

    }

    .services-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

}

.capability-row:nth-child(even) {

    padding-left: 3vw;

}

.service-card-content {

    transition:
        transform 700ms cubic-bezier(.16, 1, .3, 1),
        box-shadow 700ms cubic-bezier(.16, 1, .3, 1);

}

.service-card-content:hover {

    transform:
        translateY(-6px);

}