/* Metal stud framing section and demo (home page and /metal-framing-orlando/). Without JS or with reduced motion the
   demo shows its end frame: framing on the right, drywall hung on the left. */
.mf{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(24px,4vw,56px);align-items:center}
@media(max-width:860px){.mf{grid-template-columns:minmax(0,1fr)}}
.mf-copy{display:grid;gap:14px;min-width:0}
.mf-copy>p{color:var(--mut);text-wrap:pretty;max-width:52ch}
.mf-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
/* Narrow phones: 2-col grid like the bottom .callbar so Call+Text stay paired and "Text us" never orphans; the primary spans the row. */
@media(max-width:560px){.mf-cta{display:grid;grid-template-columns:1fr 1fr}.mf-cta .btn.pri{grid-column:1/-1}}
.mf-more a,.mf-list a{color:var(--acc-t);text-decoration:underline;text-underline-offset:4px}
.mf-demo{margin:0;min-width:0;display:grid;gap:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);padding:clamp(12px,2.5vw,20px)}
.mf-svg{display:block;width:100%;height:auto;color:var(--fg);border-radius:9px;background:var(--bg2)}
.mf-svg .chalk{stroke:var(--c3)}
/* framing drawing, 2 units = 1 in: flat galvanized C-studs (flange face + lip line), layout and dimension in brand gold */
.mf-frame .ln{fill:none;stroke:currentColor;stroke-opacity:.3}
.mf-frame .lay{fill:none;stroke:var(--acc);stroke-width:1.1}
.mf-frame .stl{fill:#c3c9cf;stroke:#68717a;stroke-width:.5}
.mf-frame .stl path{fill:none;stroke:#8e979f;stroke-width:.45}
.mf-frame .trk{fill:#aab2ba}
.mf-frame .trk path{stroke:#68717a}
.mf-frame .scr,.mf-frame .bscr{fill:none;stroke:#4f575f;stroke-width:1.3;stroke-linecap:round}
.mf-frame .bscr{stroke:#6b665c;stroke-width:1.8}
.mf-frame .dl{fill:none;stroke:currentColor;stroke-width:.8}
.mf-frame .tk{fill:none;stroke:var(--acc);stroke-width:1.6;stroke-linecap:round}
.mf-frame text{fill:var(--acc-t);font:600 10px var(--mono)}
.mf-frame .board{fill:#e0dbcf;stroke:#9c968a;stroke-width:.8}
/* the framing and repair drawings sit straight on the card: no beige well around them (viewBoxes cropped to the drawing) */
.mf-frame .mf-svg,.mf-repair .mf-svg{background:none;border-radius:0}
/* a soft shadow only while the sheet slides on (mf-sh); screwed tight to the studs it casts none, so the end frame
   (no JS, reduced motion, after the build) has no shadow. Blurred in the SVG; only opacity and position move. */
.mf-frame .sh{fill:#0a0a0b;opacity:0}
.mf-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.mf-steps{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font:500 13px/1.35 var(--mono);color:var(--fg);min-width:0}
.mf-steps li{transition:color .3s}
.mf-steps.live li:not(.on){color:var(--dim)}
.mf-steps li::before{content:'';display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:7px;background:#b9c0c7;vertical-align:1px}
.mf-steps li:last-child::before{background:#ebe7df;box-shadow:0 0 0 1px var(--line2)}
.mf-btn{flex:none;touch-action:manipulation}
.mf-btn:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.mf-demo figcaption{display:grid;gap:4px;color:var(--mut);font-size:14px;text-wrap:pretty}
/* phones: legend and caption lines end before the floating Ask button (48px + 14px from the right edge) */
@media(max-width:768px){.mf-demo figcaption{padding-right:40px}}
.mf-list{display:grid;gap:8px;padding-left:1.2em;color:var(--mut)}
.mf-svg .a{transform-box:fill-box}
.mf-svg .draw{transform-origin:0 50%}
/* steel studs are twisted into the track: a turn about the centreline, never poking past the track; screws and
   pops scale about their own centre */
.mf-svg .set,.mf-svg .drive,.mf-svg .pop{transform-origin:50% 50%}
@media(prefers-reduced-motion:no-preference){
  .mf-svg.run .a{animation:var(--k) .55s cubic-bezier(.2,.8,.2,1) var(--d,0s) both}
  .mf-svg.run .set{--k:mf-set}
  .mf-svg.run .drop{--k:mf-drop}
  .mf-svg.run .rise{--k:mf-rise}
  .mf-svg.run .draw{--k:mf-draw}
  .mf-svg.run .fade{--k:mf-fade}
  .mf-svg.run .board{--k:mf-board;animation-duration:.7s}
  .mf-svg.run .sh{--k:mf-sh;animation-duration:.7s}
  .mf-svg.run .drive{--k:mf-drive;animation-duration:.4s}
  .mf-svg.run .pop{--k:mf-pop}
  .mf-svg.paused .a{animation-play-state:paused}
  /* scroll-scrubbed (mf.js, data-scrub, browsers with scroll-driven animations): the drawing's own view timeline drives
     every part; mf.js gives each part its slice of the scroll as animation-range */
  .mf-svg.scrub{view-timeline:--mf block;view-timeline-inset:auto} /* auto = the page's scroll-padding: sticky header, phone tab bar */
  .mf-svg.scrub .a{animation-timeline:--mf;animation-duration:auto;animation-delay:0s}
}
@keyframes mf-set{from{transform:translateY(-.8px) scaleX(.08);opacity:0}70%{transform:translateY(-.8px) scaleX(1);opacity:1}}
@keyframes mf-drop{from{transform:translateY(-22px);opacity:0}}
@keyframes mf-rise{from{transform:translateY(22px);opacity:0}}
@keyframes mf-draw{from{transform:scaleX(0)}}
@keyframes mf-fade{from{opacity:0}}
@keyframes mf-board{from{transform:translateX(-28px);opacity:0}}
@keyframes mf-sh{from{transform:translate(-24px,3px);opacity:0}55%{opacity:.5}}
@keyframes mf-drive{from{transform:scale(2.6);opacity:0}45%{opacity:1}}
@keyframes mf-pop{from{transform:scale(.4);opacity:0}}
.skip{position:absolute;left:-9999px;top:8px;z-index:60;padding:8px 12px;border-radius:8px;background:var(--acc);color:var(--acc-fg)}
.skip:focus{left:12px}
