/* 2026 commercial refresh. Preserves the existing Machine Minds visual system. */

/* Keep the long primary-navigation label on one line and collapse earlier when space is tight. */
.mm-primary-navigation .wp-block-navigation-item__content{white-space:nowrap!important}
.mm-primary-navigation .wp-block-navigation__container{column-gap:.18rem!important;row-gap:.18rem!important}
@media(min-width:1361px){.mm-primary-navigation .wp-block-navigation-item__content{font-size:.91rem!important;padding:.54rem .61rem!important}}

/* Homepage: every content section uses one deliberate rhythm and one rail. */
.mm-home-page .mm-home-section{padding:clamp(4.5rem,6.2vw,6.25rem) 1.25rem!important}
.mm-home-page .mm-home-section>.alignwide,.mm-home-page .mm-home-section>.wp-block-group.alignwide{width:min(1280px,calc(100% - 2rem))!important;max-width:1280px!important;margin-inline:auto!important}
.mm-home-page .mm-home-section-heading,.mm-home-page .mm-home-section-heading--wide{width:100%!important;max-width:980px!important;margin:0 0 clamp(2.25rem,4vw,3.35rem)!important}
.mm-home-page .mm-home-section-heading h2,.mm-home-page .mm-home-clarity h2{font-size:clamp(2.6rem,4.5vw,4.55rem)!important;line-height:1!important}
.mm-home-page .mm-home-section-heading>p:not(.mm-eyebrow){max-width:930px!important;font-size:clamp(1.03rem,1.25vw,1.13rem)!important}

