/* ============================================================
   MPUMALANGA ROOFING & PROJECTS — shared stylesheet
   Used by index.html and gallery.html.

   WHY THIS IS A SEPARATE FILE. It was inline in index.html, which saved a
   round trip on the page that matters most — a real consideration for an
   audience on rural mobile. It came out when the gallery page arrived,
   because the alternative was two copies of 700 lines of design system in a
   project that has had a dozen rounds of tweaks to the logo size, the footer,
   the reds and the type scale. Drift between the copies was a certainty; the
   extra request is one same-origin fetch, smaller and faster than the
   Google Fonts round trip already in flight, and cached for the rest of the
   visit. Page-specific rules stay in a <style> block on their own page.
   ============================================================ */
/* ============================================================
   MPUMALANGA ROOFING & PROJECTS — one-page site
   The product is a transformation: thatch off, metal or shingle on.
   That transformation is the spine of the page rather than a section
   within it.

   Every photograph is MRP's own work, shot on site. The one
   exception is the left half of the before/after slider, which is
   an illustration of a thatched roof and is labelled as such —
   it must never be presented as a photograph. (Stage 01 of the
   process strip used to carry a brand panel for the same reason;
   real strip-day photography arrived 7 Sep 2026, so all five
   stages are now genuine and .fshot.ph is retired.)

   System rules carried from the signage:
   - ONE angle: dx/dy = 0.4556 → 65.51° from horizontal → skewX(-24.49deg)
   - Bebas for display (all caps), Barlow for body

   RED. The signage keeps red scarce — two compositional uses per board. On
   screen it also works as the accent and wayfinding colour: stage numbers and
   the process rail, service ranks, why-grid markers, section ticks. The two big
   compositional uses still anchor it: one word in the H1, and the action band.

   Measured, and these are authoritative — do not re-derive them:
     red on ink   #F50E00 on #000000 = 4.95:1 → text at any size is fine
     red on paper #F50E00 on #F2F1EF = 3.76:1 → LARGE text and graphics only
     red on white #F50E00 on #FFFFFF = 4.25:1 → LARGE text only
     white on red #FFFFFF on #F50E00 = 4.25:1 → LARGE text only
     black on red #000000 on #F50E00 = 4.95:1 → passes at any size, and is
       nevertheless NO LONGER USED. See the --red-btn note in :root: the pair
       passes on lightness while failing to the eye, because brand red is a dark
       colour with a saturated hue and the edge against black carries hue
       contrast without lightness contrast.
   Text on a red ground is now WHITE ON --red-btn (6.34:1). Small red text on a
   light ground is --red-sm (5.81:1 on white, 5.15:1 on paper). The action band
   keeps its scale rule for display type; it has no small black text left.

   Every figure on this page is verified: trading since 2020, the service list
   and its top three, the service area, and the six commitments in section 05.
   No invented project counts, no stock imagery.
   ============================================================ */
:root{
  /* --ink is the CI black #000000. It was #101010 here, which measured 4.48:1
     against red — just under AA — and quietly broke both black-on-red labels
     and red-on-dark eyebrows. True black puts both at 4.94:1. */
  --red:#F50E00; --ink:#000000; --grey:#2B2B2B; --paper:#F2F1EF; --white:#fff;
  /* deep end of the brand red, for the contact band's gradient. Not a second
     brand colour — the same hue pulled down in value. */
  --red-deep:#4A0400;

  /* ---- TWO DERIVED REDS, AND THE RULE THAT SEPARATES THEM ----
     Black on brand red measures 4.95:1, which passes AA at any size. It still
     looked wrong, and the measurement is why: brand red sits at 19.7% relative
     luminance — it is a DARK colour carrying a very saturated hue. Against black
     there is a large hue jump but only a small LIGHTNESS jump, so the glyph edge
     reads as chromatic vibration instead of crisp type, and at small sizes the
     red bleeds into the letterforms. Contrast ratio scores lightness only, which
     is exactly why the number looked fine and the eye did not.

     So the rule is now:
       --red      #F50E00 — red as a GRAPHIC. Ticks, marks, rails, rules, the
                  one H1 word, the action band's field. Never a ground for small
                  text. This is the CI colour and does not change.
       --red-btn  #C10A00 — red as a GROUND FOR TEXT. Buttons, badges, chips,
                  the skip link, the mobile call button. WHITE on it is 6.34:1,
                  comfortable at any size, and it still reads as brand red
                  rather than maroon. (Black on it would be 3.31:1, so black is
                  ruled out here by measurement, not by taste.)
       --red-sm   #CC0B00 — small RED TEXT on light grounds. Brand red is
                  4.25:1 on white and 3.76:1 on paper, so it fails AA for body
                  sizes; this is 5.81:1 and 5.15:1.
     Both derived values are the same hue pulled down in value, like --red-deep. */
  --red-btn:#C10A00;
  --red-sm:#CC0B00;
  --focus:#F5C518; /* focus ring only — stays visible on ink and over photographs */
  --track:.096em; --track-wide:.231em;
  --angle:-24.49deg;
  --run:.4556; /* dx per 1px of dy */
  --pad:clamp(1.25rem,4.5vw,4.5rem);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ============================================================
   SCROLL REVEAL
   The page is an argument that accumulates — evidence arriving as you go. So
   the motion is one gesture repeated, not a variety act: a short rise, one
   easing, staggered along the reading direction, like sheets being laid in a
   run. Two exceptions earn their difference because they use the brand's own
   geometry — the process rail draws left to right, and the proof panel enters
   along the angle its edge is cut on.

   THE SAFETY RULE, which every rule below obeys: content is visible by
   default. Nothing is hidden unless html.rv is present, and only the script
   adds html.rv — after its observers are attached, inside a try/catch. No JS,
   an old browser, a blocked script, a thrown error, reduced motion: all of
   them land on the fully readable page rather than on a blank band. There is
   no blanket timer here (the old five-stage version had one); on a whole-page
   system a timer that reveals everything would just delete the effect. The
   equivalent guarantee comes from the reveal test running on plain scroll
   events, so anything the visitor scrolls to is shown, full stop.

   Deliberately NOT animated:
   - the hero: it is already on screen, and delaying the first read to animate
     it trades the one thing that matters for decoration
   - the contact band's form, buttons and links: nothing a visitor might click
     is allowed to wait on a transition. The band's h2 moves; the controls
     under it do not.
   - header, footer and the mobile action bar: navigation should be a constant
   ============================================================ */
html.rv [data-rv]{opacity:0;
  transition:opacity .62s cubic-bezier(.22,.68,.24,1),transform .62s cubic-bezier(.22,.68,.24,1)}
/* 18px, not 40 — far enough to register as arriving, short enough that it never
   reads as a slide transition */
html.rv [data-rv="up"]{transform:translateY(18px)}
/* the proof panel travels along its own cut edge */
html.rv [data-rv="left"]{transform:translateX(-26px)}
html.rv [data-rv].shown{opacity:1;transform:none}
/* the red rail draws out from the left before the stages land on it. It is a
   pseudo-element, so the class goes on the list and the rule reaches through. */
html.rv .flow::before{transform:scaleX(0);transform-origin:left center;
  transition:transform 1s cubic-bezier(.22,.68,.24,1)}
html.rv .flow.railed::before{transform:none}
/* overflow-x:clip (not hidden — hidden would create a scroll container and can
   break sticky children) stops a stray element, or a browser extension that
   injects one, from opening a sideways scroll. Sections only paint their own
   width, so a horizontal scroll leaves their backgrounds stranded mid-page. */
body{font-family:Barlow,sans-serif;background:var(--paper);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased;
  overflow-x:clip}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
.bebas{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);line-height:.92}

