/* Final overrides for the supplied Capabilities and Contact references. */
.icon-mask {
    display: inline-block;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.icon-mail { --icon-url: url("assets/icons/mail.png"); }
.icon-matcha { --icon-url: url("assets/icons/matcha.png"); }
.icon-eafc { --icon-url: url("assets/icons/eafc.png"); }
.icon-next-step { --icon-url: url("assets/icons/next-step.png"); }
.icon-search { --icon-url: url("assets/icons/search.svg"); }
.icon-reply { --icon-url: url("assets/icons/reply.png"); }
.icon-imposition { --icon-url: url("assets/icons/imposition.png"); }
.icon-production { --icon-url: url("assets/icons/production.png"); }
.icon-experience { --icon-url: url("assets/icons/experience.png"); }
.icon-availability { --icon-url: url("assets/icons/availability.png"); }
.icon-location { --icon-url: url("assets/icons/location.png"); }
.icon-next { --icon-url: url("assets/icons/next.png"); }
.icon-right-arrow { --icon-url: url("assets/icons/right-arrow.png"); }

.about-section .about-portrait::after { content: none; }

.capability-section { padding: clamp(58px, 4.5vw, 84px) 0; }
.contact-section { padding: clamp(42px, 3vw, 58px) 0; }

.capability-section .capability-heading h2 { max-width: 960px; }
.capability-section .service-list { overflow: hidden; border-radius: 14px; }
.capability-section .service-list article {
    grid-template-columns: clamp(96px, 7vw, 128px) minmax(0, 1fr) 42px;
    grid-template-rows: auto auto;
    min-height: clamp(106px, 7vw, 128px);
    padding: clamp(18px, 1.5vw, 26px) clamp(22px, 1.8vw, 34px);
}
.capability-section .service-list article > span {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-right: clamp(22px, 2vw, 36px);
}
.capability-section .service-list article > span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 58px;
    background: rgba(7, 17, 31, 0.14);
    transform: translateY(-50%);
}
.capability-section .service-list h3,
.capability-section .service-list small { grid-column: 2; }
.capability-section .service-list h3 { grid-row: 1; }
.capability-section .service-list p { display: none; }
.capability-section .service-list small {
    grid-row: 2;
    align-self: start;
    margin-top: 8px;
    color: #52617a;
    font-size: clamp(10px, 0.72vw, 13px);
    letter-spacing: 0.14em;
}
.capability-section .service-list article > a {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
}

.capability-section .service-list article > a::after,
.contact-section .contact-submit.button::after {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("assets/icons/right-arrow.png") center / contain no-repeat;
    mask: url("assets/icons/right-arrow.png") center / contain no-repeat;
}
.capability-section .workflow-panel {
    position: relative;
    padding-top: clamp(58px, 4.3vw, 78px);
}
.capability-section .workflow-panel > .capability-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.capability-section .workflow-list { position: relative; margin-top: 0; }
.capability-section .workflow-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 22px;
    left: 76px;
    width: 1px;
    background: rgba(7, 17, 31, 0.17);
}
.capability-section .workflow-list li,
.capability-section .workflow-list li:nth-child(odd),
.capability-section .workflow-list li:nth-child(-n + 2) {
    grid-template-columns: 62px 28px minmax(0, 1fr);
    min-height: clamp(138px, 10.5vw, 190px);
}
.capability-section .workflow-list li::before {
    content: "";
    grid-column: 2;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border: 3px solid #0874ec;
    border-radius: 50%;
    background: #fff;
}
.capability-section .workflow-list li:not(:last-child)::after { content: none; }
.capability-section .workflow-list li > div { grid-column: 3; }

.contact-section .contact-layout {
    grid-template-columns: minmax(0, 0.47fr) minmax(540px, 0.53fr);
    gap: clamp(76px, 7vw, 134px);
}
.contact-section .contact-expectations { margin-top: clamp(34px, 2.8vw, 50px); }
.contact-section .contact-expectations > div {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: clamp(112px, 7.6vw, 138px);
    padding: 18px 0;
}
.contact-section .contact-expectations > div::after { content: none; }
.contact-section .contact-expectations .contact-expectation-icon {
    display: grid;
    grid-column: 1;
    place-items: center;
    width: 66px;
    height: 66px;
    color: #078aff;
    border: 1px solid rgba(193, 216, 237, 0.34);
    border-radius: 50%;
}
.contact-section .contact-expectation-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-section .contact-expectation-icon .icon-mask {
    width: 30px;
    height: 30px;
}

.contact-section .contact-expectation-icon .icon-search {
    width: 25.65px;
    height: 25.65px;
}

.contact-section .contact-expectation-icon .icon-reply {
    width: 31.5px;
    height: 31.5px;
}

.contact-section .contact-expectation-icon .icon-next-step {
    width: 30px;
    height: 30px;
}

.contact-section .contact-direct-icon .icon-mask {
    width: 30px;
    height: 30px;
    color: #078aff;
}

.about-section .about-fact-icon.icon-mask {
    color: #0874ec;
}

.about-section .tool-stack__mark.icon-mask {
    color: #096dcc;
    background: currentColor;
    border-radius: 0;
    font-size: 0;
}

.selected-work-card__top > i.icon-mask {
    width: 46px;
    height: 46px;
    color: var(--card-accent);
    background-color: currentColor;
}

.selected-work-card--matcha .icon-matcha {
    border-radius: 0;
}

.selected-work-card__top > b .icon-mask {
    width: 28px;
    height: 28px;
}
.contact-section .contact-expectations b {
    grid-column: 2;
    align-self: start;
    margin-top: 7px;
    color: #1687ff;
    font-size: 15px;
    letter-spacing: 0.04em;
}
.contact-section .contact-expectations p {
    position: static;
    grid-column: 2;
    max-width: none;
    padding-left: 0;
    font-size: clamp(14px, 0.9vw, 17px);
}
.contact-section .contact-expectations p::before { content: none; }
.contact-section .contact-expectations strong {
    margin-bottom: 9px;
    font-size: clamp(14px, 0.9vw, 17px);
}

.zg-visual.is-visible .zg-art {
    animation: zg-art-breathe-fixed 7s ease-in-out 900ms infinite;
}
.zg-visual:hover .zg-art {
    animation-play-state: paused;
    transform: translate3d(0, calc(var(--parallax-y, 0px) - 4px), 0) scale(1.006);
}
@keyframes zg-art-breathe-fixed {
    0%, 100% { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1); }
    50% { transform: translate3d(0, calc(var(--parallax-y, 0px) - 4px), 0) scale(1.004); }
}

@media (min-width: 1051px) {
    .capability-section .capability-shell {
        grid-template-columns: minmax(0, 0.62fr) minmax(360px, 0.38fr);
        gap: 0 clamp(72px, 6vw, 124px);
    }
}
@media (max-width: 1050px) {
    .capability-section .workflow-list::before { content: none; }
}
@media (max-width: 900px) {
    .contact-section .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .capability-section .service-list article {
        grid-template-columns: 62px minmax(0, 1fr) 36px;
    }
    .capability-section .service-list article > span::after {
        right: 8px;
        height: 48px;
    }
    .capability-section .workflow-list li,
    .capability-section .workflow-list li:nth-child(odd),
    .capability-section .workflow-list li:nth-child(-n + 2) {
        grid-template-columns: 48px 28px minmax(0, 1fr);
    }
    .contact-section .contact-expectations > div {
        grid-template-columns: 66px minmax(0, 1fr);
    }
    .contact-section .contact-expectations .contact-expectation-icon {
        width: 54px;
        height: 54px;
    }
}

