/* ===== v3: brush fix, paper-cut dividers, grain, ticker reviews, fades ===== */
:root{--rip1:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 64%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 64 L0 37 L8 40 L17 35 L25 40 L30 40 L37 37 L42 44 L47 43 L54 34 L59 41 L67 42 L74 44 L83 45 L91 42 L96 41 L101 38 L107 42 L114 42 L121 40 L125 44 L129 44 L136 38 L141 44 L149 43 L155 39 L162 37 L170 35 L175 38 L184 38 L190 38 L195 36 L203 42 L207 42 L213 37 L221 39 L225 37 L233 38 L242 41 L247 41 L255 40 L264 44 L270 43 L277 42 L281 43 L290 45 L296 42 L304 47 L312 47 L319 47 L327 44 L334 47 L343 46 L347 45 L355 44 L362 46 L369 45 L375 45 L382 45 L389 41 L397 43 L404 40 L409 40 L417 37 L424 37 L429 34 L436 33 L443 31 L448 31 L454 31 L458 33 L465 33 L473 29 L479 31 L487 25 L491 32 L498 34 L504 33 L510 29 L517 35 L524 31 L528 30 L535 30 L544 32 L549 32 L555 36 L562 32 L568 34 L577 34 L584 32 L590 33 L598 32 L603 37 L608 33 L617 33 L624 35 L632 31 L637 33 L643 33 L648 33 L652 30 L661 33 L665 32 L672 31 L678 31 L684 30 L690 30 L698 28 L703 28 L708 26 L715 25 L722 27 L727 27 L734 22 L743 28 L747 27 L754 28 L759 24 L764 27 L769 27 L773 26 L778 27 L786 26 L791 29 L800 29 L808 28 L814 34 L821 31 L827 34 L831 32 L839 32 L846 32 L851 33 L856 38 L861 32 L866 34 L873 35 L882 38 L887 38 L892 36 L898 37 L906 38 L912 40 L919 38 L925 31 L929 39 L937 34 L945 37 L952 33 L956 35 L965 33 L970 33 L975 28 L981 37 L989 35 L993 36 L1001 36 L1006 32 L1010 34 L1016 34 L1021 37 L1026 34 L1035 37 L1044 34 L1052 38 L1058 42 L1064 37 L1072 41 L1077 40 L1083 39 L1089 41 L1093 46 L1100 43 L1104 43 L1111 47 L1119 39 L1125 46 L1132 48 L1138 46 L1143 44 L1148 48 L1153 45 L1158 44 L1165 45 L1173 44 L1178 45 L1184 45 L1191 48 L1199 45 L1207 45 L1215 44 L1223 41 L1227 40 L1234 40 L1242 37 L1247 39 L1256 40 L1262 38 L1266 39 L1273 35 L1278 39 L1287 39 L1293 40 L1299 37 L1307 37 L1314 35 L1320 35 L1325 38 L1333 37 L1338 36 L1344 40 L1350 37 L1358 41 L1364 37 L1371 37 L1375 41 L1380 42 L1388 42 L1396 35 L1402 38 L1408 37 L1414 40 L1420 43 L1429 40 L1435 40 L1440 64 Z%22/%3E%3C/svg%3E");--rip2:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 64%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 64 L0 36 L5 33 L13 32 L20 31 L28 33 L33 31 L39 36 L47 31 L51 30 L59 30 L64 29 L72 28 L81 27 L87 26 L96 27 L100 30 L106 26 L112 26 L119 33 L125 31 L132 28 L140 28 L147 29 L156 35 L164 35 L171 29 L178 33 L183 32 L190 33 L199 28 L204 33 L210 32 L218 30 L222 35 L228 34 L236 31 L245 31 L253 30 L258 32 L262 33 L271 32 L275 25 L281 28 L287 24 L291 22 L299 21 L306 25 L315 20 L323 24 L327 17 L332 21 L340 14 L346 19 L351 18 L358 14 L366 18 L373 20 L380 18 L388 19 L395 17 L402 15 L408 21 L416 20 L425 16 L432 21 L436 18 L441 17 L447 15 L453 16 L460 24 L468 19 L473 24 L478 19 L487 25 L495 22 L501 23 L506 22 L512 21 L520 18 L528 22 L533 19 L541 24 L549 23 L558 22 L563 17 L570 17 L576 16 L582 18 L588 15 L594 14 L599 18 L604 17 L610 17 L618 18 L625 10 L631 19 L640 17 L647 16 L651 14 L656 16 L660 21 L667 19 L674 17 L680 19 L686 19 L694 18 L698 23 L705 27 L711 23 L718 24 L726 26 L733 27 L741 30 L745 27 L754 28 L761 30 L770 34 L777 28 L783 31 L792 32 L800 29 L809 33 L814 31 L820 32 L825 28 L832 28 L838 28 L842 29 L848 33 L853 27 L858 30 L865 31 L873 26 L882 28 L889 26 L896 26 L902 27 L911 24 L915 30 L924 23 L928 29 L933 32 L939 32 L948 26 L953 23 L960 32 L968 31 L975 38 L982 35 L988 37 L994 36 L998 40 L1004 35 L1011 39 L1019 40 L1024 36 L1029 41 L1037 35 L1045 38 L1050 37 L1058 40 L1067 29 L1071 33 L1076 36 L1082 38 L1090 34 L1095 34 L1100 32 L1106 33 L1112 32 L1118 30 L1124 26 L1132 29 L1139 28 L1143 28 L1150 29 L1154 24 L1159 29 L1166 16 L1173 24 L1181 23 L1186 27 L1191 24 L1197 25 L1206 22 L1213 26 L1219 24 L1225 21 L1233 27 L1238 27 L1243 25 L1247 27 L1252 28 L1259 28 L1265 24 L1274 28 L1281 25 L1286 24 L1291 29 L1296 23 L1301 26 L1309 25 L1317 22 L1325 23 L1330 21 L1336 23 L1342 26 L1349 20 L1354 18 L1359 19 L1364 18 L1373 21 L1377 22 L1384 19 L1391 17 L1398 14 L1403 15 L1410 16 L1414 17 L1422 15 L1431 13 L1436 11 L1440 64 Z%22/%3E%3C/svg%3E");--grain:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22220%22 height=%22220%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.85%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 .3  0 0 0 0 .2  0 0 0 0 .3  0 0 0 .55 0%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url%28%23n%29%22/%3E%3C/svg%3E")}