/* skip link — off-screen until focused, then it lands on the brand angle like
   everything else. The nav is six in-page anchors, so keyboard users otherwise
   tab through the whole header to reach the copy. */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--red-btn);color:#fff;
  font-weight:700;font-size:.9rem;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;
  height:44px;padding:0 1.4rem 0 1.1rem;display:inline-flex;align-items:center;
  clip-path:polygon(20px 0,100% 0,calc(100% - 20px) 100%,0 100%)} /* dx = 0.4556 × 44 ≈ 20px */
.skip:focus{left:var(--pad);top:.5rem}

/* ============ HEADER — logo, in-page nav, the number ============ */
.hdr{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.1rem var(--pad);background:var(--ink)}
/* Was 44, then 58, now scaling. The logo's second line — ROOFING & PROJECTS —
   is set very small inside the artwork, so height is what makes it legible
   rather than decorative. Clamped rather than fixed: it grows on a desktop
   where there is room beside the nav, and holds at 64px on a phone where the
   header should stay a header. Aspect is 1000:515, so 86px tall is 167px wide —
   well inside the 335px a 375px screen leaves after padding. */
.hdr img{height:clamp(64px,5.6vw,86px);width:auto}
.hdr nav{display:flex;gap:1.6rem;margin-left:auto}
.hdr nav a{color:rgba(255,255,255,.72);text-decoration:none;font-size:.82rem;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;padding:.4rem 0;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.hdr nav a:hover,.hdr nav a:focus-visible{color:#fff;border-bottom-color:var(--red);outline:none}
/* The phone number that used to sit top-right came out on request. The number is
   still above the fold in the hero, and on a phone the sticky bar carries Call
   and WhatsApp — so nothing was lost by taking it out of the header. */

/* ============ HERO — the signage hero: flat field, ghosted mark, three reads ============ */
/* Same discipline as the boards: 1 the idea (headline), 2 who (the ghosted mark,
   the boards run it at 2160 mm), 3 how to act (the numbers). No middle register. */
/* Gradient on the same 114.49° axis as the contact band, so the page opens and
   closes on the same device. The deep end carries a trace of the brand red
   rather than going neutral grey — it stays warm next to the red H1 word. */
.hero{position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(114.49deg,#000 0%,#000 38%,#160504 76%,#240806 100%)}
/* THE MARK AS A WINDOW ONTO THE WORK.
   The submark PNG is white-on-transparent, so its alpha channel masks a
   photograph of a finished house. Geometry is the ghost's it replaces —
   right:-6%, 165% tall, bleeding off the edge — and aspect-ratio 674/718
   matches the asset so mask-size:contain fills the box exactly.
   At this scale the mark covers the headline and body copy, so the photo is
   darkened on the brand angle instead of the mark being shrunk: heaviest at
   top-left where the type sits, lightest bottom-right where it bleeds off and
   nothing is over it. Measured white 8.72:1, red word 4.95:1, body 16.07:1.
   The photo is an <img> inside rather than a CSS background so it can serve
   WebP and reuse the request the services card already makes for it. */
.hero-mask{position:absolute;top:50%;right:-6%;transform:translateY(-46%);
  height:165%;aspect-ratio:674/718;overflow:hidden;
  -webkit-mask:url(img/submark-white.png) center/contain no-repeat;
          mask:url(img/submark-white.png) center/contain no-repeat;
  pointer-events:none;user-select:none}
.hero-mask picture,.hero-mask img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Parallax headroom. The photo is cut 9% taller than its window and hung 4.5%
   above it, so the script can drift it without ever exposing an edge inside the
   mark. At scroll position 0 the offset is 0, which is the position every
   contrast measurement on this hero was taken at. */
/* No transition on this one: the transform is written fresh each frame from the
   scroll position, and easing it would make it lag behind the page. */
.hero-mask img{height:109%;top:-4.5%}
.hero-mask .tint{position:absolute;inset:0;
  background:linear-gradient(114.49deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.68) 42%,rgba(0,0,0,.26) 100%)}
.hero-in{position:relative;z-index:2;padding:clamp(3.5rem,9vw,7.5rem) var(--pad) clamp(4rem,10vw,8rem);max-width:74rem}
/* red tick, same as every section eyebrow — ties the hero into the page's language */
 /* .65 measured 4.00:1 against the brightest part of the masked photograph
    behind it — under AA at 12.8px. .85 measures 6.6:1 there and is still
    visibly subordinate to the headline. */
.hero-kicker{font-size:.8rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.85);margin-bottom:1.4rem;display:flex;align-items:center;gap:.6rem}
.hero-kicker::before{content:"";width:14px;height:14px;flex:none;background:var(--red);
  clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%)}
h1{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);
  font-size:clamp(3.6rem,12vw,10.5rem);line-height:.88;text-transform:uppercase;color:#fff}
h1 .red{color:var(--red)}
.hero-sub{max-width:32em;margin-top:1.6rem;font-size:clamp(1rem,1.4vw,1.2rem);color:rgba(255,255,255,.85)}
.hero-cta{display:flex;align-items:center;gap:1.2rem 1.8rem;flex-wrap:wrap;margin-top:2.2rem}
.btn-hero{display:inline-flex;align-items:center;height:48px;padding:0 1.6rem 0 1.3rem;
  background:#fff;color:var(--ink);text-decoration:none;font-weight:600;font-size:.95rem;letter-spacing:.04em;
  clip-path:polygon(22px 0,100% 0,calc(100% - 22px) 100%,0 100%)} /* dx = 0.4556 × 48 = 22px */
.btn-hero:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.hero-tel{color:#fff;text-decoration:none;font-weight:600;font-size:.98rem;min-height:44px;display:inline-flex;align-items:center}
.hero-tel span{color:rgba(255,255,255,.55);font-weight:400;margin-right:.45em}

/* ============ WHY CONVERT — the reason to care ============ */
/* Sits where a strip of attributes used to. Attributes told the visitor what we
   are; these three tell them what they get, which is the one question the rest
   of the page never answered. */
.conv{background:var(--white);padding:clamp(3rem,6vw,5rem) 0;border-bottom:1px solid rgba(0,0,0,.14)}

/* tags used by the wipe */
.tag{position:absolute;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;padding:.45rem .7rem}
/* the "before" is an illustration, not a photograph — labelled plainly, in ink
   so it reads as a caption rather than a warning */
.tag-before{background:var(--ink);color:#fff}
.tag-after{background:#fff;color:var(--ink)}

/* ============ THE WIPE — draggable before/after ============ */
.wipe-sec{padding:clamp(3.5rem,8vw,7rem) 0}
.sec-head{padding:0 var(--pad);margin-bottom:2.2rem}
/* every section eyebrow carries a red tick at the angle — red as a graphic,
   so the small type keeps its ink contrast on paper */
.sec-head .no{font-size:.8rem;font-weight:700;letter-spacing:.18em;color:var(--ink);opacity:.5;
  display:flex;align-items:center;gap:.6rem}
.sec-head .no::before{content:"";width:14px;height:14px;flex:none;background:var(--red);
  clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%)} /* dx = 0.4556 × 14 ≈ 6px */
.sec-head h2{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);font-size:clamp(2.2rem,5.5vw,4.2rem);text-transform:uppercase;line-height:.95;margin-top:.4rem}
.sec-head p{max-width:36em;margin-top:.9rem;font-size:1.02rem}
/* "See all 37 photographs" — an underlined text link rather than a button, so it
   reads as a route onward and does not compete with the page's real calls to
   action. The rule is red because the text itself has to stay ink: red on paper
   is 3.58:1, fine as a graphic, under AA for copy this size. */
.sec-more{margin-top:1.1rem}
/* inline-block + padding so the target clears 24px; it measured 22px tall */
.sec-more a{display:inline-block;font-weight:700;font-size:.95rem;letter-spacing:.03em;
  text-decoration:none;border-bottom:2px solid var(--red);padding:.25rem 0 4px;
  transition:border-color .2s}
.sec-more a:hover,.sec-more a:focus-visible{border-bottom-color:var(--ink)}
.sec-more a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
/* on the dark sections the same link inverts */
.job .sec-more a,.work .sec-more a{color:#fff}
.wipe{position:relative;height:min(72vh,680px);overflow:hidden;touch-action:pan-y;cursor:col-resize;user-select:none;-webkit-user-select:none}
.wipe picture,.wipe img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.wipe .layer-after{position:absolute;inset:0}
.wipe .blade{position:absolute;top:0;bottom:0;width:4px;background:#fff;pointer-events:none;
  transform:skewX(var(--angle));box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.wipe .grip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;
  background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none;
  clip-path:polygon(22px 0,100% 0,calc(100% - 22px) 100%,0 100%)} /* 0.4556 × 48 ≈ 22 at this size */
.wipe .grip svg{width:22px;height:22px}
.wipe .tag-before{bottom:1.2rem;left:var(--pad)}
.wipe .tag-after{bottom:1.2rem;right:var(--pad)}
/* Drag affordance. Centred over the cut, ink so it reads at 21:1, and cut on the
   one angle like every other chip. Removed by the script on first interaction. */
.wipe-hint{position:absolute;top:1.1rem;left:50%;transform:translateX(-50%);
  background:var(--ink);color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;padding:.5rem .9rem .5rem .75rem;pointer-events:none;
  transition:opacity .3s;
  clip-path:polygon(14px 0,100% 0,calc(100% - 14px) 100%,0 100%)} /* dx = 0.4556 x 31 ≈ 14px */
.wipe.touched .wipe-hint{opacity:0}
@media (prefers-reduced-motion:reduce){.wipe-hint{transition:none}}
.wipe-range{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:col-resize}
.wipe-range:focus-visible ~ .blade{outline:3px solid var(--focus);outline-offset:2px}

/* ============ THE JOB — five stages laid out like sheets in a run ============ */
/* Rebuilt 11 Aug. The scrolling sticky-rail version was too slow to read.
   This is the reference site's numbered process strip, rebuilt on our own
   geometry: a red rail across the top, one skewed node per stage. */
.job{background:var(--ink);color:#fff;padding:clamp(3.5rem,8vw,7rem) 0}
.job .sec-head .no{color:var(--red);opacity:1}
.job .sec-head h2{color:#fff}
.job .sec-head p{color:rgba(255,255,255,.8)}
.flow{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:clamp(.8rem,1.6vw,1.7rem);
  padding:0 var(--pad);position:relative}
/* the rail: a red line the five nodes sit on */
.flow::before{content:"";position:absolute;left:var(--pad);right:var(--pad);top:12px;height:2px;
  background:rgba(245,14,0,.4)}
/* The stages' entrance is the shared reveal system now (data-rv on each <li>),
   rather than the bespoke .reveal/.on pair this section used to carry alone. */
.fstage{position:relative;display:flex;flex-direction:column}
.ftop{position:relative;z-index:2;display:flex;align-items:center;gap:.6rem;margin-bottom:1.1rem}
.fdot{width:26px;height:26px;flex:none;background:var(--red);
  clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%)} /* dx = 0.4556 × 26 ≈ 12px */
.fnum{font-family:'Bebas Neue',sans-serif;letter-spacing:var(--track);font-size:1.45rem;line-height:1;color:var(--red)}
/* 4/5 not 3/4 — the originals are landscape, and a taller crop threw the roof away */
.fshot{position:relative;aspect-ratio:4/5;overflow:hidden;background:#1a1a1a}
.fshot img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease-out}
.fstage:hover .fshot img{transform:scale(1.04)}
.fstage h3{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);
  font-size:clamp(1.25rem,1.9vw,1.6rem);text-transform:uppercase;line-height:1;margin:1rem 0 .5rem}
.fstage p{font-size:.88rem;color:rgba(255,255,255,.75)}
/* margin-top:auto drops every caption to the bottom of its column so the row lines up */
.fcap{margin-top:auto;padding-top:.7rem;font-size:.7rem;letter-spacing:.09em;text-transform:uppercase;
  color:rgba(255,255,255,.42);border-top:1px solid rgba(255,255,255,.14)}
/* Stage 01 has no strip-day photograph yet. Rather than fake one, this panel is
   a deliberate brand field — the ghosted mark on ink, ruled at the one angle. */
.fshot.ph{background:var(--ink);display:flex;align-items:center;justify-content:center;position:relative}
.fshot.ph::before{content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(65.51deg,rgba(255,255,255,.035) 0 30px,transparent 30px 34px)}
.fshot.ph img{position:relative;height:118%;width:auto;opacity:.11}

/* ============ SERVICES — the client's own ranking, told with their own photographs ============ */
/* Client confirmed the list 7 Aug 2026 and ticked three as the top three.
   Those three get a photograph; the rest are a compact list. The hierarchy
   on the page IS their answer. */
.svc{padding:clamp(3.5rem,8vw,7rem) 0}
.svc-lead{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,2vw,1.6rem);padding:0 var(--pad)}
.card{position:relative;background:var(--ink);color:#fff;overflow:hidden;text-decoration:none;display:block}
.card .shot{position:relative;aspect-ratio:4/3;overflow:hidden}
.card .shot img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease-out}
.card:hover .shot img,.card:focus-visible .shot img{transform:scale(1.04)}
/* scrim runs on the brand angle; kept light so the work stays the subject */
.card .scrim{position:absolute;inset:0;background:linear-gradient(114.49deg,rgba(16,16,16,.5) 0%,rgba(16,16,16,.03) 58%)}
.card .rank{position:absolute;top:0;left:0;background:var(--red-btn);color:#fff; /* white on --red-btn = 6.34:1 */
  font-family:'Bebas Neue',sans-serif;letter-spacing:var(--track);font-size:1.1rem;line-height:1;
  height:38px;display:flex;align-items:center;padding:0 1.1rem 0 .75rem;
  clip-path:polygon(0 0,100% 0,calc(100% - 17px) 100%,0 100%)} /* dx = 0.4556 × 38 ≈ 17px */
.card .body{padding:1.1rem 1.2rem 1.4rem}
.card h3{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);
  font-size:clamp(1.4rem,2.2vw,1.9rem);text-transform:uppercase;line-height:1}
.card p{margin-top:.55rem;font-size:.92rem;color:rgba(255,255,255,.78)}
/* Was a .78 -> transparent ramp across the whole caption box, which put the
   glyphs at roughly .4 alpha and measured 3.33:1 over a pale roof — under AA.
   This is the SAME recipe as .gal figcaption, which measured 5.98:1 over its
   own photographs; the two captions do the same job and now share the gradient
   rather than each having its own guess at one. */
.card .shotcap{position:absolute;bottom:0;left:0;right:0;padding:.7rem 1.2rem;font-size:.78rem;
  color:rgba(255,255,255,.94);
  /* .6 at the mid stop measured 4.51:1 — over the bar but by 0.01, which is not a
     margin. Swap the photograph behind this card and it would fail. .72 gives
     5.3:1 against the palest of the three current cards. */
  background:linear-gradient(to top,rgba(0,0,0,.9) 0%,rgba(0,0,0,.72) 45%,transparent 100%)}
.svc-rest{margin:clamp(2rem,4vw,3rem) var(--pad) 0;border-top:2px solid var(--ink);list-style:none}
.svc-rest li{display:grid;grid-template-columns:3.2em 1fr auto;gap:1rem;align-items:baseline;
  padding:1.05rem 0;border-bottom:1px solid rgba(16,16,16,.25);font-size:clamp(1.05rem,1.6vw,1.3rem)}
/* 1.5rem = 24px, so red clears the 3:1 large-text threshold on paper */
.svc-rest .n{font-family:'Bebas Neue',sans-serif;letter-spacing:var(--track);color:var(--red);font-size:1.5rem;line-height:1}
.svc-rest .s{font-weight:600}
.svc-rest .d{font-size:.9rem;color:var(--grey);text-align:right}

/* ============ OUR WORK — mosaic of MRP's own photography ============ */
/* The whole argument of the site: our own photography, in quantity. Framed for a
   while as beating designerroof.co.za, who show none of their own work — but they
   turn out to be MRP's truss supplier and partner, not a competitor (corrected
   9 Sep 2026). The strategy is unchanged and stands on its own: a local
   contractor whose work is photographable should lead with the photographs. */
.work{background:var(--ink);color:#fff;padding:clamp(3.5rem,8vw,7rem) 0 0}
.work .sec-head .no{color:var(--red);opacity:1}
.work .sec-head h2{color:#fff}
.work .sec-head p{color:rgba(255,255,255,.8)}
.gal{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:clamp(88px,11vw,165px);gap:3px}
.gal figure{position:relative;overflow:hidden;grid-row:span 2}
.gal .wide{grid-column:span 2}
.gal img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease-out}
.gal figure:hover img{transform:scale(1.05)}
.gal figcaption{position:absolute;bottom:0;left:0;right:0;padding:2.2rem .85rem .7rem;font-size:.76rem;
  letter-spacing:.02em;color:rgba(255,255,255,.92);
  background:linear-gradient(to top,rgba(16,16,16,.88) 0%,rgba(16,16,16,.6) 45%,transparent 100%)}

/* ============ SHARED THREE-UP GRID — used by Why convert and the trust row ============ */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.8rem,3.5vw,3.2rem);margin:0 var(--pad);
  border-top:2px solid var(--ink);padding-top:clamp(1.8rem,3.5vw,2.8rem)}
