/* MG Technical Services — tokens */
:root {
  --ink: #071a3d;
  --ink-2: #0c2556;
  --cobalt: #1a4fd6;
  --lagoon: #14b8a6;
  --lagoon-d: #0b7f75;
  --plaster: #eef2f4;
  --grout: #d3dce2;
  --line: #dde4ea;
  --text: #0e1c33;
  --muted: #52627a;
  --wa: #25d366;
  --grad: linear-gradient(115deg, #1a4fd6 0%, #1690c6 55%, #14b8a6 100%);
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --r: 18px;
  --hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--plaster); color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; font-weight: 750; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 500 12.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lagoon-d);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--lagoon); }
.eyebrow .dot { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--f-body); white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s;
}
.btn .ic { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--cobalt); }
.btn-grad { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: 0 10px 30px -10px rgba(26, 79, 214, .6); }
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(20, 184, 166, .7); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--grout); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .7); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s, box-shadow .4s, backdrop-filter .4s; }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 28px; transition: height .4s var(--ease); }
.hdr.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(7, 26, 61, .08); }
.hdr.scrolled .hdr-in { height: 64px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; font-weight: 500; font-size: 15.5px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-call { display: none; }
.hdr-cta { display: flex; align-items: center; gap: 18px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.hdr-phone .ic { color: var(--cobalt); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* hero */
.hero {
  position: relative; padding: calc(var(--hdr) + 56px) 0 96px; overflow: hidden;
  background:
    linear-gradient(to right, rgba(7, 26, 61, .045) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(to bottom, rgba(7, 26, 61, .045) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--plaster);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--plaster)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.02fr; gap: 64px; align-items: center; }
.hero-h { font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: .96; font-weight: 800; font-stretch: 118%; letter-spacing: -.035em; color: var(--ink); margin-bottom: 28px; }
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-h .ln > span { display: inline-block; }
.hero-h .ln:last-child { font-size: .62em; font-weight: 700; letter-spacing: -.025em; color: var(--cobalt); margin-top: .18em; }
.mm { position: relative; font-style: normal; white-space: nowrap; }
.mm::after { /* dimension line under "millimetre" */
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 10px;
  background: linear-gradient(var(--lagoon), var(--lagoon)) 0 50% / 100% 2px no-repeat,
              linear-gradient(var(--lagoon), var(--lagoon)) 0 0 / 2px 100% no-repeat,
              linear-gradient(var(--lagoon), var(--lagoon)) 100% 0 / 2px 100% no-repeat;
  transform-origin: left; animation: draw 1s var(--ease) 1.25s both;
}
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 33em; margin-bottom: 34px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trades { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--grout); font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hero-trades li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trades .ic { color: var(--cobalt); }

/* hero art: the tiled photo */
.hero-art { position: relative; padding: 34px 0 0 34px; }
.mosaic {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; aspect-ratio: 6 / 5;
  padding: 3px; background: #fff; border-radius: 6px; perspective: 900px;
  box-shadow: 0 50px 90px -40px rgba(7, 26, 61, .45), 0 0 0 1px rgba(7, 26, 61, .06);
  position: relative; overflow: hidden;
}
.mosaic i {
  border-radius: 1.5px;
  background: url("../img/hero-1200.webp") no-repeat;
  background-size: 600% 500%;
  background-position: calc(var(--x) * 20%) calc(var(--y) * 25%);
  animation: lay .8s var(--ease) both;
  animation-delay: calc((var(--x) + var(--y)) * 65ms + 150ms);
}
.mosaic::after { /* one polished-porcelain sheen pass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-110%); animation: sheen 1.6s ease-in-out 1.5s both;
}
.dim { position: absolute; font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.dim::before { content: ""; position: absolute; }
.dim span { position: relative; background: var(--plaster); padding: 0 8px; }
.dim-x { left: 34px; right: 0; top: 6px; height: 12px; display: flex; justify-content: center; align-items: center; }
.dim-x::before { left: 0; right: 0; top: 50%; height: 1px; background: var(--muted); box-shadow: 0 -5px 0 -0 transparent; }
.dim-x::after { content: ""; position: absolute; inset: 0; border-inline: 1px solid var(--muted); }
.dim-y { top: 34px; bottom: 0; left: 6px; width: 12px; display: flex; justify-content: center; align-items: center; }
.dim-y::before { top: 0; bottom: 0; left: 50%; width: 1px; background: var(--muted); }
.dim-y::after { content: ""; position: absolute; inset: 0; border-block: 1px solid var(--muted); }
.dim-y span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 0; }
.dim { opacity: 0; animation: fade .8s ease 1.1s both; }
.spec-tag {
  position: absolute; left: 0; bottom: -26px; display: grid; gap: 7px;
  padding: 16px 18px; border-radius: 14px; background: var(--ink); color: #c9d6ea;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 24px 50px -20px rgba(7, 26, 61, .6);
  animation: rise .8s var(--ease) 1.4s both;
}
.spec-tag .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--lagoon); }
.spec-tag .ic { width: 14px; height: 14px; stroke-width: 2.4; }

/* ribbon */
.ribbon { background: var(--ink); color: #fff; overflow: hidden; padding: 22px 0; }
.ribbon-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { font: 800 clamp(1.5rem, 3vw, 2.4rem)/1 var(--f-display); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; }
.ribbon .o { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.ribbon b { width: 14px; height: 14px; flex: none; background: var(--grad); transform: rotate(45deg); border-radius: 2px; }

/* sections */
.services { padding: 120px 0 130px; }
.sec-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { color: var(--ink); max-width: 15em; }
.sec-lede { color: var(--muted); font-size: 1.08rem; max-width: 30em; }

/* the tiled wall of services */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
  background: var(--grout); border-radius: 22px;
}
.svc { background: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.svc:first-child { border-top-left-radius: 16px; }
.svc:nth-child(3) { border-top-right-radius: 16px; }
.svc:nth-child(4) { border-bottom-left-radius: 16px; }
.svc:last-child { border-bottom-right-radius: 16px; }
.svc figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--plaster); }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc:hover img { transform: scale(1.06); }
.svc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 1; }
.svc:hover::after { transform: scaleX(1); }
.svc-body { padding: 28px 28px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.svc-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--plaster); color: var(--cobalt); transition: background-color .4s, color .4s; }
.svc:hover .svc-ic { background: var(--ink); color: var(--lagoon); }
.svc h3 { font-size: 1.22rem; line-height: 1.15; font-weight: 700; color: var(--ink); }
.svc p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.svc ul { display: grid; gap: 8px; margin-bottom: 24px; font-size: 15px; }
.svc li { display: flex; gap: 10px; align-items: baseline; }
.svc li::before { content: ""; width: 7px; height: 7px; flex: none; transform: translateY(-1px); background: var(--lagoon); border-radius: 1.5px; }
.svc-foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--grout); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.spec { font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.svc-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--cobalt); }
.svc-foot a .ic { transition: transform .35s var(--ease); }
.svc-foot a:hover .ic { transform: translateX(4px); }

