/* v63 (W01): Codex website-fluid-followup.css (sha256 6e9175b4ca29...c1e5) with ONE mechanical change: every selector is
   prefixed with html body. The composed motion pages scope their own CSS as #page ... and print it inline later in the
   page, so at equal specificity they win over a <head>-enqueued stylesheet (the walkthrough canvas was pushed half
   off its stage). The prefix outranks them by specificity, independent of load order. Values unchanged; removing
   the prefix reproduces Codex's file byte for byte (checked when this file was generated). */
/* Local follow-up: preserve the existing content, colors and video treatment.
   The composed motion preview still carried a fixed 570px film card floor.
   Let its footprint follow available width and grow naturally for its copy. */
html body #page .sq-clean-tour .sq-girl-journey {
  min-height: clamp(340px, 32vw, 540px);
  height: auto;
}
html body #page .sq-clean-tour .sq-girl-copy {
  box-sizing: border-box;
  width: min(100%, 570px);
  padding: clamp(24px, 3vw, 42px);
  min-width: 0;
}
@media (max-width: 600px) {
  html body #page .sq-clean-tour .sq-girl-journey { min-height: 0; }
  html body #page .sq-clean-tour .sq-girl-copy { min-height: 0; padding: 28px 22px; }
}

/* Audit FL-02: outer shells, not only their inner containers, retained 1290px
   caps. Service templates also use single-post rather than wp-page. Exclude
   slider cells and nested boxes: their widths belong to the carousel/layout. */
html body #page #content .e-con-boxed:not(.e-con-boxed .e-con-boxed):not([data-elementor-type="loop-item"] *):not(.swiper *):not(.owl-carousel *):not(.sq-influence-showcase *) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  padding-inline: var(--sq-site-gutter) !important;
  margin-inline: 0 !important;
}
html body #page #content .e-con-boxed:not(.e-con-boxed .e-con-boxed):not([data-elementor-type="loop-item"] *):not(.swiper *):not(.owl-carousel *):not(.sq-influence-showcase *) > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-inline: 0 !important;
}
html body #page .sq-project-invitation { width: 100%; max-width: none; box-sizing: border-box; }
html body #page :is(.sq-influence-intro,.sq-influence-showcase) {
  width: calc(100% - 2 * var(--sq-site-gutter));
  max-width: none;
  margin-inline: auto;
  box-sizing: border-box;
}

/* FL-03: the expanded walkthrough must not turn its canvas into a tall poster.
   Copy remains content-sized; no fixed heights or clipping on text containers. */
html body #page .sqw-scene { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); }
html body #page .sqw-art { --sq-art-height: clamp(260px,26vw,400px); aspect-ratio: auto; min-height: var(--sq-art-height); }
/* The animation draws in a 520x360 coordinate system using width-based scale.
   Keep that ratio inside the bounded stage instead of cropping its lower edge. */
html body #page .sqw-art canvas {
  width: min(100%,calc(var(--sq-art-height) * 13 / 9));
  height: auto;
  aspect-ratio: 13 / 9;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
}
html body #page :is(.sqw-intro,.sqw-top,.sqw-bottom) { flex-wrap: wrap; }
html body #page .sqw-top > span { min-width: 0; }
html body #page .sqw-top-right { margin-left: auto; }
html body #page .sqw-status { white-space: normal; }

/* FL-04: a service's landscape video keeps a bounded visual footprint while
   its surrounding column can expand. This does not affect library/model media. */
html body.single-services #page #content .the7-image-wrapper:has(.sq-media-accent),
html body.single-services #page #content .post-thumbnail-rollover:has(> .sq-media-accent),
html body.single-services #page #content .sq-media-accent {
  aspect-ratio: 3 / 2;
  max-height: 540px;
  height: auto !important;
  width: 100%;
}
html body.single-services #page #content .sq-media-accent > :is(video,img) {
  width: 100%; height: 100%; object-fit: cover;
}
html body.single-services #page #content .elementor-widget-the7-image-widget:has(.sq-media-accent) { min-height: 0 !important; }
html body #page .sqmc-influence .sq-influence-art { max-height: 500px; }

/* FL-06: wide page shells must not enlarge portrait reels into 1200px posters.
   Keep the existing three-slide carousel, and constrain its media presentation.
   The SMM rail can naturally fit more bounded cards instead of scaling four up. */
html body #page .sq-influence-showcase > .elementor { width: 100%; max-width: 1440px; margin-inline: auto; }
html body #page .sq-client-work { padding-inline: var(--sq-site-gutter); box-sizing: border-box; }
html body #page .sq-client-work .sq-reel { flex-basis: min(84%,360px); max-width: 360px; }

/* The service-card drawing also uses width-based virtual coordinates. */
html body #page .sqs-art { --sq-service-art-height: clamp(100px,14vw,240px); height: var(--sq-service-art-height); aspect-ratio: auto; }
html body #page .sqs-art canvas { width: min(100%,calc(var(--sq-service-art-height) * 25 / 8)); height: auto; aspect-ratio: 25 / 8; inset: 50% auto auto 50%; transform: translate(-50%,-50%); }
html body #page .sqs-card > a { margin-top: auto; }

@media (max-width: 820px) {
  html body #page .sqw-scene { grid-template-columns: minmax(0,1fr); }
  html body #page .sqw-art { --sq-art-height: clamp(220px,50vw,320px); }
}
@media (max-width: 600px) {
  html body #page .sqw-top { gap: 6px 12px; }
  html body #page .sqw-top-right { margin-left: 0; }
  html body #page .sq-influence-intro { padding-inline: 0; }
}
