/* ==========================================================================
   Buildra — Services section v1.0  ("site inspection" concept)
   Depends on tokens, .bx-btn, .bx-eyebrow and the reveal system in bx-hero.css

   1. Base & header
   2. Layout
   3. Inspection monitor (sticky viewer)
   4. Work-order tickets
   5. Survey CTA
   6. Keyframes
   7. Responsive
   8. Reduced motion
   ========================================================================== */

/* 1. Base & header --------------------------------------------------------- */
.bx-services, .bx-services *, .bx-services *::before, .bx-services *::after { box-sizing: border-box; }
.bx-services {
  position: relative; isolation: isolate;
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
  background: var(--bx-paper); color: var(--bx-ink); font-family: var(--bx-font);
}
.bx-services::before { /* faint blueprint grid behind the whole section */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 17, 21, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 21, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 70%, transparent);
}
.bx-services svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bx-services a:focus-visible, .bx-services button:focus-visible { outline: 2px solid var(--bx-accent); outline-offset: 3px; }

.bx-services__container { max-width: var(--bx-container); margin: 0 auto; padding: 0 var(--bx-gutter); }

.bx-services__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 5vw, 80px); align-items: end;
}
.bx-services__kicker { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bx-services__index { font: 500 12px/1 var(--bx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-ink-3); }

.bx-services__title { margin: clamp(18px, 2.4vw, 28px) 0 0; } /* type: .bx-h2 (bx-hero.css) */

.bx-services__intro p { margin: 0 0 18px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--bx-ink-2); }
.bx-services__hint {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 11.5px/1 var(--bx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-ink-3);
}
.bx-mouse { position: relative; width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; }
.bx-mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px;
  background: var(--bx-accent); animation: bx-wheel 1.8s var(--bx-ease) infinite;
}

/* 2. Layout ---------------------------------------------------------------- */
.bx-services__layout {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}
.bx-services__sticky { position: sticky; top: calc(var(--bx-admin-bar) + 108px); }
.bx-services__list { display: flex; flex-direction: column; gap: 22px; }

/* 3. Inspection monitor ---------------------------------------------------- */
.bx-viewer {
  display: flex; flex-direction: column;
  height: clamp(520px, calc(100svh - 140px), 740px);
  padding: 12px; border-radius: 30px;
  background: var(--bx-ink); color: var(--bx-white);
  box-shadow: 0 50px 90px -50px rgba(15, 17, 21, .7), inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.bx-viewer__bar { display: flex; align-items: center; gap: 14px; padding: 6px 10px 14px; }
.bx-viewer__live {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--bx-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.bx-viewer__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--bx-accent); box-shadow: 0 0 10px var(--bx-accent); animation: bx-blink 1.4s steps(2, start) infinite; }
.bx-viewer__wo {
  padding: 5px 9px; border-radius: 6px; background: rgba(255, 255, 255, .08);
  font: 600 11px/1 var(--bx-mono); letter-spacing: .08em;
}
.bx-viewer__segs { display: flex; gap: 4px; margin-left: auto; }
.bx-viewer__segs i {
  width: 16px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14);
  transition: width .5s var(--bx-ease), background .4s;
}
.bx-viewer__segs i.is-on { background: rgba(59, 75, 114, .55); }
.bx-viewer__segs i.is-current { width: 32px; background: var(--bx-accent); }

/* Screen */
.bx-viewer__screen {
  position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 20px;
  background: #1A1D23;
  transform: perspective(1400px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform .6s var(--bx-ease);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.bx-viewer__imgs { position: absolute; inset: 0; }
.bx-viewer__img { position: absolute; inset: 0; margin: 0; z-index: 1; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--bx-ease); }
.bx-viewer__img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); transition: transform 1.6s var(--bx-ease); filter: saturate(.92) contrast(1.04); }
.bx-viewer__img.is-active { z-index: 3; clip-path: inset(0); }
.bx-viewer__img.is-active img { transform: scale(1.02); }
.bx-viewer__img.is-prev { z-index: 2; clip-path: inset(0); }
.bx-viewer__img.is-prev img { transform: scale(1.08); }
.bx-viewer[data-dir="prev"] .bx-viewer__img:not(.is-active):not(.is-prev) { clip-path: inset(0 0 100% 0); }