/* on the dark work section the same grid inverts */
.work .why-grid{border-top-color:rgba(255,255,255,.25)}
.work .why-item h3{color:#fff}
.work .why-item p{color:rgba(255,255,255,.75)}
.why-item{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:start}
.why-item .mark{width:26px;height:26px;background:var(--red);flex:none;
  clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%)} /* dx = 0.4556 × 26 ≈ 12px */
.why-item h3{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);
  font-size:clamp(1.25rem,2vw,1.6rem);text-transform:uppercase;line-height:1;margin-bottom:.45rem}
.why-item p{font-size:.93rem;color:var(--grey)}

/* ============ ACCREDITATION & MATERIALS ============
   A paper band between the ink work mosaic and the ink testimonial. The break in
   ground is deliberate: this is the one section that is neither our photography
   nor our words but somebody else's verification of us, and it should read as a
   factual interlude rather than as more of the argument.

   The badge sits on a WHITE plate. Brand paper is #F2F1EF and the badge arrived
   on white, so keying it to transparency or tinting the plate would both mean
   altering another organisation's certification mark. A white card is also how
   certificates are conventionally presented, so it costs nothing. */
.cred{background:var(--paper);padding:clamp(2.5rem,6vw,4.5rem) 0 clamp(2.5rem,6vw,4rem)}
.cred-grid{display:grid;grid-template-columns:repeat(2,1fr);
  gap:clamp(1.8rem,4vw,3.4rem);margin:0 var(--pad);
  border-top:2px solid var(--ink);padding-top:clamp(1.8rem,3.5vw,2.8rem)}