/* Capabilities alignment correction based on the reviewed layout. */
.capability-section .service-list article {
    grid-template-columns: 96px minmax(0, 1fr) 60px;
    grid-template-rows: 1fr;
    column-gap: 22px;
    align-items: center;
    min-height: 96px;
    padding: 0 24px;
}

.capability-section .service-list article > span {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    display: grid;
    place-items: center start;
    padding-right: 22px;
}

.capability-section .service-list article > span::after {
    right: 0;
    height: 56px;
}

.capability-section .service-list article > div {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.capability-section .service-list h3,
.capability-section .service-list small {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    margin: 0;
}

.capability-section .service-list h3 {
    text-wrap: pretty;
}

.capability-section .service-list small {
    line-height: 1.3;
}

.capability-section .service-list article > a {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
}

.capability-section .workflow-list {
    --workflow-number-column: 62px;
    --workflow-node-column: 28px;
}

.capability-section .workflow-list::before {
    left: calc(var(--workflow-number-column) + (var(--workflow-node-column) / 2));
}

.capability-section .workflow-list li,
.capability-section .workflow-list li:nth-child(odd),
.capability-section .workflow-list li:nth-child(-n + 2) {
    grid-template-columns: var(--workflow-number-column) var(--workflow-node-column) minmax(0, 1fr);
}

.capability-section .workflow-list li::before {
    grid-column: 2;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin-top: 0;
    justify-self: center;
    align-self: start;
}

.capability-section .workflow-list li > div {
    grid-column: 3;
    padding-left: 18px;
}

.capability-section .workflow-list li:hover {
    transform: none;
}

@media (max-width: 620px) {
    .capability-section .service-list article {
        grid-template-columns: 50px minmax(0, 1fr) 48px;
        column-gap: 12px;
        min-height: 104px;
        padding: 0 14px;
    }

    .capability-section .service-list article > span {
        padding-right: 12px;
    }

    .capability-section .service-list article > span::after {
        height: 48px;
    }

    .capability-section .service-list article > div {
        gap: 6px;
    }
}

/* Centre the main project descriptions while keeping the remaining hierarchy intact. */
.project-matcha .project-copy .project-description,
.project-eafc .project-copy--right .project-description,
.project-cosmic .project-copy--dark .project-description {
    text-align: center;
}

/* Centre each project copy block without changing which side it occupies. */
.project-matcha .project-copy,
.project-eafc .project-copy--right,
.project-cosmic .project-copy--dark {
    text-align: center;
}

.project-matcha .project-copy h2,
.project-matcha .project-copy #matcha-title,
.project-eafc .project-copy--right h2,
.project-cosmic .project-copy--dark h2 {
    text-align: center;
}

.project-matcha .matcha-categories,
.project-eafc .eafc-categories,
.project-cosmic .zg-categories {
    justify-content: center;
}

.project-matcha .project-proof-list li,
.project-eafc .project-proof-list--blue li,
.project-cosmic .project-proof-list--gold li {
    justify-items: center;
    text-align: center;
}

.project-matcha .project-proof-list strong,
.project-eafc .project-proof-list--blue strong,
.project-cosmic .project-proof-list--gold strong {
    margin-inline: auto;
}

/* EAFC → Złote Guziki: luminous horizon instead of a separate gradient band. */
.project-eafc::after {
    bottom: -1px;
    z-index: 1;
    height: clamp(150px, 14vw, 240px);
    background:
        radial-gradient(70% 70% at 22% 100%, rgba(25, 136, 255, 0.32), transparent 72%),
        radial-gradient(55% 62% at 82% 100%, rgba(240, 199, 101, 0.16), transparent 76%),
        linear-gradient(180deg, rgba(229, 244, 255, 0) 0%, rgba(183, 220, 247, 0.34) 28%, rgba(53, 83, 127, 0.82) 70%, #11182b 100%);
}

.cosmic-transition {
    position: relative;
    isolation: isolate;
    height: clamp(150px, 13vw, 220px);
    margin: -1px 0;
    overflow: hidden;
    background:
        radial-gradient(55% 95% at 18% 0%, rgba(23, 134, 255, 0.25), transparent 72%),
        radial-gradient(46% 84% at 84% 15%, rgba(240, 199, 101, 0.14), transparent 74%),
        linear-gradient(180deg, #11182b 0%, #101329 30%, #0c0a20 67%, #080513 100%);
}

.cosmic-transition::before {
    content: "";
    position: absolute;
    top: 42%;
    right: -8%;
    left: -8%;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, transparent 4%, rgba(30, 139, 255, 0.12) 16%, #168cff 38%, rgba(214, 190, 132, 0.78) 65%, rgba(240, 199, 101, 0.14) 86%, transparent 96%);
    box-shadow:
        0 0 18px rgba(22, 140, 255, 0.34),
        0 0 42px rgba(240, 199, 101, 0.12);
    opacity: 0.78;
    transform: rotate(-1.4deg);
    transform-origin: center;
}

.cosmic-transition::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 38%, rgba(255,255,255,.72) 0 1px, transparent 1.7px),
        radial-gradient(circle at 29% 65%, rgba(73,158,255,.72) 0 1px, transparent 1.8px),
        radial-gradient(circle at 48% 25%, rgba(255,255,255,.5) 0 1px, transparent 1.6px),
        radial-gradient(circle at 66% 58%, rgba(240,199,101,.72) 0 1px, transparent 1.8px),
        radial-gradient(circle at 83% 31%, rgba(255,255,255,.6) 0 1px, transparent 1.7px),
        radial-gradient(circle at 92% 74%, rgba(191,151,255,.62) 0 1px, transparent 1.8px);
    opacity: 0.58;
}

.cosmic-transition span {
    position: absolute;
    inset: 8% -12% 0;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    opacity: 0.62;
    background:
        radial-gradient(42% 58% at 27% 44%, rgba(18, 133, 255, 0.4), transparent 72%),
        radial-gradient(38% 52% at 73% 48%, rgba(240, 199, 101, 0.2), transparent 74%),
        linear-gradient(104deg, transparent 18%, rgba(96, 69, 181, 0.26) 48%, transparent 79%);
    background-size: 115% 115%;
    filter: blur(20px);
    transform: skewY(-1.2deg) scale(1.06);
    animation: transitionAurora 9s ease-in-out infinite alternate;
}

.project-cosmic::before {
    height: clamp(90px, 8vw, 140px);
    background: linear-gradient(180deg, #080513 0%, rgba(8, 5, 19, 0.82) 22%, rgba(8, 5, 19, 0) 100%);
}

@keyframes transitionAurora {
    0% {
        background-position: 0% 45%;
        opacity: 0.48;
        transform: translateX(-2%) skewY(-1.2deg) scale(1.04);
    }
    100% {
        background-position: 100% 55%;
        opacity: 0.68;
        transform: translateX(2%) skewY(-0.4deg) scale(1.09);
    }
}

@media (max-width: 620px) {
    .project-eafc::after {
        height: 120px;
    }

    .cosmic-transition {
        height: 128px;
    }

    .cosmic-transition::before {
        top: 44%;
        transform: rotate(-2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cosmic-transition span {
        animation: none;
    }
}

/* EAFC copy uses the same editorial hierarchy as Matcha. */
.project-eafc .project-copy--right {
    --eafc-content-width: min(100%, 650px);
    width: var(--eafc-content-width);
    max-width: var(--eafc-content-width);
    justify-self: end;
}

.project-eafc .project-copy--right h2 {
    width: var(--eafc-content-width);
    max-width: var(--eafc-content-width);
    margin: 0;
    color: #005fc4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 5.5vw, 104px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.018em;
    white-space: nowrap;
}

.project-eafc .eafc-categories {
    display: flex;
    width: var(--eafc-content-width);
    max-width: var(--eafc-content-width);
    align-items: center;
    justify-content: flex-end;
    column-gap: 10px;
    margin-top: clamp(18px, 1.5vw, 26px);
}

.project-eafc .eafc-categories::before {
    content: "Categories";
    flex: 0 0 auto;
    margin-right: 4px;
    color: #005fc4;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-eafc .eafc-categories span {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    color: #536174;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: clamp(12px, 0.82vw, 15px);
    font-weight: 600;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
}

.project-eafc .eafc-categories span + span::before {
    content: "•";
    flex: 0 0 auto;
    margin-right: 10px;
    color: #005fc4;
}

.project-eafc .project-copy--right .project-description {
    width: var(--eafc-content-width);
    max-width: var(--eafc-content-width);
    margin: clamp(30px, 2.5vw, 44px) 0 0;
    color: #273747;
    font-size: clamp(17px, 1.08vw, 20px);
    line-height: 1.58;
}

.project-eafc .project-proof-list--blue {
    width: var(--eafc-content-width);
    max-width: var(--eafc-content-width);
    margin-top: clamp(28px, 2.3vw, 40px);
    border-bottom: 0;
}

.project-eafc .project-proof-list--blue li {
    min-height: 126px;
    padding: 24px clamp(20px, 1.8vw, 30px) 20px;
    gap: 14px;
}

.project-eafc .project-proof-list--blue li + li {
    padding-left: clamp(20px, 1.8vw, 30px);
}

.project-eafc .project-proof-list--blue span {
    font-size: clamp(28px, 2.15vw, 40px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.project-eafc .project-proof-list--blue strong {
    max-width: 150px;
    font-size: clamp(14px, 0.95vw, 17px);
    line-height: 1.45;
}

.project-eafc .project-proof-list--blue ~ .case-button {
    display: inline-flex;
    width: var(--eafc-content-width);
    min-width: 0;
    max-width: var(--eafc-content-width);
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: clamp(28px, 2.2vw, 38px);
    padding: 0 38px;
}

.project-eafc .case-button .icon-right-arrow {
    width: 20px;
    height: 20px;
}

@media (max-width: 1100px) {
    .project-eafc .project-copy--right h2 {
        font-size: clamp(58px, 9vw, 86px);
    }
}

@media (max-width: 620px) {
    .project-eafc .project-copy--right {
        --eafc-content-width: 100%;
    }

    .project-eafc .project-copy--right h2 {
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -0.04em;
    }

    .project-eafc .eafc-categories {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .project-eafc .eafc-categories::before {
        width: 100%;
        margin: 0;
        text-align: right;
    }

    .project-eafc .project-proof-list--blue li {
        min-height: 0;
        padding: 15px 0;
    }

    .project-eafc .project-proof-list--blue li + li {
        padding-left: 0;
    }

    .project-eafc .project-proof-list--blue span {
        font-size: 25px;
    }

    .project-eafc .project-proof-list--blue ~ .case-button {
        width: var(--eafc-content-width);
        padding-inline: 28px;
    }
}

/* Stable Matcha text transition without duplicated pseudo-element labels. */
@keyframes matcha-text-color-sweep {
    0% {
        color: var(--matcha-previous-accent);
        opacity: 0.76;
        transform: translateY(2px);
    }
    100% {
        color: var(--matcha-accent);
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes matcha-text-color-sweep-alt {
    0% {
        color: var(--matcha-previous-accent);
        opacity: 0.76;
        transform: translateY(2px);
    }
    100% {
        color: var(--matcha-accent);
        opacity: 1;
        transform: translateY(0);
    }
}

.project-matcha.is-color-sweeping [data-matcha-color-text] {
    color: var(--matcha-accent) !important;
    animation: var(--matcha-sweep-animation, matcha-text-color-sweep) 680ms cubic-bezier(.2, .72, .2, 1) both;
}

.project-matcha.is-color-sweeping [data-matcha-color-text]::after {
    content: none !important;
    animation: none !important;
}

.project-matcha .matcha-categories::before,
.project-matcha .matcha-categories span + span::before {
    transition: color 520ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .project-matcha.is-color-sweeping [data-matcha-color-text] {
        animation: none;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zg-visual.is-visible .zg-art { animation: none; }
}

/* Matcha left column — editorial packaging layout. */
.project-matcha .project-copy {
    --matcha-content-width: min(100%, 650px);
    width: var(--matcha-content-width);
    max-width: var(--matcha-content-width);
    justify-self: start;
}

.project-matcha .project-copy h2,
.project-matcha .project-copy #matcha-title {
    width: var(--matcha-content-width);
    max-width: var(--matcha-content-width);
    margin: 0;
    color: var(--matcha-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 5.5vw, 104px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.018em;
    white-space: nowrap;
}

.project-matcha .project-copy .project-description {
    width: var(--matcha-content-width);
    max-width: var(--matcha-content-width);
    margin: clamp(30px, 2.5vw, 44px) 0 0;
    color: #273747;
    font-size: clamp(17px, 1.08vw, 20px);
    line-height: 1.58;
}

.project-matcha .project-proof-list {
    width: var(--matcha-content-width);
    max-width: var(--matcha-content-width);
    margin-top: clamp(28px, 2.3vw, 40px);
    border-bottom: 0;
}

.project-matcha .project-proof-list li {
    min-height: 126px;
    padding: 24px clamp(20px, 1.8vw, 30px) 20px;
    gap: 14px;
}

.project-matcha .project-proof-list li + li {
    padding-left: clamp(20px, 1.8vw, 30px);
}

.project-matcha .project-proof-list span {
    font-size: clamp(28px, 2.15vw, 40px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.project-matcha .project-proof-list strong {
    max-width: 150px;
    font-size: clamp(14px, 0.95vw, 17px);
    line-height: 1.45;
}

.project-matcha .matcha-categories {
    display: flex;
    width: var(--matcha-content-width);
    max-width: var(--matcha-content-width);
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
    margin-top: clamp(18px, 1.5vw, 26px);
}

.project-matcha .matcha-categories::before {
    content: "Categories";
    flex: 0 0 auto;
    margin-right: 4px;
    color: var(--matcha-accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-matcha .matcha-categories span {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    color: #536174;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: clamp(12px, 0.82vw, 15px);
    font-weight: 600;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
}

.project-matcha .matcha-categories span + span::before {
    content: "•";
    flex: 0 0 auto;
    margin-right: 10px;
    color: var(--matcha-accent);
}

.project-matcha .project-proof-list ~ .case-button {
    display: inline-flex;
    width: var(--matcha-content-width);
    min-width: 0;
    max-width: var(--matcha-content-width);
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: clamp(28px, 2.2vw, 38px);
    padding: 0 38px;
}

.project-matcha .case-button .icon-right-arrow {
    width: 20px;
    height: 20px;
}

@media (max-width: 1100px) {
    .project-matcha .project-copy {
        --matcha-content-width: min(100%, 650px);
    }

    .project-matcha .project-copy h2,
    .project-matcha .project-copy #matcha-title {
        font-size: clamp(58px, 9vw, 86px);
    }
}

@media (max-width: 620px) {
    .project-matcha .project-copy h2,
    .project-matcha .project-copy #matcha-title {
        width: 100%;
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -0.06em;
    }

    .project-matcha .project-proof-list li {
        min-height: 0;
        padding: 15px 0;
    }

    .project-matcha .project-proof-list li + li {
        padding-left: 0;
    }

    .project-matcha .project-proof-list span {
        font-size: 25px;
    }

    .project-matcha .matcha-categories {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .project-matcha .matcha-categories::before {
        width: 100%;
        margin: 0;
    }

    .project-matcha .project-proof-list ~ .case-button {
        width: var(--matcha-content-width);
        min-width: 0;
        padding-inline: 28px;
    }
}

/* Final transition refinement: EAFC dissolves directly into Złote Guziki. */
.project-eafc::after {
    height: clamp(180px, 17vw, 290px);
    background:
        radial-gradient(90% 76% at 8% 100%, rgba(35, 133, 220, 0.18), transparent 72%),
        radial-gradient(72% 60% at 92% 100%, rgba(78, 48, 132, 0.13), transparent 76%),
        linear-gradient(180deg, rgba(229, 244, 255, 0) 0%, rgba(157, 188, 218, 0.12) 27%, rgba(37, 49, 78, 0.7) 72%, #080513 100%);
}

.cosmic-transition {
    height: 0;
    min-height: 0;
    margin: 0;
    background: #080513;
}

.cosmic-transition::before,
.cosmic-transition::after {
    display: none;
}

.cosmic-transition span {
    display: none;
    animation: none;
}

.project-cosmic::before {
    display: none;
}

@media (max-width: 620px) {
    .project-eafc::after {
        height: 150px;
    }
}

/* Project hand-off: a restrained horizon between EAFC and Złote Guziki. */
.project-eafc::after {
    height: clamp(190px, 16vw, 270px);
    background:
        radial-gradient(70% 58% at 24% 100%, rgba(20, 126, 236, 0.24), transparent 72%),
        linear-gradient(180deg, rgba(229, 244, 255, 0) 0%, rgba(175, 205, 232, 0.16) 28%, rgba(33, 54, 91, 0.78) 73%, #0b1021 100%);
}

.cosmic-transition {
    display: block;
    height: clamp(170px, 13vw, 220px);
    min-height: 0;
    margin: -1px 0;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(54% 105% at 14% 0%, rgba(18, 125, 239, 0.18), transparent 72%),
        radial-gradient(50% 100% at 88% 92%, rgba(103, 42, 143, 0.22), transparent 75%),
        linear-gradient(180deg, #0b1021 0%, #090b1a 50%, #080513 100%);
}

.cosmic-transition::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: 1;
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent 3%, rgba(22, 140, 255, 0.08) 12%, #168cff 43%, rgba(181, 198, 220, 0.68) 50%, #d6a85f 57%, rgba(214, 168, 95, 0.08) 88%, transparent 97%);
    box-shadow: -18vw 0 18px rgba(22, 140, 255, 0.38), 18vw 0 20px rgba(214, 168, 95, 0.24);
}

.cosmic-transition::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    opacity: 0.38;
    background:
        radial-gradient(circle at 9% 72%, rgba(68, 153, 255, 0.8) 0 1px, transparent 1.6px),
        radial-gradient(circle at 23% 34%, rgba(255, 255, 255, 0.64) 0 1px, transparent 1.5px),
        radial-gradient(circle at 73% 30%, rgba(240, 199, 101, 0.7) 0 1px, transparent 1.6px),
        radial-gradient(circle at 88% 70%, rgba(185, 121, 255, 0.64) 0 1px, transparent 1.7px);
}

.cosmic-transition .transition-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: min(calc(100% - 48px), 920px);
    height: 100%;
    margin-inline: auto;
}

.cosmic-transition .transition-label {
    position: relative;
    color: rgba(237, 245, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cosmic-transition .transition-label--eafc {
    padding-right: clamp(38px, 5vw, 78px);
    text-align: right;
}

.cosmic-transition .transition-label--cosmic {
    padding-left: clamp(38px, 5vw, 78px);
    color: rgba(255, 237, 205, 0.76);
}

.cosmic-transition .transition-node {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(223, 231, 255, 0.78);
    border-radius: 50%;
    background: rgba(8, 8, 25, 0.88);
    box-shadow:
        0 0 0 7px rgba(75, 95, 177, 0.08),
        0 0 24px rgba(66, 127, 255, 0.28),
        0 0 30px rgba(214, 168, 95, 0.14);
}

.cosmic-transition .transition-node::before,
.cosmic-transition .transition-node::after {
    content: "";
    position: absolute;
    inset: -13px;
    border: 1px solid rgba(164, 185, 232, 0.1);
    border-radius: 50%;
}

.cosmic-transition .transition-node::after {
    inset: -24px;
    border-color: rgba(164, 185, 232, 0.055);
}

.cosmic-transition .transition-node i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(247, 250, 255, 0.92);
    box-shadow: 0 0 12px rgba(133, 177, 255, 0.72);
}

@media (max-width: 620px) {
    .project-eafc::after {
        height: 155px;
    }

    .cosmic-transition {
        height: 132px;
    }

    .cosmic-transition .transition-inner {
        width: calc(100% - 28px);
    }

    .cosmic-transition .transition-label {
        font-size: 9px;
        letter-spacing: 0.15em;
    }

    .cosmic-transition .transition-label--eafc {
        padding-right: 22px;
    }

    .cosmic-transition .transition-label--cosmic {
        padding-left: 22px;
    }

    .cosmic-transition .transition-node {
        width: 42px;
        height: 42px;
    }

    .cosmic-transition .transition-node::before {
        inset: -8px;
    }

    .cosmic-transition .transition-node::after {
        display: none;
    }
}

/* Minimal EAFC → Złote Guziki transition. */
.project-eafc::after {
    height: 90px;
    background: linear-gradient(180deg, rgba(229, 244, 255, 0) 0%, rgba(78, 91, 126, 0.38) 52%, #0a0717 100%);
}

.cosmic-transition {
    display: block;
    height: 64px;
    min-height: 0;
    margin: -1px 0;
    background: linear-gradient(180deg, #0a0717 0%, #080513 100%);
}

.cosmic-transition::before,
.cosmic-transition::after {
    display: none;
}

@media (max-width: 620px) {
    .project-eafc::after {
        height: 72px;
    }

    .cosmic-transition {
        height: 44px;
    }
}

/* Extra vertical breathing room in the lower information sections. */
#about.about-section {
    padding-top: clamp(76px, 6vw, 112px);
    padding-bottom: clamp(76px, 6vw, 112px);
}

#services.capability-section {
    padding-top: clamp(84px, 6.5vw, 124px);
    padding-bottom: clamp(84px, 6.5vw, 124px);
}

#contact.contact-section {
    padding-top: clamp(72px, 5.5vw, 104px);
    padding-bottom: clamp(72px, 5.5vw, 104px);
}

@media (max-width: 620px) {
    #about.about-section,
    #services.capability-section,
    #contact.contact-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

/* Złote Guziki uses the same editorial copy system as Matcha and EAFC. */
.project-cosmic .project-copy--dark {
    --zg-content-width: min(100%, 650px);
    width: var(--zg-content-width);
    max-width: var(--zg-content-width);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.project-cosmic .project-copy--dark h2 {
    width: var(--zg-content-width);
    max-width: var(--zg-content-width);
    margin: 0;
    color: #f0c765;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(70px, 5.7vw, 106px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.018em;
    white-space: nowrap;
}

.project-cosmic .zg-categories {
    display: flex;
    width: var(--zg-content-width);
    max-width: var(--zg-content-width);
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
    margin-top: clamp(18px, 1.5vw, 26px);
}

.project-cosmic .zg-categories::before {
    content: "Categories";
    flex: 0 0 auto;
    margin-right: 4px;
    color: #f0c765;
    font-size: clamp(10px, 0.72vw, 13px);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-cosmic .zg-categories span {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.project-cosmic .zg-categories span + span::before {
    content: "•";
    flex: 0 0 auto;
    margin-right: 10px;
    color: #f0c765;
}

.project-cosmic .project-copy--dark .project-description {
    width: var(--zg-content-width);
    max-width: var(--zg-content-width);
    margin: clamp(30px, 2.5vw, 44px) 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 1.08vw, 20px);
    line-height: 1.58;
}

.project-cosmic .project-proof-list--gold {
    width: var(--zg-content-width);
    max-width: var(--zg-content-width);
    margin-top: clamp(28px, 2.3vw, 40px);
    border-bottom: 0;
}

.project-cosmic .project-proof-list--gold li {
    min-height: 126px;
    padding: 24px clamp(20px, 1.8vw, 30px) 20px;
    gap: 14px;
}

.project-cosmic .project-proof-list--gold li + li {
    padding-left: clamp(20px, 1.8vw, 30px);
}

.project-cosmic .project-proof-list--gold span {
    color: #f0c765;
    font-size: clamp(28px, 2.15vw, 40px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.project-cosmic .project-proof-list--gold strong {
    max-width: 150px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(14px, 0.95vw, 17px);
    line-height: 1.45;
}

.project-cosmic .project-proof-list--gold ~ .case-button {
    display: inline-flex;
    width: var(--zg-content-width);
    min-width: 0;
    max-width: var(--zg-content-width);
    min-height: 64px;
    justify-content: center;
    margin-top: clamp(28px, 2.2vw, 38px);
    padding-inline: 38px;
}

.project-cosmic .case-button .icon-right-arrow {
    width: 20px;
    height: 20px;
}

@media (max-width: 1100px) {
    .project-cosmic .project-copy--dark h2 {
        font-size: clamp(58px, 9vw, 86px);
    }
}

@media (max-width: 620px) {
    .project-cosmic .project-copy--dark {
        --zg-content-width: 100%;
    }

    .project-cosmic .project-copy--dark h2 {
        font-size: clamp(38px, 11.5vw, 54px);
        letter-spacing: -0.018em;
    }

    .project-cosmic .zg-categories {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .project-cosmic .zg-categories::before {
        width: 100%;
        margin: 0;
    }

    .project-cosmic .project-proof-list--gold li {
        min-height: 0;
        padding: 15px 0;
    }

    .project-cosmic .project-proof-list--gold li + li {
        padding-left: 0;
    }

    .project-cosmic .project-proof-list--gold span {
        font-size: 25px;
    }

    .project-cosmic .project-proof-list--gold ~ .case-button {
        padding-inline: 28px;
    }
}

/* About facts: stable two-column cards for short and long values. */
.about-section .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-section .about-facts div,
.about-section .about-facts div:nth-child(even),
.about-section .about-facts div:nth-child(odd) {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-content: center;
    min-height: 108px;
    padding: 19px 20px;
}

.about-section .about-fact-icon.icon-mask {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 23px;
    height: 23px;
}

.about-section .about-facts dt,
.about-section .about-facts dd {
    grid-column: 2;
    min-width: 0;
}

.about-section .about-facts dt {
    margin: 0 0 6px;
    line-height: 1.2;
}

.about-section .about-facts dd {
    line-height: 1.4;
    overflow-wrap: normal;
}

/* Contact columns share one vertical centre line. */
.contact-section .contact-layout {
    align-items: center;
}

.contact-section .contact-heading,
.contact-section .contact-panel {
    align-self: center;
}

/* Capabilities: predictable rows and larger arrow targets. */
.capability-section .service-list article {
    grid-template-columns: clamp(88px, 6.4vw, 112px) minmax(0, 1fr) 60px;
    grid-template-rows: auto auto;
    column-gap: clamp(18px, 1.6vw, 28px);
    align-items: center;
    min-height: 132px;
    padding: 22px clamp(20px, 1.7vw, 30px);
}

.capability-section .service-list article > span {
    align-self: center;
}

.capability-section .service-list h3 {
    align-self: end;
    line-height: 1.18;
    letter-spacing: -0.015em;
}

.capability-section .service-list small {
    align-self: start;
    margin-top: 9px;
    line-height: 1.45;
    letter-spacing: 0.1em;
    overflow-wrap: normal;
}

.capability-section .service-list article > a {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    align-self: center;
    justify-self: end;
    overflow: hidden;
    color: #0874ec;
    border: 1px solid rgba(8, 116, 236, 0.2);
    border-radius: 50%;
    background: rgba(8, 116, 236, 0.045);
    font-size: 0;
}

.capability-section .service-list article > a::after {
    width: 24px;
    height: 24px;
}

.capability-section .workflow-list strong {
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.capability-section .workflow-list p {
    max-width: 330px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .contact-section .contact-heading,
    .contact-section .contact-panel {
        width: min(100%, 720px);
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .about-section .about-facts {
        grid-template-columns: 1fr;
    }

    .about-section .about-facts div,
    .about-section .about-facts div:nth-child(even),
    .about-section .about-facts div:nth-child(odd) {
        min-height: 92px;
        padding: 16px 18px;
    }

    .capability-section .service-list article {
        grid-template-columns: 52px minmax(0, 1fr) 50px;
        column-gap: 12px;
        min-height: 122px;
        padding: 18px 14px;
    }

    .capability-section .service-list article > span {
        padding-right: 12px;
    }

    .capability-section .service-list article > span::after {
        right: 0;
    }

    .capability-section .service-list article > a {
        width: 48px;
        height: 48px;
    }

    .capability-section .service-list small {
        font-size: 11px;
        letter-spacing: 0.07em;
    }
}

/* Final project-copy alignment: content centred, columns remain left/right. */
.project-matcha .matcha-categories,
.project-eafc .eafc-categories,
.project-cosmic .zg-categories {
    justify-content: center;
}

@media (max-width: 620px) {
    .project-matcha .matcha-categories::before,
    .project-eafc .eafc-categories::before,
    .project-cosmic .zg-categories::before {
        text-align: center;
    }
}

/* Use the supplied Złote Guziki logo in the third intro card. */
.selected-work-card--zg .selected-work-card__logo {
    display: block;
    width: 46px;
    height: 46px;
    background: #6134eb;
    -webkit-mask: url("assets/icons/logo-zlote-guziki.svg") center / contain no-repeat;
    mask: url("assets/icons/logo-zlote-guziki.svg") center / contain no-repeat;
    transition: transform 260ms var(--ease);
}

.selected-work-card--zg:hover .selected-work-card__logo,
.selected-work-card--zg:focus-visible .selected-work-card__logo {
    background: #6134eb;
    transform: scale(1.08);
}

/* Let the current EAFC card stages extend beyond the visual canvas. */
.project-eafc,
.project-eafc .eafc-visual {
    overflow: visible;
}

/* Compact Capabilities: same content and controls in roughly half the vertical space. */
#services.capability-section {
    padding-top: clamp(36px, 3vw, 52px);
    padding-bottom: clamp(38px, 3.2vw, 56px);
}

.capability-section .capability-heading .eyebrow {
    margin-bottom: 8px;
}

.capability-section .capability-heading h2 {
    font-size: clamp(46px, 4.1vw, 70px);
    line-height: 0.98;
}

.capability-section .capability-heading > p:last-child {
    margin-top: 14px;
    font-size: clamp(15px, 0.92vw, 18px);
    line-height: 1.45;
}

.capability-section .capability-services {
    margin-top: clamp(18px, 1.4vw, 26px);
}

.capability-section .service-list article {
    min-height: 92px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.capability-section .service-list h3 {
    font-size: clamp(16px, 1.05vw, 20px);
}

.capability-section .service-list small {
    margin-top: 5px;
    font-size: clamp(10px, 0.68vw, 12px);
    line-height: 1.35;
}

.capability-section .workflow-panel {
    padding-top: clamp(20px, 1.8vw, 30px);
}

.capability-section .workflow-list {
    margin-top: 14px;
}

.capability-section .workflow-list li,
.capability-section .workflow-list li:nth-child(odd),
.capability-section .workflow-list li:nth-child(-n + 2) {
    min-height: clamp(88px, 6.2vw, 112px);
}

.capability-section .workflow-list strong {
    font-size: clamp(20px, 1.45vw, 28px);
}

.capability-section .workflow-list p {
    margin-top: 8px;
    font-size: clamp(13px, 0.82vw, 16px);
    line-height: 1.4;
}

@media (min-width: 901px) and (max-width: 1050px) {
    .capability-section .capability-services {
        margin-top: 26px;
    }

    .capability-section .workflow-panel {
        margin-top: 32px;
        padding-top: 0;
    }

    .capability-section .workflow-list {
        margin-top: 20px;
        gap: 18px 22px;
    }

    .capability-section .workflow-list li,
    .capability-section .workflow-list li:nth-child(odd),
    .capability-section .workflow-list li:nth-child(-n + 2) {
        min-height: 96px;
    }
}

@media (max-width: 900px) {
    #services.capability-section {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .capability-section .capability-services {
        margin-top: 26px;
    }

    .capability-section .workflow-panel {
        margin-top: 34px;
        padding-top: 0;
    }

    .capability-section .workflow-list {
        margin-top: 20px;
        gap: 20px;
    }
}

@media (max-width: 620px) {
    .capability-section .capability-heading h2 {
        font-size: clamp(36px, 10.5vw, 46px);
    }

    .capability-section .service-list article {
        min-height: 104px;
    }

    .capability-section .workflow-list li,
    .capability-section .workflow-list li:nth-child(odd),
    .capability-section .workflow-list li:nth-child(-n + 2) {
        min-height: 0;
    }
}

/* Align Capabilities with the shared page container instead of the viewport edge. */
@media (min-width: 1051px) {
    .capability-section .capability-shell {
        width: min(80vw, var(--container));
        max-width: var(--container);
        margin-inline: auto;
        grid-template-columns: minmax(0, 0.65fr) minmax(330px, 0.35fr);
        gap: 0 clamp(56px, 5vw, 96px);
    }
}

/* Final Capabilities UI: stable text rows and supplied Next controls. */
.capability-section .service-list {
    border: 1px solid rgba(7, 17, 31, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.54);
}

.capability-section .service-list article {
    grid-template-columns: clamp(72px, 5.4vw, 94px) minmax(0, 1fr) 60px;
    grid-template-rows: auto auto;
    column-gap: clamp(16px, 1.4vw, 24px);
    min-height: 96px;
    padding: 14px clamp(18px, 1.5vw, 26px);
}

.capability-section .service-list article > span {
    align-self: stretch;
    display: grid;
    place-items: center start;
    padding-right: clamp(16px, 1.4vw, 24px);
    font-size: clamp(34px, 2.7vw, 48px);
    line-height: 1;
}

.capability-section .service-list article > span::after {
    right: 0;
    height: 56px;
}

.capability-section .service-list h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: clamp(16px, 1.08vw, 20px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.capability-section .service-list small {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: block;
    margin-top: 6px;
    color: #52617a;
    font-size: clamp(10px, 0.68vw, 12px);
    line-height: 1.35;
    letter-spacing: 0.08em;
    overflow-wrap: normal;
    white-space: normal;
}

.capability-section .service-list article > a {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    border: 0;
    background: transparent;
}

.capability-section .service-list article > a::after {
    width: 34px;
    height: 34px;
    color: #0874ec;
    background: currentColor;
    -webkit-mask: url("assets/icons/next.png") center / contain no-repeat;
    mask: url("assets/icons/next.png") center / contain no-repeat;
}

.capability-section .service-list article > a:hover::after,
.capability-section .service-list article > a:focus-visible::after {
    transform: translateX(3px);
}

.capability-section .workflow-list::before {
    top: 8px;
    bottom: 18px;
}

.capability-section .workflow-list li,
.capability-section .workflow-list li:nth-child(odd),
.capability-section .workflow-list li:nth-child(-n + 2) {
    align-content: center;
    min-height: 92px;
}

.capability-section .workflow-list strong {
    font-size: clamp(20px, 1.42vw, 27px);
    line-height: 1.1;
}

.capability-section .workflow-list p {
    margin-top: 7px;
    font-size: clamp(13px, 0.82vw, 16px);
    line-height: 1.4;
}

@media (max-width: 620px) {
    .capability-section .service-list article {
        grid-template-columns: 46px minmax(0, 1fr) 48px;
        column-gap: 11px;
        min-height: 104px;
        padding: 14px 12px;
    }

    .capability-section .service-list article > span {
        padding-right: 10px;
        font-size: 30px;
    }

    .capability-section .service-list article > a {
        width: 48px;
        height: 48px;
    }

    .capability-section .service-list article > a::after {
        width: 30px;
        height: 30px;
    }

    .capability-section .service-list h3 {
        font-size: 15px;
    }

    .capability-section .service-list small {
        font-size: 10px;
        letter-spacing: 0.055em;
    }
}

/* Final Capabilities geometry: grouped card copy and nodes locked to the timeline. */
.capability-section .service-list article {
    grid-template-columns: 96px minmax(0, 1fr) 60px;
    grid-template-rows: 1fr;
    column-gap: 22px;
    align-items: center;
    min-height: 96px;
    padding: 0 24px;
}

.capability-section .service-list article > span {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    display: grid;
    place-items: center start;
    padding-right: 22px;
}

.capability-section .service-list article > span::after {
    right: 0;
    height: 56px;
}

.capability-section .service-list article > div {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.capability-section .service-list h3,
.capability-section .service-list small {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    margin: 0;
}

.capability-section .service-list article > a {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
}

.capability-section .workflow-list {
    --workflow-number-column: 62px;
    --workflow-node-column: 28px;
}

.capability-section .workflow-list::before {
    left: calc(var(--workflow-number-column) + (var(--workflow-node-column) / 2));
}

.capability-section .workflow-list li,
.capability-section .workflow-list li:nth-child(odd),
.capability-section .workflow-list li:nth-child(-n + 2) {
    grid-template-columns: var(--workflow-number-column) var(--workflow-node-column) minmax(0, 1fr);
}

.capability-section .workflow-list li::before {
    grid-column: 2;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin-top: 0;
    justify-self: center;
    align-self: start;
}

.capability-section .workflow-list li > div {
    grid-column: 3;
    padding-left: 18px;
}

.capability-section .workflow-list li:hover {
    transform: none;
}

@media (max-width: 620px) {
    .capability-section .service-list article {
        grid-template-columns: 50px minmax(0, 1fr) 48px;
        column-gap: 12px;
        min-height: 104px;
        padding: 0 14px;
    }

    .capability-section .service-list article > span {
        padding-right: 12px;
    }

    .capability-section .service-list article > span::after {
        height: 48px;
    }
}

/* Canonical Capabilities layout — aligned exactly with the shared container. */
#services .capability-shell {
    display: grid;
    width: min(80vw, var(--container));
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 0;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    grid-template-rows: auto 1fr;
    gap: 0 clamp(48px, 4.5vw, 84px);
    align-items: start;
}

#services .capability-grid {
    display: contents;
}

#services .capability-heading {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
}

#services .capability-services {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin-top: 24px;
}

#services .workflow-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    margin: 0;
    padding-top: 30px;
}

#services .workflow-list {
    --workflow-number-column: 54px;
    --workflow-node-column: 22px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
}

#services .workflow-list::before {
    content: "";
    top: 9px;
    bottom: 20px;
    left: calc(var(--workflow-number-column) + (var(--workflow-node-column) / 2));
}

#services .workflow-list li,
#services .workflow-list li:nth-child(odd),
#services .workflow-list li:nth-child(-n + 2) {
    grid-template-columns: var(--workflow-number-column) var(--workflow-node-column) minmax(0, 1fr);
    min-height: 96px;
    align-content: start;
}

#services .workflow-list li::before {
    grid-column: 2;
    justify-self: center;
    align-self: start;
}

#services .workflow-list li > div {
    grid-column: 3;
    min-width: 0;
    padding-left: 14px;
}

@media (max-width: 1100px) {
    #services .capability-shell {
        width: min(100%, var(--container));
        padding-right: clamp(12px, 2.5vw, 44px);
        padding-left: clamp(12px, 2.5vw, 44px);
    }
}

@media (max-width: 1050px) {
    #services .capability-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 0;
    }

    #services .capability-heading,
    #services .capability-services,
    #services .workflow-panel {
        grid-column: 1;
    }

    #services .capability-heading { grid-row: 1; }
    #services .capability-services { grid-row: 2; margin-top: 26px; }
    #services .workflow-panel { grid-row: 3; margin-top: 34px; padding-top: 0; }

    #services .workflow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 28px;
        margin-top: 20px;
    }

    #services .workflow-list::before {
        content: none;
    }

    #services .workflow-list li,
    #services .workflow-list li:nth-child(odd),
    #services .workflow-list li:nth-child(-n + 2) {
        min-height: 94px;
    }
}

@media (max-width: 620px) {
    #services .capability-shell {
        width: min(100%, var(--container));
        padding-right: 16px;
        padding-left: 16px;
    }

    #services .workflow-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #services .workflow-list li,
    #services .workflow-list li:nth-child(odd),
    #services .workflow-list li:nth-child(-n + 2) {
        min-height: 0;
    }
}

/* Stable Capabilities composition: one container and one internal grid. */
#services .capability-shell {
    display: block;
    width: min(calc(100vw - clamp(48px, 6vw, 112px)), 1920px);
    max-width: 1920px;
    margin-inline: auto;
    padding-inline: 0;
}

#services .capability-heading {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

#services .capability-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    gap: clamp(48px, 4.5vw, 84px);
    align-items: start;
    width: 100%;
    margin-top: 26px;
}

#services .capability-services,
#services .workflow-panel {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    margin: 0;
}

#services .workflow-panel {
    padding-top: 0;
}