.bx-viewer__screen::after { /* readability gradient */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 17, 21, .78) 0%, rgba(15, 17, 21, .1) 45%, rgba(15, 17, 21, .25) 100%);
}
.bx-viewer__grid {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* Focus brackets */
.bx-viewer__corner { position: absolute; z-index: 6; width: 28px; height: 28px; border: 0 solid rgba(255, 255, 255, .85); transition: transform .7s var(--bx-ease); }
.bx-viewer__corner.is-tl { top: 18px; left: 18px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 8px; }
.bx-viewer__corner.is-tr { top: 18px; right: 18px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 8px; }
.bx-viewer__corner.is-bl { bottom: 18px; left: 18px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 8px; }
.bx-viewer__corner.is-br { bottom: 18px; right: 18px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; }
.bx-viewer.is-focus .bx-viewer__corner { animation: bx-focus .8s var(--bx-ease); }
.bx-viewer.is-focus .bx-viewer__corner.is-tl { --fx: -14px; --fy: -14px; }
.bx-viewer.is-focus .bx-viewer__corner.is-tr { --fx: 14px;  --fy: -14px; }
.bx-viewer.is-focus .bx-viewer__corner.is-bl { --fx: -14px; --fy: 14px; }
.bx-viewer.is-focus .bx-viewer__corner.is-br { --fx: 14px;  --fy: 14px; }

.bx-viewer__scan {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6; height: 70px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(59, 75, 114, .16) 85%, rgba(59, 75, 114, .7) 100%);
  border-bottom: 1px solid rgba(255, 140, 90, .9);
  animation: bx-sweep 4.5s cubic-bezier(.45, 0, .55, 1) infinite;
}

/* Hotspots */
.bx-viewer__spots { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.bx-spot {
  position: absolute; display: flex; align-items: center; gap: 10px;
  transform: translate(-7px, -50%);
  opacity: 0; transition: opacity .5s var(--bx-ease), translate .6s var(--bx-ease);
  transition-delay: calc(.45s + var(--i, 0) * .16s); translate: 0 8px;
}
.bx-spot.is-in { opacity: 1; translate: 0 0; }
.bx-spot.is-out { opacity: 0; transition-delay: 0s; transition-duration: .25s; }
.bx-spot__dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--bx-accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); flex-shrink: 0; }
.bx-spot__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--bx-accent); animation: bx-ping-s 2s var(--bx-ease) infinite; }
.bx-spot__line { width: 26px; height: 1px; background: rgba(255, 255, 255, .8); }
.bx-spot__label {
  padding: 7px 11px; border-radius: 8px; background: rgba(255, 255, 255, .95); color: var(--bx-ink);
  font: 600 11px/1 var(--bx-mono); letter-spacing: .03em; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
}
.bx-spot.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }

/* Caption */
.bx-viewer__caption { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 8; display: flex; flex-direction: column; gap: 6px; }
.bx-viewer__num { font: 600 13px/1 var(--bx-mono); color: var(--bx-accent); letter-spacing: .1em; }
.bx-viewer__title {
  font-size: clamp(28px, 3vw, 44px); font-weight: 850; font-stretch: 72%; line-height: .95;
  text-transform: uppercase; letter-spacing: -.005em;
}

/* Readouts */
.bx-viewer__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; padding: 16px 8px 4px 14px; }
.bx-viewer__stat { display: flex; flex-direction: column; gap: 6px; padding-right: 14px; }
.bx-viewer__stat + .bx-viewer__stat { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .1); }
.bx-viewer__stat small { font: 500 10.5px/1 var(--bx-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.bx-viewer__stat b { font-size: clamp(18px, 1.6vw, 24px); font-weight: 800; font-stretch: 80%; line-height: 1; white-space: nowrap; }
.bx-viewer__nav { display: flex; gap: 8px; }
.bx-viewer__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--bx-white);
  transition: background .3s, border-color .3s, transform .3s var(--bx-ease);
}
.bx-viewer__btn svg { width: 18px; height: 18px; }
.bx-viewer__btn:hover { background: var(--bx-accent); border-color: var(--bx-accent); }
.bx-viewer__btn:active { transform: scale(.9); }

