.mhb-service-section {
    --mhb-service-accent: var(--mhb-green, #22c55e);
    box-sizing: border-box;
    --mhb-service-accent-soft: color-mix(in srgb, var(--mhb-service-accent) 16%, transparent);
    background: transparent;
    color: var(--mhb-text, #fff);
    font-family: var(--mhb-font-display, "Space Grotesk", Inter, sans-serif);
    overflow: clip;
    padding-inline: clamp(20px, 4vw, 48px);
    position: relative;
    width: 100%;
}

.mhb-service-section[data-mhb-accent="blue"] {
    --mhb-service-accent: var(--mhb-blue, #3b82f6);
}

.mhb-service-section[data-mhb-accent="violet"] {
    --mhb-service-accent: var(--mhb-violet, #8b5cf6);
}

.mhb-service-section *,
.mhb-service-section *::before,
.mhb-service-section *::after {
    box-sizing: border-box;
}

.mhb-service-section.has-spacing-compact {
    padding-block: clamp(38px, 5vw, 70px);
}

.mhb-service-section.has-spacing-normal {
    padding-block: clamp(64px, 8vw, 108px);
}

.mhb-service-section.has-spacing-editorial {
    padding-block: clamp(82px, 10vw, 144px);
}

.mhb-service-section.has-spacing-cinematic {
    padding-block: clamp(108px, 14vw, 188px);
}

.mhb-service-section__inner {
    margin-inline: auto;
    max-width: 1240px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.mhb-service-section.has-width-content .mhb-service-section__inner {
    max-width: 880px;
}

.mhb-service-section.has-width-wide .mhb-service-section__inner {
    max-width: 1240px;
}

.mhb-service-section.has-width-full .mhb-service-section__inner {
    max-width: none;
}

.mhb-service-section.has-surface-soft {
    background:
        linear-gradient(135deg, var(--mhb-service-accent-soft), transparent 42%),
        var(--mhb-bg-soft, #090b10);
    border-block: 1px solid var(--mhb-border, rgba(255, 255, 255, 0.08));
}

.mhb-service-section.has-surface-glass .mhb-service-section__inner,
.mhb-service-section.has-surface-card .mhb-service-section__inner {
    border: 1px solid var(--mhb-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    padding: clamp(24px, 4vw, 46px);
}

.mhb-service-section.has-surface-glass .mhb-service-section__inner {
    backdrop-filter: blur(18px);
    background:
        linear-gradient(145deg, var(--mhb-surface-strong, rgba(255, 255, 255, 0.06)), var(--mhb-surface, rgba(255, 255, 255, 0.025))),
        linear-gradient(135deg, var(--mhb-service-accent-soft), transparent 36%);
}

.mhb-service-section.has-surface-card .mhb-service-section__inner {
    background: var(--mhb-surface-card, rgba(5, 5, 5, 0.84));
    box-shadow: 0 28px 88px color-mix(in srgb, #000 16%, transparent);
}

.mhb-service-section.has-motion-cinematic::before {
    background:
        linear-gradient(110deg, transparent 0 20%, var(--mhb-service-accent-soft) 44%, transparent 68%),
        repeating-linear-gradient(90deg, var(--mhb-grid-line, rgba(255, 255, 255, 0.035)) 0 1px, transparent 1px 72px);
    content: "";
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
    position: absolute;
}

.mhb-service-section__head {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
    margin-bottom: clamp(30px, 5vw, 62px);
}

.mhb-service-section__eyebrow {
    color: var(--mhb-service-accent);
    font-family: var(--mhb-font-mono, "JetBrains Mono", monospace);
    font-size: 0.72rem;
    font-weight: 800;
    grid-column: 1 / -1;
    letter-spacing: 0.18em;
    margin: 0;
    text-transform: uppercase;
}

.mhb-service-section__heading {
    color: var(--mhb-text, #fff);
    font-size: 3.7rem;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
    text-wrap: balance;
}

.mhb-service-section__intro {
    align-self: end;
    color: var(--mhb-text-muted, rgba(255, 255, 255, 0.62));
    font-size: 1.06rem;
    line-height: 1.72;
    margin: 0;
}

.mhb-service-card,
.mhb-service-panel {
    background:
        linear-gradient(145deg, var(--mhb-surface-strong, rgba(255, 255, 255, 0.055)), var(--mhb-surface, rgba(255, 255, 255, 0.025))),
        var(--mhb-surface-card, rgba(5, 5, 5, 0.82));
    border: 1px solid var(--mhb-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    color: var(--mhb-text, #fff);
}

.mhb-service-button,
.mhb-service-link {
    align-items: center;
    display: inline-flex;
    font-family: var(--mhb-font-display, "Space Grotesk", Inter, sans-serif);
    font-weight: 800;
    text-decoration: none;
}

.mhb-service-button {
    background: linear-gradient(135deg, var(--mhb-green, #22c55e), var(--mhb-teal, #14b8a6));
    border: 1px solid transparent;
    border-radius: 999px;
    color: #04130a;
    cursor: pointer;
    min-height: 46px;
    padding: 13px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mhb-service-button:hover,
.mhb-service-button:focus-visible {
    box-shadow: 0 14px 34px -12px rgba(34, 197, 94, 0.65);
    color: #04130a;
    filter: brightness(1.08) saturate(1.1);
    transform: translateY(-2px);
}

.mhb-service-button:focus-visible {
    outline: 2px solid var(--mhb-green, #22c55e);
    outline-offset: 3px;
}

.mhb-service-button--ghost {
    background: transparent;
    border: 1px solid var(--mhb-border-strong, rgba(255, 255, 255, 0.14));
    color: var(--mhb-text, #fff);
}

.mhb-service-button--ghost:hover,
.mhb-service-button--ghost:focus-visible {
    background: var(--mhb-brand-soft, rgba(34, 197, 94, 0.16));
    border-color: var(--mhb-green, #22c55e);
    box-shadow: none;
    color: var(--mhb-text, #fff);
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .mhb-service-button:hover,
    .mhb-service-button:focus-visible {
        transform: none;
    }
}

.mhb-service-link {
    color: var(--mhb-service-accent);
}

.mhb-service-kicker {
    color: var(--mhb-service-accent);
    font-family: var(--mhb-font-mono, "JetBrains Mono", monospace);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mhb-service-editor-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 12px;
}

.mhb-service-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mhb-service-editor-url {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.mhb-service-editor-url > span {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .mhb-service-section__head {
        grid-template-columns: 1fr;
    }

    .mhb-service-section__heading {
        font-size: 3.1rem;
    }
}

:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section {
    overflow: visible;
    padding-block: 44px !important;
    padding-inline: 18px;
}

:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section.has-spacing-cinematic,
:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section.has-spacing-editorial,
:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section.has-spacing-normal {
    padding-block: 44px !important;
}

:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section__inner {
    max-width: 1040px;
}

:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section__head {
    gap: 12px;
    grid-template-columns: 1fr;
    margin-bottom: 28px;
}

:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section__heading {
    font-size: 2.25rem;
    max-width: 720px;
}

:where(.editor-styles-wrapper, body.block-editor-iframe__body) .mhb-service-section__intro {
    font-size: 0.98rem;
    max-width: 680px;
}

@media (max-width: 600px) {
    .mhb-service-section {
        padding-inline: 18px;
    }

    .mhb-service-section__heading {
        font-size: 2.35rem;
    }

    .mhb-service-section__intro {
        font-size: 1rem;
    }

    .mhb-service-section.has-surface-glass .mhb-service-section__inner,
    .mhb-service-section.has-surface-card .mhb-service-section__inner {
        padding: 20px;
    }
}

/* ---------- Design system v2: accent serif, pill eyebrows, 3D cards ---------- */

.mhb-service-section__heading {
    font-size: clamp(2.2rem, 4.6vw, 3.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.04;
}

.mhb-service-section__heading em,
.mhb-service-cta h2 em,
.mhb-service-proof h2 em {
    background: var(--mhb-brand-gradient, linear-gradient(135deg, #fff, #22c55e 46%, #14b8a6));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--mhb-font-accent, "Instrument Serif", Georgia, serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding-right: 0.06em;
}

.mhb-service-section__eyebrow {
    align-items: center;
    background: var(--mhb-service-accent-soft);
    border: 1px solid color-mix(in srgb, var(--mhb-service-accent) 32%, transparent);
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    justify-self: start;
    letter-spacing: 0.14em;
    padding: 7px 14px;
}

.mhb-service-section__eyebrow::before {
    background: var(--mhb-service-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--mhb-service-accent);
    content: "";
    height: 6px;
    width: 6px;
}

.mhb-service-card,
.mhb-service-panel {
    border-radius: 20px;
}

.mhb-service-card {
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.35s ease;
}

.mhb-service-card:hover {
    border-color: color-mix(in srgb, var(--mhb-service-accent) 45%, transparent);
    box-shadow:
        0 34px 70px -34px color-mix(in srgb, var(--mhb-service-accent) 55%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: perspective(900px) rotateX(3deg) translateY(-6px);
}

.mhb-service-solutions__card > span:first-child {
    -webkit-text-stroke: 1px color-mix(in srgb, var(--mhb-service-accent) 70%, transparent);
    color: transparent;
    font-size: 2.4rem;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .mhb-service-card,
    .mhb-service-card:hover {
        transform: none;
        transition: none;
    }
}

.mhb-service-hero__title span {
    font-family: var(--mhb-font-accent, "Instrument Serif", Georgia, serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding-right: 0.06em;
}
