/* PML7 overlay — light at the top, navy below.
   Brand stops: electric blue, dark blue, deep koamaru, bunting, cinder. */

:root {
    --pml-blue: #0900F1;
    --pml-dark-blue: #0D04BA;
    --pml-koamaru: #100E7F;
    --pml-bunting: #131546;
    --pml-cinder: #0E0E15;
    --pml-white: #ffffff;
    --pml-mist: #f3f5ff;
    --pml-text: #131546;
    --pml-muted: rgba(19, 21, 70, 0.7);
    --pml-on-dark: #f4f6fb;
    --pml-on-dark-muted: rgba(244, 246, 251, 0.66);
    --pml-faint: rgba(244, 246, 251, 0.22);
    --pml-line: rgba(9, 0, 241, 0.35);
    --pml-grad-page: linear-gradient(
        180deg,
        #ffffff 0%,
        #f7f8ff 10%,
        #e8ebff 22%,
        #d2d7fb 34%,
        #a8aff6 48%,
        #0900F1 64%,
        #0D04BA 76%,
        #100E7F 86%,
        #131546 94%,
        #0E0E15 100%
    );
    --pml-grad-slash: linear-gradient(180deg, #0900F1 0%, #0D04BA 40%, #100E7F 72%, #0E0E15 100%);
    --pml-grad-bar: linear-gradient(90deg, #0900F1 0%, #0D04BA 55%, #100E7F 100%);
    --pml-grad-cta: linear-gradient(120deg, #100E7F 0%, #0D04BA 48%, #0900F1 100%);
    --pml-grad-cta-idle: linear-gradient(90deg, #0E0E15 0%, #100E7F 34%, #0900F1 100%);
    --pml-grad-header: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 62%, rgba(255, 255, 255, 0) 100%);
    --pml-header-sticky: #ffffff;
    --pml-radius: 28px;
}

html {
    background: var(--pml-cinder);
}

body,
body.light,
body.dark {
    background-color: var(--pml-cinder) !important;
    background-image: var(--pml-grad-page) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 320vh !important;
    background-attachment: scroll !important;
    color: var(--pml-text);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

/* Clients page: darker sooner (short page, white logos) */
body.pml7-page-dark {
    --pml-grad-page: linear-gradient(
        180deg,
        #ffffff 0%,
        #e8ebff 8%,
        #a8aff6 18%,
        #0900F1 32%,
        #0D04BA 48%,
        #100E7F 64%,
        #131546 82%,
        #0E0E15 100%
    );
    background-size: 100% 160vh !important;
}

/* Portfolio: more white from the top (cases stay on light) */
body.pml7-page-portfolio {
    --pml-grad-page: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff 32%,
        #f7f8ff 44%,
        #e8ebff 56%,
        #d2d7fb 66%,
        #a8aff6 76%,
        #0900F1 86%,
        #0D04BA 91%,
        #100E7F 95%,
        #131546 98%,
        #0E0E15 100%
    );
    background-size: 100% 360vh !important;
}

body.pml7-page-dark .page-header .page-title h1,
body.pml7-page-dark .page-header .big-title {
    color: var(--pml-bunting) !important;
}

body.pml7-page-dark .site-header,
body.pml7-page-dark .site-header.light,
body.pml7-page-dark .site-header.dark {
    background: var(--pml-grad-header);
}

body.pml7-page-dark .site-header.is-sticky-scroll,
body.pml7-page-dark .site-header.header_sticked {
    background: var(--pml-header-sticky) !important;
    background-color: var(--pml-header-sticky) !important;
    background-image: none !important;
}

body::before,
body::after {
    display: none;
}

#page,
.page-content,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

#page,
.page-content,
.section,
.wrapper,
.wrapper-small,
.wrapper-full {
    background-color: transparent;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
h1, h2, h3, h4,
.big-title,
.ah-title,
.page-title,
.ar-work-title,
.post-title,
.cas-titles .cs-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--pml-text);
}

body.dark h5,
body.dark h6,
body.dark p,
h5, h6, p {
    color: var(--pml-muted);
}

a {
    color: var(--pml-text);
}

/* Header — light glass at top; solid white sticky on scroll-back
------------------------------------------------------------------- */
.site-header,
.site-header.light,
.site-header.dark {
    background: var(--pml-grad-header);
    z-index: 40;
}

.site-header.is-sticky-scroll,
.site-header.header_sticked {
    background: var(--pml-header-sticky) !important;
    background-color: var(--pml-header-sticky) !important;
    background-image: none !important;
}

.site-branding {
    overflow: visible;
}

.site-logo {
    width: 156px;
    overflow: visible;
    /* Keep mark visible after load-anim (theme default starts at translateY(100%)) */
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
}

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

.menu a,
.site-header.dark .menu a,
.site-header.light .menu a {
    color: var(--pml-text);
}

.site-header.dark .toggle-line,
.site-header.light .toggle-line,
body.dark .toggle-line {
    background: var(--pml-bunting);
    width: 32px;
}

.header-mid {
    position: absolute;
    left: 50%;
    z-index: 999;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.header-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
}

.header-mid .header-cta-but {
    padding: 0;
}

.header-widgets .header-cta-but a,
.header-mid .header-cta-but a,
.site-header.light .header-cta-but a,
.site-header.dark .header-cta-but a {
    color: var(--pml-white) !important;
    white-space: nowrap;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: inline-block;
    padding: 0.85rem 2rem;
    box-sizing: border-box;
}

/* All header CTAs: solid Dark Blue pill, no ghost text */
.header-widgets .header-cta-but a::before,
.header-mid .header-cta-but a::before,
.site-header.light .header-widgets .header-cta-but a::before,
.site-header.dark .header-widgets .header-cta-but a::before,
.site-header.light .header-mid .header-cta-but a::before,
.site-header.dark .header-mid .header-cta-but a::before {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    background: var(--pml-dark-blue) !important;
}

/* Hover: white pill + Dark Blue text */
.header-widgets .header-cta-but a:hover,
.header-mid .header-cta-but a:hover,
.site-header.light .header-widgets .header-cta-but a:hover,
.site-header.dark .header-widgets .header-cta-but a:hover,
.site-header.light .header-mid .header-cta-but a:hover,
.site-header.dark .header-mid .header-cta-but a:hover {
    color: var(--pml-dark-blue) !important;
}

.header-widgets .header-cta-but a:hover::before,
.header-mid .header-cta-but a:hover::before,
.site-header.light .header-widgets .header-cta-but a:hover::before,
.site-header.dark .header-widgets .header-cta-but a:hover::before,
.site-header.light .header-mid .header-cta-but a:hover::before,
.site-header.dark .header-mid .header-cta-but a:hover::before {
    width: 100%;
    background: #ffffff !important;
}

/* Kill theme ::after hover-text that doubles/overlaps the label */
.header-widgets .header-cta-but a::after,
.header-mid .header-cta-but a::after,
.site-header.light .header-cta-but a::after,
.site-header.dark .header-cta-but a::after {
    content: none !important;
    display: none !important;
}

@media only screen and (max-width: 1100px) {
    .header-cta-group {
        gap: 0.75rem;
    }

    .header-mid .header-cta-but a,
    .header-widgets .header-cta-but a {
        padding: 0.7rem 1.4rem;
        font-size: 11px;
    }
}

@media only screen and (max-width: 450px) {
    .header-mid {
        display: none;
    }
}

/* Overlay menu: white header bar, dark panel starts BELOW it (not through logo)
------------------------------------------------------------------- */
.site-navigation.fullscreen,
.site-navigation.fullscreen .fs-menu-wrapper {
    background: transparent !important;
}

.site-header.menu-has-open {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    z-index: 9999 !important;
}

/* Don't let the dim overlay tint the white bar */
.site-header.menu-has-open.fullscreen_menu::after {
    top: 150px !important;
    height: calc(100% - 150px) !important;
}

/* Logo load-anim leaves a translateY — reset so it stays inside the white bar */
.site-header.menu-has-open .site-logo {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Dark panel sits entirely under the header — never overlaps the logo */
.site-header.menu_dark.fullscreen_menu.menu-has-open::before,
.site-header.fullscreen_menu.menu-has-open::before {
    top: 150px !important;
    height: calc(100vh - 150px) !important;
    background: var(--pml-cinder) !important;
    background-image: none !important;
    z-index: 0;
}

/*
  Close (X) must sit ABOVE the fullscreen nav (z-index 888).
  Theme used to drop these to z-index: 2, so fs-menu-wrapper ate all taps.
*/
.site-header.menu-has-open .site-branding,
.site-header.menu-has-open .menu-toggle,
.site-header.menu-has-open .header-mid,
.site-header.menu-has-open .header-widgets {
    z-index: 1001;
    pointer-events: auto;
}

/* Bigger tap target — keep block layout so the X lines still morph correctly */
.site-header.menu-has-open .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 12px 0 12px 12px;
    margin-top: -12px;
    box-sizing: content-box;
}

.site-header.menu-has-open .site-branding {
    overflow: visible;
}

/* Dark logo + dark toggle on the white open-menu bar */
.site-header.menu-has-open .dark-logo {
    display: block;
}

.site-header.menu-has-open .light-logo {
    display: none;
}

.site-header.menu-has-open .toggle-line,
.site-header.menu-has-open.light .toggle-line,
.site-header.menu-has-open.dark .toggle-line {
    background: var(--pml-bunting);
}

.site-header.menu_dark .site-navigation.fullscreen .menu.main-menu > li.menu-item a {
    color: var(--pml-faint);
    font-family: "Syne", sans-serif;
}

.site-header.menu_dark .site-navigation.fullscreen .menu.main-menu > li.menu-item a::before {
    color: var(--pml-on-dark);
}

@media (max-width: 1024px) {
    /*
      Keep logo + X vertically centered in the white bar.
      Default menu-opened drops translateY(-50%), which parks them on the dark seam.
    */
    .site-header.menu-has-open .header-wrapper.menu-opened {
        top: 50px; /* middle of 100px white bar */
        height: 100vh;
        -webkit-transform: translate(-50%, -12px);
        -ms-transform: translate(-50%, -12px);
        transform: translate(-50%, -12px);
    }

    /* Nav overlay starts BELOW the white bar so it cannot steal X taps */
    .site-header.menu-has-open .site-navigation.fullscreen,
    .site-header.menu-has-open .site-navigation.fullscreen .fs-menu-wrapper {
        top: 100px !important;
        height: calc(100% - 100px) !important;
    }

    .site-header.menu-has-open.fullscreen_menu::after,
    .site-header.menu_dark.fullscreen_menu.menu-has-open::before,
    .site-header.fullscreen_menu.menu-has-open::before {
        top: 100px !important;
    }

    .site-header.menu_dark.fullscreen_menu.menu-has-open::before,
    .site-header.fullscreen_menu.menu-has-open::before {
        height: calc(100vh - 100px) !important;
    }

    .site-header.menu-has-open.fullscreen_menu::after {
        height: calc(100% - 100px) !important;
    }
}

.git-button a,
.social-list a {
    color: var(--pml-on-dark-muted);
}

.git-button a:hover,
.social-list a:hover {
    color: var(--pml-blue);
}

/* Hero type — fits the line, no overlapping ghosts
------------------------------------------------------------------- */
.hello-heading.linked-text {
    float: none;
    width: auto;
    max-width: min(1100px, 92vw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    text-align: center;
}

.pml7-hero .big-title,
.hello-heading .big-title {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: clamp(0.943rem, 1.93vw, 1.974rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.04em;
    margin-left: 0;
    margin-bottom: 0;
    padding-right: 0;
    max-width: 100%;
    text-align: center;
    color: var(--pml-bunting) !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
}

.pml7-hero .linked-line,
.hello-heading .linked-line {
    display: block;
    overflow: hidden;
    width: 100%;
}

.linked-text:not(.loaded) .linked-word {
    transform: none !important;
}

.linked-text a > div,
.linked-text .linked-word {
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor;
}

.pml7-hero .linked-text a,
.hello-heading.linked-text a {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    position: relative;
    overflow: hidden;
    height: 1.15em;
}

.linked-text a,
body.dark .linked-text a,
.linked-text.light a,
.linked-text.dark a,
.pml7-hero .linked-text a {
    color: var(--pml-blue) !important;
}

.linked-text .link-target,
body.dark .link-target,
.linked-text.light .link-target,
.linked-text.dark .link-target {
    position: absolute;
    left: 0;
    top: 100%;
    display: block;
    white-space: nowrap;
    opacity: 0 !important;
    pointer-events: none;
    color: var(--pml-dark-blue) !important;
    font-family: "Syne", sans-serif;
    font-weight: 700;
}

.linked-text.loaded a:hover .link-target {
    opacity: 1 !important;
}

.linked-text a::before,
body.dark .linked-text a::before,
.linked-text.light a::before,
.linked-text.dark a::before {
    height: 3px;
    border-radius: 99px;
    border-top: 0;
    background: var(--pml-blue);
    bottom: 0.12em;
    opacity: 0.9;
    z-index: 0;
}

.linked-text .link-target,
body.dark .link-target,
.linked-text.light .link-target,
.linked-text.dark .link-target {
    color: var(--pml-dark-blue) !important;
    font-family: "Syne", sans-serif;
    font-weight: 700;
}

/* Buttons
------------------------------------------------------------------- */
.a-button.style_1,
.a-button.style_1.light,
.a-button.style_1.dark,
body.dark .a-button.style_1 {
    background: var(--pml-grad-cta);
    border-radius: var(--pml-radius);
    overflow: hidden;
}

.a-button.style_1::before,
.a-button.light::before {
    background: var(--pml-blue);
    border-radius: var(--pml-radius);
}

.a-button.style_1 a,
.a-button.style_1 i,
.a-button.light a,
.a-button.light i,
body.dark .a-button.style_1 a,
body.dark .a-button.style_1 i,
.a-button.style_1:hover a,
.a-button.style_1:hover i,
.a-button.light:hover a,
.a-button.light:hover i {
    color: var(--pml-on-dark);
}

.big-button a {
    color: var(--pml-on-dark);
    font-family: "Syne", sans-serif;
}

.big-button a:hover {
    color: var(--pml-blue);
}

/* Forms
------------------------------------------------------------------- */
form > div::before,
body.dark form > div::before {
    background: var(--pml-blue);
}

form input,
form textarea,
form select {
    color: var(--pml-text);
}

/* Contact form submit — same pill as header "Napisz do Nas" */
.alioth-form .send-wrap button,
body.dark .alioth-form .send-wrap button,
.alioth-form button.button,
body.dark .alioth-form button.button {
    background: var(--pml-dark-blue) !important;
    color: var(--pml-white) !important;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.alioth-form .send-wrap button:hover,
body.dark .alioth-form .send-wrap button:hover,
.alioth-form button.button:hover,
body.dark .alioth-form button.button:hover {
    background: #ffffff !important;
    color: var(--pml-dark-blue) !important;
}

/* Loader
------------------------------------------------------------------- */
span.apl-background,
.alioth-page-loader.light span.apl-background,
.alioth-page-loader.dark span.apl-background {
    background: linear-gradient(180deg, #ffffff 0%, var(--pml-dark-blue) 100%) !important;
    z-index: 0;
}

.apl-count,
.alioth-page-loader.light .apl-count,
.alioth-page-loader.dark .apl-count {
    color: var(--pml-white);
    font-family: "Syne", sans-serif;
}

.alioth-page-loader.dark .apl-text,
.trans-text {
    color: var(--pml-bunting);
    font-family: "Syne", sans-serif;
}

.apt-bg,
.alioth-page-transitions.light .apt-bg {
    background: var(--pml-mist);
}

/* Homepage video — keep the loop visible and playing
------------------------------------------------------------------- */
.pml7-hero + .pml7-upper {
    margin-top: -48px;
    margin-bottom: 40px;
    padding-top: 0;
}

.pml7-upper .showcase-video {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.pml7-upper .showcase-video .plyr,
.pml7-upper .showcase-video .plyr__video-wrapper {
    width: 100%;
}

.pml7-upper .showcase-video video,
.pml7-home-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Works / awards — sit on the darker part of the page
------------------------------------------------------------------- */
.a-recent-works,
.a-recent-works.light,
.a-recent-works.dark,
.a-recent-works .ar-work-title,
.a-recent-works .ar-work-cat {
    color: var(--pml-on-dark);
}

.recent-works-bg-text {
    color: rgba(255, 255, 255, 0.12) !important;
    font-family: "Syne", sans-serif;
}

.ar-work-cat {
    color: var(--pml-on-dark-muted);
}

.ar-work-image {
    border-radius: 18px;
    overflow: hidden;
}

/* Homepage services carousel — half scale
------------------------------------------------------------------- */
.a-recent-works .ar-work {
    flex-basis: 20vw;
    min-width: 20vw;
    margin-right: 50px;
}

.a-recent-works .ar-work-title {
    font-size: 22.5px;
    padding: 10px 10px 0 10px;
}

.a-recent-works .ar-work-cat {
    font-size: 12.5px;
    padding-left: 10px;
}

.a-recent-works .ar-work-image {
    border-radius: 9px;
}

@media (max-width: 768px) {
    .a-recent-works .ar-work {
        flex-basis: 50vw;
        min-width: 50vw;
        margin-right: 24px;
    }

    .a-recent-works .ar-work-title {
        font-size: 15px;
    }

    .a-recent-works .ar-work-cat {
        font-size: 10px;
    }

    .a-recent-works .ar-work-image {
        height: 32.5vh;
    }
}

.alioth-awards,
.a-award,
.a-award a,
.award-title {
    color: var(--pml-on-dark);
    border-color: var(--pml-line);
}

.award-title {
    font-family: "Syne", sans-serif;
}

.award-loc,
.award-date {
    color: var(--pml-on-dark-muted);
}

.alioth-page-nav {
    background: var(--pml-grad-bar) !important;
    color: var(--pml-on-dark);
    position: relative;
    z-index: 1;
}

.alioth-page-nav .page-title,
.alioth-page-nav .page-sub-title {
    color: var(--pml-on-dark);
}

.alioth-page-nav .page-sub-title {
    opacity: 0.7;
}

.alioth-seperator {
    background: var(--pml-blue) !important;
}

.pml7-lower .alioth-seperator {
    background: #ffffff !important;
}

.alioth-heading[data-background-text="Blog Posts"] .ah-title,
.alioth-heading[data-background-text="Blog Posts"] .big-title,
.alioth-heading[data-background-text="Blog Posts"] h1,
.post-title,
.post-title h2 {
    color: #0A01DF !important;
}

.alioth-heading[data-background-text="Blog Posts"] .heading-bg-text,
body.dark .alioth-heading[data-background-text="Blog Posts"] .heading-bg-text {
    color: rgba(255, 255, 255, 0.1) !important;
}

.post-summary,
.post-cat,
.post-date,
.blog-list .post-date,
.blog-list .post-summary,
.blog-list .post-cat,
body.dark .blog-list .post-date,
body.dark .blog-list .post-summary,
body.dark .blog-list .post-cat,
.blog-list.dark .post-date,
.blog-list.dark .post-summary,
.blog-list.dark .post-cat {
    color: #ffffff !important;
}

.blog-list .post.alioth-post::after,
body.dark .blog-list .post.alioth-post::after,
.blog-list.dark .post.alioth-post::after {
    background: #ffffff !important;
}

.blog-list .post-cat::before,
body.dark .blog-list .post-cat::before {
    background: #ffffff !important;
}

/* Footer
------------------------------------------------------------------- */
#footer,
#footer.light,
#footer.dark,
.site-footer {
    background: transparent;
    color: var(--pml-on-dark);
    /* Must stay below page content — Flip-absolute tiles otherwise get covered */
    z-index: 1 !important;
}

.footer-logo {
    max-width: 180px;
}

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

.copyright-text,
.footer-menu ul li a,
#footer.dark .footer-menu ul li a,
.social-list-widget a,
.alioth-text-box h5 {
    color: var(--pml-on-dark-muted) !important;
}

.footer-menu ul li a:hover,
.social-list-widget a:hover {
    color: var(--pml-on-dark) !important;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    font-weight: inherit;
    text-align: left;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.footer-contact-icon {
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.35;
    color: #fff !important;
}

.footer-contact-row a {
    color: inherit;
    text-decoration: none;
}

/* Cursor
------------------------------------------------------------------- */
#mouseCursor #cursor {
    border-color: rgba(9, 0, 241, 0.4);
}

#mouseCursor #dot {
    background: var(--pml-blue);
}

/* Hero atmosphere
------------------------------------------------------------------- */
.pml7-hero {
    position: relative;
    min-height: 0;
    margin-bottom: 24px;
    overflow: visible;
}

.pml7-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        url("../img/pml7-atmosphere-light.png") top center / cover no-repeat;
    opacity: 0.4;
    mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
}

.pml7-hero-slash {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 64px;
    height: 130%;
    border-radius: 42px;
    background: var(--pml-grad-slash);
    transform: rotate(-38deg);
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
}

.pml7-hero .wrapper,
.pml7-hero .c-col-12,
.pml7-hero .hello-heading {
    position: relative;
    z-index: 1;
}

.pml7-band {
    background: var(--pml-grad-bar) !important;
}

.pml7-surface,
.pml7-surface h1,
.pml7-surface h2,
.pml7-surface h3,
.pml7-surface h4,
.pml7-surface h5 {
    background: var(--pml-bunting);
    color: var(--pml-on-dark) !important;
}

.pml7-kicker {
    display: none;
}

/* Upper band: navy copy on the bright gradient
------------------------------------------------------------------- */
.pml7-upper h1,
.pml7-upper h2,
.pml7-upper h3,
.pml7-upper h4,
.pml7-upper h5,
.pml7-upper h6,
.pml7-upper p,
.pml7-upper a,
.pml7-upper .sec-title,
.pml7-upper .ah-title {
    color: var(--pml-bunting) !important;
}

.pml7-upper h5,
.pml7-upper p {
    color: var(--pml-muted) !important;
}

.pml7-upper a {
    color: var(--pml-blue) !important;
}

body.dark .page-header,
.page-header {
    background: transparent !important;
}

body.dark .page-title h1,
.page-header .page-title h1,
.page-header .big-title {
    color: var(--pml-bunting) !important;
}

.page-content > .section:first-child h4,
.page-content > .section:first-child h5 {
    color: var(--pml-muted) !important;
}

body.dark .ac-number,
body.dark .ac-sign,
.a-number-counter.light .ac-number,
.a-number-counter.light .ac-sign {
    color: var(--pml-bunting) !important;
}

body.dark .ac-title,
.a-number-counter.light .ac-title {
    color: var(--pml-muted) !important;
}

body.dark ul.aw-cats li {
    color: rgba(19, 21, 70, 0.45) !important;
}

body.dark ul.aw-cats li.active {
    color: var(--pml-bunting) !important;
}

body.dark form input,
body.dark form textarea,
body.dark form button {
    background: rgba(255, 255, 255, 0.78);
    color: var(--pml-bunting);
}

body.dark form > div::before {
    background: var(--pml-blue);
}

/* Lower band: white copy on the navy gradient
------------------------------------------------------------------- */
.pml7-lower h1,
.pml7-lower h2,
.pml7-lower h3,
.pml7-lower h4,
.pml7-lower .sec-title,
.pml7-lower .ah-title,
.pml7-lower .ar-work-title {
    color: var(--pml-on-dark) !important;
}

.pml7-lower .text-wrapper h3 {
    text-align: justify;
}

.pml7-lower .a-button.style_1,
.pml7-lower .a-button.style_1.light,
.pml7-lower .a-button.style_1.dark {
    background: #ffffff;
}

.pml7-lower .a-button.style_1 a,
.pml7-lower .a-button.style_1 i,
.pml7-lower .a-button.style_1:hover a,
.pml7-lower .a-button.style_1:hover i {
    color: var(--pml-bunting);
}

/* Dlaczego my + Jak pracujemy
------------------------------------------------------------------- */
.pml7-section-label {
    margin: 0 0 1rem;
    max-width: 42ch;
    color: var(--pml-on-dark-muted) !important;
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.pml7-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 2px solid rgba(244, 246, 251, 0.45);
}

.pml7-reason {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem 1.5rem;
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-bottom: 2px solid rgba(244, 246, 251, 0.45);
    background: transparent;
}

.pml7-reason:nth-child(odd) {
    padding-right: 2rem;
    border-right: 2px solid rgba(244, 246, 251, 0.45);
}

.pml7-reason:nth-child(even) {
    padding-left: 2rem;
}

.pml7-reason-num {
    font-family: "Syne", sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(244, 246, 251, 0.28);
}

.pml7-reason-body h3 {
    margin: 0 0 0.55rem;
    color: var(--pml-on-dark) !important;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-align: left !important;
}

.pml7-reason-body p {
    margin: 0;
    max-width: 34ch;
    color: var(--pml-on-dark-muted) !important;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

.pml7-process {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pml-faint);
}

.pml7-process-step {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
    position: relative;
    margin: 0;
    padding: 1.6rem 0 2.35rem;
    border-bottom: 1px solid var(--pml-faint);
}

.pml7-process-step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 0;
    bottom: 0.55rem;
    width: 2.25rem;
    text-align: center;
    color: rgba(244, 246, 251, 0.55);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
}

.pml7-process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(244, 246, 251, 0.28);
    border-radius: 999px;
    color: var(--pml-on-dark);
    font-family: "Syne", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.pml7-process-body h3 {
    margin: 0.15rem 0 0.45rem;
    color: var(--pml-on-dark) !important;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    background: transparent !important;
}

.pml7-process-body p {
    margin: 0;
    max-width: 52ch;
    color: var(--pml-on-dark-muted) !important;
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    background: transparent !important;
}

.pml7-surface .pml7-section-label,
.pml7-surface .pml7-process-num,
.pml7-surface .pml7-process-body h3,
.pml7-surface .pml7-process-body p {
    background: transparent !important;
}

/* Services accordion — dark navy titles on light gradient
------------------------------------------------------------------- */
body.dark .alioth-services .service-title,
body.dark .alioth-services .service-toggle,
.alioth-services.style_2 .service-title,
.alioth-services.style_2 .service-toggle {
    color: var(--pml-text);
}

body.dark .alioth-services .service::after,
.alioth-services.style_2 .service::after {
    background: rgba(19, 21, 70, 0.2);
}

/* Section break title (e.g. Cyberbezpieczeństwo under services)
------------------------------------------------------------------- */
.pml7-section-break {
    clear: both;
    float: none;
    display: block;
    width: 100%;
    margin: 4rem 0 2rem;
    padding: 0;
}

.pml7-section-break .big-title {
    color: var(--pml-bunting) !important;
}

/* Current service in wall nav
------------------------------------------------------------------- */
.wall-project.is-current a,
.wall-project.is-current .project-title {
    color: #0B02D6;
}

/* Portfolio case studies
------------------------------------------------------------------- */
.pml7-upper .pml7-section-label {
    color: var(--pml-muted) !important;
}

.pml7-cases {
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0 2rem;
    border-top: 2px solid var(--pml-line);
}

.pml7-case {
    display: grid;
    grid-template-columns: 11.25rem minmax(0, 1fr);
    gap: 1.5rem 4rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--pml-line);
}

.pml7-case-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 11.25rem;
    height: 6.75rem;
    padding: 0.85rem 1rem;
    background: var(--pml-cinder);
}

.pml7-case-brand img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pml7-case-brand--text {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(9, 0, 241, 0.22);
}

.pml7-case-brand--text span {
    color: var(--pml-blue);
    font-family: "Syne", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pml7-case-content h2 {
    margin: 0 0 0.65rem;
    color: var(--pml-bunting) !important;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-align: left !important;
}

.pml7-case-scope,
.pml7-case-text,
.pml7-case-effect {
    margin: 0 0 0.85rem;
    color: var(--pml-muted) !important;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.pml7-case-scope span,
.pml7-case-effect span {
    color: var(--pml-bunting);
    font-weight: 600;
}

.pml7-case-effect {
    margin-bottom: 0;
    color: var(--pml-bunting) !important;
}

.pml7-case-text:last-child,
.pml7-case-effect:last-child {
    margin-bottom: 0;
}

/* Public Relations — offer bento + Flip expand
------------------------------------------------------------------- */
.pml7-offer-lead {
    max-width: 36rem;
    margin: 0 0 2.25rem;
    color: var(--pml-muted) !important;
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

.pml7-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(9.5rem, 11.5rem);
    gap: 0.85rem;
    grid-auto-flow: dense;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.pml7-offer-grid.is-flipping .pml7-offer-tile {
    transition: none !important;
    pointer-events: none;
}

.pml7-offer-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: calc(var(--pml-radius) - 6px);
    color: var(--pml-on-dark) !important;
    text-decoration: none !important;
    isolation: isolate;
    cursor: pointer;
    min-height: 9.5rem;
    padding: 1.15rem;
    /* Transform is owned by GSAP Flip. A CSS transition on it replays
       Flip's cleanup and the tile visibly jumps after it lands. */
    transition: box-shadow 0.35s ease;
}

.pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(1) {
    grid-area: span 2 / span 2;
}

.pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(2) {
    grid-area: span 2 / span 1;
}

.pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(3),
.pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(4),
.pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(6) {
    grid-area: span 1 / span 1;
}

.pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(5) {
    grid-area: span 1 / span 3;
}

/* Active: nearly full block width */
.pml7-offer-grid.has-active .pml7-offer-tile.is-active {
    grid-area: span 2 / span 4;
    z-index: 10;
    min-height: 18rem;
}

.pml7-offer-grid.has-active .pml7-offer-tile.is-wide {
    grid-area: span 1 / span 2;
}

.pml7-offer-grid.has-active .pml7-offer-tile.is-small {
    grid-area: span 1 / span 1;
}

.pml7-offer-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.55s ease;
    z-index: 0;
}

.pml7-offer-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(14, 14, 21, 0.08) 0%,
            rgba(16, 14, 127, 0.28) 42%,
            rgba(14, 14, 21, 0.82) 100%
        );
    z-index: 1;
    transition: background 0.35s ease;
    pointer-events: none;
}

.pml7-offer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
}

