/* Keep language controls reachable while reading the stacked Hero. */
@media (max-width:1100px) {
  .page-header { position:sticky; top:0; background:#f4f7f5; }
}
.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);}
}


.mono-hero { --inset:clamp(36px,5.5vw,104px); position:relative; isolation:isolate; display:grid;
  grid-template-rows:1fr auto auto 1fr; justify-items:start; min-height:100svh;
  padding:108px var(--inset) 68px; background:var(--pearl); color:var(--ink); }
.mono-scene { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:right center; z-index:-2; }
.mono-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:
  linear-gradient(180deg,#f4f7f5ef 0%,#f4f7f500 125px),
  linear-gradient(90deg,#f4f7f5e6 0%,#f4f7f5ca 26%,#f4f7f599 39%,#f4f7f500 57%); }
/* Match the Flygt pattern: size the visible artwork, not the transparent canvas. */
.mono-brand { grid-row:2; position:relative; width:min(36vw,510px); aspect-ratio:588 / 99;
  overflow:hidden; margin:0 0 24px; }
.mono-brand img { position:absolute; display:block; width:110.884354%; height:auto; max-width:none;
  left:-6.462585%; top:-61.616162%; }
.mono-copy { grid-row:3; width:min(38vw,610px); }


.mono-copy p { margin:0; max-width:43ch; font-size:clamp(17px,1.35vw,22px); line-height:1.58; }
.page-header :focus-visible,.popup-menu :focus-visible { outline:2px solid var(--sapphire); outline-offset:3px; }
.popup-menu :focus-visible { outline-color:#c3d9ff; }
@media (min-width:1101px) and (min-aspect-ratio: 19/10) {
  .mono-hero { min-height:max(100svh,calc(100vw * 941 / 1672)); }
}
@media (max-width:1100px) {
  .mono-hero { --inset:clamp(24px,5.5vw,56px); display:block; min-height:0; padding:22px 0 44px; }
  .mono-hero::before { display:none; }
  .mono-brand { width:min(calc(100% - 2 * var(--inset)),306px); margin:0 var(--inset) 18px; }
  .mono-scene { position:static; display:block; width:100%; height:auto; object-fit:contain; }
  .mono-copy { width:auto; margin:25px var(--inset) 0; }

  .mono-copy p { font-size:clamp(16px,2.3vw,20px); }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Desktop editorial alignment follows the approved Flygt upper reading band. */
@media (min-width:1101px) {
  .mono-hero { grid-template-rows:auto auto 1fr; padding-top:clamp(112px,13.8svh,150px); }
  .mono-brand { grid-row:1; margin-bottom:22px; }
  .mono-copy { grid-row:2; width:min(37vw,610px); }

}

/* Preview 023: shift the existing hero artwork as one unit to the right.
   The existing pearl background and a soft left-edge mask conceal the exposed edge. */
@media (min-width:1101px) {
 .mono-hero {overflow:clip;}
 .mono-scene {
  transform:translateX(calc(max(13.5vw,24svh) - 3px));
  mask-image:linear-gradient(90deg,transparent 0%,#000 8%);
 }
}
