/* ==========================================================================
   Home — 01 Hero: "Split Stage" / the swatch deck
   Left: kicker, headline, lead, CTAs, "11 years" numeral.
   Right (>= 1100px): 5 services as a deck of paint chips. Collapsed chips are solid
   service colours; the open chip shows its photo above a colour band (= autoplay
   progress) and a label. Changing service wipes the photo on with a dry-brush
   stroke in the service colour (direction follows the move); the open photo
   drifts with a slow Ken Burns.
   < 1100px: stacked copy + fact chips, then a swipe rail of the same cards.
   Markup: views/home/_hero.php · behaviour: js/home/01-hero.js · prefix .mx-hero-
   ========================================================================== */

/* The open service's colour. Not inherited: 01-hero.js sets --hero-tint-to on the 3 consumers
   (ambient, drop, ring) and only they transition --hero-tint, so a service change never
   restyles the whole hero subtree. */
@property --hero-tint { syntax: '<color>'; inherits: false; initial-value: #F2A33A; }

.mx-hero {
  --hero-offset: 123px;                                   /* top bar + header */
  --hero-h: clamp(560px, calc(100svh - var(--hero-offset)), 920px);
  --hero-pl: max(var(--mx-gutter), calc((100% - var(--mx-container)) / 2));
  --hero-pr: clamp(16px, 1.7vw, 32px);
  --hero-copy: clamp(380px, 37.5vw, 680px);
  --hero-gap: 10px;                                       /* between chips */
  --hero-grow: 8;                                         /* open chip : collapsed chip */
  --hero-min: 56px;
  --hero-r: 22px;
  --hero-band: 6px;
  --hero-label-h: clamp(200px, 27vh, 262px);
  --hero-dur: 6s;                                         /* one autoplay step */
  --hero-t: .9s;                                          /* chip open/close */
  --hero-ease: cubic-bezier(.77, 0, .18, 1);
  --hero-grow-ease: cubic-bezier(.3, .72, .16, 1);        /* quick start: the new photo shows early */
  --hero-wipe: .95s;
  --hero-wipe-ease: cubic-bezier(.38, .2, .16, 1);
  --hero-edge: clamp(110px, 11vw, 210px);                 /* width of the brush's bristle edge */

  /* Dry-brush bristle edge (ragged side left / right). Alpha mask only. */
  --hero-bristle-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='.3' stop-opacity='.6'/%3E%3Cstop offset='.62'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='54.9' y='0' width='45.1' height='5.1' rx='2.5' fill='url(%23g)'/%3E%3Crect x='48.6' y='5.1' width='51.4' height='4.9' rx='2.5' fill='url(%23g)'/%3E%3Crect x='9.4' y='10' width='90.6' height='2.4' rx='1.2' fill='url(%23g)'/%3E%3Crect x='20' y='12.8' width='80.0' height='1.2' rx='0.6' fill='url(%23g)'/%3E%3Crect x='45' y='14' width='55.0' height='4.3' rx='2.1' fill='url(%23g)'/%3E%3Crect x='20.2' y='18.3' width='79.8' height='2.2' rx='1.1' fill='url(%23g)'/%3E%3Crect x='12.5' y='20.5' width='87.5' height='2.8' rx='1.4' fill='url(%23g)'/%3E%3Crect x='42.4' y='23.3' width='57.6' height='3.3' rx='1.6' fill='url(%23g)'/%3E%3Crect x='17.2' y='27.4' width='82.8' height='5.1' rx='2.5' fill='url(%23g)'/%3E%3Crect x='44.6' y='33.2' width='55.4' height='5.3' rx='2.6' fill='url(%23g)'/%3E%3Crect x='38.7' y='38.5' width='61.3' height='2.3' rx='1.1' fill='url(%23g)'/%3E%3Crect x='45.6' y='41.3' width='54.4' height='1.4' rx='0.7' fill='url(%23g)'/%3E%3Crect x='5.8' y='42.7' width='94.2' height='4.2' rx='2.1' fill='url(%23g)'/%3E%3Crect x='13.4' y='46.9' width='86.6' height='1.7' rx='0.8' fill='url(%23g)'/%3E%3Crect x='6.2' y='48.6' width='93.8' height='4.1' rx='2.0' fill='url(%23g)'/%3E%3Crect x='59.7' y='52.7' width='40.3' height='4.9' rx='2.5' fill='url(%23g)'/%3E%3Crect x='31' y='57.6' width='69.0' height='5.2' rx='2.6' fill='url(%23g)'/%3E%3Crect x='54.5' y='62.8' width='45.5' height='2.2' rx='1.1' fill='url(%23g)'/%3E%3Crect x='54.7' y='65' width='45.3' height='2.9' rx='1.4' fill='url(%23g)'/%3E%3Crect x='41.6' y='68.4' width='58.4' height='3.5' rx='1.8' fill='url(%23g)'/%3E%3Crect x='31.1' y='72' width='68.9' height='4.3' rx='2.1' fill='url(%23g)'/%3E%3Crect x='59.7' y='77' width='40.3' height='2' rx='1.0' fill='url(%23g)'/%3E%3Crect x='56.2' y='79.9' width='43.8' height='3.9' rx='1.9' fill='url(%23g)'/%3E%3Crect x='13.7' y='83.7' width='86.3' height='2' rx='1.0' fill='url(%23g)'/%3E%3Crect x='49.1' y='85.8' width='50.9' height='3.3' rx='1.6' fill='url(%23g)'/%3E%3Crect x='17.2' y='89' width='82.8' height='5.2' rx='2.6' fill='url(%23g)'/%3E%3Crect x='36.5' y='94.2' width='63.5' height='3.1' rx='1.6' fill='url(%23g)'/%3E%3Crect x='48.4' y='98' width='51.6' height='2' rx='1.0' fill='url(%23g)'/%3E%3Crect x='70' width='30' height='100'/%3E%3C/svg%3E");
  --hero-bristle-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='1' x2='0'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='.3' stop-opacity='.6'/%3E%3Cstop offset='.62'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='0' width='76.5' height='1.2' rx='0.6' fill='url(%23g)'/%3E%3Crect x='0' y='1.2' width='63.0' height='2.1' rx='1.1' fill='url(%23g)'/%3E%3Crect x='0' y='3.3' width='51.7' height='2.6' rx='1.3' fill='url(%23g)'/%3E%3Crect x='0' y='5.9' width='57.6' height='3.5' rx='1.8' fill='url(%23g)'/%3E%3Crect x='0' y='9.3' width='54.0' height='4.6' rx='2.3' fill='url(%23g)'/%3E%3Crect x='0' y='14.5' width='66.4' height='4.1' rx='2.0' fill='url(%23g)'/%3E%3Crect x='0' y='19.3' width='87.2' height='5.1' rx='2.5' fill='url(%23g)'/%3E%3Crect x='0' y='24.4' width='55.0' height='3.4' rx='1.7' fill='url(%23g)'/%3E%3Crect x='0' y='27.8' width='44.1' height='3.9' rx='1.9' fill='url(%23g)'/%3E%3Crect x='0' y='31.7' width='73.8' height='5' rx='2.5' fill='url(%23g)'/%3E%3Crect x='0' y='36.7' width='76.0' height='4.7' rx='2.4' fill='url(%23g)'/%3E%3Crect x='0' y='41.8' width='61.7' height='3' rx='1.5' fill='url(%23g)'/%3E%3Crect x='0' y='45.6' width='92.0' height='4.3' rx='2.1' fill='url(%23g)'/%3E%3Crect x='0' y='49.9' width='64.2' height='2.3' rx='1.1' fill='url(%23g)'/%3E%3Crect x='0' y='52.3' width='92.3' height='3' rx='1.5' fill='url(%23g)'/%3E%3Crect x='0' y='56' width='43.5' height='2.7' rx='1.4' fill='url(%23g)'/%3E%3Crect x='0' y='59.5' width='76.8' height='3.4' rx='1.7' fill='url(%23g)'/%3E%3Crect x='0' y='63.4' width='74.0' height='2.7' rx='1.4' fill='url(%23g)'/%3E%3Crect x='0' y='66.1' width='79.9' height='3.4' rx='1.7' fill='url(%23g)'/%3E%3Crect x='0' y='69.5' width='46.4' height='5' rx='2.5' fill='url(%23g)'/%3E%3Crect x='0' y='74.5' width='63.8' height='3.9' rx='1.9' fill='url(%23g)'/%3E%3Crect x='0' y='78.4' width='42.8' height='3.3' rx='1.6' fill='url(%23g)'/%3E%3Crect x='0' y='81.7' width='78.8' height='2.9' rx='1.4' fill='url(%23g)'/%3E%3Crect x='0' y='84.6' width='74.1' height='3.7' rx='1.9' fill='url(%23g)'/%3E%3Crect x='0' y='88.3' width='45.8' height='2.8' rx='1.4' fill='url(%23g)'/%3E%3Crect x='0' y='91.1' width='90.5' height='1.7' rx='0.8' fill='url(%23g)'/%3E%3Crect x='0' y='92.8' width='40.2' height='2.9' rx='1.4' fill='url(%23g)'/%3E%3Crect x='0' y='96.1' width='85.7' height='2.1' rx='1.1' fill='url(%23g)'/%3E%3Crect x='0' y='98.2' width='86.1' height='1.8' rx='0.9' fill='url(%23g)'/%3E%3Crect width='30' height='100'/%3E%3C/svg%3E");

  position: relative; isolation: isolate; overflow: hidden;
  background: var(--mx-canvas);
}
@media (max-width: 1023px) { .mx-hero { --hero-offset: 115px; } }
@media (max-width: 767px)  { .mx-hero { --hero-offset: 73px; } }
/* The colour fade (1s) runs on these 3 elements only */
.mx-hero-ambient, .mx-hero-drop, .mx-hero-ring circle {
  --hero-tint: var(--hero-tint-to, #F2A33A);
  transition: --hero-tint 1s var(--mx-ease);
}

/* Ambient light — follows the open service's colour. Its top 34vw sits above the hero;
   the mask fades it in below the hero's top edge, so no hard line shows under the header. */
.mx-hero-ambient {
  position: absolute; z-index: 0; pointer-events: none;
  left: -18vw; top: -34vw; width: 78vw; height: 78vw; max-width: 1300px; max-height: 1300px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hero-tint) 17%, transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 34vw, #000 calc(34vw + 140px));
          mask-image: linear-gradient(to bottom, transparent 34vw, #000 calc(34vw + 140px));
}
.mx-hero::after { /* a whisper of navy at the base, grounds the deck */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -10vw; bottom: -40vw; width: 70vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mx-brand) 7%, transparent), transparent 70%);
}