#services .workflow-list {
    margin-top: 20px;
}

@media (max-width: 1100px) {
    #services .capability-shell {
        width: min(100%, var(--container));
        padding-right: clamp(12px, 2.5vw, 44px);
        padding-left: clamp(12px, 2.5vw, 44px);
    }
}

@media (max-width: 1050px) {
    #services .capability-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #services .workflow-panel {
        margin-top: 0;
    }

    #services .workflow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 28px;
        margin-top: 18px;
    }

    #services .workflow-list::before {
        content: none;
    }
}

@media (max-width: 620px) {
    #services .capability-shell {
        width: min(100%, var(--container));
        padding-right: 16px;
        padding-left: 16px;
    }

    #services .capability-grid {
        gap: 28px;
    }

    #services .workflow-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Responsive QA layer: viewport safety, predictable scaling and aspect ratios. */
html {
    overflow-x: clip;
}

body {
    min-width: 320px;
}

:where(
    .hero-grid,
    .project-grid,
    .selected-works-heading,
    .selected-work-cards,
    .about-layout,
    .capability-shell,
    .capability-grid,
    .contact-layout,
    .site-footer-layout,
    .project-copy,
    .project-visual,
    .contact-panel
) > * {
    min-width: 0;
}

:where(input, select, textarea, button) {
    max-width: 100%;
}