/* Text swap used by JS */
[data-bx-v-num], [data-bx-v-title], [data-bx-v-id], [data-bx-v-response], [data-bx-v-warranty], [data-bx-v-price] {
  display: inline-block; transition: opacity .25s, transform .45s var(--bx-ease);
}
.bx-viewer .is-swap { opacity: 0; transform: translateY(12px); }

/* 4. Work-order tickets ---------------------------------------------------- */
.bx-wo {
  --bx-foot: 80px;
  position: relative; display: flex; flex-direction: column;
  background: var(--bx-white); border: 1px solid var(--bx-line); border-radius: 24px;
  box-shadow: 0 20px 40px -34px rgba(15, 17, 21, .4);
  overflow: hidden; overflow: clip; /* contains the oversized stamp before it "presses" (no sideways scroll) */
  transition: opacity .5s var(--bx-ease), transform .6s var(--bx-ease), box-shadow .5s, border-color .5s;
}
/* Punched ticket notches at the perforation line */
.bx-wo::before, .bx-wo::after {
  content: ""; position: absolute; z-index: 2; bottom: calc(var(--bx-foot) - 12px);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bx-paper); box-shadow: inset 0 0 0 1px var(--bx-line);
}
.bx-wo::before { left: -12px; clip-path: inset(0 0 0 50%); }
.bx-wo::after { right: -12px; clip-path: inset(0 50% 0 0); }

.bx-wo__media { display: none; }

.bx-wo__body { position: relative; padding: 28px 30px 24px; }
.bx-wo__body::before { /* active accent bar */
  content: ""; position: absolute; left: -1px; top: 30px; width: 4px; height: 48px; border-radius: 0 4px 4px 0;
  background: var(--bx-accent); transform: scaleY(0); transition: transform .6s var(--bx-ease);
}
.bx-wo.is-active .bx-wo__body::before { transform: scaleY(1); }

.bx-wo__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-right: 90px; }
.bx-wo__id { font: 600 12px/1 var(--bx-mono); letter-spacing: .1em; color: var(--bx-ink-3); }
.bx-wo__tag {
  padding: 5px 9px; border-radius: 6px; background: var(--bx-paper);
  font: 600 10.5px/1 var(--bx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bx-ink-2);
}
.bx-wo__tag.is-hot { background: var(--bx-accent); color: var(--bx-white); }

.bx-wo__title-row { display: flex; align-items: center; gap: 16px; padding-right: 78px; } /* keeps long titles clear of the stamp */
.bx-wo__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  background: var(--bx-paper); color: var(--bx-ink);
  transition: background .5s, color .5s, transform .6s var(--bx-ease);
}
.bx-wo__icon svg { width: 24px; height: 24px; }
.bx-wo.is-active .bx-wo__icon { background: var(--bx-accent); color: var(--bx-white); transform: rotate(-6deg); }
.bx-wo__title {
  margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 850; font-stretch: 72%;
  line-height: .98; text-transform: uppercase; letter-spacing: -.005em;
}
.bx-wo__text { margin: 16px 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--bx-ink-2); }
.bx-wo__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bx-wo__chips li {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--bx-line);
  font-size: 13px; font-weight: 600; color: var(--bx-ink); transition: background .3s, border-color .3s;
}
.bx-wo:hover .bx-wo__chips li { border-color: rgba(15, 17, 21, .16); }

.bx-wo__foot {
  display: flex; align-items: center; gap: 24px;
  height: var(--bx-foot); margin-top: auto; padding: 0 16px 0 30px;
  border-top: 1.5px dashed rgba(15, 17, 21, .16);
}
.bx-wo__meta { display: flex; gap: 28px; margin: 0; }
.bx-wo__meta dt { font: 500 10.5px/1 var(--bx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-ink-3); margin-bottom: 6px; }
.bx-wo__meta dd { margin: 0; font-size: 18px; font-weight: 800; font-stretch: 85%; line-height: 1; }
.bx-wo__barcode {
  margin-left: auto; width: 92px; height: 30px; opacity: .55;
  background: repeating-linear-gradient(90deg,
    var(--bx-ink) 0 2px, transparent 2px 4px, var(--bx-ink) 4px 5px, transparent 5px 8px,
    var(--bx-ink) 8px 11px, transparent 11px 12px, var(--bx-ink) 12px 13px, transparent 13px 16px);
}
.bx-wo__link {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--bx-ink); color: var(--bx-white); text-decoration: none;
  transition: background .35s, transform .5s var(--bx-ease);
}
.bx-wo__link svg { width: 18px; height: 18px; }
.bx-wo__link:hover { background: var(--bx-accent); transform: rotate(45deg); }

