/* One section rhythm across the site. Major sections own their outside space;
   headings and content own only their internal gap. Keep hero and card layouts
   independent, and do not let viewport height stretch the editorial rhythm. */
:root{
 --section-space:clamp(56px,5vw,80px);
 --section-content-gap:clamp(28px,3vw,44px);
 --heading-copy-gap:24px;
}
:root #main-content > :is(
 .home-engagement,.home-work,.home-partnership,
 .story-section,.reach-section,.global-footprint,.team-section,.values,
 .credentials,.portfolio-depth,.experience-directory,.spotlights,
 .delivery-editorial,.why-integrated,.process-list,.case-studies-section,
 .contact-details,.contact-band,.northlake-intro,.northlake-film,
 .northlake-team,.northlake-cta,.case-related,.resource-section,
 .about-client-voice,.next-page,.cases-navigation,.cases-next,
 .case-design-visuals,.case-installed-visuals,.case-detail-body
){padding-block:var(--section-space);padding-inline:var(--opening-gutter)}

/* Category introductions and their grids share a rail and one measured gap. */
:root #main-content :is(#custom,#conceptual) > .category-heading{
 padding:var(--section-space) var(--opening-gutter) 0;
}
:root #main-content :is(#custom,#conceptual) > .project-grid{
 padding:var(--section-content-gap) var(--opening-gutter) var(--section-space);
}
:root #main-content .category-heading > :last-child{margin-bottom:0}

/* Section-level headings use the same transition into their first content. */
:root #main-content :is(
 .spotlights-heading,.directory-heading,.case-section-heading,
 .approach-section-heading,.visual-section-heading,.northlake-film-heading,
 .home-section-heading
){margin-bottom:var(--section-content-gap)}
:root #main-content :is(
 .delivery-editorial,.why-integrated,.credentials,.about-client-voice,
 .spotlights-heading,.approach-section-heading,.visual-section-heading
) > h2{margin-top:20px;margin-bottom:var(--heading-copy-gap)}
:root #main-content .resource-section > h2{margin-bottom:var(--heading-copy-gap)}
:root #main-content :is(
 .team-grid,.values-grid,.portfolio-depth-grid,.delivery-grid,.benefit-grid,
 .owner-questions,.resource-grid,.northlake-team dl,.franchise-logo-grid
){margin-top:var(--section-content-gap);margin-bottom:0}
:root #main-content :is(
 .spotlights-heading,.directory-heading,.case-section-heading,
 .approach-section-heading,.visual-section-heading,.northlake-film-heading
) > :last-child{margin-bottom:0}

/* Repeated rows provide their own breathing room, without a second outer pad. */
:root #main-content > .service-detail-list{padding:0 var(--opening-gutter)}
:root #main-content .service-detail-list > article{padding-block:var(--section-space)}
:root #main-content > .case-index{padding:var(--section-space) var(--opening-gutter)}
:root #main-content .case-index > article{padding-block:var(--section-space)}
:root #main-content .case-index > article:first-child{padding-top:0}
:root #main-content .case-index > article:last-child{padding-bottom:0}
:root #main-content .case-detail-body section:last-child{margin-bottom:0}
:root #main-content #project-archive > .directory-heading + .franchise-group{padding-top:0}

/* Split-background approach panels remain balanced within the same rhythm. */
:root #main-content .precision-section > :is(.precision-copy,.precision-visual){padding-block:var(--section-space)}
@media(min-width:801px){
 :root footer{padding:var(--section-space) var(--opening-gutter) 32px}
}
@media(max-width:1100px) and (min-width:801px){
 :root{--section-space:56px}
}
@media(max-width:800px){
 :root{--section-space:40px;--section-content-gap:28px;--heading-copy-gap:24px}
 :root #main-content .service-detail-list > article,
 :root #main-content .case-index > article{padding-block:32px}
 :root #main-content .case-index > article:first-child{padding-top:0}
 :root #main-content .case-index > article:last-child{padding-bottom:0}
}

/* A surface change marks a new chapter, not every card or paragraph. Use the
   existing paper/ivory/deep palette so neighboring topics remain distinct. */
:root #main-content > .portfolio-proof{background:var(--paper)}
:root #main-content .portfolio-proof .spotlights-heading h2 em,
:root #main-content .precision-copy h2 em{color:var(--accent-on-light)}
:root #main-content > #hospitality-brands{
 background:var(--paper);color:var(--deep);
}
:root #main-content > #hospitality-brands > h2{color:var(--deep)}
:root #main-content > #hospitality-brands > .eyebrow{color:var(--accent-on-light)}
:root #hospitality-brands .franchise-logo-tile img{filter:brightness(0)}

/* Overview → detailed services and introduction → process are different levels
   of information. Alternating light surfaces makes that hierarchy visible. */
:root #main-content > :is(.service-engagement,.process-list,.northlake-team){background:var(--paper)}
:root #main-content > .precision-section{background:var(--ivory)}
:root #main-content > .precision-section + .delivery-dark{border-top:1px solid #ffffff40}