.mm-home-fit{background:#fff}
.mm-home-fit-grid,.mm-home-architecture-grid,.mm-home-trigger-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.mm-home-fit-card,.mm-home-architecture-card,.mm-home-trigger-card{position:relative;overflow:hidden;min-height:230px;padding:1.45rem;border:1px solid #dbe6f3;border-radius:22px;background:linear-gradient(160deg,#fff,#f7fbff);box-shadow:0 16px 42px rgba(3,26,65,.065)}
.mm-home-fit-card:before,.mm-home-architecture-card:before,.mm-home-trigger-card:before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,#00c8f4,#176df5,#5144f8)}
.mm-home-fit-card span,.mm-home-architecture-card span,.mm-home-trigger-card span{display:inline-block;margin-bottom:.8rem;color:#0b55ce;font-size:.74rem;font-weight:900;letter-spacing:.12em}
.mm-home-fit-card h3,.mm-home-architecture-card h3,.mm-home-trigger-card h3{margin:.15rem 0 .65rem;color:#11253f;font-size:1.35rem;line-height:1.16}
.mm-home-fit-card p,.mm-home-architecture-card p,.mm-home-trigger-card p{margin:0;color:#53647b;line-height:1.68}
.mm-home-fit-note{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1.3rem;margin-top:1.3rem;padding:1.4rem 1.5rem;border:1px solid #dbe6f3;border-radius:20px;background:#f7faff}
.mm-home-fit-note strong{color:#11253f;font-size:1.12rem}.mm-home-fit-note p{margin:0;color:#53647b;line-height:1.7}

.mm-home-triggers{background:linear-gradient(180deg,#eef3fb,#f8fbff)}
.mm-home-trigger-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mm-home-trigger-card{min-height:255px}

.mm-home-architecture{background:radial-gradient(circle at 82% 12%,rgba(0,200,244,.12),transparent 26%),linear-gradient(145deg,#06142e,#0a244f);color:#fff}
.mm-home-architecture .mm-home-section-heading h2{color:#fff}.mm-home-architecture .mm-home-section-heading>p:not(.mm-eyebrow){color:#c5d6ea}.mm-home-architecture .mm-eyebrow{color:#7ce8ff!important}
.mm-home-architecture-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mm-home-architecture-card{min-height:215px;border-color:rgba(92,160,240,.24);background:linear-gradient(155deg,rgba(10,42,98,.78),rgba(6,20,46,.9));box-shadow:0 20px 48px rgba(0,8,28,.2)}
.mm-home-architecture-card span{color:#7ce8ff}.mm-home-architecture-card h3{color:#fff}.mm-home-architecture-card p{color:#bfcfe2}

.mm-home-faq{background:#fff}.mm-home-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.mm-home-faq details{border:1px solid #dbe6f3;border-radius:18px;background:#f9fbfe;box-shadow:0 12px 30px rgba(3,26,65,.04);overflow:hidden}.mm-home-faq summary{cursor:pointer;padding:1.15rem 1.25rem;color:#11253f;font-weight:820;line-height:1.35}.mm-home-faq details p{margin:0;padding:0 1.25rem 1.25rem;color:#52647b;line-height:1.72}.mm-home-faq summary::marker{color:#176df5}

/* AI Product Engineering / offer pages: richer visual hierarchy, not a stack of identical sections. */
.mm-ai-product-page{background:#f4f7fb!important}
.mm-ai-product-page .mm-services-hero{padding:clamp(4.7rem,7vw,7rem) 1.25rem!important}
.mm-ai-product-page .mm-services-hero-grid{grid-template-columns:minmax(0,1.28fr) minmax(340px,.72fr)!important;gap:clamp(2rem,4vw,4rem)!important}
.mm-ai-product-page .mm-services-hero h1{max-width:15ch!important;font-size:clamp(3rem,5.3vw,5.45rem)!important;line-height:.98!important}
.mm-ai-product-page .mm-services-lede{max-width:800px!important;font-size:clamp(1.08rem,1.65vw,1.3rem)!important}
.mm-ai-hero-proof{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-top:1.35rem;max-width:850px}.mm-ai-hero-proof div{padding:.9rem 1rem;border:1px solid rgba(105,174,255,.2);border-radius:15px;background:rgba(4,18,43,.48)}.mm-ai-hero-proof strong{display:block;color:#fff;font-size:.94rem}.mm-ai-hero-proof span{display:block;margin-top:.25rem;color:#a9c4df;font-size:.8rem;line-height:1.4}
.mm-ai-product-page .mm-services-hero-visual{padding:1rem;border:1px solid rgba(79,159,255,.2);border-radius:28px;background:linear-gradient(155deg,rgba(6,20,46,.36),rgba(10,42,98,.3));box-shadow:0 28px 70px rgba(0,8,28,.22)}

.mm-ai-section{padding:clamp(4.5rem,6.5vw,6.3rem) 1.25rem}.mm-ai-section>.alignwide{width:min(1280px,calc(100% - 2rem));max-width:1280px;margin-inline:auto}.mm-ai-section--light{background:#fff}.mm-ai-section--soft{background:linear-gradient(180deg,#eef3fb,#f8fbff)}.mm-ai-section--dark{background:radial-gradient(circle at 82% 12%,rgba(0,200,244,.12),transparent 28%),linear-gradient(145deg,#06142e,#0a244f);color:#fff}
.mm-ai-section-heading{max-width:960px;margin-bottom:2.4rem}.mm-ai-section-heading .mm-eyebrow{color:#0b55ce}.mm-ai-section--dark .mm-ai-section-heading .mm-eyebrow{color:#7ce8ff}.mm-ai-section-heading h2{max-width:900px;margin:.4rem 0 1rem;font-size:clamp(2.45rem,4vw,4rem);line-height:1.02;letter-spacing:-.035em}.mm-ai-section--dark .mm-ai-section-heading h2{color:#fff}.mm-ai-section-heading p{max-width:880px;margin:.7rem 0 0;color:#53647b;font-size:1.05rem;line-height:1.76}.mm-ai-section--dark .mm-ai-section-heading p{color:#c3d3e6}
.mm-ai-value-grid,.mm-ai-usecase-grid,.mm-ai-architecture-grid,.mm-ai-deliverable-grid,.mm-ai-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.mm-ai-value-card,.mm-ai-usecase-card,.mm-ai-architecture-card,.mm-ai-deliverable-card,.mm-ai-related-card{position:relative;overflow:hidden;min-height:220px;padding:1.4rem;border:1px solid #dbe6f3;border-radius:22px;background:linear-gradient(160deg,#fff,#f7fbff);box-shadow:0 16px 42px rgba(3,26,65,.065)}.mm-ai-value-card:before,.mm-ai-usecase-card:before,.mm-ai-architecture-card:before,.mm-ai-deliverable-card:before,.mm-ai-related-card:before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,#00c8f4,#176df5,#5144f8)}.mm-ai-value-card b,.mm-ai-usecase-card b,.mm-ai-architecture-card b,.mm-ai-deliverable-card b{display:inline-block;margin-bottom:.75rem;color:#0b55ce;font-size:.72rem;letter-spacing:.12em}.mm-ai-value-card h3,.mm-ai-usecase-card h3,.mm-ai-architecture-card h3,.mm-ai-deliverable-card h3,.mm-ai-related-card h3{margin:.1rem 0 .6rem;color:#11253f;font-size:1.3rem;line-height:1.18}.mm-ai-value-card p,.mm-ai-usecase-card p,.mm-ai-architecture-card p,.mm-ai-deliverable-card p,.mm-ai-related-card p{margin:0;color:#53647b;line-height:1.68}.mm-ai-section--dark .mm-ai-usecase-card{border-color:rgba(92,160,240,.24);background:linear-gradient(155deg,rgba(10,42,98,.78),rgba(6,20,46,.9));box-shadow:0 20px 48px rgba(0,8,28,.2)}.mm-ai-section--dark .mm-ai-usecase-card h3{color:#fff}.mm-ai-section--dark .mm-ai-usecase-card p{color:#bdcfe2}.mm-ai-section--dark .mm-ai-usecase-card b{color:#7ce8ff}
.mm-ai-architecture-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:.72rem}.mm-ai-architecture-card{min-height:190px;padding:1.15rem}.mm-ai-architecture-card h3{font-size:1.05rem}.mm-ai-architecture-card p{font-size:.9rem}
.mm-ai-deliverable-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mm-ai-deliverable-card{min-height:205px}
.mm-ai-fit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.mm-ai-fit-panel{padding:1.6rem;border:1px solid #dbe6f3;border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(3,26,65,.06)}.mm-ai-fit-panel--positive{background:linear-gradient(160deg,#fff,#f2fbff)}.mm-ai-fit-panel h3{margin:0 0 .9rem;color:#11253f;font-size:1.45rem}.mm-ai-fit-panel ul{margin:0;padding-left:1.15rem}.mm-ai-fit-panel li{margin:.55rem 0;color:#52647b;line-height:1.62}
.mm-ai-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.mm-ai-faq-item{border:1px solid #dbe6f3;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(3,26,65,.045);overflow:hidden}.mm-ai-faq-item summary{cursor:pointer;padding:1.1rem 1.2rem;color:#11253f;font-weight:820;line-height:1.4}.mm-ai-faq-item p{margin:0;padding:0 1.2rem 1.2rem;color:#53647b;line-height:1.72}.mm-ai-related-card{display:flex;flex-direction:column;color:inherit;text-decoration:none!important}.mm-ai-related-card span{margin-top:auto;padding-top:1rem;color:#0b55ce;font-weight:820}
.mm-ai-product-page .mm-services-process{padding:clamp(4.5rem,6.5vw,6.3rem) 1.25rem!important}.mm-ai-product-page .mm-services-process__rail{margin-top:2rem}.mm-ai-product-page .mm-services-process .mm-section-intro{text-align:left!important;max-width:960px!important;margin-left:0!important}.mm-ai-product-page .mm-services-process .mm-section-intro h2{margin-left:0!important}

/* Work replacement for broken reference demos. */
.mm-work-patterns{padding:clamp(4.5rem,6.5vw,6.3rem) 0;background:linear-gradient(180deg,#eef3fb,#f8fbff)}.mm-work-pattern-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.mm-work-pattern-card{display:flex;flex-direction:column;min-height:235px;padding:1.45rem;border:1px solid #dbe6f3;border-radius:22px;background:#fff;color:inherit;text-decoration:none!important;box-shadow:0 16px 42px rgba(3,26,65,.06)}.mm-work-pattern-card strong{color:#11253f;font-size:1.3rem}.mm-work-pattern-card p{color:#53647b;line-height:1.68}.mm-work-pattern-card span{margin-top:auto;color:#0b55ce;font-weight:820}

/* Footer link labels should remain readable and strategic. */
.mm-site-footer .mm-footer-links .wp-block-navigation-item__content{white-space:normal!important}

@media(max-width:1360px){.mm-header-actions{display:none!important}.mm-primary-navigation{margin-left:auto!important}}
@media(max-width:1180px){.mm-home-fit-grid,.mm-home-architecture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-ai-architecture-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mm-ai-deliverable-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-ai-product-page .mm-services-hero-grid{grid-template-columns:1fr!important}.mm-ai-product-page .mm-services-hero-visual{max-width:720px}}
@media(max-width:900px){.mm-ai-value-grid,.mm-ai-usecase-grid,.mm-ai-related-grid,.mm-work-pattern-grid,.mm-home-trigger-grid{grid-template-columns:1fr 1fr}.mm-ai-fit-grid,.mm-home-fit-note{grid-template-columns:1fr}}
@media(max-width:620px){.mm-home-fit-grid,.mm-home-architecture-grid,.mm-home-trigger-grid,.mm-home-faq-grid,.mm-ai-value-grid,.mm-ai-usecase-grid,.mm-ai-architecture-grid,.mm-ai-deliverable-grid,.mm-ai-related-grid,.mm-ai-faq-grid,.mm-work-pattern-grid{grid-template-columns:1fr}.mm-home-fit-card,.mm-home-architecture-card,.mm-home-trigger-card,.mm-ai-value-card,.mm-ai-usecase-card,.mm-ai-architecture-card,.mm-ai-deliverable-card,.mm-ai-related-card,.mm-work-pattern-card{min-height:0}.mm-ai-hero-proof{grid-template-columns:1fr}.mm-home-page .mm-home-section{padding:3.6rem .75rem!important}}
