* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    margin: 0;
    font-family: Arial,Helvetica,sans-serif;
    color: #171b19;
    background: #faf9f6
}

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

button {
    font: inherit;
    cursor: pointer
}

a:focus-visible,button:focus-visible,summary:focus-visible {
    outline: 2px solid #40c9eb;
    outline-offset: 5px
}

.skip {
    position: fixed;
    top: -100px;
    z-index: 30;
    padding: 16px
}

.skip:focus {
    top: 8px
}

header {
    position: fixed;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 23px 4.4%;
    display: flex;
    align-items: center;
    gap: 32px;
    color: white;
    transition: background .2s
}

header.scrolled {
    background: #131a17f5;
    backdrop-filter: blur(12px)
}

.brand {
    margin-right: auto
}

.brand img {
    width: 150px;
    height: auto;
    display: block
}

#main-nav {
    display: flex;
    gap: 28px;
    font-size: 14px
}

.menu-toggle {
    display: none
}

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 15px 24px;
    border: 1px solid #b8bfb9;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.3;
    transition: background .2s,color .2s
}

.button:hover {
    background: #fff;
    color: #17201d
}

.button.light {
    background: #faf9f6;
    color: #17201d;
    border-color: #faf9f6
}

.button.light:hover {
    background: #dce3dc
}

.hero {
    position: relative;
    min-height: 790px;
    height: 100svh;
    max-height: 1050px;
    background: #101510;
    color: white;
    overflow: hidden
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,#080c0960,#080c0940 20%,#080c09e8)
}

.hero-copy {
    position: absolute;
    left: 4.4%;
    right: 4.4%;
    bottom: 65px
}

.eyebrow {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .14em;
    line-height: 1.5
}

h1 {
    font-size: clamp(48px,5.55vw,88px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -.055em;
    margin: 28px 0
}

.hero-description {
    font-size: 21px;
    line-height: 1.45;
    max-width: 740px;
    letter-spacing: -.015em
}

.actions {
    display: flex;
    gap: 18px;
    margin-top: 30px
}

.section {
    padding: 100px 4.4%
}

.label {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #747a76;
    font-size: 14px;
    margin: 0 0 32px
}

.label:before {
    content: '';
    height: 1px;
    width: 40px;
    background: currentColor
}

h2 {
    font-size: clamp(34px,3.9vw,60px);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: -.045em;
    margin: 0
}

h3 {
    font-weight: 400;
    letter-spacing: -.035em
}

.intro {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 8%;
    align-items: start
}

.intro>p,.intro>div>p {
    font-size: 21px;
    line-height: 1.5;
    margin: 0 0 25px;
    color: #5c655e
}

.entry {
    background: #ecece7
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 32px;
    margin-top: 58px
}

.entry-grid a {
    border-top: 1px solid #aab0aa;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px
}

.entry-grid p {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.03em;
    margin: 0 0 25px
}

.entry-grid span {
    font-size: 14px
}

.entry-grid a:hover span {
    text-decoration: underline
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-top: 65px;
    border-top: 1px solid #aab0aa
}

.solution {
    position: relative;
    padding: 38px 38px 45px;
    border-bottom: 1px solid #aab0aa;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: background .25s,color .25s;
    scroll-margin-top: 100px
}

.solution:nth-child(odd):after {
    content: '';
    position: absolute;
    right: 0;
    top: 26px;
    bottom: 26px;
    width: 1px;
    background: #aab0aa
}

.solution-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px
}

.solution-head svg {
    width: 34px;
    height: 34px
}

.number {
    font-size: 13px;
    color: #7b827c
}

.solution h3 {
    font-size: 36px;
    line-height: 1.12;
    max-width: 480px;
    margin: 12px 0 25px
}

.solution>p:not(.eyebrow) {
    font-size: 18px;
    line-height: 1.5;
    color: #5c655e;
    max-width: 480px;
    margin: 0 0 24px
}

