/* A shared spacing rhythm for the interior pages, independent of the homepage. */
/* Each neighboring section contributes half of the 72px desktop transition. */
.textured-page{--space-section:36px;--space-heading:32px;--space-grid:24px;--space-card:28px}
.textured-page main>section:is(.section,.knowledge-related,.knowledge-section):not(:where(.page-hero,.studio-hero,.contact-workspace,.knowledge-article)),
.textured-page main>section.section:has(>.container>.cta-band),
.textured-page main>#mes-and-ai{padding-block:var(--space-section)}
/* These two supporting callouts form one group, with a smaller local gap. */
.textured-page main>#talent{padding-block:var(--space-section) 0}
.textured-page main>#talent+section{padding-block:24px var(--space-section)}
.textured-page :is(.section-head,.section-heading){column-gap:48px;row-gap:20px;margin-bottom:var(--space-heading)}
.textured-page :is(.section-head,.section-heading) h2{margin-block:0}
.textured-page :is(.section-head,.section-heading)>div>p{margin-top:16px;margin-bottom:0}
.textured-page :is(.section-head,.section-heading)>p{margin-bottom:0}
.textured-page :is(.grid-2,.grid-3,.grid-4,.knowledge-grid,.mes-scene-grid,.mes-case-grid,.research-groups){gap:var(--space-grid)}
.textured-page :is(.card,.role-card,.knowledge-card){padding:var(--space-card)}
.textured-page :is(.card,.role-card)>.icon-box{margin-bottom:20px}
.textured-page :is(.card,.role-card)>h3{margin-top:0;margin-bottom:13px}
.textured-page :is(.card,.role-card)>p{margin-top:13px;margin-bottom:0}
.textured-page .knowledge-card h3{margin:20px 0 12px}
.textured-page .knowledge-card>p{margin-top:0;margin-bottom:24px}
.textured-page .knowledge-card-foot{padding-top:15px}
.textured-page .knowledge-card-foot a{min-height:44px}
.textured-page .section-head>.text-link{flex-shrink:0;align-self:flex-end}
/* Route steps, numbered lessons and evidence keep aligned local spacing. */
.textured-page #factory-method .column-method-top>strong{margin:0}
.textured-page #factory-method .column-method-top{margin-bottom:24px}
.textured-page #factory-method .process-strip{gap:24px}
.textured-page #factory-directions .card h3{margin-block:0 14px}
.textured-page #factory-directions .card>p{margin-bottom:24px}
.textured-page #workflow .workflow-example{margin-top:0;border:0;border-radius:0;overflow:visible}
.textured-page #workflow .workflow-example>div{padding:32px}
.textured-page #workflow .workflow-example ol{margin-block:22px}
.textured-page #workflow .workflow-example>div>:last-child{margin-bottom:0}
.textured-page #curriculum .module-list{gap:24px}
.textured-page #curriculum .module{gap:20px;padding:28px}
.textured-page #roles .role-card>.column-art-icon{margin-bottom:22px}
.textured-page #roles .role-card h3{margin-top:15px;margin-bottom:0}
.textured-page #roles .role-card dl{margin-top:22px}
.textured-page #roles .role-card dt{margin-top:18px}
.textured-page #roles .role-card dd{margin-top:7px}
.textured-page #training-outcomes .status-note{margin-block:24px 0}
.textured-page #training-outcomes .decision-details{margin-top:24px}
.textured-page #career-story .split{gap:56px}
.textured-page #career-story .timeline-item{margin-bottom:24px}
.textured-page #career-story .timeline-item:last-child{margin-bottom:0}
.textured-page #team-research .patent-facts{margin-bottom:28px}
.textured-page #team-research .research-overview-note{margin-top:24px;margin-bottom:0}
.textured-page #team .column-location-strip{margin-bottom:28px}
/* Start panels have one heading gap; avoid stacked margins at section boundaries. */
.textured-page :is(#factory-start,#training-start,#mes-start)>.container{gap:28px}
.textured-page :is(#factory-start,#training-start,#mes-start) .section-heading{margin-bottom:12px}
.textured-page .start-checklist h3{margin-top:0;margin-bottom:18px}
.textured-page .start-checklist ul{margin-block:0}
.textured-page .start-checklist>p:last-child{margin-top:18px;margin-bottom:0}
.textured-page .first-step-bottom>p{margin:0}
.textured-page .book-callout h2{margin:0 0 10px}
.textured-page .book-callout p{margin:0}
.textured-page .cta-band h2{margin-top:0;margin-bottom:16px}
.textured-page .cta-band p{margin-bottom:0}
.textured-page .site-footer{padding-top:var(--space-section)}
.textured-page .footer-top{column-gap:64px;row-gap:32px;padding-bottom:36px}
@media(max-width:1000px){
 .textured-page{--space-section:32px;--space-heading:28px;--space-grid:22px;--space-card:26px}
 .textured-page #career-story .split{gap:36px}
 .textured-page .footer-top{column-gap:40px}
}
@media(max-width:700px){
 .textured-page{--space-section:24px;--space-heading:24px;--space-grid:20px;--space-card:24px}
 .textured-page :is(.section-head,.section-heading){gap:16px}
 .textured-page :is(.section-head,.section-heading)>p{margin-top:16px}
 .textured-page .section-head>.text-link{margin-top:14px}
 .textured-page #factory-method .process-strip,.textured-page #curriculum .module-list{gap:18px}
 .textured-page #factory-method .column-method-top{margin-bottom:20px}
 .textured-page #workflow .workflow-example{gap:20px}
 .textured-page #workflow .workflow-example>div{padding:25px}
 .textured-page #curriculum .module{padding:24px;gap:16px}
 .textured-page #career-story .timeline-item{margin-bottom:20px}
 .textured-page :is(#factory-start,#training-start,#mes-start)>.container{gap:20px}
 .textured-page :is(#factory-start,#training-start,#mes-start) .section-heading{margin-bottom:8px}
 .textured-page .footer-top{column-gap:28px;row-gap:28px;padding-bottom:28px}
}
@media(max-width:380px){.textured-page{--space-card:21px;--space-grid:16px}.textured-page #curriculum .module{padding:21px}}

/* The consultation page moves directly from its introduction into the form. */
.textured-page.contact-page .contact-hero{padding:40px 0 0}
.textured-page.contact-page .contact-hero h1{margin:0}
.textured-page.contact-page .contact-hero .lead{margin:14px 0 0;max-width:820px}
.textured-page.contact-page .contact-workspace{padding:32px 0 var(--space-section)}
.textured-page.contact-page .contact-channel-section{padding:28px 0 0}
@media(max-width:700px){
 .textured-page.contact-page .contact-hero{padding:28px 0 0}
 .textured-page.contact-page .contact-hero .lead{margin-top:12px}
 .textured-page.contact-page .contact-workspace{padding:24px 0 var(--space-section)}
 .textured-page.contact-page .contact-channel-section{padding-top:22px}
}

/* Hero and body share one transition gap instead of adding two section paddings. */
.textured-page main>.studio-hero,.textured-page main>.page-hero:not(.contact-hero){padding-bottom:32px}
.textured-page main>:is(.studio-hero,.page-hero)+section{padding-top:40px}
.textured-page main>.article-hero{padding:40px 0 0}
.textured-page .article-hero h1{margin:0}
.textured-page .article-hero .eyebrow{margin-bottom:14px}
.textured-page .article-hero .lead{margin:16px 0 0;max-width:850px}
.textured-page .article-hero .article-meta{margin:18px 0 0}
.textured-page main>.knowledge-article{padding:32px 0 var(--space-section)}
.textured-page .article h2{margin:34px 0 16px}
.textured-page .article h2:first-child{margin-top:0}
.textured-page .article h3{margin:26px 0 12px}
.textured-page .article .answer-box{margin-bottom:0}
.textured-page .article p{margin-top:0;margin-bottom:18px}
.textured-page .article .answer-box p{margin:10px 0 0}
.textured-page .knowledge-article .article-side .btn{padding:10px 14px;min-height:44px;color:#fff;margin-top:16px}
.textured-page main>.page-hero:has(+section>.container>.article){padding:40px 0 0}
.textured-page main>.page-hero+section:has(>.container>.article){padding-top:32px}
@media(max-width:700px){
 .textured-page main>.studio-hero,.textured-page main>.page-hero:not(.contact-hero){padding-bottom:24px}
 .textured-page main>:is(.studio-hero,.page-hero)+section{padding-top:28px}
 .textured-page main>.article-hero{padding:28px 0 0}
 .textured-page .article-hero .eyebrow{margin-bottom:12px}
 .textured-page .article-hero .lead{margin-top:12px}
 .textured-page .article-hero .article-meta{margin-top:14px}
 .textured-page main>.knowledge-article{padding:24px 0 var(--space-section)}
 .textured-page .knowledge-article .article-grid{gap:24px}
 .textured-page .article h2{margin:28px 0 14px}
 .textured-page .article h2:first-child{margin-top:0}
 .textured-page .article h3{margin-top:22px}
 .textured-page main>.page-hero:has(+section>.container>.article){padding:28px 0 0}
 .textured-page main>.page-hero+section:has(>.container>.article){padding-top:24px}
}