/* Grid ------------------------------------------------------------------------ */
.mx-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: var(--hero-copy) minmax(0, 1fr);
  column-gap: clamp(36px, 3.8vw, 76px);
  min-height: var(--hero-h);
  padding: clamp(18px, 2.4vh, 32px) var(--hero-pr) clamp(20px, 2.8vh, 36px) var(--hero-pl);
}
.mx-hero--solo .mx-hero-grid { grid-template-columns: minmax(0, 760px); }

/* Copy ------------------------------------------------------------------------ */
.mx-hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mx-hero-main { container-type: inline-size; }

.mx-hero-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 2.6vh, 28px);
  padding: 8px 16px 8px 10px; border-radius: var(--mx-radius-pill);
  background: color-mix(in srgb, var(--mx-paper) 86%, transparent); border: 1px solid var(--mx-line); box-shadow: var(--mx-shadow-xs);
  font: 700 12px/1 var(--mx-font); letter-spacing: .15em; text-transform: uppercase; color: var(--mx-ink); white-space: nowrap;
}
.mx-hero-swatches { display: inline-flex; align-items: center; gap: 3px; }
.mx-hero-swatches i { width: 8px; height: 18px; border-radius: 3px; background: var(--svc); transition: width .6s var(--hero-ease); }
.mx-hero-swatches i.is-on { width: 22px; }
.mx-hero-kicker-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--mx-subtle); }

.mx-hero-title {
  font-family: var(--mx-font-display); font-weight: 700;
  font-size: clamp(2.45rem, 4.3vw, 4.9rem);
  font-size: clamp(2.45rem, 11.5cqi, 4.9rem);            /* 3 lines: ~62px at 1440, ~78px at 1920 */
  line-height: 1.0; letter-spacing: -0.042em; color: var(--mx-ink);
}
.mx-hero-line { display: block; clip-path: inset(-0.4em -0.6em -0.18em -0.6em); }
.mx-hero-line-i { display: inline-block; white-space: nowrap; animation: mx-hero-up 1.05s var(--mx-ease-out) both; animation-delay: calc(var(--i, 0) * 95ms + 40ms); }
@keyframes mx-hero-up { from { transform: translateY(112%); } }

.mx-hero-title em.mx-hero-brush {
  position: relative; z-index: 0; display: inline-block;
  font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.015em;
  font-size: 1.07em; padding-right: .05em;
}
.mx-hero-brush::after {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.04em; bottom: .05em; height: .34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M4 26c40-14 92-18 150-17 70 1 120 6 170 3 26-2 48-6 70-9-6 8-20 16-48 20-60 9-128 6-190 6-56 0-104 3-148 7-6 0-8-6-4-10z' fill='%23F2A33A'/%3E%3C/svg%3E") no-repeat left center / 100% 100%;
  transform-origin: left center; opacity: .92;
  animation: mx-hero-brush 1.1s var(--mx-ease-out) .75s both;
}
@keyframes mx-hero-brush { from { transform: scaleX(0); } }
.mx-hero-drop { display: inline-block; color: var(--hero-tint); margin-left: .02em; }