.solution ul {
    padding-left: 20px;
    line-height: 1.8;
    font-size: 16px;
    margin: 0 0 32px
}

.text-link {
    font-size: 15px;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    margin-top: auto
}

.solution:hover,.solution:focus-within {
    background: #17201d;
    color: #faf9f6
}

.solution:hover>p,.solution:focus-within>p,.solution:hover .number,.solution:focus-within .number {
    color: #d5ddd6
}

.system {
    background: #17201d;
    color: #faf9f6
}

.system .label {
    color: #bdc8bf
}

.system-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 8%
}

.system-grid .button {
    margin-top: 38px
}

.system-grid p {
    font-size: 18px;
    line-height: 1.6;
    color: #c3cdc5;
    margin: 0 0 26px
}

.system-grid p.system-lead {
    font-size: 25px;
    line-height: 1.4;
    color: #f6f8f6;
    letter-spacing: -.025em
}

.system-grid .eyebrow {
    display: block;
    margin-top: 36px;
    color: #d5ddd6
}

.process-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 40px;
    margin: 65px 0 0
}

.process-grid li {
    border-top: 1px solid #aab0aa;
    padding-top: 25px
}

.process-grid span {
    font-size: 13px;
    color: #7b827c
}

.process-grid h3 {
    font-size: 30px;
    line-height: 1.15;
    margin: 25px 0 20px
}

.process-grid p,.section-description {
    font-size: 18px;
    line-height: 1.5;
    color: #5c655e
}

.section-description {
    margin: 25px 0 0
}

.clients {
    background: #e9e9e5
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    list-style: none;
    padding: 0;
    margin: 50px 0 0;
    border-top: 1px solid #b7b7b1
}

.client-grid li {
    position: relative;
    min-width: 0;
    min-height: 130px;
    padding: 24px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 1px solid #b7b7b1;
    transition: background .2s
}

.client-grid li:not(:nth-child(6n)):before {
    content: '';
    position: absolute;
    right: 0;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: #b7b7b1
}

.client-logo {
    height: 55px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.client-logo img {
    display: block;
    max-width: 150px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0);
    opacity: .86
}

.client-grid li>span {
    font-size: 12px;
    color: #60645f;
    text-align: center
}

.client-grid li:hover,.client-grid li:focus-within {
    background: #17201d;
    color: #faf9f6
}

.client-grid li:hover img,.client-grid li:focus-within img {
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 1
}

.client-grid li:hover>span,.client-grid li:focus-within>span {
    color: #d5ddd6
}

.group {
    margin-top: 65px;
    border-top: 1px solid #aab0aa;
    padding-top: 35px
}

.group h3 {
    font-size: 32px;
    line-height: 1.15;
    margin: 25px 0 35px
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 35px
}

.group-grid h4 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -.03em;
    margin: 0 0 18px
}

.group-grid p {
    font-size: 16px;
    line-height: 1.5;
    color: #5c655e
}

.group-grid a {
    border-bottom: 1px solid currentColor
}

.faq {
    background: #ecece7
}

.faq-list {
    margin-top: 50px;
    max-width: 1050px
}

.faq-list details {
    border-top: 1px solid #b7b7b1;
    padding: 23px 0
}

.faq-list details:last-child {
    border-bottom: 1px solid #b7b7b1
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    font-size: 22px;
    padding-right: 36px;
    position: relative
}

.faq-list summary:after {
    content: '+';
    position: absolute;
    right: 0
}

.faq-list details[open] summary:after {
    content: '−'
}

.faq-list summary::-webkit-details-marker {
    display: none
}

.faq-list p {
    font-size: 18px;
    line-height: 1.55;
    color: #5c655e;
    max-width: 850px;
    margin: 22px 0 0
}

.closing {
    background: #17201d;
    color: #faf9f6
}

.closing .label {
    color: #bdc8bf
}

.closing h2 {
    font-size: clamp(40px,5vw,76px)
}

.closing>p:not(.label) {
    font-size: 22px;
    line-height: 1.45;
    color: #d5ddd6;
    max-width: 730px;
    margin: 30px 0
}