.cred-item{display:grid;grid-template-columns:auto 1fr;gap:clamp(1rem,2vw,1.6rem);align-items:start}
/* SAME HEIGHT, DIFFERENT WIDTHS — matching height is what makes a row of marks
   look aligned, the way a partner strip is set by optical size rather than by
   bounding box. The first version forced both plates square, which crushed the
   landscape Designer Roof logo (280x137) to about 58px tall inside a 132px box
   and left "ROOF TRUSS" barely readable. The ITC badge is near-square at 301x320
   so it keeps the square plate; the supplier plate goes landscape. */
.cred-mark{width:clamp(96px,10vw,132px);height:clamp(96px,10vw,132px);flex:none;
  background:#fff;padding:.7rem;display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 0 rgba(0,0,0,.14)}
.cred-mark-wide{width:clamp(150px,16vw,208px)}

.cred-mark img{max-width:100%;max-height:100%;width:auto;height:auto;display:block}
.cred-body h3{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);
  font-size:clamp(1.2rem,2vw,1.55rem);text-transform:uppercase;line-height:1;margin-bottom:.55rem}
.cred-body p{font-size:.95rem;color:var(--grey);max-width:34em}
/* --red-sm, not --red: brand red on paper is 3.76:1, which is graphics-only.
   This is a number people may read out, so it needs the 5.15:1 variant. */
