/* Hero-only layout; shared header and IBM Plex typography come from the protected reference styles. */
.waukesha-hero {
  --hero-inset: clamp(36px,5.5vw,104px);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  padding: 108px var(--hero-inset) 88px;
  color: var(--ink);
}
.waukesha-scene { position:absolute; inset:0; width:100%;height:100%;object-fit:cover;object-position:right center;z-index:-2; }
.waukesha-hero::before { content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f4f7f5ed 0%,#f4f7f5b0 24%,#f4f7f52b 39%,transparent 49%); }
.waukesha-logo { display:block;width:clamp(185px,16vw,260px);height:auto;margin:0 0 15px; }
.waukesha-copy { width:min(35vw,515px,calc(100vw - 101.2svh - var(--hero-inset) - 24px)); }
.waukesha-intro { font-size:clamp(16px,1.2vw,20px);line-height:1.65;margin:0; }
.waukesha-categories { list-style:none;margin:22px 0 0;padding:0;border-top:1px solid #172c3d30;scroll-margin-top:104px; }
.waukesha-categories:focus { outline:none; }
.waukesha-categories li { display:grid;grid-template-columns:26px minmax(0,1fr) 20px;align-items:center;gap:10px;min-height:43px;padding:7px 0;border-bottom:1px solid #172c3d25;font-size:clamp(16px,1.25vw,21px);line-height:1.4; }
.waukesha-categories .category-number { font-size:12px; }
.waukesha-categories li>span:last-child { justify-self:end;color:#526371; }
.waukesha-cue { position:absolute;bottom:26px;left:var(--hero-inset);display:inline-flex;align-items:center;min-height:44px;gap:20px;font-size:16px;text-shadow:0 1px 4px #fff; }
.waukesha-cue > [aria-hidden=true] {font-size:26px;line-height:1;}
.waukesha-cue:hover {text-decoration:underline;text-underline-offset:4px;}
.page-header :focus-visible,.popup-menu :focus-visible,.waukesha-cue:focus-visible {outline:2px solid #526a98;outline-offset:3px;}
.popup-menu :focus-visible {outline-color:#c3d9ff;}
@media (min-width:1101px) and (max-height:800px) {
  .waukesha-hero {padding-top:94px;padding-bottom:68px;}
  .waukesha-logo {width:190px;margin-bottom:10px;}
  .waukesha-categories {margin-top:16px;}
  .waukesha-categories li {min-height:39px;padding-block:5px;}
  .waukesha-cue {bottom:16px;}
}
@media (max-width:1100px) {
  .page-header {position:relative;inset:auto;}
  .waukesha-hero { --hero-inset:clamp(20px,4vw,44px);display:block;min-height:0;padding:20px 0 32px; }
  .waukesha-hero::before {display:none;}
  .waukesha-logo {width:min(215px,60%);margin:0 var(--hero-inset) 18px;}
  .waukesha-scene {position:static;display:block;width:100%;height:auto;object-fit:contain;}
  .waukesha-copy {width:auto;margin:24px var(--hero-inset) 0;}
  .waukesha-intro {max-width:66ch;}
  .waukesha-categories {scroll-margin-top:12px;}
  .waukesha-categories li {min-height:46px;}
  .waukesha-cue {position:static;margin:14px var(--hero-inset) 0;}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}


/* Keep language controls reachable while reading the stacked Hero. */
@media (max-width:1100px) {
  .page-header { position:sticky; top:0; background:#f4f7f5; }
  .waukesha-categories { scroll-margin-top:calc(var(--header) + 12px); }
}
.page-languages a,.popup-menu .popup-languages a { min-width:44px; min-height:44px; display:grid; place-items:center; }
.page-languages a[aria-current="page"],.popup-menu .popup-languages a[aria-current="page"] { text-decoration:underline; text-underline-offset:5px; }
@media (max-width:480px) {
  .header-tools .page-languages { gap:0; }
}
@media (max-width:350px) {
  .flymar-wordmark { width:80px; }
  .header-tools { gap:2px; }
  .universal-contact { padding-inline:5px; }
}

/* Keep the shared geometry and font metrics independent of the visible locale.
   Both translations size the same track; only the active text is painted. */
html[lang] { font-family:'IBM Plex Sans',sans-serif; }
.locale-slot { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; }
.locale-slot > .locale-text { grid-area:1 / 1; }
.locale-text[lang=th] { font-family:'IBM Plex Sans Thai','IBM Plex Sans',sans-serif; }
html[lang=en] .locale-text[lang=th],
html[lang=th] .locale-text[lang=en] { visibility:hidden; }
#header-contact .locale-slot { justify-items:center; }
html[lang] #studio-menu-panel.popup-menu .popup-navigation .popup-link { font-size:1rem; line-height:1.18; letter-spacing:normal; }
#studio-menu-panel .popup-link__text .locale-text[lang=en] { font-size:calc(clamp(30px,4.35vw,76px) - 5px); letter-spacing:-.025em; }
#studio-menu-panel .popup-link__text .locale-text[lang=th] { font-size:calc(clamp(28px,3.9vw,68px) - 5px); line-height:1.45; letter-spacing:0; }
@media(max-width:1024px) {
 #studio-menu-panel .popup-link__text .locale-text[lang=en] {font-size:calc(clamp(30px,5vw,48px) - 5px);}
 #studio-menu-panel .popup-link__text .locale-text[lang=th] {font-size:calc(clamp(28px,4.8vw,46px) - 5px);}
}
@media(max-width:600px) {
 #studio-menu-panel .popup-link__text .locale-text[lang=en] {font-size:calc(clamp(27px,7.7vw,38px) - 5px);line-height:1.24;}
 #studio-menu-panel .popup-link__text .locale-text[lang=th] {font-size:calc(clamp(24px,6.8vw,32px) - 5px);line-height:1.5;}
}
@media(max-height:700px) and (min-width:601px) {
 #studio-menu-panel .popup-navigation .popup-link {padding-block:10px;}
 #studio-menu-panel .popup-link__text .locale-text[lang=en] {font-size:calc(clamp(28px,3.7vw,48px) - 5px);}
 #studio-menu-panel .popup-link__text .locale-text[lang=th] {font-size:calc(clamp(26px,3.5vw,42px) - 5px);}
}

/* The brand lockup leads the desktop stack. Limit it to the clear space
   before the pump, independently of the narrower reading column. */
.waukesha-logo { position:relative; aspect-ratio:3 / 1; flex:none; }
.waukesha-logo img { display:block; width:100%; height:auto; }
@media (min-width:1101px) {
  .waukesha-hero { justify-content:flex-start; padding-top:clamp(104px,8.4svh,132px); }
  .waukesha-logo {
    width:min(510px,32vw,calc(100vw - 101.2svh - var(--hero-inset) - 26px));
    margin-bottom:12px;
  }
}
@media (max-width:1100px) {
  /* Use the original stacked logo slot so the photograph starts in the same place. */
  .waukesha-logo img {
    position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:min(380px,calc(100vw - 2 * var(--hero-inset))); max-width:none;
  }
}

/* Candidate 021: preserve a photographic desktop Hero at tall window ratios.
   Bound the scene height, then calculate the reading area from that scene,
   rather than letting viewport height erase the clear space left of the pump. */
@media (min-width:1101px) {
 .waukesha-hero {
  --hero-scene-height:min(100svh,max(780px,56.28vw));
  min-height:var(--hero-scene-height);
  padding-top:104px;
 }
 .waukesha-copy {
  width:min(35vw,515px,calc(36vw - var(--hero-inset)),calc(100vw - 1.012 * var(--hero-scene-height) - var(--hero-inset) - 24px));
 }
 .waukesha-logo {
  width:min(510px,32vw,calc(100vw - 1.012 * var(--hero-scene-height) - var(--hero-inset) - 26px));
 }
}

/* Only the visible Hero introduction sizes its bilingual slot. */
html[lang="en"] .waukesha-intro .locale-text[lang="th"],
html[lang="th"] .waukesha-intro .locale-text[lang="en"] {display:none;}

/* Tablet: keep the pump within the original frame and place the reading area over the factory. */
@media (min-width:601px) and (max-width:1100px) {
 .waukesha-hero {
  --hero-inset:clamp(22px,3.5vw,42px);
  --tablet-copy-width:min(33vw,355px);
  display:flex;
  justify-content:flex-start;
  min-height:clamp(620px,calc(100svh - var(--header)),790px);
  padding:clamp(32px,5vh,52px) var(--hero-inset) 34px;
  overflow:clip;
  background:linear-gradient(#b2bdc1,#c6cecf);
 }
 .waukesha-scene {
  position:absolute;inset:50% 0 auto auto;width:106%;height:auto;
  transform:translateY(-50%);object-fit:contain;
  mask-image:linear-gradient(transparent,#000 5%,#000 95%,transparent);
 }
 .waukesha-hero::before {
  display:block;
 }
 .waukesha-logo {width:var(--tablet-copy-width);margin:0 0 12px;}
 .waukesha-logo img {position:static;width:100%;transform:none;}
 .waukesha-copy {width:var(--tablet-copy-width);margin:0;}
 .waukesha-categories {margin-top:22px;}
 .waukesha-cue {position:static;margin:16px 0 0;max-width:var(--tablet-copy-width);}
}

/* Use the reference rhythm without changing the brand artwork or gallery. */
.waukesha-categories li {line-height:1.45;}
@media (min-width:1101px) and (min-height:801px) {
 .waukesha-categories {margin-top:26px;}
}
@media (min-width:601px) and (max-width:1100px) {
 .waukesha-categories {margin-top:26px;}
}
@media (max-width:600px) {
 .waukesha-intro {line-height:1.75;}
 .waukesha-categories {margin-top:24px;}
 .waukesha-categories li {min-height:54px;grid-template-columns:25px minmax(0,1fr) 20px;gap:12px;}
}

/* Retain the original reading width on short desktops so the Thai line count
   cannot increase the Hero height and change the approved photo crop. */
@media (min-width:1101px) and (max-height:800px) {
 .waukesha-copy {width:min(35vw,515px,calc(100vw - 1.012 * var(--hero-scene-height) - var(--hero-inset) - 24px));}
}

/* Keep narrow tablets content-sized; do not add blank height to fill the screen. */
@media (min-width:601px) and (max-width:850px) {
 .waukesha-hero {min-height:0;}
}


/* Keep icons and keyboard focus visible on the photographic Hero. */
@media (min-width:601px) {
 .waukesha-categories li > span:last-child {color:#0a1823;}
 .waukesha-categories .pd-hero-link:focus-visible,
 .waukesha-cue:focus-visible {
  outline:2px solid #0a1823;
  outline-offset:3px;
  box-shadow:0 0 0 6px #f4f7f5;
 }
}

/* Keep the selected image proportional. The narrowest tablet retains the complete frame. */
@media (min-width:768px) and (max-width:1100px) {
 .waukesha-scene {inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:45% center;mask-image:none;}
}
@media (min-width:768px) and (max-width:850px) {
 .waukesha-scene {object-position:69.5% center;}
}
/* Taller mid-width tablets need more left-side factory crop than landscape tablets. */
@media (min-width:851px) and (max-width:970px) and (max-aspect-ratio:6/5) {
 .waukesha-scene {object-position:72% center;}
}
@media (min-width:971px) and (max-width:1100px) and (max-aspect-ratio:6/5) {
 .waukesha-scene {object-position:62% center;}
}

/* Match Flygt's stacked phone image ratio with framing for this pump and platform. */
@media (max-width:600px) {
 .waukesha-scene {aspect-ratio:1.08;object-fit:cover;object-position:91.5% center;}
}

/* One continuous cover image with the reference wash. */
@media (min-width:601px) {
 .waukesha-hero {background:none;--hero-header-overlap:88px;}
 .waukesha-scene {z-index:-3;}
}
@media (min-width:601px) and (max-width:1024px) {
 .waukesha-hero {--hero-header-overlap:76px;}
}
/* Use Flygt's viewport canvas on landscape tablets and regular desktops.
   Keep the existing header in place above the photograph. */
@media (min-width:1101px) and (min-height:801px) {
 .waukesha-hero {min-height:100svh;}
}
@media (min-width:851px) and (max-width:1100px) and (min-aspect-ratio:6/5) {
 .waukesha-hero {
  margin-top:calc(-1 * var(--hero-header-overlap));
  padding-top:calc(var(--hero-header-overlap) + clamp(32px,5vh,52px));
  min-height:100svh;
 }
}
/* On narrow portrait tablets, the whole pump needs a compact reading track.
   Keep the entire equipment in frame; the platform can run out of frame. */
@media (min-width:768px) and (max-width:850px) and (min-height:950px) and (max-height:1060px) {
 .waukesha-hero {
  margin-top:calc(-1 * var(--hero-header-overlap));
  padding-top:calc(var(--hero-header-overlap) + clamp(32px,5vh,52px));
  min-height:100svh;--tablet-copy-width:clamp(135px,calc(20vw - max(0px,(100svh - 1024px)*.4)),170px);
 }
 .waukesha-logo {width:250px;}
 .waukesha-scene {object-position:74.1% center;}
 .waukesha-categories li {grid-template-columns:18px minmax(0,1fr) 13px;gap:6px;}
}
/* Just above the stacked-phone breakpoint, fit the text and keep both
   connections visible instead of extending the canvas with a matte. */
@media (min-width:601px) and (max-width:767px) {
 .waukesha-hero {--tablet-copy-width:clamp(150px,25vw,188px);padding-block:20px 19px;}
 .waukesha-logo {width:180px;margin-bottom:8px;}
 .waukesha-intro {line-height:1.6;}
 .waukesha-categories {margin-top:16px;}
 .waukesha-categories li {min-height:44px;padding-block:4px;line-height:1.3;grid-template-columns:17px minmax(0,1fr) 13px;gap:6px;}
 .waukesha-cue {margin-top:10px;line-height:1.3;}
 .waukesha-scene {inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:72.4% center;mask-image:none;}
}

/* Bring the original scene forward without moving the editorial layer. */
@media (min-width:1101px) and (max-aspect-ratio:8/3) {
 .waukesha-hero {overflow:clip;}
 .waukesha-scene {scale:1.05;transform-origin:50% 50%;}
}
@media (min-width:1024px) and (max-width:1100px) and (min-aspect-ratio:6/5) {
 .waukesha-scene {scale:1.03;transform-origin:85% 50%;}
}

/* Artwork II has a wider pump envelope at native scale. */
.waukesha-scene {scale:none;}
@media (min-width:1101px) {
 .waukesha-scene {object-position:80% center;}
}
@media (min-width:851px) and (max-width:1100px) {
 .waukesha-scene {object-position:50% center;}
}
/* Use the same stacked order as phone where the full-width crop and copy
   cannot coexist. Leave the logo artwork and gallery intact. */
@media (min-width:601px) and (max-width:767px) {
 .waukesha-hero {display:block;min-height:0;padding:20px 0 32px;}
 .waukesha-hero::before {display:none;}
 .waukesha-logo {width:min(215px,60%);margin:0 var(--hero-inset) 18px;}
 .waukesha-scene {position:static;width:100%;height:auto;aspect-ratio:1.08;}
 .waukesha-copy {width:auto;margin:24px var(--hero-inset) 0;}
 .waukesha-intro {line-height:1.75;}
 .waukesha-categories {margin-top:24px;}
 .waukesha-categories li {min-height:54px;grid-template-columns:25px minmax(0,1fr) 20px;gap:12px;line-height:1.45;}
 .waukesha-cue {margin:14px var(--hero-inset) 0;max-width:none;line-height:inherit;}
}
@media (max-width:767px) {
 .waukesha-scene {object-position:88% center;}
}
/* At portrait tablet sizes this cover height keeps both ports in frame
   with room for the reading column. The full-height trial is review-only. */
@media (min-width:768px) and (max-width:970px) and (max-aspect-ratio:6/5) {
 .waukesha-hero {
  margin-top:calc(-1 * var(--hero-header-overlap));
  padding-top:calc(var(--hero-header-overlap) + 16px);
  padding-bottom:12px;
  min-height:min(100svh,106vw);
  --tablet-copy-width:20vw;
 }
 .waukesha-scene {object-position:66.1% center;}
 .waukesha-logo {width:210px;margin-bottom:8px;}
 .waukesha-intro {line-height:1.5;}
 .waukesha-categories {margin-top:16px;}
 .waukesha-categories li {min-height:44px;padding-block:4px;line-height:1.3;grid-template-columns:18px minmax(0,1fr) 13px;gap:6px;}
 .waukesha-cue {margin-top:9px;line-height:1.3;}
}
@media (min-width:1800px) and (min-aspect-ratio:8/3) {
 .waukesha-scene {object-position:80% 42%;}
}

/* Candidate 107: optical logo and editorial rhythm, without altering the art. */
@media (min-width:1101px) and (min-height:801px) {
 .waukesha-logo {
  width:min(550px,35vw,calc(100vw - 1.012 * var(--hero-scene-height) - var(--hero-inset) - 26px));
  margin-bottom:16px;
 }
 .waukesha-intro {font-size:clamp(18px,1.39vw,20px);}
 .waukesha-categories li {min-height:50px;}
}
@media (min-width:971px) and (max-width:1100px) {
 .waukesha-logo {width:min(36vw,385px);margin-bottom:16px;}
 .waukesha-categories li {min-height:49px;}
}
@media (min-width:768px) and (max-width:970px) and (max-aspect-ratio:6/5) {
 .waukesha-logo {width:218px;margin-bottom:12px;}
 .waukesha-cue {margin-top:auto;margin-bottom:6px;}
}
@media (max-width:767px) {
 .waukesha-logo img {position:absolute;left:-8px;top:50%;transform:translateY(-50%);width:min(328px,calc(100vw - 48px));max-width:none;}
}
/* Keep the photograph continuous at the top. Put the contrast backing
   behind individual controls, rather than across the header. */
@media (min-width:768px) {
 body:not(.scrolled) > .page-header {background:transparent;}
 body:not(.scrolled) > .page-header .page-languages,
 body:not(.scrolled) > .page-header #menu-open {background:#f4f7f5db;border-radius:24px;}
 .page-header .page-languages a,.page-header .page-languages > span {color:#172c3d;opacity:1;}
 .page-header #menu-open span {background-color:#172c3d;}
 .page-header :focus-visible {outline:2px solid #172c3d;outline-offset:1px;box-shadow:0 0 0 5px #f4f7f5;}
}

/* Exclude inactive translations from the Hero grid, not just from paint. */
html[lang="en"] #hero .locale-text[lang="th"],
html[lang="th"] #hero .locale-text[lang="en"] {display:none;}
body > .page-header .page-languages a:focus-visible {
 outline:2px solid #172c3d;outline-offset:1px;box-shadow:0 0 0 5px #f4f7f5;
}

/* Keep the sixth Hero indicator readable without changing the photo wash. */
.waukesha-categories [data-reading="category-6"] > span:last-child {
 background-color:var(--mixing-indicator-pearl, transparent);
 border-radius:3px;
 box-shadow:var(--mixing-indicator-halo, none);
}
@media (min-width:1101px) and (max-width:1799px) and (max-height:800px) {
 .waukesha-hero {
  --mixing-indicator-pearl:#f4f7f557;
  --mixing-indicator-halo:0 0 0 1px var(--mixing-indicator-pearl);
 }
}
@media (min-width:1101px) and (max-width:1799px) and (min-height:801px) {
 html[lang="th"] .waukesha-hero {
  --mixing-indicator-pearl:#f4f7f53d;
  --mixing-indicator-halo:0 0 0 1px var(--mixing-indicator-pearl);
 }
}
@media (min-width:1025px) and (max-width:1100px) and (min-aspect-ratio:6/5) {
 html[lang="en"] .waukesha-hero {--mixing-indicator-pearl:#f4f7f53d;}
}

/* The platform rim runs behind the Thai Filters & Strainers indicator
   in the shorter, wide-tablet composition. Keep the backing local. */
@media (min-width:1025px) and (max-width:1100px) and (max-height:799px) and (min-aspect-ratio:6/5) {
 html[lang="th"] .waukesha-categories [data-reading="category-5"] > span:last-child {
  background-color:#f4f7f538;
  border-radius:3px;
  box-shadow:0 0 0 1px #f4f7f538;
 }
}
/* At taller neighboring English tablet sizes the sixth glyph extends
   beyond its existing fill. Keep the fill and protect that edge. */
@media (min-width:1025px) and (max-width:1099px) and (min-height:791px) and (min-aspect-ratio:6/5) {
 html[lang="en"] .waukesha-categories [data-reading="category-6"] > span:last-child {
  border-radius:2px;
  --mixing-indicator-halo:0 0 0 1px var(--mixing-indicator-pearl);
 }
}

/* Preview 022: new blue showcase has a wider, leftward equipment silhouette. */
@media (max-width:767px) {
 .waukesha-scene {object-position:70% center;}
}
@media (min-width:1101px) {
 .waukesha-scene {object-position:left center;}
 .waukesha-copy {max-width:calc(32vw - var(--hero-inset) - 14px);}
}
@media (min-width:768px) and (max-width:1100px) {
 .waukesha-hero {display:block;min-height:0;margin-top:0;padding:20px 0 32px;background:#f4f7f5;}
 .waukesha-hero::before {display:none;}
 .waukesha-logo {width:min(340px,60%);margin:0 var(--hero-inset) 18px;}
 .waukesha-scene {position:static;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center;transform:none;scale:none;mask-image:none;}
 .waukesha-copy {width:auto;max-width:none;margin:24px var(--hero-inset) 0;}
 .waukesha-intro {max-width:66ch;line-height:1.75;}
 .waukesha-categories {margin-top:24px;}
 .waukesha-categories li {min-height:54px;grid-template-columns:25px minmax(0,1fr) 20px;gap:12px;line-height:1.45;}
 .waukesha-cue {position:static;margin:14px var(--hero-inset) 0;max-width:none;line-height:inherit;}
}

/* Preview 022: compact, symmetric header language switcher. */
body > .page-header .header-tools .page-languages {
 display:flex;align-items:center;justify-content:center;gap:2px;
 padding-inline:4px;flex-shrink:0;
}
body > .page-header .header-tools .page-languages > a {
 display:grid;place-items:center;flex:0 0 30px;width:30px;min-width:30px;min-height:44px;
 padding:0;margin:0;
}
body > .page-header .header-tools .page-languages > span {
 flex:none;margin:0;text-align:center;
}
