/* V28-R1 hero-logo styles — Codex review V28-01 fix: restore the logo's
 * VISIBLE size. V28 sized the raw 407x367 canvas (110/122/52px) whose mark is
 * only ~67% of that width; R1 sizes the alpha-trimmed crop (logo-trimmed.png,
 * 272x181) at 111px so the visible mark is exactly the pre-V28 baseline width
 * (~111px) on both desktop and mobile. Brand colours/wordmark come from the
 * same source file (only transparent padding removed, verified against
 * logo-original.png); the source file itself is untouched.
 *
 * Layout rules (all carried over from V28, unchanged where possible):
 *   - the white top bar stays removed (node removed in v28-ui.js), no 90px
 *     placeholder, no white backing plate: the transparent logo sits directly
 *     on the artwork's top-left whitespace;
 *   - Contact keeps its approved white bar (styles scoped to .v28-hero =
 *     home/products/custom/factory only);
 *   - the two theme-green solid buttons are untouched (v28-ui.js).
 *
 * Copy-group placement:
 *   - desktop (>=800px): copy stays in the left band, starting below the logo
 *     zone (padding-top 122px / 134px >=1180px; logo bottom is ~90px so the
 *     clearance is kept);
 *   - mobile (<800px): measured per artwork, the gap between a full-size logo
 *     (bottom ~84px) and the products/subject (centered text band starts at
 *     39.0-48% of the image height = ~114-187px at 390w) fits neither
 *     title+description (~95px, Home/factory) nor leaves honest clearance.
 *     Per the user's explicit rule ("if space is not enough move the WHOLE
 *     copy group down; never shrink the logo to avoid overlap") the entire
 *     overlay copy group moves BELOW the image in normal flow on all four
 *     pages: title/eyebrow/description under the picture, CTA buttons stay
 *     where they already were on phones (below the image). Nothing overlaps
 *     the logo, the products or the building, and no copy is dropped.
 */

/* ---------- the in-hero logo: transparent TRIMMED png, artwork shows through.
 * The img box IS the visible mark (alpha-tight crop), so the box measured in
 * evidence is the real visible logo boundary, not canvas padding. ---------- */
.v28-hero-logo{position:absolute;top:16px;left:4%;z-index:3;display:block;background:transparent;border:0}
.v28-hero-logo img{display:block;width:111px;height:auto;background:transparent}

/* ---------- desktop: copy centers in the space BELOW the logo zone ---------- */
@media(min-width:800px){
  .v28-hero .v26-copy,
  .v28-hero .v25-slide.v26-slide .v26-copy{
    top:0;bottom:0;height:auto;transform:none;
    display:flex;flex-direction:column;justify-content:center;
    padding-top:122px}
}
@media(min-width:1180px){
  .v28-hero .v26-copy,
  .v28-hero .v25-slide.v26-slide .v26-copy{padding-top:134px}
}

/* ---------- mobile: full-size logo on the artwork; the WHOLE copy group
 * moves below the image in normal flow (user rule, supersedes the V28
 * padding-top approach that paired with a shrunken logo) ---------- */
@media(max-width:799px){
  .v28-hero-logo{top:10px}
  .v28-hero .v26-copy,
  .v28-hero .v25-slide.v26-slide .v26-copy{
    position:static;padding:12px 20px 0;text-align:center;align-items:center}
}

/* ---------- R2: reserve the Home slide image box BEFORE download ----------
 * Codex V28-R1-01: on phones, switching to a not-yet-downloaded slide
 * collapsed the carousel (img height 0; 360w: 606->261->606). Root cause:
 * the mobile slide img selector (.v25-slide.v26-slide .v26-pic img) has no
 * aspect-ratio below 800px -- v26's aspect-ratio:1/1 rule only matches
 * .v26-hero (static products/custom/factory), never the carousel slides.
 * The approved Home mobile artwork is exactly 1254x1254 (1:1), and the
 * >=800px rule already pins 1942/809, so declaring the same intrinsic ratio
 * here reserves the correct box while the request is pending, slow or
 * failed -- independent of cache, preload or decode. width:100% + height:
 * auto + this ratio gives height == width pre-load, i.e. the identical box
 * the loaded 1:1 image occupies (object-fit:cover unchanged); hidden slides
 * stay display:none (never in flow), single-painted-slide and Tab isolation
 * are untouched. R2b: the ratio is declared on the PICTURE box as well --
 * Chrome drops the CSS aspect-ratio for an img in the error (broken) state,
 * so the container itself must reserve the box for the abort/failure case;
 * the loaded layout is pixel-identical because the img fills the ratio box
 * with object-fit:cover. */
@media(max-width:799px){
  .v28-hero .v25-slide.v26-slide .v26-pic{aspect-ratio:1/1}
  .v25-slide.v26-slide .v26-pic img{aspect-ratio:1/1;display:block}
}
@media(min-width:800px){
  .v28-hero .v25-slide.v26-slide .v26-pic{aspect-ratio:1942/809}
  .v28-hero .v25-slide.v26-slide .v26-pic img{display:block}
}
/* very narrow phones: v26's <=389px font safe-area shrink still applies to the
 * flow copy; nothing else changes (copy is in normal flow, can never overflow
 * the artwork). */
