/* Final layout layer: one responsive outer rail, independent inner content grids. */
body { --lp-shared-width:min(calc(100% - 2 * var(--lp-page-gutter,24px)),var(--lp-content-max,1258px)); }
body .container:not(.lp-hero-shell),
body .lp-shell:not(.lp-hero-shell),
body .lp-project-navigation,
body .lp-footer-v28__inner {
 box-sizing:border-box; width:var(--lp-shared-width) !important;
 max-width:var(--lp-content-max,1258px) !important;
 margin-inline:auto !important; padding-inline:0 !important;
}
/* Nested shells inherit the parent's rail instead of adding another gutter. */
body .container .container,
body .lp-shell .container,
body .container .lp-shell {
 width:100% !important; max-width:none !important; padding-inline:0 !important;
}
body :is(.ewallet-case-study,.project-case-study) > :is(.ewallet-content-shell,.project-case-study-content,.case-glance,.case-story-nav,.lp-project-leadership,.lp-leadership--brief,.project-story-row) {
 box-sizing:border-box; width:var(--lp-shared-width) !important;
 max-width:var(--lp-content-max,1258px) !important;
 margin-inline:auto !important; padding-inline:0 !important;
}
body :is(.ewallet-content-shell,.project-case-study-content) > :is(.project-story-row,.ewallet-story-row,.case-chapter,.case-decisions,.ewallet-screen-gallery,.case-deep-dive,.case-measurement) {
 box-sizing:border-box; width:100% !important; max-width:none !important;
 margin-inline:0 !important; padding-inline:0 !important; min-width:0;
}
body .case-study-cinematic-hero :is(.project-case-study-hero-inner,.ewallet-hero-inner) { padding-inline:0 !important; }
/* Panels retain their intentional internal padding; only section edges share the rail. */
@media(max-width:767px) {
 body :is(.project-story-row,.ewallet-story-row) { grid-template-columns:minmax(0,1fr); }
 body :is(.project-story-row,.ewallet-story-row) > div { grid-column:1; min-width:0; }
}
/* Footer scenery is full bleed; its internal copy and legal rows own the content rail. */
body footer.lp-cinematic-footer .container.lp-footer-v28__inner {
 width:100% !important; max-width:none !important;
 margin:0 !important; padding:0 !important;
}

/* Preserve intentional dividers; collapse only adjacent duplicate boundaries. */
body .lp-project-leadership + .case-story-nav {
 border-top:0 !important;
}
/* The chapter navigation already closes this boundary with its bottom rule. */
body .case-story-nav + .ewallet-content-shell > .case-chapter:first-child {
 border-top:0 !important;
}

/* Contact's scene stays full bleed; only its text shell uses the shared content rail. */
body .contact-hero .contact-universe > .lp-shell.lp-hero-shell {
 box-sizing:border-box; width:var(--lp-shared-width)!important;
 max-width:var(--lp-content-max,1258px)!important;
 margin-inline:auto!important; padding-inline:0!important;
}
body .contact-hero .contact-universe > .lp-hero-shell .lp-hero-copy {
 width:min(760px,100%)!important; max-width:100%; margin-inline:0!important; padding-inline:0!important;
}
@media(max-width:767px) {
 body #contacts .section-head,
 body #contacts .section-head :is(.title,.description) { text-align:left!important; }
 body #contacts .section-sub-title { justify-content:flex-start!important; }
}

/* Sitewide editorial cleanup: spacing separates chapters; UI boundaries remain. */
body :is(.case-story-nav,.case-chapter,.case-deep-dive,.case-story-next,
 .project-story-row,.ewallet-story-row,.project-case-study-hero,.project-case-study-screens,
 .project-case-study-gallery,.ewallet-screen-gallery,.lp-project-leadership,
 .lp-project-navigation,.lp-project-navigation__grid>.lp-project-navigation__next,
 .lp-signature-project,.lp-signature-work__all,.lp-work-archive,
 .lp-leadership-decision,.lp-leadership-coaching,.lp-leadership-case .lp-leadership--brief,
 .lp-contact-availability,.lp-contact-next,.journey-reader .reader-navigation) {
 border-top:0!important;border-bottom:0!important;
}
body .lp-work-first :is(.lp-credibility__metrics,.lp-approach__grid),
body.lp-work-first :is(.lp-credibility__metrics,.lp-approach__grid),
body .selected-work .selected-work-tabs,
body .lp-cinematic-footer .lp-footer-v28__navrow {
 border-top:0!important;border-bottom:0!important;
}