.mx-hero-lead {
  margin-top: clamp(16px, 2.2vh, 24px); max-width: 31em;
  font-size: clamp(1.02rem, .9rem + .3vw, 1.18rem); line-height: 1.62; color: var(--mx-muted);
}
.mx-hero-lead-short { display: none; }
.mx-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3vh, 32px); }
.mx-hero-wa i { color: var(--mx-whatsapp); font-size: 1.25em; }
.mx-hero-facts { display: none; }

/* Editorial numeral (desktop) */
.mx-hero-years {
  margin-top: clamp(28px, 5.4vh, 60px); padding-top: clamp(16px, 2.4vh, 26px);
  border-top: 1px solid var(--mx-line);
}
.mx-hero-years-num {
  display: flex; align-items: baseline; gap: .12em; margin: 0;
  font: 800 clamp(3.4rem, 1.2rem + 3.6vw, 6.2rem)/.8 var(--mx-font-display); letter-spacing: -0.03em; color: var(--mx-ink);
}
.mx-hero-years-n { font-variant-numeric: tabular-nums; }
.mx-hero-years-num em {
  font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  font-size: .42em; color: var(--mx-brand);
}
.mx-hero-years-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: clamp(10px, 1.4vh, 16px) 0 0;
  font: 600 14px/1.45 var(--mx-font); color: var(--mx-muted);
}
.mx-hero-years-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--mx-line-strong); }

/* CSS-only entrance (never waits for JS) */
@keyframes mx-hero-in { from { opacity: 0; transform: translateY(18px); } }
.mx-hero-in { animation: mx-hero-in .9s var(--mx-ease-out) both; animation-delay: calc(var(--i, 0) * 85ms + 120ms); }

/* Stage ----------------------------------------------------------------------- */
.mx-hero-stage {
  display: grid; min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "deck deck" "foot cap";
  row-gap: 14px; column-gap: 20px;
}
.mx-hero-cap { grid-area: cap; align-self: center; display: flex; align-items: center; gap: 12px; min-width: 0; font: 600 13.5px/1.35 var(--mx-font); color: var(--mx-muted); }
.mx-hero-cap-n {
  flex: none; display: grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 8px;
  background: var(--mx-ink); color: #fff; font: 700 12.5px/1 var(--mx-font); letter-spacing: .06em;
}
.mx-hero-deck { grid-area: deck; position: relative; min-height: 0; }
.mx-hero-foot { grid-area: foot; display: flex; align-items: center; gap: 16px; }

/* Panels (the chips) */
.mx-hero-rail { position: relative; display: flex; gap: var(--hero-gap); height: 100%; }
.mx-hero-panel {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; min-width: var(--hero-min);
  display: grid; grid-template-rows: minmax(0, 1fr) var(--hero-band) var(--hero-label-h);
  border-radius: var(--hero-r); background: var(--mx-paper);
  box-shadow: 0 1px 0 rgba(22, 26, 35, .04), 0 20px 40px -26px rgba(13, 19, 48, .45);
  transition: flex-grow var(--hero-t) var(--hero-grow-ease), box-shadow .6s var(--mx-ease);
}
.mx-hero-panel.is-active { flex-grow: var(--hero-grow); box-shadow: 0 2px 0 rgba(22, 26, 35, .04), 0 40px 70px -34px rgba(13, 19, 48, .55); }
.mx-hero-panel::after { /* paint-chip sheen; only on collapsed chips */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .10));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: opacity .35s var(--mx-ease) .3s;
}
.mx-hero-panel.is-active::after { opacity: 0; transition: opacity .2s var(--mx-ease); }

.mx-hero-media { position: relative; overflow: hidden; min-height: 0; background: var(--svc); }
.mx-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform-origin: 38% 60%;
}
.mx-hero-panel:nth-child(even) .mx-hero-img { transform-origin: 64% 38%; }
/* Ken Burns on the open photo only: scale 1 -> 1.05 over one autoplay step */
@keyframes mx-hero-kb { from { transform: scale(1); } to { transform: scale(1.05); } }
.mx-hero-panel.is-active .mx-hero-img { animation: mx-hero-kb var(--hero-dur) linear both; }
.mx-hero.is-held .mx-hero-panel.is-active .mx-hero-img { animation-play-state: paused; }
.mx-hero.is-intro .mx-hero-panel.is-active .mx-hero-img { animation-duration: calc(var(--hero-dur) + 1.38s); animation-delay: .12s; }

/* The coat: the chip's colour over the photo. Opening wipes it off with a dry-brush
   stroke (bristle edge leads the photo in); closing paints it back on in the same
   direction. Default geometry = bristles on the left (forward reveal). */