/* Parallax belongs to the wrapper; artwork animation is composed separately. */
.zg-art-wrap {
    width: min(92%, 760px);
}

.zg-art-wrap .zg-art {
    width: 100%;
    height: 100%;
}

.zg-visual.is-visible .zg-art {
    animation: zg-art-breathe-responsive 7s ease-in-out 900ms infinite;
}

.zg-visual:hover .zg-art {
    animation-play-state: paused;
    transform: scale(1.006);
}

@keyframes zg-art-breathe-responsive {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -4px; }
}

/* Full HD and larger desktops. */
@media (min-width: 1680px) {
    .site-header {
        padding-inline: clamp(32px, 2.5vw, 72px);
    }

    .selected-works-intro,
    .about-layout,
    .contact-layout,
    .site-footer-layout {
        width: min(84vw, var(--container));
        margin-inline: auto;
    }
}

/* QHD / 2K. */
@media (min-width: 2400px) and (max-width: 2879px) {
    .zg-art-wrap {
        width: min(94%, 880px);
    }

    #services .capability-shell {
        max-width: 1600px;
    }
}

/* Large 2K and ultrawide bridge. */
@media (min-width: 2880px) and (max-width: 3439px) {
    .zg-art-wrap {
        width: min(94%, 910px);
    }

    #services .capability-shell {
        max-width: 1800px;
    }
}