.cred-no{font-weight:700;color:var(--red-sm);letter-spacing:.02em;white-space:nowrap}
.cred-link{margin-top:.7rem}
.cred-link a{display:inline-block;font-weight:700;font-size:.92rem;text-decoration:none;
  border-bottom:2px solid var(--red);padding:.15rem 0 3px;transition:border-color .2s}
.cred-link a:hover,.cred-link a:focus-visible{border-bottom-color:var(--ink)}
.cred-link a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* ============ PROOF — one review, at the size of a review ============ */
/* Only one usable public testimonial exists, and padding a carousel with
   nothing would be worse. But the first version gave it a 620px full-bleed
   photograph and set the sentence in Bebas all-caps at up to 2.6rem — which is
   what made it feel enormous. Display type turns a client's spoken sentence
   into a billboard, and shouting a modest compliment about tidiness reads as
   overselling it.
   So: Barlow, sentence case, at a size you'd read rather than announce; a
   quiet mark doing the "this is a quote" work; and the photograph reduced from
   a full-bleed backdrop to a panel beside it, cut on the one angle. The band
   went from ~620px to ~300px and now sits between two much louder neighbours
   (the dark work mosaic above, the red action band below) as a breath rather
   than a third crescendo. */
.proof{background:var(--ink);color:#fff;overflow:hidden}
/* THE HEIGHT IS SET BY THE QUOTE, NEVER BY THE PHOTO. First attempt let the
   <img> sit in the grid cell as flow content, so a portrait photograph stretched
   the row to ~730px — taller than the full-bleed version it replaced. The
   picture is absolutely positioned now, which takes it out of flow entirely: it
   fills whatever height the sentence needs and can never drive it. */
/* No max-width: this band runs edge to edge like the mosaic above and the red
   band below it. Capping it left a strip of bare ink to the right of the photo. */
.proof-in{display:grid;grid-template-columns:1.7fr minmax(0,34rem);align-items:stretch}
.proof .panel{position:relative;z-index:2;
  padding:clamp(1.5rem,2.6vw,2.1rem) clamp(1.4rem,2.6vw,2.2rem) clamp(1.5rem,2.6vw,2.1rem) var(--pad);
  display:flex;flex-direction:column;justify-content:center}
/* The quotation mark as a graphic — small, sitting on the same baseline logic as
   the section eyebrows, so it marks the quote without announcing it. */
.proof .qmark{font-family:'Bebas Neue',sans-serif;font-size:2rem;line-height:.5;color:var(--red);
  display:block;margin-bottom:.7rem;user-select:none}
.proof blockquote{font-family:Barlow,sans-serif;font-weight:500;
  font-size:clamp(1.05rem,1.6vw,1.28rem);line-height:1.5;max-width:34em;color:#fff}
.proof cite{display:flex;align-items:center;gap:.6rem;margin-top:.9rem;font-style:normal;font-size:.84rem;
  color:rgba(255,255,255,.66);font-family:Barlow,sans-serif;letter-spacing:.02em}
.proof cite::before{content:"";width:14px;height:14px;flex:none;background:var(--red);
  clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%)}
.proof cite a{color:#fff}
/* Photo panel, cut on the brand angle where it meets the quote. Its own element
   rather than a CSS background so it can carry alt text and serve WebP. */
.proof .shot{position:relative;overflow:hidden;
  clip-path:polygon(46px 0,100% 0,100% 100%,0 100%)} /* dx = 0.4556 × ~101 ≈ 46px */
.proof .shot picture{position:absolute;inset:0}
.proof .shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* ============ WHAT HAPPENS NEXT ============ */
/* Deliberately the lightest section on the page: no photographs, no dark field,
   just four numbered steps on paper. It sits between the proof band and the red
   action band, and its job is to lower the perceived cost of making contact —
   so anything that made it feel like another chapter would defeat it. */
.next{padding:clamp(2.5rem,6vw,4.5rem) 0 clamp(2.5rem,6vw,4rem);
  border-top:1px solid rgba(0,0,0,.14)}
.nsteps{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(1.4rem,3vw,2.6rem);margin:0 var(--pad)}
.nsteps li{position:relative;padding-top:1rem;border-top:2px solid var(--red)}
/* the number is a graphic at this size, so brand red is correct here —
   24px+ clears the 3:1 large-text bar on paper (measured 3.76:1) */
.nsteps .nnum{display:block;font-family:'Bebas Neue',sans-serif;letter-spacing:var(--track);
  font-size:1.6rem;line-height:1;color:var(--red);margin-bottom:.5rem}
.nsteps h3{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);
  font-size:clamp(1.15rem,1.8vw,1.45rem);text-transform:uppercase;line-height:1;margin-bottom:.4rem}
.nsteps p{font-size:.93rem;color:var(--grey)}

/* group heading over the secondary services list */
.svc-sub{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track-wide);
  font-size:.95rem;text-transform:uppercase;margin:clamp(2rem,4vw,3rem) var(--pad) -.6rem;
  display:flex;align-items:center;gap:.55rem;color:var(--ink)}