.mx-hero-coat {
  position: absolute; z-index: 1; top: -1px; bottom: -1px; left: calc(var(--hero-edge) * -1); right: -2px; pointer-events: none;
  background: var(--svc);
  -webkit-mask: var(--hero-bristle-l) left top / var(--hero-edge) 100% no-repeat, linear-gradient(#000 0 0) right top / calc(100% - var(--hero-edge) + 1px) 100% no-repeat;
          mask: var(--hero-bristle-l) left top / var(--hero-edge) 100% no-repeat, linear-gradient(#000 0 0) right top / calc(100% - var(--hero-edge) + 1px) 100% no-repeat;
  will-change: transform;
}
.mx-hero-coat::before { /* wet bristle streaks behind the edge — only while the brush moves */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--hero-edge) * 1.6);
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, .14) 3px 4px, transparent 4px 9px),
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(0, 0, 0, .13) 6px 8px, transparent 8px 19px),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(255, 255, 255, .09) 13px 15px, transparent 15px 31px);
  -webkit-mask: linear-gradient(90deg, #000 55%, transparent); mask: linear-gradient(90deg, #000 55%, transparent);
  opacity: 0; transition: opacity .3s var(--mx-ease);
}
.mx-hero-panel.is-active .mx-hero-coat::before { opacity: 1; transition: none; }
@keyframes mx-hero-streaks-out { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.mx-hero-panel.is-leaving .mx-hero-coat::before { animation: mx-hero-streaks-out .5s linear both; }
/* bristles on the right: backward reveal + forward cover */
.mx-hero-panel.is-active.is-back .mx-hero-coat,
.mx-hero-panel.is-leaving:not(.is-back) .mx-hero-coat {
  left: -2px; right: calc(var(--hero-edge) * -1);
  -webkit-mask: var(--hero-bristle-r) right top / var(--hero-edge) 100% no-repeat, linear-gradient(#000 0 0) left top / calc(100% - var(--hero-edge) + 1px) 100% no-repeat;
          mask: var(--hero-bristle-r) right top / var(--hero-edge) 100% no-repeat, linear-gradient(#000 0 0) left top / calc(100% - var(--hero-edge) + 1px) 100% no-repeat;
}
.mx-hero-panel.is-active.is-back .mx-hero-coat::before,
.mx-hero-panel.is-leaving:not(.is-back) .mx-hero-coat::before {
  left: auto; right: 0;
  -webkit-mask: linear-gradient(270deg, #000 45%, transparent); mask: linear-gradient(270deg, #000 45%, transparent);
}
@keyframes mx-hero-reveal-f { from { transform: translateX(calc(var(--hero-edge) * .35)); } to { transform: translateX(101%); } }
@keyframes mx-hero-reveal-b { from { transform: translateX(calc(var(--hero-edge) * -.35)); } to { transform: translateX(-101%); } }
@keyframes mx-hero-cover-f { from { transform: translateX(-101%); } to { transform: translateX(0); } }
@keyframes mx-hero-cover-b { from { transform: translateX(101%); } to { transform: translateX(0); } }
.mx-hero-panel.is-active .mx-hero-coat { animation: mx-hero-reveal-f var(--hero-wipe) var(--hero-wipe-ease) both; }
.mx-hero-panel.is-active.is-back .mx-hero-coat { animation-name: mx-hero-reveal-b; }
.mx-hero-panel.is-leaving .mx-hero-coat { animation: mx-hero-cover-f .46s cubic-bezier(.5, 0, .3, 1) both; }
.mx-hero-panel.is-leaving.is-back .mx-hero-coat { animation-name: mx-hero-cover-b; }
.mx-hero.is-entering .mx-hero-panel.is-active .mx-hero-coat { animation-duration: 1.15s; animation-delay: .12s; }

.mx-hero-tag {
  position: absolute; z-index: 2; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--mx-radius-pill);
  background: rgba(255, 255, 255, .95); box-shadow: 0 8px 22px -12px rgba(13, 19, 48, .6);
  font: 700 12.5px/1 var(--mx-font); letter-spacing: .1em; color: var(--mx-ink); white-space: nowrap;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .14s var(--mx-ease), transform .14s var(--mx-ease);
}
/* appears only once the chip is wide enough — never clipped mid-transition */
.mx-hero-panel.is-active .mx-hero-tag { opacity: 1; transform: none; transition: opacity .4s var(--mx-ease) .42s, transform .6s var(--mx-ease-out) .42s; }
.mx-hero.is-entering .mx-hero-panel.is-active .mx-hero-tag { animation: mx-hero-in .7s var(--mx-ease-out) .8s both; }
.mx-hero-tag > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--svc); color: var(--svc-ink); font-size: 13px; letter-spacing: 0; }
.mx-hero-tag-of { color: var(--mx-muted); }

/* Band = paint-chip colour bar + autoplay progress */
.mx-hero-band { position: relative; overflow: hidden; background: color-mix(in srgb, var(--svc) 24%, var(--mx-paper)); }
.mx-hero-fill { position: absolute; inset: 0; background: var(--svc); transform-origin: 0 50%; transform: scaleX(1); transition: transform .5s var(--mx-ease); }
@keyframes mx-hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mx-hero.is-playing .mx-hero-panel.is-active .mx-hero-fill { animation: mx-hero-fill var(--hero-dur) linear both; }
.mx-hero.is-held .mx-hero-fill { animation-play-state: paused !important; }
.mx-hero.is-intro.is-playing .mx-hero-panel.is-active .mx-hero-fill,
.mx-hero.is-intro.is-playing .mx-hero-ring circle { animation-delay: 1.5s; }

/* Label */
.mx-hero-label {
  position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(16px, 2.2vh, 26px) clamp(20px, 1.8vw, 30px);
  background: var(--mx-paper);
}
.mx-hero-label > * {
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .18s var(--mx-ease), transform .18s var(--mx-ease), visibility 0s linear .18s;
}
.mx-hero-panel.is-active .mx-hero-label > * {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s var(--mx-ease) var(--dl, .36s), transform .7s var(--mx-ease-out) var(--dl, .36s), visibility 0s linear 0s;
}
.mx-hero-panel.is-active .mx-hero-name { --dl: .34s; }
.mx-hero-panel.is-active .mx-hero-text { --dl: .42s; }
.mx-hero-panel.is-active .mx-hero-actions { --dl: .5s; }
.mx-hero-panel.is-active .mx-hero-no { --dl: .56s; }
.mx-hero-no {
  position: absolute; right: clamp(16px, 1.6vw, 26px); top: clamp(6px, 1vh, 12px);
  font: italic 400 clamp(2.8rem, 6vh, 4.4rem)/1 var(--mx-font-accent); letter-spacing: -0.02em;
  color: var(--svc);
}
.mx-svc-2 .mx-hero-no { color: color-mix(in srgb, var(--mx-accent-deep) 78%, #000); }
.mx-hero-name { /* full names: a long one takes a second line, never a "…" */
  width: min(100%, 22ch); padding-right: 2.4em;
  white-space: normal; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 650 clamp(1.5rem, .95rem + 1.15vw, 2.25rem)/1.08 var(--mx-font-display); letter-spacing: -0.035em; color: var(--mx-ink);
}
@media (min-width: 1100px) {
  /* Lay the name out at the open chip's final width (the deck is a size container; the flex
     maths mirror .mx-hero-panel), so it never re-wraps while the chip is still growing.
     The label clips the brief overhang, which is mostly the name's empty right padding. */
  .mx-hero-deck { container-type: inline-size; }
  .mx-hero-name {
    width: min(22ch, min((100cqi - 4 * var(--hero-gap)) * var(--hero-grow) / (var(--hero-grow) + 4), 100cqi - 4 * var(--hero-gap) - 4 * var(--hero-min)) - 2 * clamp(20px, 1.8vw, 30px));
  }
}
.mx-hero-text {
  margin-top: 8px; max-width: 46ch;
  font-size: 14.5px; line-height: 1.55; color: var(--mx-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mx-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(12px, 1.8vh, 18px); }
.mx-hero-explore {
  display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 6px 0 20px; border-radius: var(--mx-radius-pill);
  background: var(--mx-ink); color: #fff !important; font: 700 14.5px/1 var(--mx-font); text-decoration: none !important; white-space: nowrap;
  transition: background-color .3s var(--mx-ease), transform .3s var(--mx-ease), gap .3s var(--mx-ease);
}
.mx-hero-explore-i {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--svc); color: var(--svc-ink); font-size: 13px; transition: transform .35s var(--mx-ease);
}
@media (hover: hover) and (pointer: fine) { /* mouse only: no sticky hover after a tap */
  .mx-hero-explore:hover { transform: translateY(-2px); gap: 16px; }
  .mx-hero-explore:hover .mx-hero-explore-i { transform: rotate(-45deg); }
}
.mx-hero-explore:active { transform: scale(.97); }
.mx-hero-quote {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  font: 700 14.5px/1 var(--mx-font); color: var(--mx-ink) !important;
  text-decoration: underline; text-decoration-color: var(--svc); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-underline-offset .3s var(--mx-ease), color .3s;
}
@media (hover: hover) and (pointer: fine) {
  .mx-hero-quote:hover { text-underline-offset: 9px; color: var(--mx-brand) !important; }
}

/* Wash = the chip's colour over band + label. Opening lifts it into the band line. */
.mx-hero-wash {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; pointer-events: none;
  height: calc(var(--hero-label-h) + var(--hero-band) + 1px); /* +1px seals the seam with the coat */
  background: var(--svc);
  clip-path: inset(0 0 0 0);
  transition: clip-path .36s var(--hero-ease) .14s;
}
.mx-hero-panel.is-active .mx-hero-wash {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .62s var(--hero-ease) .1s;
}

/* Tabs overlay the chips (same flex geometry) — they carry the collapsed labels */
.mx-hero-tabs { position: absolute; inset: 0; z-index: 4; display: flex; gap: var(--hero-gap); pointer-events: none; }
.mx-hero-tab {
  pointer-events: auto; position: relative; flex: 1 1 0; min-width: var(--hero-min);
  display: flex; flex-direction: column; align-items: center;
  margin: 0; padding: 20px 0 16px; border: 0; border-radius: var(--hero-r);
  background: transparent; color: var(--svc-ink); cursor: pointer; text-align: center;
  transition: flex-grow var(--hero-t) var(--hero-grow-ease);
}
.mx-hero-tab.is-active { flex-grow: var(--hero-grow); pointer-events: none; cursor: default; }
.mx-hero-tab > * { transition: opacity .35s var(--mx-ease) .38s, transform .5s var(--mx-ease-out) .34s; }
.mx-hero-tab.is-active > * { opacity: 0; transform: translateY(8px); transition: opacity .12s var(--mx-ease), transform .3s var(--mx-ease); }
.mx-hero-tab-num { font: 700 19px/1 var(--mx-font-display); letter-spacing: -0.01em; }
.mx-hero-tab-name {
  margin-top: auto; margin-bottom: 18px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 clamp(1.2rem, .85rem + .55vw, 1.55rem)/1 var(--mx-font-display); letter-spacing: -0.02em; white-space: nowrap;
}
.mx-hero-tab.is-active .mx-hero-tab-name { transform: rotate(180deg) translateY(-8px); }
.mx-hero-tab-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--svc-ink) 38%, transparent); font-size: 15px;
  transition: background-color .35s var(--mx-ease), color .35s var(--mx-ease), border-color .35s, opacity .35s var(--mx-ease) .38s, transform .5s var(--mx-ease-out) .34s;
}
.mx-hero-tab:not(.is-active):hover .mx-hero-tab-icon { background: var(--svc-ink); color: var(--svc); border-color: var(--svc-ink); }
.mx-hero-tab:not(.is-active):hover .mx-hero-tab-name { transform: rotate(180deg) translateY(4px); }
.mx-page .mx-hero-tab:focus-visible { outline: 3px solid var(--mx-ink); outline-offset: 3px; border-radius: calc(var(--hero-r) + 3px); }
.mx-page .mx-hero-tab.is-active:focus-visible { outline-offset: 4px; }

