/* =============================================================================
   SXM mobile navigation (tablet + phone). The header bar goes fixed with a
   blurred "docked" state like the desktop bar; the toggle is the live site's
   rotating MENU ring with a plus that turns into a cross; the menu is a white
   full-screen inversion (the site's own hover language) with F37 primary
   items, the five services with mono indexes, the secondary row, and a foot
   with BOOK A CALL, phone, email, address and socials. All motion behind
   prefers-reduced-motion; no JS = the ring is a plain button and the menu is
   reachable via :target-free fallback (hidden attribute is only lifted by JS,
   so the Elementor CONTACT button and the footer menus remain the path).
   ========================================================================== */

/* ---------------------------------------------------- the bar, fixed + docked */
@media (max-width: 1024px){
  .sxm-mobile-header{
    position: fixed !important; top: 0; left: 0; right: 0; width: 100%;
    transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
  }
  body.sxm-mh-docked .sxm-mobile-header{
    background-color: rgba(3,3,3,.84) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 14px 34px -26px rgba(0,0,0,.9);
    padding-top: 10px !important; padding-bottom: 10px !important;
  }
  .sxm-mh-spacer{ display: block; width: 100%; flex: 0 0 auto; }
  .sxm-mobile-header .elementor-button{ border-radius: 999px !important; white-space: nowrap;
    font-size: 10px !important; padding: 8px 12px !important; letter-spacing: .1em !important; }
  /* the wordmark: 150/135 was small next to a 48px ring; clamp keeps the bar inside 360px */
  .sxm-mobile-header .elementor-widget-image img{ width: clamp(150px, 41vw, 200px) !important; max-width: none; height: auto; }
  .sxm-mobile-header{ padding-left: 18px !important; padding-right: 14px !important; }
}
@media (min-width: 1025px){
  .sxm-mh-spacer, .sxm-mobile-header button.sxm-mn-toggle{ display: none !important; }
  /* the overlay exists on desktop only where a desktop ring opens it (the homepage, body.sxm-mn-desk, §60) */
  body:not(.sxm-mn-desk) .sxm-mn{ display: none !important; }
}

