/* Phone-only changes. Desktop composition and interactions remain canonical. */
.mobile-menu-toggle,.mobile-design-actions,.mobile-team-image { display:none; }
.mobile-navigation:not(:popover-open) { display:none; }
.mobile-navigation:popover-open { display:block; }
.mobile-navigation {
  position:fixed;inset:var(--mobile-menu-top,62px) 8px auto auto;
  margin:0;padding:10px;width:min(300px,calc(100vw - 16px));
  max-height:calc(100dvh - var(--mobile-menu-top,62px) - 12px);overflow:auto;
  border:0;background:var(--gold);color:var(--text);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
  isolation:isolate;
}
.mobile-navigation::before {
  content:"";position:absolute;inset:1px;z-index:-1;background:var(--header-bg);
  clip-path:polygon(11.4px 0,calc(100% - 11.4px) 0,100% 11.4px,100% calc(100% - 11.4px),calc(100% - 11.4px) 100%,11.4px 100%,0 calc(100% - 11.4px),0 11.4px);
}
.mobile-navigation a { display:block;padding:12px 14px;color:var(--text);font-size:15px;text-decoration:none; }
.mobile-navigation a:hover,.mobile-navigation a[aria-current] { color:var(--gold2);background:color-mix(in srgb,var(--gold) 12%,transparent); }
.mobile-navigation::backdrop { background:transparent; }
@media (max-width:600px) {
  body header { max-width:calc(100% - 16px); }
  body header .wrap.nav { display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-rows:auto;gap:7px;min-height:56px;padding:7px 10px; }
  body header .brand-row { grid-column:1;grid-row:1;min-width:0;gap:6px; }
  body header .logo { width:30px;height:30px;flex:0 0 30px; }
  body header .top-contacts { font-size:10px;white-space:nowrap;flex-direction:column;align-items:flex-start;gap:0;line-height:1.2; }
  body header :is(.top-email,nav) { display:none; }
  body header .top-location { display:block; }
  body header .theme-toggle { grid-column:2;grid-row:1;padding:3px;gap:0; }
  body header .theme-toggle span { width:23px;height:23px; }
  body header .theme-toggle svg { width:17px;height:17px; }
  body header .contact-trigger { grid-column:3;grid-row:1;width:34px;height:34px;min-width:0;flex-basis:34px; }
  body header .mobile-menu-toggle { display:grid;place-items:center;grid-column:4;grid-row:1;width:34px;height:34px;padding:6px;border:1px solid var(--gold);color:var(--gold2);background:transparent;cursor:pointer; }
  .mobile-menu-toggle svg { width:22px;height:22px; }
  .mobile-menu-toggle:focus-visible { outline:2px solid var(--gold2);outline-offset:2px; }
  body :is(.hero,.metal-hero) { display:block;min-height:0;padding:0;margin:0; }
  body .mobile-intro-source { display:none; }
  body :is(.metal-layout,.design-layout) { width:100%;margin-left:0;padding:0 0 32px; }
  body .design-unified-grid { grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:14px; }
  body .design-examples-grid { grid-template-columns:minmax(0,1fr); }
  .mobile-first-screen { display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:10px;padding:14px 12px 12px;position:relative;z-index:1;min-width:0; }
  .design-unified-grid>.mobile-first-screen,.design-unified-grid>.mobile-hero-details { grid-column:1/-1;grid-row:auto; }
  body .mobile-first-screen h1 { margin:0;font-family:'EDX3D Reference','Segoe UI',sans-serif;font-size:clamp(21px,5.45vw,32px);line-height:1.18;text-wrap:balance;overflow-wrap:normal; }
  body .mobile-first-screen h1 .hero-heading-line { max-width:100%;white-space:normal; }
  body .mobile-first-screen h1:not(.hero-heading) .hero-heading-line { padding-left:0; }
  body .mobile-first-screen>.hero-team-photo,
  body .mobile-first-screen>.metal-hero-photo,
  body .mobile-first-screen>.design-photo {
    position:relative;inset:auto;grid-column:1;grid-row:2;order:0;z-index:0;
    width:100%;height:var(--mobile-photo-height,220px);min-height:0;max-height:none;margin:0;
    aspect-ratio:auto;transform:none;clip-path:none;overflow:hidden;
    mask-image:linear-gradient(#000 94%,transparent);-webkit-mask-image:linear-gradient(#000 94%,transparent);
  }
  body .mobile-first-screen>.metal-hero-photo img,
  body .mobile-first-screen>.design-photo img,
  body .mobile-first-screen .mobile-team-image {
    display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;
    transform:none;mask-image:none;-webkit-mask-image:none;
  }
  body .mobile-first-screen .hero-photo-extension { display:none; }
  body .mobile-first-screen :is(.hero-intro-actions,.metal-actions) { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:0; }
  body .mobile-first-screen :is(.hero-intro-button,.metal-button) { display:flex;width:100%;min-width:0;min-height:44px;justify-content:center;gap:8px;padding:10px 8px;font-size:13px;white-space:nowrap;transform:none; }
  body .mobile-first-screen :is(.hero-intro-actions,.metal-actions):has(> a:only-child) { grid-template-columns:minmax(0,1fr); }
  body .mobile-first-screen .hero-intro-button img { width:17px;height:17px; }
  .mobile-hero-details { position:relative;z-index:1;padding:12px 12px 18px; }
  body .mobile-hero-details :is(.hero-description,.metal-subtitle,.design-description) { width:100%;max-width:none;margin:0;font-size:13px;line-height:1.55; }
  body .mobile-hero-details .hero-description-line { display:inline; }
  body .mobile-hero-details>.metal-button { display:flex;width:fit-content;min-width:150px;margin-top:14px; }
  .mobile-hero-details h2 { margin:20px 0 0;font-size:16px;color:var(--gold2); }
  body #capabilities { padding-top:0; }
  body #capabilities .wrap { width:100%;margin:0;padding:0; }
  body #capabilities .capability-row { width:100%;margin:0;padding:7px 0 0;scroll-padding-left:0; }
  body #capabilities .capability-row .capability { flex-basis:min(86vw,360px); }
  body :is(.metal-equipment-section,.welding-partners,.it-services) { width:100%;max-width:none;margin-left:0;padding-left:0;padding-right:0; }
  body .design-project { grid-column:auto;grid-row:auto; }
  body :is(.metalworking-page,.design-page) footer { width:100%;margin-left:0;padding-left:12px;padding-right:12px; }
}
