/* Precision signature layer. Same colours and type as the site; the shapes and section compositions are Precision's own.
   One idea throughout: the 45° cut of the logo's diamond. Chamfered corners, slanted seams, diamond markers. */
:root { --pp-cut: 22px; --pp-slant: 110px; }

/* ---------- Shape language ---------- */
.btn, .pc-form__submit, button.btn { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.btn--outline { border: 0; }
.btn-wrap:has(> .btn--outline) { filter: drop-shadow(0 0 .6px #f0542e) drop-shadow(0 0 .6px #f0542e) drop-shadow(0 0 .6px #f0542e); }
.pc-h2::after { content: ""; display: block; width: 72px; height: 8px; margin-top: 14px; background: var(--pc-grad-orange); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.team__title::after, .footer-contact__title::after, .quote-modal__title::after { margin-left: auto; margin-right: auto; }
.review-card, .blog-card, .res-card, .quote-modal__card, .footer-contact__card, .team__img, .mega-card__link { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pp-cut)), calc(100% - var(--pp-cut)) 100%, 0 100%); }
/* The cut corner clips the card's border, so the card is painted in the border colour and an inner layer with the same cut sits 1px inside it: the border then follows the slanted edge too */
.review-card { isolation: isolate; border-color: transparent; background: #e0e0e0; }
.review-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #f8f8f8; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pp-cut) + .59px), calc(100% - var(--pp-cut) + .59px) 100%, 0 100%); }
.space-card, .space-card__img, .space-card:first-child .space-card__img, .clients__logo, .gallery-card__img, .blog-card__img { border-radius: 0; }

/* ---------- Hero: copy on a slanted black slab, film on the right ---------- */
.hero__title b { color: #f46f22; }
@media (min-width: 1025px) {
	.hero { overflow: hidden; }
	.hero__video::before { background-color: rgba(0, 0, 0, .22); }
	.hero__video-el { left: auto; right: 0; width: 58%; transform: translateY(-50%); }
	.hero__video::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; clip-path: polygon(0 0, 62% 0, 46% 100%, 0 100%); }
	.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #f9a825, #e65100); clip-path: polygon(62% 0, calc(62% + 7px) 0, calc(46% + 7px) 100%, 46% 100%); pointer-events: none; }
	.hero__content { width: min(43rem, 100%); gap: 40px; }
	.hero__title span { font-size: clamp(3.6rem, 5.3vw, 5.1rem); line-height: 1.12; }
	.hero__inner { padding: 120px 0 168px; }
}
/* Smaller laptops: the black slab is wider so the heading and buttons never run onto the film */
@media (min-width: 1025px) and (max-width: 1439px) {
	.hero__video::after { clip-path: polygon(0 0, 70% 0, 58% 100%, 0 100%); }
	.hero::after { clip-path: polygon(70% 0, calc(70% + 7px) 0, calc(58% + 7px) 100%, 58% 100%); }
	.hero__content { width: min(43rem, 56vw); gap: 32px; }
	.hero__title span { font-size: clamp(3.2rem, 4.9vw, 4.6rem); }
	.hero__sub span { font-size: clamp(26px, 2.8vw, 35px); }
	.hero__btns { flex-wrap: wrap; }
}

/* ---------- Value strip: slanted top edge that cuts into the hero, points left-aligned in diamonds ---------- */
.usp { position: relative; z-index: 3; margin-top: -56px; padding-top: 56px; clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%); background-image: linear-gradient(98deg, #e65100 0%, #f46f22 100%); }
.ibox { text-align: left; align-items: flex-start; gap: 6px; }
.ibox__icon span { display: grid; place-items: center; width: 58px; height: 58px; margin: 12px 0 22px 12px; border: 2px solid #fff; transform: rotate(45deg); }
.ibox__icon svg { width: 28px; height: 28px; transform: rotate(-45deg); }
.ibox__title { margin: 0 0 10px; }
@media (max-width: 1024px) { .ibox { text-align: center; align-items: center; } .ibox__icon span { margin: 12px 0 22px; } }
@media (max-width: 767px) { .usp { margin-top: -28px; padding-top: 28px; clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); } }

/* ---------- Services: tall photo cards, title on the photo, diamond arrow ---------- */
.sec--services .loop-card__link { display: block; position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); }
.sec--services .loop-card__img { height: 400px; border-radius: 0; transition: transform .5s ease; }
.sec--services .loop-card__link:hover .loop-card__img { transform: scale(1.04); }
.sec--services .loop-card__head { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 22px 24px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .88)); }
.sec--services .loop-card__title { color: #fff; font-size: 30px; line-height: 1.05; }
.sec--services .loop-card__badge, .sec--finishes .loop-card__badge { top: 22px; right: 22px; width: 40px; height: 40px; background: var(--pc-grad-orange); transform: rotate(45deg); transition: transform .25s ease; }
.sec--services .loop-card__badge svg, .sec--finishes .loop-card__badge svg { display: none; }
.sec--services .loop-card__badge::after, .sec--finishes .loop-card__badge::after { content: ""; position: absolute; inset: 0; background: url(../icons/arrow-white.svg) center / 16px no-repeat; transform: rotate(-45deg); }
.sec--services .loop-card__link:hover .loop-card__badge { transform: rotate(45deg) scale(1.12); }
@media (max-width: 767px) { .sec--services .loop-card__img { height: 300px; } .sec--services .post-grid__items { gap: 1rem; } }
@media (max-width: 560px) { .sec--services .post-grid__items { grid-template-columns: 1fr; } .sec--services .loop-card__img { height: 240px; } }

/* ---------- Finishes: round core samples ---------- */
.sec--finishes .post-grid__items { gap: 3rem 2.5rem; }
.sec--finishes .loop-card__link { align-items: center; gap: 26px; }
.sec--finishes .loop-card__media { width: min(100%, 250px); }
.sec--finishes .loop-card__media::before { content: ""; position: absolute; inset: -10px; border: 2px solid #f0542e; border-radius: 50%; clip-path: polygon(50% 50%, 100% 50%, 100% 0, 0 0, 0 100%, 50% 100%); transition: transform .5s ease; }
.sec--finishes .loop-card__link:hover .loop-card__media::before { transform: rotate(90deg); }
.sec--finishes .loop-card__img { height: auto; aspect-ratio: 1 / 1; border-radius: 50%; }
.sec--finishes .loop-card__badge { top: 4px; right: 4px; }
.sec--finishes .loop-card__title { text-align: center; }

/* ---------- Clients and partners: one slanted seam ---------- */
@media (min-width: 1025px) {
	.clients { position: relative; }
	.clients__panel--clients { position: relative; z-index: 1; width: calc(50% + var(--pp-slant) / 2); margin-right: calc(var(--pp-slant) * -1); padding-right: calc(48px + var(--pp-slant)); clip-path: polygon(0 0, 100% 0, calc(100% - var(--pp-slant)) 100%, 0 100%); }
	.clients__panel--partners { width: calc(50% + var(--pp-slant) / 2); padding-left: calc(48px + var(--pp-slant)); }
}

/* ---------- Story sections: cut-corner photo on an offset orange plate ---------- */
.split__media { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
.split__media::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(18px, 18px); background: linear-gradient(76deg, #f9a825, #e65100); clip-path: polygon(48px 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%, 0 48px); }
.split__img { display: block; border-radius: 0; clip-path: polygon(48px 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%, 0 48px); }

/* ---------- Call band: charcoal on the left, slanted orange slab with the actions ---------- */
@media (min-width: 1025px) {
	.cta { overflow: hidden; }
	.cta::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 42%; background: linear-gradient(76deg, #f46f22 0%, #e04327 100%); clip-path: polygon(var(--pp-slant) 0, 100% 0, 100% 100%, 0 100%); }
	.cta__inner { z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 30%; column-gap: 14%; align-items: center; row-gap: 20px; }
	.cta__title, .cta__text { grid-column: 1; text-align: left; }
	.cta__title::after { margin-left: 0; }
	.cta__btns { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; margin: 0; }
	.cta__btns .btn { display: block; width: 100%; }
	.cta__btns .btn:not(.btn--white) { background: #111; }
}
.cta__title::after { margin-left: auto; margin-right: auto; }

/* ---------- Photo strip: slanted seam between the two photos ---------- */
@media (min-width: 768px) {
	.strip__grid { display: flex; }
	.strip__item { flex: 0 0 calc(50% + var(--pp-slant) / 2); }
	.strip__item:first-child { z-index: 1; margin-right: calc(var(--pp-slant) * -1); clip-path: polygon(0 0, 100% 0, calc(100% - var(--pp-slant)) 100%, 0 100%); }
	.strip__item:first-child .strip__info { right: var(--pp-slant); }
	.strip__img { padding-bottom: 78%; }
	.strip__grid { position: relative; }
	.strip__grid::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #fff; pointer-events: none; clip-path: polygon(calc(50% + var(--pp-slant) / 2 - 4px) 0, calc(50% + var(--pp-slant) / 2 + 4px) 0, calc(50% - var(--pp-slant) / 2 + 4px) 100%, calc(50% - var(--pp-slant) / 2 - 4px) 100%); }
}

/* ---------- Sector cards: diamond markers ---------- */
.space-card__check svg { display: none; }
.space-card__check { width: 11px; height: 11px; margin: 0 10px 0 4px; background: #f0542e; transform: rotate(45deg); }

/* ---------- Resource cards, tabs, carousel arrows, guide cover ---------- */
.res-card { border-left: 0; }
.res-card__icon-inner { border-radius: 0; margin: 14px 0 14px 14px; padding: 18px; font-size: 40px; transform: rotate(45deg); }
.res-card__icon-inner svg { transform: rotate(-45deg); }
.gtabs__tab { border-radius: 0; padding-left: 34px; padding-right: 34px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.gtabs__tab::after { display: none; }
.guide__frame { box-shadow: none; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .4)); }
.guide__img { border: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); }

/* ---------- Contact: heading on the orange, form on a cut-corner card ---------- */
.pp-contact__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pp-contact__aside .footer-contact__title { text-align: left; color: #fff; }
.pp-contact__aside .footer-contact__title::after { margin-left: 0; background: #fff; }
.pp-contact__aside .footer-contact__text { text-align: left; color: #fff; }
.pp-contact__aside .ux-trust { margin: 0; }
.pp-contact__aside .ux-stars { color: #fff; }
.pp-contact__aside .btn { background: #111; }
@media (min-width: 1025px) {
	.footer-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); align-items: center; gap: 72px; padding: 104px max(5%, calc((100% - var(--pc-max)) / 2)); }
	.footer-contact__card { width: 100%; padding: 44px 44px 52px; }
}
@media (max-width: 1024px) {
	.pp-contact__aside { align-items: center; margin-bottom: 32px; }
	.pp-contact__aside .footer-contact__title, .pp-contact__aside .footer-contact__text { text-align: center; }
	.pp-contact__aside .footer-contact__title::after { margin-left: auto; }
	.footer-contact__card { padding-top: 32px; }
}