/* Controls */
.mx-hero-ctrls { display: flex; align-items: center; gap: 8px; }
.mx-hero-ctrl {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--mx-line-strong); background: var(--mx-paper); color: var(--mx-ink); font-size: 14px; cursor: pointer;
  transition: background-color .25s var(--mx-ease), color .25s var(--mx-ease), border-color .25s, transform .25s var(--mx-ease);
}
@media (hover: hover) and (pointer: fine) {
  .mx-hero-ctrl:hover { background: var(--mx-ink); border-color: var(--mx-ink); color: #fff; }
}
.mx-hero-ctrl:active { transform: scale(.94); }
.mx-hero-ctrl[hidden] { display: none; }
.mx-hero-toggle { border-color: transparent; background: var(--mx-paper); box-shadow: inset 0 0 0 1.5px var(--mx-line); }
.mx-hero-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.mx-hero-ring circle { fill: none; stroke: var(--hero-tint); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
@keyframes mx-hero-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.mx-hero.is-playing .mx-hero-ring circle { animation: mx-hero-ring var(--hero-dur) linear both; }
.mx-hero.is-held .mx-hero-ring circle { animation-play-state: paused; }
.mx-hero-dots { display: none; }

/* Intro (CSS only). .is-entering = the one-off entrance (JS drops it once it has played, so later
   changes can transition from settled values); .is-intro = first-step timing (dropped on the first change). */
@keyframes mx-hero-rise { from { opacity: 0; transform: translateY(46px); } }
@keyframes mx-hero-lift { from { clip-path: inset(0 0 0 0); } }
.mx-hero.is-entering .mx-hero-panel:not(.is-active),
.mx-hero.is-entering .mx-hero-tab:not(.is-active) { animation: mx-hero-rise 1s var(--mx-ease-out) both; animation-delay: calc(var(--k, 0) * 75ms + 160ms); }
.mx-hero.is-entering .mx-hero-panel.is-active .mx-hero-wash { animation: mx-hero-lift .85s var(--hero-ease) .6s both; }
.mx-hero.is-entering .mx-hero-panel.is-active .mx-hero-label > * { transition: none; animation: mx-hero-in .8s var(--mx-ease-out) both; animation-delay: calc(var(--dl, .4s) + .6s); }

/* The WhatsApp FAB would sit on the deck: hide it while the hero fills its corner
   (the hero has its own WhatsApp button). 01-hero.js toggles the body class. */
body.mx-hero-fab-anim .mx-fab { transition: transform .3s var(--mx-ease), opacity .3s var(--mx-ease), visibility .3s; } /* fades only after load: no flash on first paint */
body.mx-hero-in-view .mx-fab { opacity: 0; visibility: hidden; transform: scale(.6); pointer-events: none; }

/* Desktop fine-tuning by height / width */
@media (min-width: 1100px) and (max-height: 820px) {
  .mx-hero { --hero-label-h: 196px; }
  .mx-hero-text { -webkit-line-clamp: 1; }
  .mx-hero-years { display: flex; align-items: center; gap: 20px; }
  .mx-hero-years-num { font-size: clamp(3.2rem, 1rem + 3.4vw, 4.4rem); }
  .mx-hero-years-label { margin: 0; gap: 2px 10px; font-size: 13.5px; }
  .mx-hero-years-label > span:first-child { flex-basis: 100%; color: var(--mx-ink-2); }
  .mx-hero-years-label > .mx-hero-years-sep:nth-child(2) { display: none; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .mx-hero-cap { display: none; }
  .mx-hero-ctas { gap: 10px; }
  .mx-hero-ctas .mx-btn--lg { padding: 0 22px; }
}
@media (min-width: 1100px) and (max-width: 1400px) {
  .mx-hero { --hero-grow: 8.5; }
  .mx-hero-tab-name { font-size: 1.15rem; }
}
/* Fact chips: stacked layouts, and short laptop windows (in place of the "11 years" numeral) */
@media (max-width: 1099px), (min-width: 1100px) and (max-height: 700px) {
  .mx-hero-facts {
    display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: clamp(14px, 2.4vw, 20px) 0 0; padding: 0;
  }
  .mx-hero-facts li {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 13px; border-radius: var(--mx-radius-pill);
    background: var(--mx-paper); border: 1px solid var(--mx-line);
    font: 600 13px/1.2 var(--mx-font); color: var(--mx-ink-2);
  }
  .mx-hero-facts strong { font: 800 14px/1 var(--mx-font-display); color: var(--mx-brand); }
}
/* Short laptop windows (e.g. 1366x657, 1280x610 with browser chrome): the whole hero fits;
   the fact chips stand in for the "11 years" numeral, the service blurb steps aside */
@media (min-width: 1100px) and (max-height: 700px) {
  .mx-hero { --hero-h: max(470px, calc(100svh - var(--hero-offset))); --hero-label-h: 164px; }
  .mx-hero-years, .mx-hero-text { display: none; }
  .mx-hero-lead { margin-top: 14px; }
  .mx-hero-ctas { margin-top: 20px; }
  .mx-hero-facts { margin-top: 16px; }
}
/* Very wide screens: the stage stops at 1920px, so ~1000px photos are never stretched. With no viewport
   edge to bleed to, the composition lines up with the content container (text with the logo, the deck
   with the header CTA) at the 1440 proportions (62px headline). 1920px and below are unchanged. */
@media (min-width: 1921px) {
  .mx-hero { --hero-pl: calc((1920px - var(--mx-container)) / 2); --hero-pr: var(--hero-pl); --hero-copy: 540px; }
  .mx-hero-grid { max-width: 1920px; margin-inline: auto; column-gap: 56px; }
}

/* < 1100px: stacked + swipe rail ------------------------------------------------ */
@media (max-width: 1099px) {
  .mx-hero { --hero-r: 20px; --hero-band: 6px; }
  .mx-hero-grid {
    grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: clamp(22px, 4vw, 36px);
    padding: clamp(18px, 4vw, 40px) var(--mx-gutter) clamp(24px, 5vw, 44px);
  }
  .mx-hero-copy { display: contents; }
  .mx-hero-main { order: 1; }
  .mx-hero-stage { order: 2; }
  .mx-hero-years { display: none; }
  .mx-hero-title { font-size: clamp(2rem, 11.3cqi, 4.2rem); } /* 2rem floor: the 3 lines fit at 320px */

  .mx-hero-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "cap" "deck" "foot"; row-gap: 14px; }
  .mx-hero-cap { font-size: 13px; }
  .mx-hero-tabs, .mx-hero-wash, .mx-hero-coat, .mx-hero-toggle { display: none !important; }
  .mx-hero-panel::after { display: none; }
  .mx-hero-deck { margin-inline: calc(var(--mx-gutter) * -1); }
  .mx-hero-rail {
    height: auto; gap: 12px; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 4px var(--mx-gutter) 20px; scroll-padding-inline: var(--mx-gutter);
  }
  .mx-hero-rail::-webkit-scrollbar { display: none; }
  .mx-hero-panel, .mx-hero-panel.is-active {
    flex: 0 0 clamp(280px, 44vw, 380px); min-width: 0; scroll-snap-align: start;
    grid-template-rows: auto var(--hero-band) 1fr;
    box-shadow: 0 1px 0 rgba(22, 26, 35, .04), 0 18px 34px -24px rgba(13, 19, 48, .5);
  }
  .mx-hero-media { aspect-ratio: 4 / 3; }
  .mx-hero-img, .mx-hero-panel.is-active .mx-hero-img { animation: none; transform: none; }
  .mx-hero-tag, .mx-hero-panel.is-active .mx-hero-tag { opacity: 1; transform: none; transition: none; }
  .mx-hero-label { justify-content: flex-start; padding: 18px 20px 20px; }
  .mx-hero-label > *, .mx-hero-panel.is-active .mx-hero-label > * { opacity: 1; visibility: visible; transform: none; transition: none; }
  .mx-hero-actions { margin-top: auto; padding-top: 16px; }
  .mx-hero-name { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.75rem); width: auto; }
  .mx-hero-no { font-size: 2.9rem; top: 8px; }
  .mx-hero-text { font-size: 14px; }

  .mx-hero-foot { justify-content: space-between; margin-top: -8px; }
  .mx-hero-dots { display: flex; align-items: center; }
  .mx-hero-dot { display: grid; place-items: center; width: 34px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
  .mx-hero-dot span { display: block; width: 10px; height: 10px; border-radius: 6px; background: var(--svc); opacity: .45; transition: width .45s var(--hero-ease), opacity .3s; }
  .mx-hero-dot[aria-current="true"] { width: 46px; }
  .mx-hero-dot[aria-current="true"] span { width: 32px; opacity: 1; }

  /* the first (LCP) card only slides — it is never invisible; the rest fade in after it */
  @keyframes mx-hero-slide { from { transform: translateY(18px); } }
  /* :not(.is-active) matches the desktop rule's specificity, so 1024-1099 tablets get this entrance, not the 46px rise */
  .mx-hero.is-entering .mx-hero-panel:not(.is-active) { animation: mx-hero-in .9s var(--mx-ease-out) both; animation-delay: calc(var(--k, 0) * 70ms + 380ms); }
  .mx-hero.is-entering .mx-hero-panel.is-active { animation: mx-hero-slide .9s var(--mx-ease-out) .2s both; }
  .mx-hero.is-entering .mx-hero-panel.is-active .mx-hero-label > *,
  .mx-hero.is-entering .mx-hero-panel.is-active .mx-hero-tag { animation: none; }
}
/* Landscape tablets / small laptops: headline left, lead + CTAs right (no dead space beside the h1) */
@media (min-width: 960px) and (max-width: 1099px) {
  .mx-hero-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
  .mx-hero-kicker { grid-column: 1 / -1; justify-self: start; }
  .mx-hero-title { grid-column: 1; grid-row: 2 / span 3; font-size: clamp(2.45rem, 5.7cqi, 4.2rem); }
  .mx-hero-lead { grid-column: 2; grid-row: 2; margin-top: 0; font-size: 1.02rem; }
  .mx-hero-ctas { grid-column: 2; grid-row: 3; gap: 10px; margin-top: 18px; }
  .mx-hero-ctas .mx-btn--lg { padding: 0 22px; }
  .mx-hero-facts { grid-column: 2; grid-row: 4; }
}
/* Portrait tablets: two-column copy would be cramped; a little more air above the rail */
@media (min-width: 600px) and (max-width: 959px) {
  .mx-hero-lead { max-width: 36em; }
}
/* Short tablets (e.g. 1024x768): keep the first card's photo + title above the fold */
@media (min-width: 600px) and (max-width: 1099px) and (max-height: 820px) {
  .mx-hero-cap { display: none; }
  .mx-hero-media { aspect-ratio: 16 / 10; }
}
/* Phones */
@media (max-width: 599px) {
  .mx-hero-grid { padding-top: 16px; row-gap: 16px; }
  .mx-hero-panel, .mx-hero-panel.is-active { flex-basis: 84%; }
  .mx-hero-kicker { font-size: 11.5px; letter-spacing: .12em; gap: 10px; padding: 7px 14px 7px 8px; margin-bottom: 16px; }
  .mx-hero-swatches i { height: 15px; width: 6px; }
  .mx-hero-swatches i.is-on { width: 16px; }
  .mx-hero-lead { font-size: 1rem; line-height: 1.5; margin-top: 12px; color: var(--mx-ink-2); text-wrap: balance; } /* the full line: all 5 services */
  .mx-hero-ctas { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: 18px; }
  .mx-hero-ctas .mx-btn { min-height: 52px; padding: 0 12px; font-size: 15px; gap: 8px; }
  .mx-hero-facts { margin-top: 12px; }
  .mx-hero-facts li { padding-inline: 11px; } /* room to spare at 390: the two chips never wrap while fonts load */
  .mx-hero-cap { display: none; }
  .mx-hero-media { aspect-ratio: 16 / 9.6; }
  .mx-hero-label { padding: 14px 18px 16px; }
  .mx-hero-name { font-size: 1.36rem; padding-right: 2.2em; }
  .mx-hero-text { display: none; }
  .mx-hero-actions { padding-top: 12px; gap: 6px 18px; }
  .mx-hero-explore { min-height: 44px; }
  .mx-hero-no { font-size: 2.5rem; top: 6px; right: 14px; }
  .mx-hero-tag { left: 12px; top: 12px; }
}
@media (max-width: 385px) {
  /* Too narrow for both chips on one row in the web font, wide enough in the fallback font:
     stack them from the start so the font swap can't re-flow them (same final look) */
  .mx-hero-facts { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .mx-hero-ctas .mx-btn__arrow { display: none; }
}
@media (max-width: 359px) {
  .mx-hero-kicker { letter-spacing: .08em; gap: 8px; padding: 7px 12px 7px 8px; }
  .mx-hero-name { font-size: 1.25rem; } /* "Home Furnishing / Services" still fits in 2 lines at 320 */
}
/* Landscape phones: keep a card (photo + label) within the screen height */
@media (max-width: 1099px) and (max-height: 500px) and (orientation: landscape) {
  .mx-hero-media { aspect-ratio: auto; height: max(140px, calc(100svh - 240px)); }
}

/* Reduced motion: no intro, no autoplay visuals, no wipe or Ken Burns — instant state changes */
@media (prefers-reduced-motion: reduce) {
  .mx-hero, .mx-hero * { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .mx-hero-panel.is-active .mx-hero-coat { visibility: hidden; }
  .mx-hero-coat::before { display: none; }
  .mx-hero-toggle { display: none !important; }
}

/* ===== Mobile layer (<=1023): m2-hero ===== */
/* 15. m2-hero (folded from _mobile-wip/m2-hero.css): hero rail + phone first screen, <=1023px only (1024px+ unchanged).
   M1 chip-to-photo wipe, P5 snap / paint strip / crisp, phone spec row, phone entrance. JS: the last IIFE in 01-hero.js.
   The marquee parts of this layer (touch hover, reduced-motion wrap) live at the end of 01b-marquee.css. */
@media (max-width: 1023px) {
  .mx-hero-panel { scroll-snap-stop: always; } /* P5: a flick never skips a service */

  /* P5: dots -> a 5-colour paint strip (painted = seen, taller = current), same 44px buttons.
     Each segment has a rim at >= 3:1 on the canvas (WCAG 1.4.11; marigold included), drawn as an inset
     outline so it also edges the painted fill. ::before widens each button's hit area over the 4px gaps
     (first one into the gutter, last one into the foot gap): >= 44px wide from 360px up. */
  .mx-hero-foot { gap: 20px; }
  .mx-hero-dots { flex: 1 1 auto; max-width: 320px; gap: 4px; }
  .mx-hero-dot, .mx-hero-dot[aria-current="true"] { position: relative; flex: 1 1 0; width: auto; min-width: 24px; }
  .mx-hero-dot::before { content: ""; position: absolute; inset: 0 -2px; }
  .mx-hero-dot:first-child::before { left: -12px; }
  .mx-hero-dot:last-child::before { right: -6px; }
  .mx-hero-dot span, .mx-hero-dot[aria-current="true"] span {
    position: relative; overflow: hidden; width: 100%; height: 5px; border-radius: 3px; opacity: 1;
    background: color-mix(in srgb, var(--svc) 24%, var(--mx-canvas)); transition: transform .2s var(--mx-ease);
    outline: 1.5px solid color-mix(in srgb, var(--svc) 72%, var(--mx-ink)); outline-offset: -1.5px;
  }
  .mx-hero-text { -webkit-line-clamp: unset; overflow: visible; } /* rail cards: never cut the blurb (WCAG 1.4.10 at 200% zoom) */
  .mx-hero-dot span::after { content: ""; position: absolute; inset: 0; background: var(--svc); transform-origin: 0 50%; scale: 0 1; transition: scale .25s var(--mx-ease-out);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--svc) 72%, var(--mx-ink)); border-radius: inherit; } /* the fill keeps the rim */
  .mx-hero-dot[aria-current="true"] span::after, .mx-hero-dot:has(~ [aria-current="true"]) span::after { scale: 1 1; }
  .mx-hero-dot[aria-current="true"] span { transform: scaleY(1.8); }

  /* M1 coat geometry (switched on by the blocks below) */
  .mx-hero-media::before, .mx-hero-media::after { position: absolute; z-index: 1; top: -1px; bottom: -1px; pointer-events: none; background: var(--svc); }
  .mx-hero-media::after { /* enters from the right */
    left: calc(var(--hero-edge) * -1); right: -2px; transform: translateX(101%);
    mask: var(--hero-bristle-l) left top / var(--hero-edge) 100% no-repeat, linear-gradient(#000 0 0) right top / calc(100% - var(--hero-edge) + 1px) 100% no-repeat;
  }
  .mx-hero-media::before { /* leaves to the left */
    left: -2px; right: calc(var(--hero-edge) * -1); transform: translateX(-101%);
    mask: var(--hero-bristle-r) right top / var(--hero-edge) 100% no-repeat, linear-gradient(#000 0 0) left top / calc(100% - var(--hero-edge) + 1px) 100% no-repeat;
  }
}
/* Narrow phones: tighter foot gap, so the strip's hit areas stay >= 44px; under 360px on touch the strip takes the
   whole row (prev/next are redundant with swipe + strip). A 320px mouse window keeps its arrows. */
@media (max-width: 399px) { .mx-hero-foot { gap: 12px; } }
@media (max-width: 359px) and (pointer: coarse) {
  .mx-hero-ctrls { display: none; }
  .mx-hero-dots { max-width: none; }
  .mx-hero-dot:last-child::before { right: -2px; }
}
@media (max-width: 359px) { .mx-hero-name { -webkit-line-clamp: 3; } } /* 200% zoom: never cut a long service name */

/* Phones: facts -> a spec row under a hairline; fixed 2-line columns, so a font swap never reflows */
@media (max-width: 599px) {
  .mx-hero-grid { padding-top: 14px; }
  .mx-hero-kicker { margin-bottom: 14px; }
  .mx-hero-facts { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; margin-top: 18px; padding-top: 14px; }
  .mx-hero-facts::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--mx-line-strong); transform-origin: 0 50%; }
  .mx-hero-facts li {
    display: grid; grid-auto-flow: column; grid-template-columns: 8.6em; justify-content: start; align-items: center; column-gap: 9px;
    min-height: 32px; padding: 0 12px 0 0; border: 0; border-radius: 0; background: none; font: 600 12.5px/1.28 var(--mx-font); color: var(--mx-ink-2);
  }
  .mx-hero-facts li:first-child { grid-template-columns: auto 6.6em; color: var(--mx-muted); }
  .mx-hero-facts li + li { padding-left: 16px; border-left: 1px solid var(--mx-line-strong); }
  .mx-hero-facts strong { font: 800 31px/.8 var(--mx-font-display); letter-spacing: -0.03em; color: var(--mx-brand); }
  .mx-hero-foot { margin-top: -10px; }
}

/* Short landscape (e.g. 844x390, 667x375, 932x430): headline + CTAs make the first screen. The headline
   scales with the screen height, and the lead becomes the one-line "all in one" version (real copy; the
   service rail below names all five). */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .mx-hero-grid { padding-top: 10px; }
  .mx-hero-kicker { margin-bottom: 10px; }
  .mx-hero-title { font-size: clamp(1.75rem, 8svh + .75rem, 3rem); }
  .mx-hero-lead { max-width: none; margin-top: 8px; }
  .mx-hero-lead-long { display: none; }
  .mx-hero-lead-short { display: inline; }
  .mx-hero-ctas { margin-top: 12px; }
}

/* Phone entrance: CSS only, <= .45s, 12-16px, 35ms steps, fold starts <= 105ms; card 1 (LCP) never hidden */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  @keyframes mxm-h-in { from { opacity: 0; transform: translateY(14px); } }
  @keyframes mxm-h-rise { from { transform: translateY(12px); } }
  @keyframes mxm-h-peek { from { opacity: 0; transform: translateX(16px); } }
  @keyframes mxm-h-drop { from { scale: 1 0; } }
  @keyframes mxm-h-lay { from { scale: 0 1; } }
  .mx-hero-in { animation: mxm-h-in .45s var(--mx-ease-out) both; animation-delay: calc(min(max(var(--i, 0) - 2, 0), 3) * 35ms); }
  .mx-hero-line-i { animation-duration: .45s; animation-delay: calc((var(--i, 1) - 1) * 35ms); }
  .mx-hero-brush::after { animation-duration: .45s; animation-delay: .25s; }
  .mx-hero-swatches i { animation: mxm-h-drop .3s var(--mx-ease-out) both; animation-delay: calc(var(--mxm-h-k, 0) * 30ms); }
  .mx-hero-facts::before { animation: mxm-h-lay .45s var(--mx-ease-out) .1s both; }
  .mx-hero.is-entering .mx-hero-panel:not(.is-active) { animation: mxm-h-peek .45s var(--mx-ease-out) .15s both; }
  .mx-hero.is-entering .mx-hero-panel.is-active { animation: mxm-h-rise .45s var(--mx-ease-out) .06s both; }
  .mx-hero.is-entering .mx-hero-dot span { animation: mxm-h-lay .3s var(--mx-ease-out) both; animation-delay: calc(.2s + var(--mxm-h-k, 0) * 30ms); }
  :is(.mx-hero-dot, .mx-hero-swatches i):nth-child(2) { --mxm-h-k: 1; }
  :is(.mx-hero-dot, .mx-hero-swatches i):nth-child(3) { --mxm-h-k: 2; }
  :is(.mx-hero-dot, .mx-hero-swatches i):nth-child(4) { --mxm-h-k: 3; }
  :is(.mx-hero-dot, .mx-hero-swatches i):nth-child(5) { --mxm-h-k: 4; }
  .mx-hero-dot:active span { transform: scaleY(2.4); transition-duration: var(--mxm-dur-press, .09s); }

  /* M1 fallback (.mxm-h-io/.mxm-h-in from m2-hero.js) */
  .mxm-h-io .mx-hero-panel:not(:first-child) .mx-hero-media::after { content: ""; transform: none; }
  .mxm-h-io .mx-hero-panel.mxm-h-in .mx-hero-media::after { transform: translateX(101%); transition: transform .42s var(--mx-ease-out); }
}

