/* Home3, based on Home2: a full-screen, origami-inspired entrance to the four divisions. */
.home3-page { --portal-red: #e91048; }
.h3-hero { position: relative; isolation: isolate; box-sizing: border-box; overflow: hidden; height: clamp(600px, calc(100svh - var(--header-height)), 900px); display: flex; flex-direction: column; padding: 32px max(40px, calc((100vw - 1600px) / 2 + 64px)) 20px; background: #f7f7f8; color: #0c0c0e; }
.h3-hero::before { content: ''; position: absolute; z-index: -1; top: -110px; right: -60px; width: 720px; height: 376px; background: url('/assets/img/decor/texture-gris.svg?v=horizontal-2') center / contain no-repeat; opacity: .6; pointer-events: none; }
.h3-hero__ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at var(--ambient-x, 75%) var(--ambient-y, 35%), rgb(227 16 72 / 9%), transparent 47%), linear-gradient(165deg, #fff 15%, transparent 80%); }
.h3-hero__head { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-shrink: 0; position: relative; z-index: 2; }
.h3-hero__eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; color: var(--text-accent); font-size: 11px; letter-spacing: .2em; }
.h3-hero__eyebrow > span { display: block; width: 36px; height: 1px; background: #e91048; }
.h3-hero h1 { margin: 0; font-family: var(--font-heading); font-weight: 700; line-height: .88; letter-spacing: -.035em; text-transform: uppercase; }
.h3-hero__years { display: block; font-size: clamp(28px, 2.7vw, 42px); letter-spacing: .015em; line-height: 1.2; }
.h3-hero__precision { display: block; font-size: clamp(90px, 10.6vw, 164px); }
.h3-hero__dot { color: var(--text-accent); }
.h3-hero__aside { padding-right: 6%; padding-top: 10px; }
.h3-hero__statement { margin: 0; font-family: var(--font-heading); font-size: clamp(32px, 3vw, 48px); font-weight: 600; line-height: .98; text-transform: uppercase; }
.h3-hero__intro { margin: 14px 0; font-size: 13px; line-height: 1.55; color: #62626c; }
.h3-hero .hero-masthead__row { margin-top: 0; }
.h3-stage { position: relative; isolation: isolate; flex: 1; min-height: 300px; margin-top: 20px; padding: 0 10px 14px 0; }
.h3-stage__ribbon { position: absolute; inset: 9% -7% -12px 9%; z-index: -1; pointer-events: none; background: linear-gradient(115deg, #f11850 15%, #c9073e 62%, #94032e 100%); clip-path: polygon(0 70%, 17% 22%, 40% 46%, 66% 0, 100% 42%, 100% 100%, 69% 58%, 42% 97%, 19% 70%); }
.h3-stage__ribbon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 48%, rgb(80 0 28 / 32%) 48%, transparent 80%); }
.h3-portals { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: clamp(16px, 2vw, 32px); position: relative; height: 100%; margin: 0; padding: 0; }
.h3-portal { --cut: 14%; position: relative; min-width: 0; height: 88%; perspective: 900px; }
.h3-portal:nth-child(2) { height: 100%; --cut: 9%; }
.h3-portal:nth-child(3) { height: 91%; --cut: 16%; }
.h3-portal:nth-child(4) { height: 96%; --cut: 11%; }
.h3-portal::before { content: ''; position: absolute; inset: 0; background: #db1045; clip-path: polygon(0 var(--cut), 72% 0, 100% 0, 100% 100%, 0 100%); transform: translate(9px, 12px); transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.h3-portal__link { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; overflow: hidden; clip-path: polygon(0 var(--cut), 72% 0, 100% 0, 100% 100%, 0 100%); background: #1b1b20; color: #fff; text-decoration: none; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transform-origin: center bottom; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.h3-portal__link::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(0 0 0 / 7%) 8%, transparent 22%, rgb(0 0 0 / 18%) 42%, rgb(0 0 0 / 90%) 100%); pointer-events: none; }
.h3-portal__link::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border: 1px solid rgb(255 255 255 / 18%); background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 0%), rgb(255 255 255 / 16%), transparent 55%); opacity: 0; transition: opacity .4s; }
.h3-portal__media { position: absolute; inset: 0; }
.h3-portal__image, .h3-portal__video { width: 100%; height: 100%; display: block; object-fit: cover; }
.h3-portal__media { filter: grayscale(1); transform: scale(1.02); transition: filter .6s, transform 1s cubic-bezier(.2,.7,.3,1); }
.h3-portal__video { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; }
.h3-portal.is-playing .h3-portal__video { opacity: 1; }
.h3-portal__body { position: relative; z-index: 2; width: 100%; padding: 24px clamp(18px, 1.8vw, 30px); }
.h3-portal__category { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: #dfdce2; margin-bottom: 9px; }
.h3-portal__name { margin: 0; font-family: var(--font-heading); font-size: clamp(28px, 3vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.015em; text-transform: uppercase; }
.h3-portal__description { max-width: 300px; margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #e8e5ea; }
.h3-portal__action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.h3-portal__action-label { font-size: 11px; color: #e7e3e9; }
.h3-portal__arrow { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid rgb(255 255 255 / 42%); border-radius: 50%; transition: background .3s, border-color .3s; }
.h3-portal:is(:hover,:focus-within)::before { transform: translate(13px, 17px); }
.h3-portal:is(:hover,:focus-within) .h3-portal__media { filter: grayscale(0); transform: scale(1.08); }
.h3-portal--tpms:is(:hover,:focus-within) .h3-portal__media { filter: grayscale(0) brightness(1.35) saturate(1.35); }
.h3-portal:is(:hover,:focus-within) .h3-portal__link::after { opacity: 1; }
.h3-portal:is(:hover,:focus-within) .h3-portal__arrow { background: #d31245; border-color: #d31245; }
.h3-portal:focus-within { outline: 3px solid #d31245; outline-offset: 7px; }
.home3-page .about { border-top: 1px solid #e2e2e6; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
 .h3-portal__description { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height .4s, opacity .4s, margin-top .4s; }
 .h3-portal:is(:hover,:focus-within) .h3-portal__description { max-height: 64px; opacity: 1; margin-top: 12px; }
 .h3-portal:is(:hover,:focus-within) .h3-portal__link { transform: translateY(-9px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
}
@media (min-width: 1024px) and (max-height: 780px) {
 .h3-hero { padding-top: 22px; padding-bottom: 16px; }
 .h3-hero__precision { font-size: clamp(90px, 8vw, 124px); }
 .h3-hero__years { font-size: 30px; }
 .h3-hero__eyebrow { margin-bottom: 8px; }
 .h3-hero__statement { font-size: 32px; }
 .h3-hero__intro { margin-block: 10px; }
 .h3-stage { margin-top: 14px; min-height: 280px; }
}
@media (max-width: 1100px) {
 .h3-hero { padding-inline: 32px; }
 .h3-hero__aside { padding-right: 0; }
 .h3-portal__body { padding: 22px 16px; }
 .h3-portal__category { font-size: 8px; letter-spacing: .07em; }
 .h3-portal__name { font-size: 30px; }
}
@media (max-width: 1023px) {
 .h3-hero { height: auto; min-height: 0; padding-top: 36px; padding-bottom: 24px; }
 .h3-hero__precision { font-size: clamp(80px, 13vw, 124px); }
 .h3-hero__aside { max-width: 200px; }
 .h3-hero__statement { font-size: 30px; }
 .h3-stage { flex: none; margin-top: 28px; padding-bottom: 12px; }
 .h3-portals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; align-items: stretch; }
 .h3-portal, .h3-portal:nth-child(n) { height: 380px; --cut: 10%; }
 .h3-stage__ribbon { inset: 8% -12% -8px 5%; }
 .h3-portal__media { filter: grayscale(.5); }
 .h3-portal__category { font-size: 10px; }
 .h3-portal__name { font-size: 38px; }
 .h3-portal__body { padding: 24px; }
}
@media (max-width: 599px) {
 .h3-hero { padding: 28px 20px 20px; }
 .h3-hero::before { right: -170px; top: -55px; width: 440px; height: 230px; opacity: .5; }
 .h3-hero__head { display: block; }
 .h3-hero__eyebrow { margin-bottom: 14px; font-size: 10px; gap: 10px; }
 .h3-hero__eyebrow > span { width: 24px; }
 .h3-hero__years { font-size: 26px; }
 .h3-hero__precision { font-size: clamp(70px, 19vw, 110px); }
 .h3-hero__aside { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; padding-top: 18px; }
 .h3-hero__statement { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.45; text-transform: none; }
 .h3-hero__statement br { display: none; }
 .h3-hero__intro { display: none; }
 .h3-stage { margin-top: 28px; padding-right: 7px; padding-bottom: 8px; }
 .h3-portals { gap: 22px 14px; }
 .h3-portal, .h3-portal:nth-child(n) { height: 295px; --cut: 10%; }
 .h3-portal::before { transform: translate(6px, 8px); }
 .h3-portal__body { padding: 18px 12px; }
 .h3-portal__name { font-size: 27px; }
 .h3-portal__category { font-size: 8px; letter-spacing: .025em; margin-bottom: 7px; }
 .h3-portal__description { font-size: 11px; margin-top: 10px; }
 .h3-portal__action { margin-top: 12px; gap: 6px; }
 .h3-portal__action-label { font-size: 9px; }
 .h3-portal__arrow { width: 25px; height: 25px; }
 .h3-portal__arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 359px) {
 .h3-hero { padding-inline: 16px; }
 .h3-portals { gap: 20px 10px; }
 .h3-portal__body { padding: 16px 10px; }
 .h3-portal__name { font-size: 24px; }
 .h3-portal__action-label { font-size: 8px; }
 .h3-hero__precision { font-size: 18.8vw; }
}
@media (prefers-reduced-motion: no-preference) {
 .h3-hero__heading { animation: precision-heading .8s cubic-bezier(.2,.7,.3,1) both; }
 .h3-portal { animation: precision-portal .9s cubic-bezier(.2,.7,.3,1) backwards; }
 .h3-portal:nth-child(2) { animation-delay: .1s; }
 .h3-portal:nth-child(3) { animation-delay: .2s; }
 .h3-portal:nth-child(4) { animation-delay: .3s; }
 @keyframes precision-heading { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
 @keyframes precision-portal { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
 .home3-page *, .home3-page *::before, .home3-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
 .h3-portal__video { display: none; }
 .h3-portal:is(:hover,:focus-within) .h3-portal__media { transform: scale(1.02); }
 .h3-portal__link { transform: none !important; }
}

/* Leak, Flow & Tracer Gas is the lead division. */
.h3-portal__name span { display: inline-block; white-space: nowrap; }
@media (min-width: 1024px) {
 .h3-portals { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
 .h3-portal:first-child { height: 100%; --cut: 12%; }
 .h3-portal:nth-child(2) { height: 86%; --cut: 9%; }
 .h3-portal:nth-child(3) { height: 91%; --cut: 14%; }
 .h3-portal:nth-child(4) { height: 88%; --cut: 10%; }
 .h3-portal:first-child .h3-portal__body { padding: 28px 32px; }
 .h3-portal:first-child .h3-portal__name { font-size: clamp(32px, 3vw, 48px); }
 .h3-portal:first-child .h3-portal__description { max-height: none; opacity: 1; margin-top: 14px; max-width: 350px; font-size: 15px; }
 .h3-portal:first-child .h3-portal__action { margin-top: 20px; }
 .h3-portal:first-child .h3-portal__action-label { font-size: 13px; font-weight: 600; }
 .h3-portal:first-child .h3-portal__arrow { width: 40px; height: 40px; }
}
.h3-portal:first-child .h3-portal__media { filter: grayscale(0); }
.h3-portal:first-child .h3-portal__arrow { background: #d31245; border-color: #d31245; }
@media (min-width: 600px) and (max-width: 1023px) {
 .h3-portals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
 .h3-portal:first-child { grid-column: 1 / -1; height: 360px; }
 .h3-portal:not(:first-child) { height: 310px; }
 .h3-portal:first-child .h3-portal__name { font-size: 46px; }
 .h3-portal:first-child .h3-portal__description { max-width: 400px; font-size: 15px; }
 .h3-portal:not(:first-child) .h3-portal__body { padding-inline: 16px; }
 .h3-portal:not(:first-child) .h3-portal__name { font-size: 30px; }
 .h3-portal:not(:first-child) .h3-portal__description { font-size: 12px; }
}
@media (max-width: 599px) {
 .h3-portal:first-child { grid-column: 1 / -1; height: 320px; }
 .h3-portal:first-child .h3-portal__body { padding: 24px; }
 .h3-portal:first-child .h3-portal__name { font-size: 34px; }
 .h3-portal:first-child .h3-portal__category { font-size: 9px; }
 .h3-portal:first-child .h3-portal__description { font-size: 13px; max-width: 270px; }
 .h3-portal:first-child .h3-portal__action-label { font-size: 11px; font-weight: 600; }
 .h3-portal:first-child .h3-portal__arrow { width: 32px; height: 32px; }
 .h3-portal:last-child { grid-column: 1 / -1; height: 230px; }
 .h3-portal:last-child .h3-portal__body { padding: 22px 20px; }
 .h3-portal:last-child .h3-portal__description { max-width: 260px; }
}