/* 4K and larger displays. */
@media (min-width: 3440px) {
    .zg-art-wrap {
        width: min(94%, 1040px);
    }

    #services .capability-shell {
        max-width: 1920px;
    }

    main > .section:not(.hero) {
        min-height: min(100svh, 1600px);
    }
}

/* Wide displays should gain breathing room, not stretched reading lines. */
@media (min-width: 1600px) and (min-aspect-ratio: 21 / 9) {
    .hero-copy,
    .project-copy,
    .about-content,
    .contact-heading {
        max-width: 760px;
    }

    .hero-bg__person:not(a) {
        right: max(4vw, calc((100vw - 2200px) / 2));
    }
}

/* Compact laptops and tablets: switch complex content before it gets cramped. */
@media (max-width: 1100px) {
    .selected-works-intro,
    .about-layout,
    .contact-layout,
    .site-footer-layout {
        width: min(calc(100vw - 48px), var(--container));
        margin-inline: auto;
    }
}

@media (max-width: 900px) {
    .selected-works-intro,
    .about-layout,
    .contact-layout,
    .site-footer-layout {
        width: min(calc(100vw - 40px), 760px);
    }

    .project-matcha .project-grid,
    .project-eafc .project-grid,
    .project-cosmic .cosmic-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-copy,
    .project-copy--right,
    .project-copy--dark {
        justify-self: center;
    }

    .zg-art-wrap {
        width: min(92%, 620px);
    }
}