.svc-sub::before{content:"";width:12px;height:12px;flex:none;background:var(--red);
  clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%)}
/* the list already carries a top rule; with a heading above it that reads as a
   double line, so the heading owns the spacing and the list drops its margin */
.svc-sub + .svc-rest{margin-top:1rem}

/* ============ ACTION BAND (red #2) ============ */
/* Type colour here follows a scale rule, not a whim:
     white on #F50E00 = 4.25:1 → AA for LARGE text only
     ink   on #F50E00 = 4.94:1 → AA at any size
   So the display type and the lead line are white (and the lead is sized up
   past the large-text threshold to earn it); the small labels stay ink. */
/* Gradient runs on the brand angle, brand red into its own deep end. Because the
   background luminance varies, nothing small and black can sit on it — the
   contact details get their own ink panel instead (.act-side). */
.act{position:relative;overflow:hidden;
  background:linear-gradient(114.49deg,var(--red) 0%,var(--red) 30%,#8A0800 76%,var(--red-deep) 100%);
  color:#fff;padding:clamp(3rem,7vw,5.5rem) var(--pad)}
/* Ghosted mark, the same move as the hero so the page opens and closes on it —
   moved to the LEFT here, into the space the form leaves empty. Never flipped:
   the mark is an "M" and mirroring it would be modifying the logo. At .10 the
   worst case is white text on a .10 white wash over brand red = 4.03:1, still
   clear of the 3:1 large-text bar that the headline and lead sit under. */
.act-ghost{position:absolute;left:-9%;top:52%;transform:translateY(-46%);
  height:150%;width:auto;opacity:.10;pointer-events:none;user-select:none}
.act-in{position:relative;z-index:2;
  display:grid;grid-template-columns:1fr minmax(0,26rem);gap:clamp(2rem,5vw,4rem);align-items:stretch;max-width:88rem}
/* left column is a flex column so the contact details can sit on the form's baseline */
.act-lead{display:flex;flex-direction:column}
.act h2{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);font-size:clamp(2.6rem,7vw,5.5rem);text-transform:uppercase;line-height:.92;color:#fff}
.act p{max-width:30em;margin:1.1rem 0 1.8rem;color:#fff;
  font-size:clamp(1.2rem,1.6vw,1.35rem);font-weight:700;line-height:1.4} /* ≥19.2px bold = large text */
.btns{display:flex;gap:1rem;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:.6rem;height:48px;padding:0 1.6rem 0 1.3rem;background:var(--ink);color:#fff;
  text-decoration:none;font-weight:600;font-size:.95rem;letter-spacing:.04em;
  clip-path:polygon(22px 0,100% 0,calc(100% - 22px) 100%,0 100%)} /* dx = 0.4556 × 48 = 22px */
.btn.alt{background:#fff;color:var(--ink)}
.btn:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
/* Solid ink panel, so these small labels keep their contrast wherever the
   gradient happens to be behind them (21:1 on ink, vs 1.9:1 if black text
   landed on the deep end of the red). */
.act-side{margin-top:auto;background:var(--ink);color:#fff;
  padding:clamp(1.1rem,2vw,1.5rem) clamp(1.3rem,2.4vw,2rem);align-self:start;width:fit-content;max-width:100%;
  clip-path:polygon(0 0,100% 0,calc(100% - 22px) 100%,0 100%)} /* dx = 0.4556 × 48 ≈ 22px */
.act-side dl{display:grid;grid-template-columns:auto 1fr;gap:.55rem 1.2rem}
.act-side dt{font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-size:.74rem;padding-top:.25rem;
  color:rgba(255,255,255,.55)}
.act-side dd{color:#fff;font-size:1rem;font-weight:600;line-height:1.4}
/* inline-block + padding: this email link measured 20px tall, under the 24px
   target-size minimum. The footer copy of the same address already had padding
   from .ftr ul a, which is why only this one showed up. */
.act-side a{display:inline-block;color:#fff;text-decoration:none;padding:.2rem 0;
  border-bottom:1px solid rgba(255,255,255,.5)}

/* ---- quote form: a white panel on the red field ---- */
/* Inputs need a light ground — form controls on red would be unreadable and
   would burn the band's one big compositional use of red on furniture. */
.qform{background:#fff;color:var(--ink);padding:clamp(1.4rem,2.5vw,2rem);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 26px),calc(100% - 57px) 100%,0 100%)} /* dx = 0.4556 × 57 ≈ 26px */
.qform h3{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track);
  font-size:1.5rem;text-transform:uppercase;line-height:1;margin-bottom:.25rem}
.qform .intro{font-size:.88rem;color:var(--grey);margin-bottom:1.1rem}
.field{margin-bottom:.9rem}
.field label{display:block;font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  margin-bottom:.35rem}
/* Was var(--red) at 12px on white = 4.25:1, under AA. --red-sm is 5.81:1.
   It is aria-hidden (aria-required carries the meaning) but it is still a
   visible cue for sighted users, so it has to be legible. */
.field .req{color:var(--red-sm)}
.field input,.field select,.field textarea{width:100%;font-family:Barlow,sans-serif;font-size:1rem;
  color:var(--ink);background:var(--paper);border:2px solid var(--ink);border-radius:0;
  padding:0 .75rem;min-height:48px} /* 16px font stops iOS zooming on focus */
.field textarea{padding:.6rem .75rem;min-height:84px;resize:vertical;line-height:1.45}
.field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);
  background-position:calc(100% - 18px) 22px,calc(100% - 12px) 22px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;
  padding-right:2.4rem}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:3px solid var(--red);outline-offset:2px}
/* COLOUR MUST BE DECLARED HERE, EXPLICITLY. This rule sits inside .act, where
   `.act p{color:#fff}` paints body copy white for the red band behind it. The
   form card is WHITE, so an .err that merely inherits comes out white-on-white
   at 1.00:1 — invisible. That shipped: from launch until 25 Nov 2026 a visitor
   who submitted an incomplete form saw a red outline and no message at all.
   `.field .err` outranks `.act p` on specificity, so it wins for every property
   it DECLARES — declaring none meant white still applied. An earlier comment
   here said "error text stays ink" and no colour was ever written; the note
   recorded an intention, not a rule.
   --red-sm (#CC0B00) is the design system's token for small red text on a light
   ground: 5.81:1 on white, comfortably past AA. The older note claiming red was
   3.76:1 was measured against --red (#F50E00) before --red-sm existed. */
.field .err{display:none;align-items:center;gap:.4rem;margin-top:.35rem;font-size:.82rem;font-weight:600;
  color:var(--red-sm)}
.field .err::before{content:"";width:11px;height:11px;flex:none;background:var(--red);
  clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%)}