/* Rubber stamp — pressed onto the active ticket */
.bx-wo__stamp {
  position: absolute; top: 20px; right: 22px; z-index: 3; pointer-events: none;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid var(--bx-accent);
  box-shadow: inset 0 0 0 4px var(--bx-white), inset 0 0 0 5.5px var(--bx-accent);
  color: var(--bx-accent); mix-blend-mode: multiply;
  opacity: 0; transform: rotate(-16deg) scale(1.8);
}
.bx-wo__stamp span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 700 10.5px/1 var(--bx-mono); letter-spacing: .16em; text-transform: uppercase;
}
.bx-wo__stamp span::before { content: "✓"; font-size: 20px; letter-spacing: 0; }
.bx-wo__stamp span::after { content: "Buildra QA"; font-size: 7.5px; letter-spacing: .14em; opacity: .8; }
.bx-wo.is-active .bx-wo__stamp { animation: bx-stamp .55s cubic-bezier(.3, 1.5, .5, 1) .3s forwards; }

/* Dim the inactive tickets on desktop so focus follows the monitor */
@media (min-width: 1024px) {
  .bx-services.is-ready .bx-wo:not(.is-active) { opacity: .55; transform: scale(.975); cursor: pointer; }
  .bx-services.is-ready .bx-wo:not(.is-active):hover { opacity: .85; }
  .bx-services.is-ready .bx-wo.is-active { border-color: rgba(15, 17, 21, .14); box-shadow: 0 34px 60px -34px rgba(15, 17, 21, .5); }
}

/* 5. Survey CTA ------------------------------------------------------------ */
.bx-survey {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 28px 40px;
  margin-top: clamp(60px, 7vw, 100px); padding: clamp(28px, 3.6vw, 46px) clamp(24px, 4vw, 56px);
  background: var(--bx-accent); color: var(--bx-white); border-radius: 30px;
}
.bx-survey::before { /* hazard stripes */
  content: ""; position: absolute; inset: 0 0 0 55%; z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(15, 17, 21, .12) 0 14px, transparent 14px 28px);
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
          mask-image: linear-gradient(to left, #000, transparent);
}
.bx-survey__text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.bx-survey__kicker { font: 600 12px/1 var(--bx-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.bx-survey__title { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; font-stretch: 80%; line-height: 1.1; letter-spacing: -.01em; }
.bx-survey__actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding-left: clamp(24px, 3vw, 40px); border-left: 2px dashed rgba(255, 255, 255, .45);
}
.bx-survey .bx-btn {
  --bx-btn-bg: var(--bx-ink); --bx-btn-fill: var(--bx-white);
  --bx-btn-icon-bg: var(--bx-accent); --bx-btn-icon-fg: var(--bx-white);
  box-shadow: 0 18px 30px -16px rgba(15, 17, 21, .6);
}
.bx-survey .bx-btn:hover { --bx-btn-fg: var(--bx-ink); --bx-btn-icon-fg: var(--bx-white); }
.bx-survey__phone { color: var(--bx-white); font-size: 14px; font-weight: 600; text-decoration: none; opacity: .9; }
.bx-survey__phone:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* 6. Keyframes ------------------------------------------------------------- */
@keyframes bx-stamp {
  0%   { opacity: 0;   transform: rotate(-16deg) scale(1.8); }
  60%  { opacity: .95; transform: rotate(-16deg) scale(.92); }
  100% { opacity: .9;  transform: rotate(-16deg) scale(1); }
}
@keyframes bx-sweep { 0% { transform: translateY(-80px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--bx-sweep, 640px)); opacity: 0; } }
@keyframes bx-focus { 0% { transform: translate(var(--fx), var(--fy)); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes bx-blink { to { opacity: .25; } }
@keyframes bx-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
@keyframes bx-ping-s { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1199px) {
  .bx-viewer__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .bx-viewer__nav { grid-column: 1 / -1; justify-content: flex-end; }
  .bx-wo__barcode { display: none; }
  .bx-wo__link { margin-left: auto; }
}

@media (max-width: 1023px) {
  .bx-services__head { grid-template-columns: 1fr; align-items: start; }
  .bx-services__hint { display: none; }
  .bx-services__layout { grid-template-columns: 1fr; }
  .bx-services__sticky { display: none; } /* tickets carry their own photos on touch layouts */
  .bx-services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .bx-wo__media {
    display: block; position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px;
    background: var(--bx-paper-2);
  }
  .bx-wo__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--bx-ease); }
  .bx-wo:hover .bx-wo__media img { transform: scale(1.05); }
  .bx-wo__head, .bx-wo__title-row { padding-right: 0; } /* stamp sits on the photo here */
  .bx-wo__stamp { top: 22px; right: 22px; background: rgba(255, 255, 255, .92); mix-blend-mode: normal; box-shadow: inset 0 0 0 4px var(--bx-white), inset 0 0 0 5.5px var(--bx-accent), 0 10px 24px -10px rgba(0, 0, 0, .45); }
  .bx-wo__barcode { display: none; }
}