/* ------------------------------------------------------------ the ring toggle */
button.sxm-mn-toggle{   /* (0,1,1): hello's [type=button]{display:inline-block;width:auto} is a (0,1,0) tie that loads later */
  position: relative; width: 43px; height: 43px; flex: 0 0 auto;   /* §69.1: 15% smaller (was 50) */
  border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  color: #fff; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent; border-radius: 50%;
}
/* hello-elementor's reset paints every bare button #c36 on hover/focus/active: restate the states */
button.sxm-mn-toggle:hover, button.sxm-mn-toggle:focus, button.sxm-mn-toggle:active,
.sxm-mn button.sxm-mn-toggle--close:hover, .sxm-mn button.sxm-mn-toggle--close:focus, .sxm-mn button.sxm-mn-toggle--close:active{
  background: none !important; border: 0 !important; box-shadow: none !important; color: inherit; outline: none;
}
button.sxm-mn-toggle{ color: #fff !important; }
.sxm-mn button.sxm-mn-toggle--close{ color: #000 !important; }
button.sxm-mn-toggle:focus-visible{ outline: 2px solid currentColor !important; outline-offset: 3px; }
.sxm-mn-ring{ position: absolute; inset: 0; animation: sxm-mn-spin 18s linear infinite; }
.sxm-mn-ring svg{ width: 100%; height: 100%; display: block; overflow: visible; }
.sxm-mn-ring text{
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700;   /* the live opener's face (Dave's version) */
  font-size: 19.2px; letter-spacing: 0; text-transform: uppercase; fill: currentColor;   /* SVG units in a 100 box: the caps end on the box edge */
}
/* the cross in the live opener's proportions: 36.5% of the ring across, bars 19.4% of that thick, square ends. Sized in %
   of the button so every ring (bar, header, docked, close) scales it the same way. */
.sxm-mn-plus{ position: relative; width: 36.5%; height: auto; aspect-ratio: 1; transition: transform .5s cubic-bezier(.16,.84,.44,1); }
.sxm-mn-plus i{ position: absolute; left: 0; top: 50%; width: 100%; height: 19.4%; margin-top: -9.7%; background: currentColor; border-radius: 0; }
.sxm-mn-plus i:last-child{ transform: rotate(90deg); }
button.sxm-mn-toggle[aria-expanded="true"] .sxm-mn-plus,
.sxm-mn button.sxm-mn-toggle--close .sxm-mn-plus{ transform: rotate(45deg); }
@keyframes sxm-mn-spin{ to{ transform: rotate(360deg); } }
/* §65: the cross turns against the words. It spins on the individual `rotate` property, so the open state's
   transform:rotate(45deg) (the ×) still composes with it; the overlay's close button spins the same way (Juan, 2026-09-24).
   Hover eases both to a stop (mobile-nav.js); without the script, CSS stops them outright. */
.sxm-mn-plus{ animation: sxm-mn-cross 8s linear infinite; }
@keyframes sxm-mn-cross{ from{ rotate: 0deg; } to{ rotate: -360deg; } }
@media (hover: hover){
  html:not(.sxm-mn-eased) button.sxm-mn-toggle:hover .sxm-mn-ring,
  html:not(.sxm-mn-eased) button.sxm-mn-toggle:hover .sxm-mn-plus{ animation-play-state: paused; }
}

/* ------------------------------------------------------------- the overlay */
.sxm-mn{
  --mx: calc(100% - 44px); --my: 44px;
  position: fixed; inset: 0; z-index: 100000;
  background: #fff; color: #000;
  display: flex; flex-direction: column;
  padding: 14px 20px max(26px, env(safe-area-inset-bottom));
  /* overflow-y:auto alone makes overflow-x compute to auto too: the panel became a SIDEWAYS scroll container
     and its bleeding watermark (8vw past the right edge) gave it 31px of horizontal scroll on a phone, so a
     swipe slid the whole menu (Vardges, 2026-09-21). Hidden on the x axis, and the watermark is clipped by
     its own wrapper below, so nothing inside can ever be wider than the panel. */
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  clip-path: circle(0px at var(--mx) var(--my));
  transition: clip-path .72s cubic-bezier(.7,0,.2,1);
}
.sxm-mn[hidden]{ display: none; }
.sxm-mn.is-open{ clip-path: circle(170% at var(--mx) var(--my)); }
.sxm-mn > *{ position: relative; z-index: 1; }
.sxm-mn .sxm-mn-top{ display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.sxm-mn .sxm-mn-logo{ display: inline-block; color: #000; line-height: 0; }
.sxm-mn .sxm-mn-logo:focus-visible{ outline: 2px solid #000; outline-offset: 4px; }
/* the overlay lives under <body>, outside .elementor: the kit's reset-neutraliser never reaches
   it, so every anchor restates its colour here (hello's reset paints bare <a> #c36) */
.sxm-mn a{ color: inherit; }
.sxm-mn .sxm-mn-logo img{ width: 150px; height: auto; display: block; }
.sxm-mn button.sxm-mn-toggle--close{ color: #000; }
/* the homepage's body.home *{color:#fff} reaches the <text> and the bars: paint them explicitly */
.sxm-mn button.sxm-mn-toggle--close .sxm-mn-ring text{ fill: #000; }
.sxm-mn button.sxm-mn-toggle--close .sxm-mn-plus i{ background: #000; }

.sxm-mn .sxm-mn-body{ flex: 1 1 auto; padding-top: clamp(22px, 5vh, 44px); }
.sxm-mn .sxm-mn-primary{ list-style: none; margin: 0; padding: 0; }
.sxm-mn .sxm-mn-primary a{
  display: flex; align-items: baseline; gap: 14px;
  font-family: 'F37 Stout Black Compressed', sans-serif; font-weight: 900;
  font-size: clamp(58px, 19vw, 100px); line-height: .9; text-transform: uppercase;
  color: #000; text-decoration: none; padding: 5px 0;
  transition: transform .35s cubic-bezier(.16,.84,.44,1), color .25s ease;
}
.sxm-mn .sxm-mn-primary a:hover, .sxm-mn .sxm-mn-primary a:focus-visible{ transform: translateX(8px); outline: none; }
.sxm-mn .sxm-mn-primary a[aria-current="page"]{ color: #6a6a6a; }
.sxm-mn .sxm-mn-primary i, .sxm-mn .sxm-mn-services i{
  font-style: normal; font-family: 'OCR A Extended', 'Ocr A Tribute', monospace;
  font-size: 11px; letter-spacing: 2px; color: #8a8a8a; min-width: 24px;
}
.sxm-mn .sxm-mn-label{
  font-family: 'OCR A Extended', 'Ocr A Tribute', monospace; font-size: 11px; letter-spacing: 2.4px;
  text-transform: lowercase; color: #777; margin: clamp(18px, 4vh, 34px) 0 8px;
  padding-top: 14px; border-top: 1px solid rgba(0,0,0,.14);
}
.sxm-mn .sxm-mn-services{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.sxm-mn .sxm-mn-services a{
  display: flex; align-items: baseline; gap: 10px;
  font-family: 'Nord Medium', 'Nord Regular', sans-serif; font-weight: 500;
  font-size: clamp(16px, 4.6vw, 22px); letter-spacing: .06em; text-transform: uppercase;
  color: #000; text-decoration: none; padding: 9px 0;
}
.sxm-mn .sxm-mn-services a[aria-current="page"]{ color: #6a6a6a; }
.sxm-mn .sxm-mn-secondary{ list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 18px 0 0; padding: 0; }
.sxm-mn .sxm-mn-secondary a{
  font-family: 'OCR A Extended', 'Ocr A Tribute', monospace; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: #333; text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.3); padding-bottom: 3px;
}
.sxm-mn .sxm-mn-secondary a[aria-current="page"]{ color: #999; border-color: transparent; }

.sxm-mn .sxm-mn-foot{ margin-top: clamp(22px, 5vh, 44px); }
.sxm-mn .sxm-mn-cta{
  display: block; text-align: center; background: #000; color: #fff;
  font-family: 'Nord Medium', 'Nord Regular', sans-serif; font-weight: 500;
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  padding: 20px; border-radius: 6px; text-decoration: none;
  box-shadow: inset 0 0 0 2px #000; transition: background-color .25s ease, color .25s ease;
}
.sxm-mn .sxm-mn-cta:hover, .sxm-mn .sxm-mn-cta:focus-visible{ background: #fff; color: #000; outline: none; }
.sxm-mn .sxm-mn-contact{ display: grid; gap: 4px; margin-top: 20px; }
.sxm-mn .sxm-mn-contact a{
  font-family: 'Nord Medium', 'Nord Regular', sans-serif; font-weight: 500; font-size: 18px;
  letter-spacing: .04em; text-transform: uppercase; color: #000; text-decoration: none;
}
.sxm-mn .sxm-mn-contact a:last-of-type{ text-transform: none; letter-spacing: 0; }
.sxm-mn .sxm-mn-contact span, .sxm-mn .sxm-mn-contact .sxm-mn-addr{
  font-family: 'Nord Regular', sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #666; margin-top: 4px; text-decoration: none;
}
.sxm-mn .sxm-mn-contact .sxm-mn-addr:hover, .sxm-mn .sxm-mn-contact .sxm-mn-addr:focus-visible{ color: #000; outline: none; }
.sxm-mn .sxm-mn-social{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sxm-mn .sxm-mn-social a{
  font-family: 'OCR A Extended', 'Ocr A Tribute', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(0,0,0,.3); border-radius: 999px; padding: 9px 14px; color: #000; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.sxm-mn .sxm-mn-social a:hover, .sxm-mn .sxm-mn-social a:focus-visible{ background: #000; color: #fff; border-color: #000; outline: none; }
/* the brand X as a watermark, drawn with the display face. It bleeds past the panel's right and bottom edges
   on purpose, so it lives inside a wrapper that is exactly the panel and clips it: the bleed is painted, never
   scrollable. (A bare absolute box past the edge extends the panel's scrollable overflow; clip-path would not
   remove it either.) */
.sxm-mn .sxm-mn-xwrap{ position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0 !important; }
.sxm-mn .sxm-mn-x{
  position: absolute; right: -8vw; bottom: -6vh; z-index: 0 !important;
  font-family: 'F37 Stout Black Compressed', sans-serif; font-weight: 900;
  font-size: 70vw; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(0,0,0,.08);
  pointer-events: none; user-select: none;
}


/* ============================================================== DESKTOP (the homepage, §60)
   The same white inversion, composed for a wide screen: the primary words as a column of display type on the
   left, the five services and the secondary row on the right, the foot as one row (BOOK A CALL · contact ·
   socials), the X watermark bleeding bottom-right. The circle grows from the ring under the logo. */
@media (min-width: 1025px){
  body.sxm-mn-desk .sxm-mn{ padding: 26px clamp(40px, 5vw, 96px) 40px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-top{ min-height: 56px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-logo img{ width: 200px; }
  body.sxm-mn-desk .sxm-mn button.sxm-mn-toggle--close{ width: 48px; height: 48px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-body{
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 120px);
    align-items: start; padding-top: clamp(24px, 5vh, 56px); flex: 1 1 auto;
  }
  body.sxm-mn-desk .sxm-mn .sxm-mn-primary{ grid-column: 1; grid-row: 1 / span 3; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-primary a{ font-size: clamp(72px, 8.6vw, 150px); line-height: .88; padding: 6px 0; gap: 22px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-primary i{ font-size: 13px; min-width: 34px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-primary a:hover, body.sxm-mn-desk .sxm-mn .sxm-mn-primary a:focus-visible{ transform: translateX(16px); }
  body.sxm-mn-desk .sxm-mn .sxm-mn-label{ grid-column: 2; grid-row: 1; margin: 12px 0 10px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-services{ grid-column: 2; grid-row: 2; grid-template-columns: 1fr; gap: 0; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-services a{ font-size: clamp(22px, 2.1vw, 32px); padding: 10px 0; gap: 18px; border-bottom: 1px solid rgba(0,0,0,.1); transition: transform .3s cubic-bezier(.16,.84,.44,1), color .2s ease; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-services a:hover, body.sxm-mn-desk .sxm-mn .sxm-mn-services a:focus-visible{ transform: translateX(10px); outline: none; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-services i{ font-size: 12px; min-width: 30px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-secondary{ grid-column: 2; grid-row: 3; margin-top: 26px; gap: 12px 26px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-secondary a{ font-size: 12px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-foot{
    display: grid; grid-template-columns: auto 1fr auto; align-items: end; column-gap: clamp(32px, 4vw, 72px);
    margin-top: clamp(24px, 5vh, 56px); padding-top: 26px; border-top: 1px solid rgba(0,0,0,.14);
  }
  body.sxm-mn-desk .sxm-mn .sxm-mn-cta{ display: inline-block; padding: 22px 44px; font-size: 14px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-contact{ margin-top: 0; grid-template-columns: auto auto; column-gap: 40px; row-gap: 6px; align-items: baseline; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-contact a{ font-size: 16px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-contact .sxm-mn-addr{ grid-column: 1 / -1; margin-top: 2px; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-social{ margin-top: 0; justify-content: flex-end; }
  body.sxm-mn-desk .sxm-mn .sxm-mn-x{ font-size: 46vw; right: -4vw; bottom: -10vh; }
}

/* ---------------------------------------------------------------- motion */
.sxm-mn .sxm-mn-rv{ opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease calc(.12s + var(--i, 0) * .055s), transform .65s cubic-bezier(.16,.84,.44,1) calc(.12s + var(--i, 0) * .055s); }
.sxm-mn.is-open .sxm-mn-rv{ opacity: 1; transform: none; }
html.sxm-mn-lock, html.sxm-mn-lock body{ overflow: hidden !important; }

@media (max-width: 480px){
  /* DEVELOPMENT does not fit half of a 350px measure: one column on phones */
  .sxm-mn .sxm-mn-services{ grid-template-columns: 1fr; }
  .sxm-mn .sxm-mn-services a{ padding: 7px 0; }
}
@media (min-width: 768px) and (max-width: 1024px){
  .sxm-mn{ padding-inline: 32px; }
  .sxm-mn .sxm-mn-primary a{ font-size: clamp(64px, 11vw, 112px); }
  .sxm-mn .sxm-mn-services{ grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce){
  .sxm-mn-ring, .sxm-mn-plus{ animation: none; }
  .sxm-mn{ transition: none; clip-path: none; }
  .sxm-mn .sxm-mn-rv{ transition: none; opacity: 1; transform: none; }
  .sxm-mn-plus, .sxm-mn .sxm-mn-primary a{ transition: none; }
}