.field.invalid .err{display:flex}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:var(--red)}
.qform .send{display:inline-flex;align-items:center;justify-content:center;width:100%;height:52px;margin-top:.4rem;
  background:var(--ink);color:#fff;border:0;font-family:Barlow,sans-serif;font-weight:700;font-size:1rem;
  letter-spacing:.04em;cursor:pointer;
  clip-path:polygon(24px 0,100% 0,calc(100% - 24px) 100%,0 100%)} /* dx = 0.4556 × 52 ≈ 24px */
.qform .send:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.qform .foot{margin-top:.7rem;font-size:.76rem;color:var(--grey)}
/* same trap as .err above — inherits white from .act p without this */
.qform .done{display:none;font-weight:600;line-height:1.45;color:var(--ink)}
.qform.sent .done{display:block}
.qform.sent .fields,.qform.sent .send,.qform.sent .foot,.qform.sent .intro{display:none}

/* ============ FOOTER ============ */
/* The footer was the one band still reading as a list of links under a rule.
   It now carries the same devices as the rest of the page — a red rule at the
   top, the ghosted mark, the angle on the social buttons — so the page closes
   on its own language instead of trailing off. */
.ftr{position:relative;overflow:hidden;background:var(--ink);color:rgba(255,255,255,.66);
  padding:clamp(2.5rem,5vw,4rem) var(--pad) 2rem;font-size:.9rem;
  border-top:3px solid var(--red)}
/* Ghosted mark, third and last appearance after the hero and the action band.
   Right-hand side, low, well clear of the four columns of text. At .045 on ink
   it is texture rather than an image — nothing is read against it. */
.ftr-ghost{position:absolute;right:-6%;bottom:-42%;height:190%;width:auto;opacity:.045;
  pointer-events:none;user-select:none}
/* Three columns since the services list came out. The brand column keeps the
   most room because it carries the logo, the summary and the social row. */
.ftr-grid{position:relative;z-index:2;
  display:grid;grid-template-columns:1.7fr 1fr 1.15fr;gap:clamp(1.6rem,3.5vw,3rem);max-width:88rem}
.ftr h4{font-family:'Bebas Neue',sans-serif;font-weight:400;letter-spacing:var(--track-wide);font-size:.9rem;
  text-transform:uppercase;color:#fff;margin-bottom:.9rem;display:flex;align-items:center;gap:.55rem}
.ftr h4::before{content:"";width:12px;height:12px;flex:none;background:var(--red);
  clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%)}
