/* Mobile-only editorial panels. Minimum screen height, never a fixed height or locked scrolling. */
.cm-mobile-express-visual { display:none; }
@media (max-width:700px) and (orientation:portrait) {
 .cm-luxe-home { --cm-panel-header:72px; --cm-panel-min:calc(100svh - var(--cm-panel-header)); }
 .cm-luxe-home > section { min-height:var(--cm-panel-min); scroll-margin-top:var(--cm-panel-header); }
 /* Screen 1 — agency introduction. The existing visual is kept intact and given its own breathing room. */
 .cm-luxe-home > .full-hero.cm-agency-hero {
  min-height:100svh!important;
  grid-template-rows:auto minmax(0,1fr);
  align-items:start;
  align-content:space-between;
  gap:clamp(16px,3svh,32px);
  padding:108px 22px clamp(26px,4svh,42px)!important;
 }
 .cm-luxe-home > .cm-agency-hero .hero-copy { align-self:start; }
 .cm-luxe-home > .cm-agency-hero .digital-scene.cm-showcase {
  height:clamp(195px,69vw,330px); align-self:center;
 }
 .cm-luxe-home .cm-agency-hero .cm-screen-primary { top:6%; }
 .cm-luxe-home .cm-agency-hero .cm-screen-secondary { bottom:7%; }
 /* Screen 2 — Site Express. One genuine site image, one direct trial action. */
 .cm-luxe-home > .cm-home-express {
  display:flex; flex-direction:column; align-items:stretch; justify-content:center;
  padding:clamp(30px,5svh,48px) 22px; gap:clamp(17px,3svh,26px);
  background:#F4F1EA; color:#0E0E10;
 }
 .cm-luxe-home .cm-home-express-kicker { font-size:11px; margin-bottom:13px; }
 .cm-luxe-home .cm-home-express #cm-home-express-title { font-size:clamp(32px,8.7vw,48px); line-height:1.08; }
 .cm-mobile-express-visual { display:block; margin:0; min-width:0; }
 .cm-mobile-express-visual > a { display:block; overflow:hidden; border-radius:5px; border:1px solid #BEBDB6; background:#23262B; box-shadow:0 10px 28px #0E0E101B; }
 .cm-mobile-express-visual img { display:block; width:100%; height:auto; aspect-ratio:3 / 2; object-fit:cover; object-position:top center; }
 .cm-mobile-express-visual figcaption { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:11px; line-height:1.5; color:#54564D; margin-top:9px; }
 .cm-mobile-express-visual figcaption > span { font-weight:600; }
 .cm-mobile-express-visual figcaption a { color:#0E0E10; text-decoration:underline; text-underline-offset:4px; }
 .cm-luxe-home .cm-home-express-detail > p:first-child { font-size:16px; line-height:1.45; margin:0 0 15px; }
 .cm-luxe-home .cm-home-express .cm-home-express-note { margin-top:12px; }
 /* Screen 3 — three expertise lines, airy but succinct. */
 .cm-luxe-home > .cm-luxe-services {
  display:flex; flex-direction:column; align-items:stretch; justify-content:center;
  padding:clamp(34px,5.5svh,54px) 22px; gap:clamp(24px,4svh,42px);
 }
 .cm-luxe-home .cm-luxe-services h2 { font-size:clamp(38px,10vw,54px); }
 .cm-luxe-home .cm-luxe-service-list article { padding:clamp(21px,3.6svh,35px) 0; }
 .cm-luxe-home .cm-luxe-service-list h3 { font-size:clamp(21px,5.5vw,28px); }
 .cm-luxe-home .cm-luxe-service-list p { font-size:14px; line-height:1.5; }
 /* Screen 4 — the existing random carousel, one equal-sized case per view. */
 .cm-luxe-home > .work-section.cm-client-carousel {
  display:flex; flex-direction:column; align-items:stretch; justify-content:center;
  padding:clamp(34px,5.5svh,54px) 22px;
 }
 .cm-luxe-home .work-section.cm-client-carousel .section-head { margin:0 0 clamp(22px,4svh,35px); gap:12px; }
 .cm-luxe-home .work-section.cm-client-carousel .section-head h2 { font-size:clamp(38px,10vw,54px); }
 .cm-luxe-home .work-section.cm-client-carousel .projects { grid-auto-columns:100%; gap:14px; }
 .cm-luxe-home .work-section.cm-client-carousel .projects .project .project-image,
 .cm-luxe-home .work-section.cm-client-carousel .projects .project:first-child .project-image { aspect-ratio:3/2; }
 .cm-luxe-home .work-section.cm-client-carousel .project-caption { margin-top:18px; }
 .cm-luxe-home .work-section.cm-client-carousel .project-caption h3 { font-size:clamp(23px,6.5vw,31px); }
 .cm-luxe-home .work-section.cm-client-carousel .cm-client-controls { margin-top:18px; }
 /* Preserve natural scrolling and the full content on short displays. */
 @media(max-height:650px) {
  .cm-luxe-home > .full-hero.cm-agency-hero { gap:16px; padding-bottom:24px!important; }
  .cm-luxe-home > .cm-agency-hero .digital-scene.cm-showcase { height:clamp(170px,53vw,230px); }
  .cm-luxe-home > .cm-home-express { padding-block:26px; gap:15px; }
  .cm-luxe-home > .cm-luxe-services,.cm-luxe-home > .work-section.cm-client-carousel { padding-block:30px; }
  .cm-luxe-home .cm-luxe-service-list article { padding-block:20px; }
 }
}
@media(max-width:700px) and (orientation:portrait) and (prefers-reduced-motion:reduce) {
 .cm-luxe-home *, .cm-luxe-home *::before,.cm-luxe-home *::after { scroll-behavior:auto!important; }
}

/* Keep the original contact dock. Reserve its footprint in each mobile panel. */
@media(max-width:700px) and (orientation:portrait) {
 .cm-luxe-home { --cm-dock-safe:calc(90px + env(safe-area-inset-bottom,0px)); }
 .cm-luxe-home > .full-hero.cm-agency-hero { padding-bottom:var(--cm-dock-safe)!important; }
 .cm-luxe-home > .cm-home-express,
 .cm-luxe-home > .cm-luxe-services,
 .cm-luxe-home > .work-section.cm-client-carousel { padding-bottom:var(--cm-dock-safe); }
 .cm-luxe-home .section-head.cm-reveal { opacity:1!important; transform:none!important; transition:none!important; }
 .cm-luxe-home a, .cm-luxe-home button { scroll-margin-block:85px; }
}

/* Genuine overlapping sticky panels: a later section paints over the preceding section. */
@media(max-width:700px) and (orientation:portrait) and (prefers-reduced-motion:no-preference) {
 .cm-luxe-home.cm-stack-ready { position:relative; overflow:visible; isolation:isolate; }
 .cm-luxe-home.cm-stack-ready > section { position:sticky; top:var(--cm-stack-top,72px); }
 .cm-luxe-home.cm-stack-ready > .full-hero.cm-agency-hero { position:sticky; top:var(--cm-stack-top,0px); z-index:1; }
 .cm-luxe-home.cm-stack-ready > .cm-home-express { z-index:2; }
 .cm-luxe-home.cm-stack-ready > .cm-luxe-services { z-index:3; }
 .cm-luxe-home.cm-stack-ready > .work-section.cm-client-carousel { z-index:4; }
 /* Keyboard navigation stays in normal document flow, so hidden panels never trap focus. */
 .cm-luxe-home.cm-stack-ready.cm-stack-keyboard > section { position:relative; top:auto; }
 .cm-luxe-home.cm-stack-ready.cm-stack-keyboard > .full-hero.cm-agency-hero { position:relative; top:auto; }
}


/* End of the homepage: a dedicated contact invitation before the normal footer. */
.cm-luxe-home > .cm-home-project-cta {
 position:relative; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);
 align-items:center; gap:clamp(28px,6vw,90px); min-height:0;
 padding:clamp(54px,6vw,92px) max(5vw,24px); overflow:hidden;
 background:#F4F1EA; color:#0E0E10;
}
.cm-project-cta-copy { min-width:0; }
.cm-luxe-home .cm-project-cta-label { margin:0 0 18px; color:#54564C; font-size:11px; font-weight:650; line-height:1.4; letter-spacing:.14em; }
.cm-luxe-home .cm-project-cta-copy h2 { margin:0; font-size:clamp(40px,5.2vw,78px); font-weight:550; line-height:1.055; letter-spacing:-.055em; color:#0E0E10; }
.cm-luxe-home .cm-project-cta-copy h2 em { display:inline-block; margin-top:6px; font-family:Georgia,'Times New Roman',serif; font-weight:400; font-style:italic; color:#405218; letter-spacing:-.045em; }
.cm-luxe-home .cm-project-cta-intro { margin:19px 0 0; max-width:440px; font-size:clamp(15px,1.35vw,19px); color:#454843; line-height:1.55; }


.cm-project-cta-art { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; }
.cm-project-cta-art svg { display:block; width:min(100%,320px); height:auto; }
body:has(.cm-home-project-cta) footer .footer-grid { margin-top:0; }
@media(max-width:700px) and (orientation:portrait) {
 .cm-luxe-home > .cm-home-project-cta {
  min-height:var(--cm-panel-min); display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  gap:clamp(22px,4svh,36px); padding:clamp(28px,5svh,48px) 22px var(--cm-dock-safe,90px);
 }
 .cm-luxe-home .cm-project-cta-label { font-size:10px; margin-bottom:14px; }
 .cm-luxe-home .cm-project-cta-copy h2 { font-size:clamp(39px,10.5vw,55px); line-height:1.06; }
 .cm-luxe-home .cm-project-cta-intro { font-size:15px; margin:16px 0 0; }

 .cm-project-cta-art { width:clamp(160px,52vw,240px); align-self:flex-end; }
}
/* The footer behaves as the next layer of the stack: it immediately slides over the
 * last sticky invitation. Overlap the in-flow spacer, so there is no dead scroll.
 * Normal flow is retained for keyboard navigation, reduced motion and desktop. */
@media(max-width:700px) and (orientation:portrait) and (prefers-reduced-motion:no-preference) {
 .cm-luxe-home.cm-stack-ready > .cm-home-project-cta { z-index:5; }
 .cm-luxe-home.cm-stack-ready:not(.cm-stack-keyboard)::after {
  content:""; display:block; height:100svh; background:#F4F1EA; pointer-events:none;
 }
 .cm-luxe-home.cm-stack-ready:not(.cm-stack-keyboard) + footer {
  position:relative; z-index:6; margin-top:-100svh;
 }
}
@media(max-width:700px) and (orientation:landscape) {
 .cm-luxe-home > .cm-home-project-cta { padding:34px 22px; }
}
