:root {
    --bg: #050506;
    --bg-soft: #0d0e12;
    --panel: #111218;
    --panel-strong: #151721;
    --text: #f5f7fb;
    --muted: #aeb5c5;
    --muted-soft: #747d91;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --blue: #2868ff;
    --blue-dark: #1d4fd1;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 24px;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    font-size: clamp(44px, 5vw, 64px);
}

h2 {
    font-size: clamp(34px, 3.6vw, 48px);
}

h3 {
    font-size: 22px;
}

.container {
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.page-hero .container.narrow,
.page-hero .container {
    max-width: 1200px;
    text-align: left;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero p,
.page-hero .button-row {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.page-hero h1 {
    max-width: 880px;
}

.page-hero p {
    max-width: 920px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 16px;
    z-index: 10;
    background: var(--white);
    color: #000;
    padding: 8px 16px;
}

.skip-link:focus {
    left: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 80px;
    background: rgba(5, 5, 6, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 80px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px;
    align-items: center;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand span {
    color: var(--blue);
}

.primary-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.primary-nav a:hover {
    color: var(--text);
}

.primary-nav a[href*="client-portal"] {
    display: none;
}

.portal-quick-link {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-quick-link:hover {
    color: var(--text);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.header-cta,
.button.primary {
    background: var(--blue);
    color: var(--white);
}

.header-cta:hover,
.button.primary:hover {
    background: var(--blue-dark);
}

.button.secondary {
    border: 1px solid var(--line);
    color: var(--white);
}

.nav-toggle {
    display: none;
}

.home-hero {
    position: relative;
    isolation: isolate;
    min-height: 640px;
    background:
        linear-gradient(90deg, rgba(3, 5, 9, 0.98) 0%, rgba(3, 5, 9, 0.88) 36%, rgba(3, 5, 9, 0.45) 68%, rgba(3, 5, 9, 0.2) 100%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        url("../images/home-hero-intelligence.webp");
    background-size: cover, 64px 64px, 64px 64px, cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    pointer-events: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0.55;
}

.hero-overlay {
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-content {
    padding: 80px 0 64px;
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 680px;
    margin-top: 24px;
    font-size: 19px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0 16px;
}

.trust-line {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.signal-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #07080b;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.signal-grid p {
    margin: 0;
    padding: 20px 28px;
    border-left: 1px solid var(--line);
    color: var(--text);
    font-weight: 800;
}

.signal-grid p:last-child {
    border-right: 1px solid var(--line);
}

.signal-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 12px;
}

.proof-strip {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.native-media-band {
    background: var(--bg);
    padding: 0 0 56px;
}

.native-media-band img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 28px 90px rgba(0,0,0,0.34);
}

/* V1.5.1 native CMS corrections */
.home-hero {
    background-position: center, center, center, center right !important;
}

.hero-overlay {
    justify-content: flex-start !important;
}

.hero-content {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    max-width: 680px !important;
}

.hero-content h1,
.hero-content p {
    text-align: left !important;
}

.native-media-band {
    display: none !important;
}

.proof-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    min-height: 70px;
}

.proof-label {
    margin: 0;
    color: var(--muted-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.proof-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
    font-weight: 800;
}

.section,
.page-hero {
    padding: 72px 0;
}

.muted {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.two-column {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.split-heading {
    max-width: none;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: end;
}

.cards {
    display: grid;
    gap: 24px;
}

.cards.three {
    grid-template-columns: repeat(3, 1fr);
}

.cards.four {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.card:hover,
.work-card:hover .media-placeholder {
    border-color: var(--line-strong);
}

.card.compact {
    min-height: 188px;
}

.card h3,
.work-card h3,
.steps h3 {
    margin-bottom: 16px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.steps article {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.steps span {
    display: block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-list span {
    display: inline-flex;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.text-link {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    border-bottom: 1px solid var(--blue);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.media-placeholder {
    aspect-ratio: 16 / 10;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(40, 104, 255, 0.18), transparent 42%),
        linear-gradient(135deg, #151721, #08090c);
    position: relative;
    overflow: hidden;
}

.media-placeholder::after {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.final-cta {
    padding: 88px 0;
    text-align: center;
}

.final-cta .button {
    margin-top: 16px;
}

.newsletter-strip {
    padding: 44px 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(40, 104, 255, 0.16), transparent 34%),
        var(--panel);
    border-top: 1px solid var(--line);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 40px;
    align-items: end;
}

.newsletter-inner h2 {
    max-width: 720px;
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.newsletter-inner p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.newsletter-form input,
.newsletter-form button {
    min-height: 48px;
    border-radius: 8px;
    font: inherit;
}

.newsletter-form input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.newsletter-form button {
    border: 0;
    background: var(--blue);
    color: var(--white);
    padding: 0 18px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.site-footer {
    padding: 48px 0 22px;
    background: #030304;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.25fr) minmax(140px, 0.7fr) minmax(190px, 0.8fr) minmax(230px, 1fr);
    gap: 36px;
    align-items: start;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 24px;
}

.footer-logo {
    display: inline-flex;
    width: 178px;
    max-width: 100%;
    margin-bottom: 18px;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.03);
}

.social-links a:hover {
    border-color: rgba(47, 107, 255, 0.75);
    background: rgba(47, 107, 255, 0.14);
}

.footer-about p,
.footer-method p,
.footer-contact p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a,
.footer-portal-link,
.footer-bottom a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover,
.footer-portal-link:hover,
.footer-bottom a:hover,
.footer-contact a:hover {
    color: var(--text);
}

.footer-portal-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--blue);
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    margin: 0;
    color: var(--soft-text, var(--muted-soft));
    font-size: 13px;
}

.content-body {
    max-width: 860px;
}

.form-shell {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.review-form-layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 720px);
    gap: 56px;
    align-items: start;
}

.review-form-intro {
    position: sticky;
    top: 112px;
}

.review-form-intro h2 {
    max-width: 420px;
}

.review-form-intro p {
    max-width: 460px;
}

.review-form-layout .form-shell {
    width: 100%;
    max-width: 720px;
}

.form-shell a {
    color: var(--text);
    border-bottom: 1px solid var(--blue);
}

.maxmark-form {
    display: grid;
    gap: 20px;
}

.maxmark-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.maxmark-form input,
.maxmark-form textarea,
.maxmark-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #050506;
    color: var(--text);
    font: inherit;
    text-transform: none;
    letter-spacing: 0;
    padding: 12px 14px;
}

.maxmark-form button,
.maxmark-form input[type="submit"] {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.maxmark-form textarea {
    min-height: 120px;
    resize: vertical;
}

.maxmark-form select option {
    background: #050506;
    color: var(--text);
}

.maxmark-form .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.maxmark-form .checkbox input {
    width: auto;
    min-height: auto;
    margin-top: 5px;
}

.maxmark-form-message {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
}

.maxmark-form-message.success {
    background: rgba(35, 134, 77, 0.16);
    color: #baf2ce;
    border: 1px solid rgba(35, 134, 77, 0.4);
}

.maxmark-form-message.error {
    background: rgba(218, 54, 51, 0.16);
    color: #ffb3b0;
    border: 1px solid rgba(218, 54, 51, 0.4);
}

@media (max-width: 980px) {
    .review-form-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .review-form-intro {
        position: static;
    }

    .review-form-layout .form-shell {
        max-width: none;
    }

    .container {
        width: calc(100% - 40px);
    }

    .header-inner {
        grid-template-columns: auto auto auto;
        gap: 12px;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
        background: transparent;
        color: var(--text);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px 14px;
        font: inherit;
        font-weight: 700;
    }

    .primary-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-bottom: 24px;
    }

    .portal-quick-link {
        justify-self: end;
        font-size: 12px;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        display: grid;
        gap: 16px;
        justify-content: start;
    }

    .header-cta {
        display: none;
    }

    .home-hero,
    .hero-overlay {
        min-height: 620px;
    }

    .home-hero {
        background-position: center right;
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .proof-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .proof-list {
        justify-content: flex-start;
    }

    .signal-grid p,
    .signal-grid p:last-child {
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-inline: 0;
    }

    .two-column,
    .cards.three,
    .cards.four,
    .steps,
    .work-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .page-hero {
        padding: 56px 0;
    }

    .split-heading {
        display: block;
    }
}

/* V1.6.7 editable service carousel, plan imagery and case-study detail image system */
.service-marquee {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 12px !important;
    scrollbar-width: thin;
}

.service-marquee .service-showcase,
.service-showcase.service-track {
    display: flex !important;
    grid-template-columns: none !important;
    width: max-content !important;
    gap: 24px !important;
}

.service-showcase.service-track {
    animation: maxmark-service-scroll 52s linear infinite;
}

.service-marquee:hover .service-track {
    animation-play-state: paused;
}

.service-panel {
    flex: 0 0 min(390px, 82vw) !important;
    width: min(390px, 82vw) !important;
}

.plan-card-visual {
    display: flex;
    flex-direction: column;
}

.plan-card-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 20px;
    opacity: 0.9;
}

.case-study-image-primary {
    aspect-ratio: 4 / 5;
    height: auto !important;
}

.case-study-image-secondary {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 32px;
}

.case-meta a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .service-showcase.service-track {
        animation: none;
    }
}

/* V1.6.7 case-study detail layout: listing image stays on Work page, detail uses one wide image */
.case-detail-layout {
    display: grid;
    gap: 32px;
    max-width: 1040px;
}

.case-detail-media {
    width: 100%;
}

.case-detail-layout .case-study-image-secondary {
    aspect-ratio: 16 / 7;
    margin-bottom: 0;
}

.case-meta-horizontal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.case-meta-horizontal p {
    margin: 0;
}

.case-content-full {
    display: grid;
    gap: 22px;
}

.case-content-full .case-section {
    max-width: none;
}

@media (max-width: 900px) {
    .case-meta-horizontal {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .case-meta-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 34px;
    }

    .hero-copy {
        font-size: 18px;
    }
}

/* Maxmark final homepage tightening patch - 2026-08-24 */
h1 { max-width: 700px !important; font-size: clamp(44px, 4.7vw, 60px) !important; }
h2 { font-size: clamp(32px, 3.3vw, 44px) !important; }
.home-hero,
.hero-overlay { min-height: 580px !important; }
.hero-content { padding: 56px 0 48px !important; }
.hero-copy { max-width: 640px !important; margin-top: 20px !important; font-size: 18px !important; }
.button-row { margin: 24px 0 12px !important; }
.signal-grid p { padding: 16px 24px !important; }
.section,
.page-hero { padding: 56px 0 !important; }
.section-heading { margin-bottom: 28px !important; }
.two-column { gap: 48px !important; }
.card { min-height: 176px !important; padding: 24px !important; }
.card.compact { min-height: 148px !important; }
.media-placeholder { margin-bottom: 16px !important; }
.final-cta { padding: 56px 0 !important; }
.site-footer { padding: 40px 0 !important; }

@media (max-width: 980px) {
    h1 { font-size: 46px !important; }
    .home-hero,
    .hero-overlay { min-height: 600px !important; }
    .section,
    .page-hero { padding: 48px 0 !important; }
}

/* Maxmark visual system and motion upgrade */
.home-hero {
    min-height: 640px !important;
    background-size: cover, 56px 56px, 56px 56px, cover;
    background-position: center, center, center, center right;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 24%, rgba(40, 104, 255, 0.22), transparent 28%),
        radial-gradient(circle at 15% 82%, rgba(40, 104, 255, 0.16), transparent 24%);
    opacity: 0.86;
    animation: maxmark-glow 10s ease-in-out infinite alternate;
}

.hero-overlay {
    min-height: 640px !important;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
}

.service-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(40, 104, 255, 0.75) rgba(255, 255, 255, 0.08);
}

.service-marquee .service-showcase {
    display: flex;
    width: max-content;
    gap: 24px;
}

.service-track {
    animation: maxmark-service-scroll 48s linear infinite;
}

.service-marquee:hover .service-track,
.service-marquee:focus-within .service-track {
    animation-play-state: paused;
}

@keyframes maxmark-service-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

.service-panel {
    width: min(390px, 82vw);
    min-height: 470px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.service-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(40, 104, 255, 0.55);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(40, 104, 255, 0.12);
}

.service-panel a {
    display: grid;
    min-height: 470px;
    align-content: end;
    position: relative;
    color: var(--text);
}

.service-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transform: scale(1.01);
    transition: transform 500ms ease, opacity 300ms ease;
}

.service-panel:hover img {
    opacity: 0.72;
    transform: scale(1.06);
}

.service-panel a::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 6, 0.04) 0%, rgba(5, 5, 6, 0.44) 42%, rgba(5, 5, 6, 0.94) 100%),
        linear-gradient(90deg, rgba(40, 104, 255, 0.18), transparent 48%);
}

.service-panel div {
    position: relative;
    z-index: 1;
    padding: 32px;
}

.service-panel h3 {
    margin-bottom: 14px;
    font-size: clamp(25px, 2.2vw, 32px);
    letter-spacing: -0.03em;
}

.service-panel p:last-child {
    margin-bottom: 0;
}

.service-number {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.plan-strip .card {
    background:
        linear-gradient(135deg, rgba(40, 104, 255, 0.12), transparent 42%),
        var(--panel);
}

.plan-grid .card {
    min-height: 250px;
}

.plan-card-visual {
    overflow: hidden;
}

.plan-card-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
    opacity: 0.86;
}

.case-study-image-secondary {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 32px;
}

.case-meta a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.work-card .eyebrow {
    margin-bottom: 10px;
}

.visual-page-hero {
    position: relative;
    overflow: hidden;
}

.visual-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 20%, rgba(40, 104, 255, 0.18), transparent 30%);
}

.page-visual {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.page-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.visual-placeholder {
    display: grid;
    place-items: center;
}

.visual-placeholder span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(40, 104, 255, 0.45);
    border-radius: 999px;
    color: var(--blue);
    background: rgba(40, 104, 255, 0.1);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-card {
    transition: transform 240ms ease;
}

.work-card:hover {
    transform: translateY(-4px);
}

.linked-work-card a {
    display: block;
    color: inherit;
}

.case-link {
    display: inline-flex;
    margin-top: 4px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid var(--blue);
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.back-link:hover,
.case-link:hover {
    color: var(--white);
}

.case-hero .container {
    max-width: 980px;
}

.case-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.case-sidebar {
    position: sticky;
    top: 104px;
}

.case-sidebar .media-placeholder {
    margin-bottom: 24px;
}

.case-meta {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.case-meta p {
    margin: 0;
    color: var(--text);
}

.case-meta span {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.case-content {
    display: grid;
    gap: 28px;
}

.case-section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.case-section h2 {
    margin-bottom: 16px;
    font-size: clamp(26px, 2.4vw, 34px) !important;
}

.case-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
}

.case-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
}

.card {
    transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--panel-strong);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-float] {
    animation: maxmark-float 8s ease-in-out infinite;
}

@keyframes maxmark-glow {
    0% {
        opacity: 0.54;
        transform: translate3d(-10px, 0, 0);
    }

    100% {
        opacity: 0.9;
        transform: translate3d(10px, -6px, 0);
    }
}

@keyframes maxmark-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 980px) {
    .home-hero {
        background-position: center, center, center, 68% center;
    }

    .service-showcase,
    .work-grid,
    .case-layout {
        grid-template-columns: 1fr;
    }

    .case-sidebar {
        position: static;
    }

    .service-panel,
    .service-panel a {
        min-height: 420px;
    }
}

@media (max-width: 560px) {
    .home-hero {
        background:
            linear-gradient(180deg, rgba(3, 5, 9, 0.88) 0%, rgba(3, 5, 9, 0.95) 58%, rgba(3, 5, 9, 1) 100%),
            url("../images/home-hero-intelligence.webp");
        background-size: cover;
        background-position: 70% center;
    }

    .service-panel,
    .service-panel a {
        min-height: 380px;
    }

    .service-panel div {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Maxmark premium compression pass */
.site-header {
    min-height: 72px;
}

.header-inner {
    min-height: 72px;
}

.brand img {
    width: 160px !important;
    max-width: 160px !important;
}

.primary-nav ul {
    gap: 24px;
}

.header-cta,
.button {
    min-height: 44px;
    padding-inline: 22px;
}

h1 {
    max-width: 650px !important;
    font-size: clamp(42px, 4.4vw, 56px) !important;
    line-height: 1.04;
}

h2 {
    font-size: clamp(30px, 3vw, 40px) !important;
    line-height: 1.1;
}

.home-hero,
.hero-overlay {
    min-height: 580px !important;
}

.hero-content {
    padding: 48px 0 40px !important;
}

.hero-copy {
    max-width: 600px !important;
    font-size: 17px !important;
    line-height: 1.58;
}

.signal-grid p {
    padding: 12px 22px !important;
}

.section,
.page-hero {
    padding: 48px 0 !important;
}

.section-heading {
    margin-bottom: 24px !important;
}

.two-column {
    gap: 40px !important;
}

.cards {
    gap: 20px;
}

.card {
    min-height: 150px !important;
    padding: 22px !important;
}

.card.compact {
    min-height: 128px !important;
}

.service-showcase {
    gap: 20px;
}

.service-panel,
.service-panel a {
    min-height: 390px;
}

.service-copy {
    padding: 26px;
}

.service-panel h3 {
    font-size: clamp(23px, 2vw, 28px);
}

.steps {
    gap: 20px;
}

.steps article {
    padding-top: 18px;
}

.steps span {
    margin-bottom: 12px;
}

.steps h3,
.card h3,
.work-card h3 {
    margin-bottom: 12px;
}

.work-grid {
    gap: 24px;
}

.media-placeholder {
    aspect-ratio: 16 / 8.5;
}

.final-cta {
    padding: 48px 0 !important;
}

.site-footer {
    padding: 40px 0 !important;
}

@media (max-width: 980px) {
    .site-header,
    .header-inner {
        min-height: 72px;
    }

    .home-hero,
    .hero-overlay {
        min-height: 560px !important;
    }

    .section,
    .page-hero {
        padding: 44px 0 !important;
    }

    .service-panel,
    .service-panel a {
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 38px !important;
    }

    h2 {
        font-size: 30px !important;
    }

    .home-hero,
    .hero-overlay {
        min-height: 540px !important;
    }

    .hero-copy {
        font-size: 16px !important;
    }

    .service-panel,
    .service-panel a {
        min-height: 330px;
    }
}


/* V1.5.2 hero alignment and Black visual system */
.home-hero,
.hero-overlay {
    min-height: 560px !important;
}

.home-hero {
    background-position: center, center, center, center right !important;
}

.hero-overlay {
    align-items: center !important;
    justify-content: flex-start !important;
}

.hero-content {
    max-width: 650px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.hero-content h1 {
    max-width: 650px !important;
    font-size: clamp(48px, 5vw, 70px) !important;
    line-height: 1 !important;
    letter-spacing: -0.055em !important;
}

.hero-copy {
    max-width: 620px !important;
}

.native-media-band {
    display: none !important;
}

.page-visual img,
.service-panel img {
    object-position: center !important;
}

.work-card-image,
.case-study-image,
.insight-card .work-card-image {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 18px;
}

.case-study-image {
    height: 360px;
    margin-bottom: 24px;
}

/* V1.5.6 blog and portal system */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: #101116;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47,116,255,0.45);
}

.blog-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 18px;
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 18px;
}

.blog-card h2 {
    font-size: 24px !important;
    line-height: 1.12;
    margin-bottom: 12px;
}

.pagination-wrap {
    margin-top: 32px;
}

.single-featured-image {
    background: var(--bg);
    padding: 0 0 56px;
}

.single-featured-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.12);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.article-content {
    max-width: 780px;
}

.article-content h2,
.article-content h3 {
    margin-top: 32px;
}

.article-sidebar {
    position: sticky;
    top: 110px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: #101116;
    padding: 24px;
}

@media (max-width: 980px) {
    .blog-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
}

@media (min-width: 981px) {
    .hero-content {
        transform: translateX(-24px);
    }
}


/* V1.5.5 hard hero alignment fix */
.home-hero {
    overflow: hidden !important;
}

.home-hero .container,
.hero-overlay .container,
.hero-content.container {
    width: min(1200px, calc(100% - 96px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-content {
    transform: none !important;
    translate: none !important;
    padding-left: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1200px !important;
    text-align: left !important;
}

.hero-content h1,
.hero-content .hero-copy,
.hero-content .eyebrow,
.hero-content .button-row,
.hero-content .trust-line {
    max-width: 650px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

.hero-content h1 {
    font-size: clamp(46px, 5vw, 68px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
}

.hero-copy {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

@media (max-width: 980px) {
    .home-hero .container,
    .hero-overlay .container,
    .hero-content.container {
        width: calc(100% - 40px) !important;
    }
    .hero-content h1,
    .hero-content .hero-copy,
    .hero-content .eyebrow,
    .hero-content .button-row,
    .hero-content .trust-line {
        max-width: 100% !important;
    }
}


/* V1.6.8 major case-study strip and ranked work carousel */
.proof-case-strip {
    background: linear-gradient(90deg, rgba(40,104,255,0.08), rgba(255,255,255,0.025));
}

.proof-case-inner {
    min-height: 86px;
}

.proof-case-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding-bottom: 4px;
}

.proof-case-list a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255,255,255,0.045);
    font-size: 12px;
    font-weight: 800;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.proof-case-list a:hover {
    border-color: var(--blue);
    background: rgba(40,104,255,0.16);
    transform: translateY(-2px);
}

.work-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    scrollbar-width: thin;
}

.work-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: maxmark-work-scroll 118s linear infinite;
}

.work-marquee:hover .work-track,
.work-marquee:focus-within .work-track {
    animation-play-state: paused;
}

.home-work-card {
    flex: 0 0 min(560px, 84vw);
}

.home-work-card .work-card-image {
    height: 255px;
}

@keyframes maxmark-work-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 14px)); }
}

@media (prefers-reduced-motion: reduce) {
    .work-track { animation: none; }
}

@media (max-width: 760px) {
    .proof-case-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 0;
    }
    .proof-case-list {
        justify-content: flex-start;
    }
}


/* V1.7.2 editorial case image polish */
.proof-case-list a { white-space: nowrap; }

/* V1.7.5 mobile, footer, newsletter and portal polish */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
iframe {
    max-width: 100%;
}

.newsletter-strip {
    padding: 44px 0 !important;
}

.site-footer {
    padding: 48px 0 22px !important;
}

.footer-grid {
    grid-template-columns: minmax(230px, 1.25fr) minmax(140px, 0.7fr) minmax(190px, 0.8fr) minmax(230px, 1fr) !important;
    gap: 36px !important;
}

.footer-logo {
    margin-bottom: 18px !important;
}

.footer-about p,
.footer-method p,
.footer-contact p {
    max-width: 360px;
}

.footer-contact a {
    color: var(--muted);
}

.page-hero .container,
.section .container {
    min-width: 0;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 980px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .brand img {
        width: 156px !important;
        max-width: 156px !important;
    }

    .primary-nav.is-open {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .primary-nav ul {
        gap: 0 !important;
    }

    .primary-nav li {
        border-top: 1px solid var(--line);
    }

    .primary-nav a {
        display: block;
        padding: 14px 0;
    }

    .portal-quick-link {
        display: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .review-form-layout,
    .two-column {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}

@media (max-width: 640px) {
    .container,
    .home-hero .container,
    .hero-overlay .container,
    .hero-content.container {
        width: calc(100% - 32px) !important;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-form button {
        width: 100%;
    }

    .site-footer {
        padding: 38px 0 20px !important;
    }

    .footer-logo {
        width: 160px !important;
    }

    .social-links a {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .form-shell {
        padding: 20px !important;
    }

    .maxmark-form {
        gap: 14px !important;
    }

    .maxmark-form input,
    .maxmark-form textarea,
    .maxmark-form select {
        min-height: 46px;
        font-size: 16px;
    }

    .page-hero {
        padding-top: 44px !important;
    }
}