/* M1 + P5 scrubbed by the finger (not in lite mode): one view timeline per card, shared with its dot */
@supports (animation-timeline: view()) {
  @media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
    @keyframes mxm-h-uncoat { from { transform: none; } to { transform: translateX(101%); } }
    @keyframes mxm-h-recoat { from { transform: translateX(-101%); } to { transform: none; } }
    @keyframes mxm-h-paint { from { scale: 0 1; } to { scale: 1 1; } }
    .mx-hero-stage { timeline-scope: --mxm-h-c1, --mxm-h-c2, --mxm-h-c3, --mxm-h-c4, --mxm-h-c5; }
    :is(.mx-hero-panel, .mx-hero-dot):nth-child(1) { --mxm-h-tl: --mxm-h-c1; }
    :is(.mx-hero-panel, .mx-hero-dot):nth-child(2) { --mxm-h-tl: --mxm-h-c2; }
    :is(.mx-hero-panel, .mx-hero-dot):nth-child(3) { --mxm-h-tl: --mxm-h-c3; }
    :is(.mx-hero-panel, .mx-hero-dot):nth-child(4) { --mxm-h-tl: --mxm-h-c4; }
    :is(.mx-hero-panel, .mx-hero-dot):nth-child(5) { --mxm-h-tl: --mxm-h-c5; }
    .mx-hero-panel { view-timeline-name: var(--mxm-h-tl, none); view-timeline-axis: x; view-timeline-inset: var(--mx-gutter); }
    /* wiped off from the side it enters by, painted back on reverse; at rest all uncovered */
    :root:not(.mx-lite) .mx-hero-media::after { content: ""; animation: mxm-h-uncoat linear both; animation-timeline: var(--mxm-h-tl, none); animation-range: entry 45% entry 100%; }
    :root:not(.mx-lite) .mx-hero-media::before { content: ""; animation: mxm-h-recoat linear both; animation-timeline: var(--mxm-h-tl, none); animation-range: exit 50% exit 100%; }
    /* P5: a card fully in view is crisp; photos entering or leaving rest dimmer (never text, never card 1) */
    @keyframes mxm-h-dim { entry 0% { opacity: .8; } entry 100%, exit 0% { opacity: 1; } exit 100% { opacity: .8; } }
    :root:not(.mx-lite) .mx-hero-rail .mx-hero-panel:not(:first-child) .mx-hero-img { animation: mxm-h-dim linear both; animation-timeline: var(--mxm-h-tl, none); }
    :root:not(.mx-lite) .mx-hero-dot span::after { animation: mxm-h-paint linear both; animation-timeline: var(--mxm-h-tl, none); animation-range: entry 15% entry 100%; }
  }
}
/* ===== /Mobile layer: m2-hero ===== */