.closing>p.contact-note {
    font-size: 14px;
    margin: 20px 0 0
}

footer {
    background: #111713;
    color: #d5ddd6;
    padding: 48px 4.4% 25px
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 35px;
    align-items: center
}

footer img {
    max-width: 130px;
    height: auto;
    display: block
}

footer nav,.social {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px
}

.social {
    justify-content: flex-end
}

.copyright {
    border-top: 1px solid #465148;
    padding-top: 24px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #9fab9f
}

@media(max-width: 1100px) {
    #main-nav {
        gap:18px
    }

    .header-contact {
        display: none
    }

    .client-grid {
        grid-template-columns: repeat(4,minmax(0,1fr))
    }

    .client-grid li:nth-child(n):before {
        display: none
    }

    .client-grid li:not(:nth-child(4n)):before {
        display: block
    }

    .entry-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .footer-top {
        grid-template-columns: 1fr 2fr
    }

    .social {
        grid-column: 2;
        justify-content: flex-start
    }
}

@media(max-width: 700px) {
    html {
        scroll-padding-top:90px
    }

    header {
        padding: 18px 24px;
        gap: 18px
    }

    .brand img {
        width: 112px
    }

    .menu-toggle {
        display: block;
        border: 1px solid #aaa;
        color: white;
        background: none;
        padding: 9px 15px;
        font-size: 14px
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: #111713;
        padding: 25px 24px
    }

    #main-nav.open {
        display: flex;
        flex-direction: column;
        gap: 24px;
        font-size: 18px
    }

    .hero {
        min-height: 830px;
        max-height: none
    }

    .hero-copy {
        left: 24px;
        right: 24px;
        bottom: 45px
    }

    .hero-image {
        object-position: 60% center
    }

    h1 {
        font-size: clamp(44px,10.7vw,68px);
        line-height: 1.05;
        margin: 26px 0;
        letter-spacing: -.05em
    }

    h1 br {
        display: none
    }

    .hero-description {
        font-size: 18px;
        line-height: 1.5
    }

    .hero .eyebrow {
        font-size: 12px;
        letter-spacing: .1em
    }

    .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    .actions .button {
        width: 230px
    }

    .section {
        padding: 65px 24px
    }

    h2 {
        font-size: 36px;
        line-height: 1.08
    }

    h2 br {
        display: none
    }

    .intro,.system-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .intro>p,.intro>div>p {
        font-size: 19px
    }

    .entry-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 38px
    }

    .entry-grid a {
        min-height: 0;
        padding: 24px 0
    }

    .entry-grid p {
        font-size: 24px;
        margin-bottom: 20px
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        margin-top: 42px
    }

    .solution {
        padding: 30px 18px 36px
    }

    .solution:nth-child(odd):after {
        display: none
    }

    .solution h3 {
        font-size: 32px
    }

    .solution>p:not(.eyebrow) {
        font-size: 17px
    }

    .system-grid p.system-lead {
        font-size: 23px
    }

    .system-grid .button {
        margin-top: 30px
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 40px
    }

    .process-grid h3 {
        font-size: 28px
    }

    .client-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        margin-top: 40px
    }

    .client-grid li {
        min-height: 125px;
        padding: 22px 10px
    }

    .client-grid li:nth-child(n):before {
        display: none
    }

    .client-grid li:nth-child(odd):before {
        display: block
    }

    .client-logo img {
        max-width: 130px;
        max-height: 50px
    }

    .group-grid {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .group {
        margin-top: 45px
    }

    .group h3 {
        font-size: 28px
    }

    .faq-list summary {
        font-size: 20px
    }

    .closing h2 {
        font-size: 42px
    }

    .closing>p:not(.label) {
        font-size: 20px
    }

    .closing>p.contact-note {
        font-size: 14px
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .social {
        grid-column: auto
    }

    footer nav {
        gap: 18px 24px
    }

    .copyright {
        flex-direction: column
    }

    .button {
        font-size: 14px
    }

    .eyebrow {
        font-size: 12px
    }
}

@media(max-width: 360px) {
    .client-logo img {
        max-width:112px
    }

    .group-grid {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none!important
    }
}

.language-switch {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1px;
    color: inherit;
    font-size: 14px;
    white-space: nowrap
}

.language-switch button {
    min-width: 38px;
    min-height: 44px;
    padding: 8px 5px;
    background: transparent;
    color: inherit;
    border: 0;
    font: inherit;
    cursor: pointer;
    opacity: .6
}

.language-switch button[aria-pressed="true"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px
}

.language-switch button:hover {
    opacity: 1
}

.language-switch button:focus-visible {
    outline: 2px solid #40c9eb;
    outline-offset: 1px
}

@media(max-width: 1350px) {
    header {
        gap:20px
    }

    #main-nav {
        gap: 18px
    }

    header>.contact {
        display: none
    }
}