@media (max-width: 767px) {
  .bx-services__list { grid-template-columns: 1fr; }
  .bx-survey { flex-direction: column; align-items: stretch; }
  .bx-survey__actions { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .45); }
  .bx-survey .bx-btn { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .bx-wo { --bx-foot: 74px; border-radius: 20px; }
  .bx-wo__body { padding: 22px 20px 20px; }
  .bx-wo__title-row { gap: 12px; }
  .bx-wo__icon { width: 46px; height: 46px; border-radius: 13px; }
  .bx-wo__icon svg { width: 21px; height: 21px; }
  .bx-wo__text { font-size: 15px; }
  .bx-wo__foot { gap: 18px; padding: 0 12px 0 20px; }
  .bx-wo__meta { gap: 20px; }
  .bx-wo__meta dd { font-size: 16px; }
  .bx-wo__stamp { width: 74px; height: 74px; top: 18px; right: 18px; }
  .bx-wo__stamp span { font-size: 9px; }
  .bx-wo__stamp span::before { font-size: 16px; }
  .bx-survey { border-radius: 22px; }
}

/* 8. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bx-services *, .bx-services *::before, .bx-services *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .bx-viewer__scan { display: none; }
  .bx-wo.is-active .bx-wo__stamp { opacity: .9; transform: rotate(-16deg); }
}

/* GRANDOV V1.9.35 — scan once, revealing the original color behind the line. */
.bx-viewer.gv-color-scan { --gv-scan-time: 2.4s; }
.bx-viewer.gv-color-scan .bx-viewer__img { transition: none; }
.bx-viewer.gv-color-scan .bx-viewer__img > img { transform: none; transition: none; }
.bx-viewer.gv-color-scan .bx-viewer__img > .gv-scan-gray { filter: grayscale(1); }
.bx-viewer.gv-color-scan .bx-viewer__img > .gv-scan-color {
  position: absolute; inset: 0; filter: none; clip-path: inset(0 0 100% 0);
}
.bx-viewer.gv-color-scan .bx-viewer__img.is-active.gv-scanning > .gv-scan-color {
  animation: gv-scan-reveal var(--gv-scan-time) linear both;
}
.bx-viewer.gv-color-scan .bx-viewer__img.gv-scan-done > .gv-scan-color { clip-path: inset(0); }
.bx-viewer.gv-color-scan .bx-viewer__scan {
  animation: none; opacity: 0; height: 2px; top: 0; transform: none;
  background: #e23838; border: 0; box-shadow: 0 0 12px rgba(226,56,56,.8);
}
.bx-viewer.gv-color-scan.gv-scanning .bx-viewer__scan {
  animation: gv-scan-line var(--gv-scan-time) linear both;
}
@keyframes gv-scan-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes gv-scan-line { 0% { top: 0; opacity: 1; } 99% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bx-viewer.gv-color-scan .bx-viewer__img > .gv-scan-color { clip-path: inset(0); animation: none !important; }
  .bx-viewer.gv-color-scan .bx-viewer__scan { display: none; }
}

/* V1.9.42.1 — two different photographs, no grayscale or zoom. */
.bx-viewer.gv-color-scan .bx-viewer__img.gv-before-after > .gv-scan-gray {filter:none;}
.bx-viewer.gv-color-scan .bx-viewer__img.gv-before-after > img {object-fit:cover;object-position:center;filter:none;transform:none;}