.pml7-offer-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.pml7-offer-icon {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    color: var(--pml-white);
}

.pml7-offer-title {
    font-family: "Syne", sans-serif;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--pml-on-dark);
}

.pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(1) .pml7-offer-title,
.pml7-offer-tile.is-active .pml7-offer-title {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.pml7-offer-desc,
.pml7-offer-btn {
    display: none;
    opacity: 0;
    margin: 0;
}

.pml7-offer-tile.is-active .pml7-offer-desc,
.pml7-offer-tile.is-active .pml7-offer-btn {
    display: block;
    animation: pml7OfferFadeIn 0.45s ease 0.35s forwards;
}

.pml7-upper .pml7-offer-desc,
.pml7-offer-desc {
    max-width: 36rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

.pml7-upper .pml7-offer-btn,
.pml7-offer-btn {
    margin-top: 0.35rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    width: fit-content;
}

.pml7-upper .pml7-offer-btn:hover,
.pml7-upper .pml7-offer-btn:focus-visible,
.pml7-offer-btn:hover,
.pml7-offer-btn:focus-visible {
    background: var(--pml-blue);
    border-color: var(--pml-blue);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
}

@keyframes pml7OfferFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pml7-offer-tile:hover {
    box-shadow: 0 14px 36px rgba(14, 14, 21, 0.22);
}

.pml7-offer-tile:hover .pml7-offer-img,
.pml7-offer-tile:focus-visible .pml7-offer-img {
    transform: scale(1.07);
}

.pml7-offer-tile:hover .pml7-offer-shade,
.pml7-offer-tile:focus-visible .pml7-offer-shade,
.pml7-offer-tile.is-active .pml7-offer-shade {
    background:
        linear-gradient(
            180deg,
            rgba(9, 0, 241, 0.18) 0%,
            rgba(13, 4, 186, 0.42) 45%,
            rgba(14, 14, 21, 0.88) 100%
        );
}

.pml7-offer-tile:focus-visible {
    outline: 2px solid var(--pml-blue);
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .pml7-offer-grid,
    .pml7-offer-grid.has-active {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(11rem, auto);
    }

    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(1) {
        grid-area: span 1 / span 2;
        min-height: 15rem;
    }

    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(2),
    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(3),
    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(4),
    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(5),
    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(6),
    .pml7-offer-grid.has-active .pml7-offer-tile.is-wide,
    .pml7-offer-grid.has-active .pml7-offer-tile.is-small {
        grid-area: span 1 / span 1;
        min-height: 12rem;
    }

    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(5) {
        grid-area: span 1 / span 2;
    }

    .pml7-offer-grid.has-active .pml7-offer-tile.is-active {
        grid-area: span 1 / span 2;
        min-height: 16rem;
    }
}

@media (max-width: 640px) {
    .pml7-offer-grid,
    .pml7-offer-grid.has-active {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pml7-offer-grid:not(.has-active) .pml7-offer-tile:nth-child(n),
    .pml7-offer-grid.has-active .pml7-offer-tile.is-active,
    .pml7-offer-grid.has-active .pml7-offer-tile.is-wide,
    .pml7-offer-grid.has-active .pml7-offer-tile.is-small {
        grid-area: span 1 / span 1 !important;
        min-height: 11.5rem;
    }

    .pml7-offer-grid.has-active .pml7-offer-tile.is-active {
        min-height: 18rem;
    }

    .pml7-offer-lead {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
}

/* Focus + reduced motion
------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--pml-blue);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .pml7-hero-slash {
        transform: none;
        opacity: 0.15;
    }

    .pml7-offer-tile:hover .pml7-offer-img,
    .pml7-offer-tile:focus-visible .pml7-offer-img {
        transform: none;
    }

    .pml7-offer-tile.is-active .pml7-offer-desc,
    .pml7-offer-tile.is-active .pml7-offer-btn {
        animation: none;
        opacity: 1;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .site-logo {
        width: 118px;
    }

    .hello-heading.linked-text {
        max-width: 100%;
    }

    .pml7-hero .big-title,
    .hello-heading .big-title {
        /* Mobile: h3 scale so lines wrap less */
        font-size: clamp(0.975rem, 3.38vw, 1.219rem) !important;
        line-height: 1.28 !important;
    }

    .pml7-hero-slash {
        width: 36px;
        right: -16%;
        opacity: 0.16;
    }

    .pml7-hero {
        min-height: auto;
    }

    .pml7-reasons {
        grid-template-columns: 1fr;
    }

    .pml7-reason,
    .pml7-reason:nth-child(odd),
    .pml7-reason:nth-child(even) {
        padding: 1.4rem 0;
        border-right: 0;
    }

    .pml7-process-step {
        grid-template-columns: 2.75rem 1fr;
        gap: 0.85rem 1rem;
        padding: 1.35rem 0 2.15rem;
    }

    .pml7-process-step:not(:last-child)::after {
        width: 2.25rem;
        bottom: 0.45rem;
        font-size: 0.95rem;
    }

    .pml7-case {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .pml7-case-brand {
        width: 9.75rem;
        height: 5.65rem;
    }
}

/* ------------------------------------------------------------------ */
/* Marketing service pages — full-bleed poster (title is in the image)*/
/* ------------------------------------------------------------------ */

.project-page-header.style_2.marketing-hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    margin-bottom: 0;
    padding: 72px 0 28px;
    background: #f3f3f3;
    overflow: hidden;
}

.project-page-header.style_2.marketing-hero::before {
    display: none;
}

.project-page-header.style_2.marketing-hero .project-head {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: -1;
    width: 100%;
    margin: 0;
    padding: 8px 5% 4px;
    text-align: center;
    z-index: 2;
}

/* Title lives in the artwork — keep h1 for SEO, hide visually */
.project-page-header.style_2.marketing-hero .project-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Category is already clear from nav + artwork title */
.project-page-header.style_2.marketing-hero .project-cat {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Kill intro char animation that leaves labels invisible */
.project-page-header.style_2.marketing-hero .project-cat .cat-char,
.project-page-header.style_2.marketing-hero .project-title .tt-char {
    transform: none !important;
    opacity: 1 !important;
}

.project-page-header.style_2.marketing-hero .project-featured-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f3f3f3;
}

.project-page-header.style_2.marketing-hero .project-featured-image::before {
    display: none;
}

.project-page-header.style_2.marketing-hero .project-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin: -4% auto -2%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

body.dark .project-page-header.style_2.marketing-hero .project-cat {
    color: #0a1b4d;
    opacity: 0.5;
}

/* Scroll reveal curtain — Deep Koamaru instead of near-black */
body.dark .aw-project .aw-project-wrap::before {
    background: var(--pml-koamaru);
}

/* Listing cards: light plate + whole artwork visible */
.alioth-works .aw-project a[href^="marketing-"] .aw-project-image {
    background: #f3f3f3;
}

.alioth-works .aw-project a[href^="marketing-"] .aw-project-image img {
    background: #f3f3f3;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .project-page-header.style_2.marketing-hero {
        padding-top: 64px;
    }

    .project-page-header.style_2.marketing-hero .project-featured-image img {
        margin: -2% auto 0;
    }

    .project-page-header.style_2.marketing-hero .project-cat {
        font-size: 11px;
        letter-spacing: 0.24em;
    }
}