/* Related case imagery keeps its shared layout while rendering and installed
   photography are clearly different evidence sections. */
:root #main-content > .case-installed-visuals{background:var(--ivory);border-top:1px solid var(--line)}
:root #main-content > .page-hero + .case-index,
:root .owner-resources-page #main-content > .resource-section:first-child{border-top:1px solid var(--line)}

/* Career experience: one shared top rail, no nested card padding or frames. */
:root #main-content > .portfolio-depth{padding-block:clamp(36px,3.5vw,56px)}
:root #main-content .portfolio-depth-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.15fr) minmax(0,1.8fr);align-items:start;gap:28px clamp(24px,3vw,48px);margin-top:28px}
:root #main-content .portfolio-depth-grid>div,:root #main-content .portfolio-depth-grid>p{min-width:0;padding:0;margin:0;border:0}
:root #main-content .portfolio-depth-grid>p{grid-column:auto;font-size:18px;line-height:1.55}
:root #main-content .portfolio-depth-grid strong{line-height:1.05}
:root #main-content .portfolio-depth-grid span{line-height:1.5}
@media(min-width:601px) and (max-width:1100px){
 :root #main-content .portfolio-depth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root #main-content .portfolio-depth-grid>p{grid-column:1/-1;max-width:72ch}
}
@media(max-width:600px){
 :root #main-content .portfolio-depth-grid{grid-template-columns:minmax(0,1fr);gap:24px}
}

/* Portfolio experience is a simple editorial introduction, without stats. */
:root .portfolio-page #main-content > .portfolio-depth{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.6fr);gap:24px clamp(28px,4vw,64px);align-items:start}
:root .portfolio-page #main-content > .portfolio-depth>.eyebrow{margin:5px 0 0}
:root .portfolio-page #main-content .portfolio-depth-grid{display:block;margin:0}
:root .portfolio-page #main-content .portfolio-depth-grid>p{max-width:72ch;margin:0}
@media(max-width:800px){:root .portfolio-page #main-content > .portfolio-depth{grid-template-columns:minmax(0,1fr);gap:20px}}

.concept-gallery-trigger{margin-top:28px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid #ffffff35;color:inherit;text-decoration:none;font-weight:600}
.concept-gallery-trigger::after{content:'';display:inline-block;width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 15 15 3M4 3h11v11' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 15 15 3M4 3h11v11' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat}
.concept-gallery-trigger:focus-visible{outline:2px solid var(--gold);outline-offset:4px}

/* Swap the Portfolio design-study chapter palettes. */
:root .portfolio-page #custom{background:var(--deep);color:var(--ivory)}
:root .portfolio-page #custom :is(.category-heading,.project-grid){background:transparent}
:root .portfolio-page #custom :is(.category-heading,.project-card-copy)>.eyebrow{color:var(--gold)}
:root .portfolio-page #custom h2{color:var(--ivory)}
:root .portfolio-page #custom :is(.delivery-intro,.project-card-copy>p){color:#d5d1ca}
:root .portfolio-page #custom .project-card-copy small{color:#c2bcb2}
:root .portfolio-page #custom .project-card-copy{border-color:#ffffff40}
:root .portfolio-page #custom .text-link{color:var(--ivory);border-color:#ffffff70}
:root .portfolio-page #conceptual{background:var(--ivory);color:var(--ink)}
:root .portfolio-page #conceptual :is(.category-heading,.project-grid){background:transparent}
:root .portfolio-page #conceptual :is(h2,.eyebrow,.delivery-intro,.project-card-copy>p){color:var(--ink)}
:root .portfolio-page #conceptual .project-card-copy small{color:#625c54}
:root .portfolio-page #conceptual :is(.project-card-copy,.concept-gallery-trigger){border-color:var(--line)}
:root .portfolio-page #conceptual .concept-gallery-trigger{color:var(--ink)}
:root .portfolio-page #conceptual .concept-gallery-trigger:focus-visible{outline-color:var(--accent-on-light,#79502f)}

/* Brand introduction now includes prototype context above the logo row. */
:root #hospitality-brands > h2 em{color:var(--accent-on-light,#79502f)}
:root #hospitality-brands > .delivery-intro{max-width:70ch;color:var(--ink);margin-bottom:36px}

/* Hospitality experience introduces Selected Work on a contrasting dark surface. */
:root #main-content > #hospitality-brands{background:var(--deep);color:var(--ivory)}
:root #main-content > #hospitality-brands > h2{color:var(--ivory)}
:root #main-content > #hospitality-brands > .eyebrow,
:root #main-content > #hospitality-brands > h2 em{color:var(--gold)}
:root #main-content > #hospitality-brands > .delivery-intro{color:#d5d1ca}
:root #hospitality-brands .franchise-logo-tile img{filter:brightness(0) invert(1)}

/* Dark page openings share the deeper blue used in the site's dark sections. */
:root .page-hero-dark{background:var(--deep)}

/* Deep copper accents remain readable against the gold engagement panel. */
:root #engagement-options h2 em{color:#51291e;font-style:italic}
:root #engagement-options .delivery-grid h3{color:#51291e}