.ftr-brand img{height:46px;width:auto;margin-bottom:1.1rem}
/* The links were 17px tall, which only cleared WCAG's target-size rule via the
   spacing exception. Padding on the anchor itself makes each one a ~30px target
   and gives the column air, so the gap comes down to compensate. */
.ftr ul{list-style:none;display:flex;flex-direction:column;gap:.1rem}
.ftr ul a{display:inline-block;padding:.36rem 0}
.ftr a{text-decoration:none}
.ftr a:hover,.ftr a:focus-visible{color:#fff;text-decoration:underline}
.ftr a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.ftr .strong{color:#fff;font-weight:600}
/* the phone numbers are the point of this column — give them their own line
   and a size that reads as a number rather than as body copy */
.ftr-tel{display:flex;flex-direction:column;gap:.05rem}
/* .45 measured 4.43:1 on ink — a hair under AA at 11px. .55 is 6.25:1 and
   still clearly quieter than the number below it. */
.ftr-tel .who{font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.55)}
.ftr-tel a{color:#fff;font-weight:600;font-size:1.02rem}

/* ---- social buttons ---- */
/* Inline SVG, not an icon font or a hosted sprite: the page ships as one file
   plus its own images and must keep working with no third-party request.
   48 × 44 — the first version was 40 tall, under the 44px touch-target
   guideline, which matters here because these are the smallest tap targets on
   the page and they sit right above the thumb bar on a phone. */
.social{display:flex;gap:.5rem;margin-top:.2rem;flex-wrap:wrap}
.social a{display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:44px;background:rgba(255,255,255,.09);color:#fff;
  transition:background .2s,color .2s;
  clip-path:polygon(20px 0,100% 0,calc(100% - 20px) 100%,0 100%)} /* dx = 0.4556 × 44 ≈ 20px */
.social a:hover,.social a:focus-visible{background:var(--red-btn);color:#fff}
.social a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.social svg{width:19px;height:19px;fill:currentColor;display:block}
/* WhatsApp is where every other route on this page ends, so it leads the row
   and is the one that carries brand colour unprompted. */
.social a.wa{background:var(--red-btn);color:#fff}
.social a.wa:hover,.social a.wa:focus-visible{background:#fff;color:var(--ink)}

.ftr-base{position:relative;z-index:2;display:flex;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;
  margin-top:clamp(2rem,4vw,3rem);padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.16);font-size:.82rem}
/* .42 was the first try and measured 4.03:1 on ink at 13px — under AA. .5 keeps
   this line quieter than the body copy above it and measures 4.99:1. */
.ftr-base .svc-line{color:rgba(255,255,255,.5)}

/* ============ STICKY ACTION BAR ============ */
/* BREAKPOINT IS 1040, NOT 820, AND MATCHES WHERE THE NAV DISAPPEARS.
   It used to appear at 820, which left 821-1040px — small laptops and landscape
   tablets — with no in-page nav (hidden at 1040) and no sticky call to action
   either. Nothing was broken, but for 220px of viewport width the only way to
   reach the form was to scroll the whole page. The two breakpoints are the same
   number now on purpose: the moment the nav goes, the bar takes over. */
.mbar{display:none}
@media (max-width:1040px){
  .mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--ink);
    padding:.6rem .8rem calc(.6rem + env(safe-area-inset-bottom));gap:.6rem}
  .mbar a{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:48px;
    text-decoration:none;font-weight:700;font-size:.92rem;letter-spacing:.04em;
    clip-path:polygon(22px 0,100% 0,calc(100% - 22px) 100%,0 100%)}
  .mbar .wa{background:#fff;color:var(--ink)}
  .mbar .cl{background:var(--red-btn);color:#fff} /* white on --red-btn = 6.34:1 */
  body{padding-bottom:76px}
  /* the two buttons are side by side and there is room, so name the actions */
  .mbar a{max-width:22rem;margin:0 auto}
}

@media (max-width:1040px){
  .hdr nav{display:none}
  /* the rail only reads as a rail in a single row — below that each stage
     carries its own red rule instead */
  .flow{grid-template-columns:repeat(3,1fr);row-gap:clamp(2rem,4vw,3rem)}
  .flow::before{display:none}
  .fstage{border-top:2px solid rgba(245,14,0,.4);padding-top:1rem}
  .ftr-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  .cred-grid{grid-template-columns:1fr;gap:1.8rem}
  .nsteps{grid-template-columns:1fr 1fr}
  .flow{grid-template-columns:1fr 1fr}
  .svc-lead{grid-template-columns:1fr}
  .card .shot{aspect-ratio:16/9}
  .svc-rest .d{display:none}
  .why-grid{grid-template-columns:1fr 1fr}
  .gal{grid-template-columns:repeat(2,1fr);grid-auto-rows:clamp(84px,22vw,150px)}
  .act-in{grid-template-columns:1fr}
  /* Stack, quote first. The photo becomes a shallow band under it with the cut
     moved to its top edge, so the angle still reads where the two meet. */
  .proof-in{grid-template-columns:1fr;min-height:0}
  .proof .shot{height:clamp(150px,38vw,220px);
    clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}
  .hero-mask{height:120%;right:-30%}
  .act-ghost{height:80%;left:-34%;top:38%} /* smaller and further out so it stays behind, not under, the form */
}
@media (max-width:560px){
  .nsteps{grid-template-columns:1fr;gap:1.4rem}
  .flow{grid-template-columns:1fr}
  .fshot{aspect-ratio:16/9}
  .why-grid{grid-template-columns:1fr}
  .ftr-grid{grid-template-columns:1fr}
}
/* Belt and braces for reduced motion. The script already refuses to add
   html.rv when the user has asked for less movement, so nothing is ever
   hidden — these rules also strip the hover zooms and neutralise the reveal
   transitions in case html.rv arrives some other way. */
@media (prefers-reduced-motion:reduce){
  html.rv [data-rv],html.rv [data-rv].shown{opacity:1;transform:none;transition:none}
  html.rv .flow::before,html.rv .flow.railed::before{transform:none;transition:none}
  .card .shot img,.gal img,.fshot img,.fstage:hover .fshot img{transition:none;transform:none}
}