/* Portrait tablets, including 1024 x 1366, need the same reading flow as mobile. */
@media (orientation: portrait) and (min-width: 901px) and (max-width: 1100px) {
    .project-matcha .project-grid,
    .project-eafc .project-grid,
    .project-cosmic .cosmic-grid,
    .about-section .about-layout,
    .contact-section .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-copy,
    .project-copy--right,
    .project-copy--dark,
    .about-section .about-content,
    .contact-section .contact-heading,
    .contact-section .contact-panel {
        width: min(100%, 760px);
        max-width: 760px;
        margin-inline: auto;
        justify-self: center;
    }

    .project-visual,
    .about-section .about-portrait {
        justify-self: center;
    }
}

/* Popular phone widths: 360, 375, 390, 393, 412 and 430 px. */
@media (max-width: 480px) {
    :root {
        --phone-gutter: 16px;
    }

    .container,
    .hero-grid,
    .project-grid,
    .project-grid--reverse,
    .project-matcha .project-grid,
    .project-eafc .project-grid,
    .project-cosmic .cosmic-grid,
    .selected-works-intro,
    .about-layout,
    .contact-layout,
    .site-footer-layout {
        width: calc(100vw - (var(--phone-gutter) * 2));
        max-width: none;
        margin-inline: auto;
    }

    .site-header {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        padding-inline: var(--phone-gutter);
    }

    .site-header .header-button {
        display: none;
    }

    .site-header .header-actions {
        grid-column: 3;
        display: grid;
        justify-items: end;
    }

    .hero h1,
    .hero h1.hero-title-rotator,
    .selected-works-heading h2,
    .project-copy h2,
    .about-content h2,
    .capability-heading h2,
    .contact-layout h2 {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hero .actions,
    .about-actions,
    .contact-panel .actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .hero .actions .button,
    .about-actions .button,
    .contact-panel .actions .button,
    .case-button {
        width: 100%;
        justify-content: center;
    }

    .selected-work-cards,
    .about-facts,
    .contact-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form :where(input, select, textarea) {
        min-width: 0;
        font-size: 16px;
    }

    .contact-email,
    .footer-links a {
        overflow-wrap: anywhere;
    }

    .zg-art-wrap {
        width: 92%;
    }
}

@media (max-width: 360px) {
    :root {
        --phone-gutter: 12px;
    }

    .selected-work-card,
    .contact-panel,
    .project-copy--dark {
        border-radius: 14px;
    }

    .capability-section .service-list article {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        column-gap: 9px;
        padding-inline: 10px;
    }

    .capability-section .service-list article > a {
        width: 44px;
        height: 44px;
    }
}

/* Short landscape screens and browser windows with reduced height. */
@media (min-width: 901px) and (max-height: 720px) {
    .section:not(.hero) {
        min-height: auto;
    }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 620px;
        padding-bottom: 260px;
    }

    .hero-bg__person:not(a) {
        width: min(52vw, 390px);
        height: 260px;
        opacity: .72;
    }

    .site-nav {
        max-height: calc(100dvh - var(--header-height) - 16px);
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zg-visual.is-visible .zg-art {
        animation: none;
        translate: none;
    }
}

/* EAFC reflection rebuild: each card owns a fresh full-image reflection. */
.project-eafc::after,
.project-eafc .eafc-visual::after {
    content: none;
    display: none;
}

.project-eafc,
.project-eafc .project-grid,
.project-eafc .eafc-visual {
    overflow: visible;
}

.project-eafc .eafc-visual {
    isolation: isolate;
    aspect-ratio: 2.475 / 1;
}

.project-eafc .eafc-card-stage {
    position: absolute;
    top: auto;
    bottom: 25.5%;
    z-index: 2;
    margin: 0;
    opacity: 0;
    scale: 1.15;
    transform: translateY(18px) scale(.94);
    transform-origin: 50% 100%;
    transition: opacity 520ms ease, transform 760ms var(--ease);
}

.project-eafc .eafc-visual.is-visible .eafc-card-stage,
.project-eafc .eafc-visual.is-settled .eafc-card-stage {
    opacity: 1;
    transform: none;
}

.project-eafc .eafc-card-stage:nth-child(1) { transition-delay: 320ms; }
.project-eafc .eafc-card-stage:nth-child(2) { transition-delay: 210ms; }
.project-eafc .eafc-card-stage:nth-child(3) { transition-delay: 80ms; }
.project-eafc .eafc-card-stage:nth-child(4) { transition-delay: 210ms; }
.project-eafc .eafc-card-stage:nth-child(5) { transition-delay: 320ms; }

.project-eafc .eafc-card-stage--silver {
    left: -0.92%;
    width: 14.45%;
}

.project-eafc .eafc-card-stage--gold {
    left: 17.37%;
    width: 16.65%;
}

.project-eafc .eafc-card-stage--icon {
    left: 38.59%;
    bottom: 18.3%;
    z-index: 3;
    width: 24.32%;
}

.project-eafc .eafc-card-stage--black-gold {
    left: 67.46%;
    width: 16.26%;
}

.project-eafc .eafc-card-stage--wonderkid {
    left: 87.42%;
    width: 13.04%;
}

.project-eafc .eafc-card-stage > img,
.project-eafc .eafc-visual.is-visible .eafc-card-stage > img,
.project-eafc .eafc-visual.is-settled .eafc-card-stage > img {
    inset: auto;
    width: 100%;
    height: auto;
    margin: 0;
    opacity: 1;
    translate: 0 0;
    scale: 1;
    animation: none;
    transition: none;
}

.project-eafc .eafc-card-stage > .eafc-card {
    position: relative;
    z-index: 2;
    display: block;
    filter: none;
    transform: none;
}

.project-eafc .eafc-visual.is-visible:hover {
    transform: none;
}

.project-eafc .eafc-visual:hover .eafc-card-stage > .eafc-card,
.project-eafc .eafc-visual:hover .eafc-card-stage > .eafc-card__reflection,
.project-eafc .eafc-visual.is-visible .eafc-card-stage:hover > .eafc-card,
.project-eafc .eafc-visual.is-visible .eafc-card-stage:hover > .eafc-card__reflection {
    box-shadow: none;
    filter: none !important;
}

.project-eafc .eafc-card-stage > .eafc-card__reflection {
    position: absolute;
    top: 100%;
    right: auto;
    bottom: auto;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .7;
    transform: none;
    transform-origin: 50% 50%;
    filter: none;
    -webkit-mask: none;
    mask: none;
}

@media (hover: hover) {
    .project-eafc .eafc-visual.is-visible .eafc-card-stage:hover {
        z-index: 5;
        transform: translateY(-5px);
        transition-delay: 0ms;
        transition-duration: 160ms;
    }
}

@media (max-width: 900px) {
    .project-eafc .eafc-visual {
        aspect-ratio: 2.1 / 1;
    }
}

@media (max-width: 620px) {
    .project-eafc .eafc-visual {
        aspect-ratio: 1.55 / 1;
    }

    .project-eafc .eafc-card-stage {
        bottom: 26%;
        scale: 1.15;
    }

    .project-eafc .eafc-card-stage--silver {
        left: -10.45%;
        width: 16%;
    }

    .project-eafc .eafc-card-stage--gold {
        left: 9.75%;
        width: 20%;
    }

    .project-eafc .eafc-card-stage--icon {
        left: 35%;
        bottom: 20%;
        width: 30%;
    }

    .project-eafc .eafc-card-stage--black-gold {
        left: 70.25%;
        width: 20%;
    }

    .project-eafc .eafc-card-stage--wonderkid {
        left: 94.45%;
        width: 16%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .project-eafc .eafc-card-stage,
    .project-eafc .eafc-visual.is-visible .eafc-card-stage {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