@media(max-width: 760px) {
    header {
        gap:10px;
        padding-left: 18px;
        padding-right: 18px
    }

    .language-switch button {
        min-width: 34px
    }

    .language-switch {
        font-size: 14px
    }

    .site-header .header-title {
        display: none
    }

    .site-header {
        gap: 12px
    }

    .site-header .brand img {
        width: 100px
    }

    .page-nav {
        margin-left: auto
    }
}

@media(max-width: 360px) {
    header .brand img {
        width:94px
    }

    .menu-toggle {
        padding: 9px 10px
    }
}

/* Hide only portfolio dividers; transparent borders retain the original card geometry. */
.client-grid,.client-grid li {
    border-color: transparent
}

.client-grid li:nth-child(n)::before {
    content: none;
    display: none
}

/* Approved cinematic hero; the extracted poster remains available during loading. */
.hero-poster,.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero-video {
    opacity: 0;
    transition: opacity .6s
}

.hero-video.ready {
    opacity: 1
}

.hero-shade,.shade {
    background: linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.28) 25%,rgba(0,0,0,.65) 55%,rgba(0,0,0,.94))
}

.motion-control {
    position: absolute;
    bottom: 12px;
    right: 4.4%;
    border: 1px solid #ffffff55;
    border-radius: 2px;
    background: #0008;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
    cursor: pointer
}

.motion-control:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px
}

.motion-control[hidden] {
    display: none
}

@media(prefers-reduced-motion:reduce) {
    .hero-video {
        display: none
    }
}

@media(max-width: 700px) {
    .motion-control {
        right:24px;
        bottom: 10px
    }
}

.hero-copy {
    bottom: 68px
}

@media(max-width: 700px) {
    .hero-copy {
        bottom:68px
    }
}

/* Wider reading column for the approved ID Growth System overview. */
#id-growth-system .system-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(40px,6vw,96px);
    align-items: start
}

#id-growth-system .system-grid p {
    margin-bottom: 24px
}

#id-growth-system .system-grid .eyebrow {
    margin-top: 32px
}

@media(max-width: 900px) {
    #id-growth-system .system-grid {
        grid-template-columns:1fr;
        gap: 36px
    }
}

/* Matching color inversion for challenge, process and group cards. */
.entry-grid a {
    padding: 24px 20px;
    min-height: 220px;
    transition: none
}

.process-grid li {
    padding: 24px 20px;
    transition: none
}

.process-grid p {
    margin-bottom: 0
}

.group-grid .group-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 20px;
    border-top: 1px solid #aab0aa;
    border-bottom: 0;
    transition: none
}

.group-brand-logo {
    height: 70px;
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    background: transparent
}

.group-brand-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
    filter: brightness(0)
}

.group-brand-logo img[src$="festival-teen.webp"] {
    max-width: 105px
}

.group-brand-logo img[src$="genzlab.png"],.group-brand-logo img[src$="tela-studios.png"] {
    max-width: 190px;
    width: 100%
}

.group-grid h4 {
    margin-bottom: 14px
}