/* paper-cut section dividers: magenta under-layer + torn paper edge in the section colour */
.rip{position:relative;--secbg:#fff}
.rip.soft{--secbg:var(--soft)}
.rip.dark{--secbg:var(--dark)}
.rip::before,.rip::after{content:"";position:absolute;left:0;right:0;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.rip::before{bottom:calc(100% - 1px);height:44px;background:var(--secbg);-webkit-mask-image:var(--rip1);mask-image:var(--rip1);z-index:3}
.rip::after{bottom:calc(100% + 2px);height:52px;background:linear-gradient(90deg,#C2307C,#A72368);-webkit-mask-image:var(--rip2);mask-image:var(--rip2);z-index:2;opacity:.95;transform:scaleX(-1)}
.footer.rip{--secbg:var(--dark)}

/* global paper grain */
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:160;background-image:var(--grain);opacity:.07;mix-blend-mode:multiply}

/* brush: solid core behind text so streaks never cut through letters */
.brush{--bc:var(--brand);padding:.08em .6em .14em .5em;margin:0 .02em;
  background:
    linear-gradient(var(--bc),var(--bc)) center/calc(100% - 1em) calc(100% - .5em) no-repeat,
    url(assets/img/brush.svg) center/100% 100% no-repeat;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size 1.1s cubic-bezier(.65,0,.2,1)}
.js .brush:not(.in){background-size:0% 0%,0% 100%;background-position:left center,left center}
.brush--white{--bc:#fff;background-image:linear-gradient(var(--bc),var(--bc)),url(assets/img/brush-white.svg)}
h1 .brush,h2 .brush{padding:.06em .6em .12em .5em}

/* hero heading + positions */
.hero h1{font-size:clamp(2.4rem,4.6vw,4.1rem);line-height:1.12}
.hero h1 .brush{display:inline-block;margin-top:.12em}
.hero .lead{max-width:32ch;font-size:1.2rem}
.f1{top:8%;left:2%}.f2{top:50%;left:0}.f3{top:18%;right:0}.f4{bottom:16%;right:0}
.portrait{-webkit-mask-image:linear-gradient(to bottom,#000 74%,transparent 99%);mask-image:linear-gradient(to bottom,#000 74%,transparent 99%);filter:none}
.about__img img{-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}
.about__img{align-self:end}

/* why: image tiles */
.tphoto{display:block;width:calc(100% + 56px);height:130px;margin:-28px -28px 20px;object-fit:cover;object-position:center 25%;-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
.tile:has(.tphoto) .ico{margin-top:-34px;position:relative}
.t-person{display:grid;grid-template-columns:1fr 150px;gap:10px;padding-bottom:0;align-items:end;overflow:hidden}
.t-person .txt{padding-bottom:28px}
.t-person img{width:170px;max-width:none;justify-self:end;-webkit-mask-image:linear-gradient(to bottom,#000 65%,transparent);mask-image:linear-gradient(to bottom,#000 65%,transparent);margin-right:-10px}

/* google reviews ticker */
.rticker{display:grid;gap:18px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.rticker .mtrack{display:flex;width:max-content;animation:marq var(--dur,60s) linear infinite}
.rticker .mtrack.rev{animation-direction:reverse}
.rticker:hover .mtrack{animation-play-state:paused}
.mgroup{display:flex;flex-shrink:0}
.rticker .rcard{flex:0 0 360px;margin-right:18px;scroll-snap-align:none}
.rticker .rcard:hover{transform:none}

@media(max-width:900px){.t-person{grid-template-columns:1fr 110px}.t-person img{width:130px}}
@media(max-width:600px){.rticker .rcard{flex-basis:290px}.hero .lead{max-width:none}}
@media(prefers-reduced-motion:reduce){.rticker .mtrack{animation:none}}
.rticker{width:100vw;margin-left:calc(50% - 50vw)}
.rticker .mtrack{padding:6px 0}
.tphoto{max-width:none}
.rip::before{height:64px}
.rip::after{height:78px}
.t-person img{width:auto}
.t-person>img{width:190px;height:auto}
.t-wide{grid-column:1/-1}
.t-person{grid-template-columns:1fr 220px}
.ico img{width:26px;height:26px;-webkit-mask-image:none;mask-image:none;margin:0}
@media(max-width:900px){.t-wide{grid-column:1/-1}.t-person{grid-template-columns:1fr 130px}.t-person>img{width:140px}}
/* single-colour paper edge: matches the section background */
.rip::after{display:none}

/* brush v2: solid core now covers the full text box (cap-height included) */
.brush{padding:.16em .62em .2em .56em;
  background:
    linear-gradient(var(--bc),var(--bc)) center/calc(100% - .6em) calc(100% - .16em) no-repeat,
    url(assets/img/brush.svg) center/100% 100% no-repeat}
.brush--white{background-image:linear-gradient(var(--bc),var(--bc)),url(assets/img/brush-white.svg)}
h1 .brush,h2 .brush{padding:.16em .62em .2em .56em}
.js .brush:not(.in){background-size:0% 0%,0% 100%}