/* sequence */
.sequence {
  position: relative; padding: 130px 0; color: #c3cfe2;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(1000px 600px at 85% 10%, rgba(26, 79, 214, .35), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(20, 184, 166, .16), transparent 60%),
    var(--ink);
}
.seq-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.seq-copy { position: sticky; top: 120px; }
.seq-copy h2 { color: #fff; margin-bottom: 26px; max-width: 12em; }
.seq-copy p { font-size: 1.08rem; max-width: 30em; margin-bottom: 16px; }
.seq-copy .btn { margin-top: 18px; }
.steps { position: relative; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; }
.steps::before { background: rgba(255, 255, 255, .1); }
.steps::after { background: linear-gradient(var(--cobalt), var(--lagoon)); transform-origin: top; transform: scaleY(var(--p)); }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 22px 0; }
.steps .n {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font: 500 14px/1 var(--f-mono); color: #8ea0bd; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background .5s, color .5s, box-shadow .5s;
}
.steps h3 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.25rem; font-weight: 700; margin: 6px 0 6px; transition: color .5s; }
.steps h3 .ic { color: #5d7090; transition: color .5s; }
.steps p { font-size: 15.5px; max-width: 28em; }
.steps li.on .n { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(20, 184, 166, .7); }
.steps li.on h3 .ic { color: var(--lagoon); }
.steps .handover .n .ic { width: 22px; height: 22px; stroke-width: 2.4; }

/* clients */
.clients { padding: 130px 0; }
.clients-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.clients-art { position: relative; }
.clients-art img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 50px 90px -45px rgba(7, 26, 61, .5); }
.spec-tag-b { left: auto; right: -22px; bottom: 40px; animation: none; }
.clients-copy h2 { color: var(--ink); margin-bottom: 30px; max-width: 14em; }
.sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.sectors li { padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; transition: box-shadow .3s, transform .3s var(--ease); }
.sectors li:hover { box-shadow: inset 0 0 0 1px var(--cobalt); transform: translateY(-2px); }
.clients-note { color: var(--muted); margin-bottom: 44px; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--grout); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--grout); }
.promise { background: var(--plaster); padding: 26px 26px 28px; transition: background-color .4s; }
.promise:hover { background: #fff; }
.promise h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-stretch: 108%; }
.promise p { color: var(--muted); font-size: 15px; }