.group-grid p {
    margin: 0
}

.group-parent-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    min-height: 44px;
    border: 0;
    transition: none
}

.group-parent-link img {
    display: block;
    width: 160px;
    height: auto;
    max-height: 65px;
    object-fit: contain
}

.group>.eyebrow {
    margin: 0 0 24px
}

.entry-grid a:focus-visible,.process-grid li:focus-visible,.group-card-link:focus-visible,.group-parent-link:focus-visible {
    background: #111;
    color: #fff;
    border-color: #555;
    outline: 2px solid #17201d;
    outline-offset: 4px
}

.process-grid li:focus-visible span,.process-grid li:focus-visible p,.group-card-link:focus-visible p {
    color: #fff
}

.group-card-link:focus-visible .group-brand-logo img,.group-parent-link:focus-visible img {
    filter: brightness(0) invert(1)
}

@media(hover: hover) {
    .entry-grid a:hover,.process-grid li:hover,.group-card-link:hover,.group-parent-link:hover {
        background:#111;
        color: #fff;
        border-color: #555
    }

    .process-grid li:hover span,.process-grid li:hover p,.group-card-link:hover p {
        color: #fff
    }

    .group-card-link:hover .group-brand-logo img,.group-parent-link:hover img {
        filter: brightness(0) invert(1)
    }
}

@media(max-width: 700px) {
    .entry-grid a {
        min-height:0
    }

    .group-grid .group-card-link {
        padding: 24px 20px
    }

    .process-grid li {
        padding: 24px 20px
    }
}

/* Compact video control beside the language preference in the header. */
.header-preferences {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: inherit
}

.preference-divider {
    font-size: 14px;
    opacity: .6
}

header .motion-control {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    margin: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    flex-shrink: 0
}

header .motion-control svg {
    display: block;
    width: 19px;
    height: 19px
}

header .motion-control svg[hidden] {
    display: none
}

header .motion-control:focus-visible {
    outline: 2px solid #40c9eb;
    outline-offset: 1px
}

@media(hover: hover) {
    header .motion-control:hover {
        background:#ffffff18
    }
}

@media(prefers-reduced-motion:reduce) {
    .hero-video.user-enabled {
        display: block
    }
}

@media(max-width: 360px) {
    header {
        padding-left:14px;
        padding-right: 14px;
        gap: 8px
    }

    header .brand img {
        width: 78px
    }

    .menu-toggle {
        padding: 9px 8px
    }

    .header-preferences {
        gap: 2px
    }

    .language-switch button {
        min-width: 30px
    }
}

/* The same proprietary department identity used by the solutions section. */
.entry-grid a {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 20px;
    min-height: 290px
}

.entry-grid .solution-head .number {
    font-size: 13px;
    color: #7b827c;
    text-decoration: none
}

.entry-grid p.eyebrow {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 13px 0
}

.entry-grid p.challenge-prompt {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.03em;
    margin: 12px 0 0
}

.entry-grid a:focus-visible .number {
    color: #fff
}

@media(hover: hover) {
    .entry-grid a:hover .number {
        color:#fff
    }
}

@media(max-width: 700px) {
    .entry-grid a {
        min-height:0
    }
}

@media(max-width: 700px) {
    .entry-grid p.eyebrow {
        font-size:12px;
        letter-spacing: .14em
    }
}

/* Light presentation directly below the hero, with matching dark text and CTA. */
#id-growth-system {
    background: #faf9f6;
    color: #171b19
}

#id-growth-system .label,#id-growth-system .system-grid p,#id-growth-system .system-grid .eyebrow {
    color: #5c655e
}

#id-growth-system .system-grid p.system-lead {
    color: #171b19
}

#id-growth-system .button.light {
    background: #17201d;
    color: #faf9f6;
    border-color: #17201d
}

#id-growth-system .button.light:hover,#id-growth-system .button.light:focus-visible {
    background: #faf9f6;
    color: #17201d;
    border-color: #17201d
}

/* One set of department cards combines each challenge with its existing solution. */
.consolidated-solutions .solution {
    transition: none
}

.consolidated-solutions .solution:hover,.consolidated-solutions .solution:focus-within {
    background: #111;
    color: #fff
}

.consolidated-solutions .solution:hover>p,.consolidated-solutions .solution:focus-within>p,.consolidated-solutions .solution:hover .number,.consolidated-solutions .solution:focus-within .number {
    color: #fff
}

#desafio {
    scroll-margin-top: 100px
}

/* Five approved steps, in reading order: three plus two, then two, then one. */
#como-funciona .process-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 28px
}

#como-funciona .process-grid>li {
    grid-column: span 2
}

#como-funciona .process-grid>li:nth-last-child(-n+2) {
    grid-column: span 3
}

@media(max-width: 1000px) {
    #como-funciona .process-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

    #como-funciona .process-grid>li:nth-child(n) {
        grid-column: auto
    }

    #como-funciona .process-grid>li:last-child {
        grid-column: span 2
    }
}

@media(max-width: 700px) {
    #como-funciona .process-grid {
        grid-template-columns:1fr
    }

    #como-funciona .process-grid>li:nth-child(n) {
        grid-column: auto
    }
}

/* Exact IDBDD originals: switch lettering while preserving the colored X. */
.group-grid .group-card-idbdd .group-brand-logo img {
    filter: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 62px;
    object-fit: contain
}

.group-grid .group-card-idbdd .brand-logo-dark {
    display: block
}

.group-grid .group-card-idbdd .brand-logo-light {
    display: none
}

.group-grid .group-card-idbdd:focus-visible .brand-logo-dark {
    display: none
}

.group-grid .group-card-idbdd:focus-visible .brand-logo-light {
    display: block
}

@media(hover: hover) {
    .group-grid .group-card-idbdd:hover .brand-logo-dark {
        display:none
    }

    .group-grid .group-card-idbdd:hover .brand-logo-light {
        display: block
    }
}

/* Requested portfolio logo sizes; each mark stays centered in its existing card. */
.client-grid img[src$="/ford-autoprime.png"] {
    transform: scale(1.25)
}

.client-grid img[src$="/tony-robbins.png"] {
    transform: scale(1.35)
}

.client-grid img[src$="/kreskova.png"] {
    transform: scale(1.3)
}

.client-grid img[src$="/kws.svg"] {
    transform: scale(1.3)
}

.client-grid img[src$="/diario.svg"] {
    transform: scale(1.25)
}

/* Preserve the white monogram within the supplied Camila Pepe mark. */
.client-grid img[src$="/camila-pepe-fisio-estetica-v1.png"] {
    filter: grayscale(1);
    transform: scale(1.5)
}

.client-grid li:hover img[src$="/camila-pepe-fisio-estetica-v1.png"],.client-grid li:focus-within img[src$="/camila-pepe-fisio-estetica-v1.png"] {
    filter: grayscale(1) invert(1)
}

.client-grid img[src$="/imax.png"] {
    transform: scale(.8)
}

.client-grid img[src$="/suhai.svg"] {
    transform: scale(1.2)
}

/* Keep the supplied Rei da Rodada artwork visible on light and dark cards. */
.client-grid img[src$="/rei-da-rodada-v1.png"] {
    filter: grayscale(1);
    mix-blend-mode: multiply
}

.client-grid li:hover img[src$="/rei-da-rodada-v1.png"],.client-grid li:focus-within img[src$="/rei-da-rodada-v1.png"] {
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen
}

/* Align visible group marks with the text, accounting for transparent asset margins. */
.group-brand-logo img[src$="genzlab.png"],.group-brand-logo img[src$="tela-studios.png"] {
    width: auto;
    object-position: left center
}

.group-brand-logo img[src$="genzlab.png"] {
    transform: translateX(-6.427%)
}

.group-brand-logo img[src$="tela-studios.png"] {
    transform: translateX(-15.85%)
}