/* contact */
.contact { position: relative; padding: 130px 0; color: #c9d6ea; overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; background: url("../img/bath.webp") center / cover no-repeat; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 26, 61, .97) 0%, rgba(7, 26, 61, .9) 45%, rgba(7, 26, 61, .55) 100%); }
.contact-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-stretch: 118%; font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-bottom: 36px; }
.how { display: grid; gap: 16px; margin-bottom: 40px; font-size: 1.08rem; }
.how li { display: flex; align-items: center; gap: 16px; }
.how span { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font: 500 13px/1 var(--f-mono); color: var(--lagoon); box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .5); }
.card { background: #fff; color: var(--text); border-radius: 22px; padding: 34px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); }
.card-ic { width: 54px; height: 54px; margin-bottom: 14px; }
.card-name { font: 750 1.35rem/1.1 var(--f-display); font-stretch: 112%; color: var(--ink); margin-bottom: 18px; letter-spacing: -.02em; }
.card .row { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-weight: 500; line-height: 1.45; transition: color .25s; }
.card .row:hover { color: var(--cobalt); }
.card .row .ic { color: var(--cobalt); margin-top: 2px; width: 20px; height: 20px; }
.card small { display: block; font: 500 10.5px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* footer */
.ftr { background: #050f26; color: #8ea0bd; padding: 80px 0 0; font-size: 15px; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.ftr-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.ftr-brand p { max-width: 24em; }
.ftr-col { display: grid; gap: 10px; align-content: start; }
.ftr-col p { font: 500 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lagoon); margin-bottom: 6px; }
.ftr-col a:hover, .ftr-base a:hover { color: #fff; }
.ftr-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; animation: pop .6s var(--ease) 1.8s both;
}
.wa-btn {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .65), 0 4px 10px rgba(0, 0, 0, .12);
  transition: transform .35s var(--ease);
}
.wa-btn svg { width: 32px; height: 32px; }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.8s ease-out 3s infinite; }
.wa-label {
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(7, 26, 61, .35); opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .35s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-btn { transform: scale(1.08); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { opacity: 1; transform: none; }

/* motion */
@keyframes lay { from { opacity: 0; transform: translateY(-18px) rotateX(35deg) scale(1.08); filter: brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sheen { to { transform: translateX(110%); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes up { from { transform: translateY(105%); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero-h .ln > span { animation: up .9s var(--ease) both; animation-delay: calc(var(--d) * 90ms); }
.load { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d) * 90ms); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .hdr-phone span { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(n) { border-radius: 0; }
  .svc:first-child { border-top-left-radius: 16px; }
  .svc:nth-child(2) { border-top-right-radius: 16px; }
  .svc:nth-child(5) { border-bottom-left-radius: 16px; }
  .svc:last-child { border-bottom-right-radius: 16px; }
  .seq-in, .clients-in { gap: 56px; }
}

@media (max-width: 900px) {
  :root { --hdr: 66px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .hdr-cta .btn { display: none; }
  .hdr-phone { width: 44px; height: 44px; justify-content: center; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--grout); }
  .nav {
    position: fixed; inset: var(--hdr) 0 auto; margin: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 12px 20px 24px; box-shadow: 0 30px 50px -20px rgba(7, 26, 61, .3);
    font: 700 1.5rem/1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; color: var(--ink);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-call { display: flex; align-items: center; gap: 10px; border: 0; color: var(--cobalt); font: 600 1.05rem/1 var(--f-body); }
  .menu-open .nav { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease); }
  .menu-open .hdr { background: #fff; }

  .hero { padding: calc(var(--hdr) + 36px) 0 80px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 640px; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .services, .sequence, .clients, .contact { padding: 96px 0; }
  .seq-in, .clients-in, .contact-in { grid-template-columns: 1fr; }
  .seq-copy { position: static; }
  .clients-art { max-width: 520px; }
  .spec-tag-b { right: 16px; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .mosaic i { background-image: url("../img/hero-720.webp"); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .brand img { height: 30px; }
  .hdr-in { gap: 12px; }
  .hdr-cta { gap: 8px; margin-left: auto; }
  .hero-h { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hero-act .btn { flex: 1 1 100%; }
  .hero-trades { gap: 10px 18px; }
  .hero-art { padding: 26px 0 0 26px; }
  .spec-tag { bottom: -22px; padding: 12px 14px; font-size: 10.5px; gap: 6px; }
  .tiles { grid-template-columns: 1fr; gap: 5px; padding: 5px; }
  .svc:nth-child(n) { border-radius: 0; }
  .svc:first-child { border-radius: 16px 16px 0 0; }
  .svc:last-child { border-radius: 0 0 16px 16px; }
  .svc-body { padding: 24px 22px 22px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 18px; padding: 16px 0; }
  .steps .n { width: 48px; height: 48px; }
  .steps::before, .steps::after { left: 23px; }
  .promises { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .contact-bg::after { background: rgba(7, 26, 61, .9); }
  .ftr-in { grid-template-columns: 1fr; gap: 36px; }
  .wa-btn { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  .mosaic::after { display: none; }
}
