/* ==========================================================
   U.S. Construction & Plumbing Authority
   PSL Plumbing & Drains · Triphase · U.S. Construction
   ========================================================== */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy-990: #040a15;
  --navy-950: #07111f;
  --navy-900: #0b1a30;
  --navy-850: #0f2140;
  --navy-800: #132a50;
  --navy-700: #1d3a6b;
  --blue: #3d8bfd;
  --blue-soft: #8cbcff;
  --red: #c8102e;
  --red-hover: #dc1c3b;
  --amber: #ffb547;
  --ivory: #f7f5f0;
  --stone: #ece8df;
  --white: #ffffff;
  --ink: #0c1424;
  --ink-2: #2c3546;
  --muted: #5e6778;
  --line: #e2ddd2;
  --line-dark: rgba(255, 255, 255, 0.09);
  --text-dim: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.62);

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 110px; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-990); color: var(--text-dim); font-size: .78rem; border-bottom: 1px solid var(--line-dark); }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: var(--container); margin: 0 auto; padding: 9px 32px; }
.utility__group { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.utility a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.utility a:hover { color: #fff; }
.utility b { color: #fff; font-weight: 600; }
.utility .dot { width: 6px; height: 6px; border-radius: 50%; background: #2fd07a; box-shadow: 0 0 0 3px rgba(47,208,122,.18); }
.utility__lic { letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; color: var(--text-faint); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(7, 17, 31, .97); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line-dark); color: #fff; transition: background .3s; }
.header.is-scrolled { background: rgba(7, 17, 31, .96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: var(--container); margin: 0 auto; padding: 12px 32px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 1; min-width: 0; }
.brand img { flex-shrink: 0; }
.brand__name { min-width: 0; }
.brand__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__actions { flex-shrink: 0; }
.brand img { width: 54px; height: auto; }
.brand__name { line-height: 1.05; }
.brand__name strong { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: .01em; }
.brand__name span { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .88rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; position: relative; padding: 8px 0; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--red); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.header__phone small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.header__phone b { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.hamburger { display: none; flex-shrink: 0; width: 44px; height: 44px; position: relative; border-radius: 50%; border: 1px solid var(--line-dark); }
.hamburger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: .3s var(--ease); }
.hamburger span:nth-child(1) { top: 16px; } .hamburger span:nth-child(2) { top: 21px; } .hamburger span:nth-child(3) { top: 26px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--navy-950); color: #fff; padding: calc(var(--hdr, 130px) + 12px) 24px 110px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: .4s var(--ease); overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.m-link { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; padding: 14px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.m-link i { font-size: 1rem; color: var(--text-faint); }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu .m-cta { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 26px; border-radius: 999px; font-size: .9rem; font-weight: 700; letter-spacing: .01em; transition: transform .3s var(--ease), background .25s, box-shadow .3s, color .25s, border-color .25s; white-space: nowrap; }
.btn i { font-size: .8em; transition: transform .3s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -8px rgba(200,16,46,.6); }
.btn--red:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(200,16,46,.7); }
.btn--glass { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn--glass:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--line-dark { border: 1px solid var(--ink); color: var(--ink); }
.btn--line-dark:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.btn--sm { padding: 12px 20px; font-size: .84rem; }
.btn--block { width: 100%; }

/* ---------- Labels ---------- */
.kicker { display: inline-flex; align-items: center; gap: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.kicker span { color: var(--muted); font-weight: 600; }
.dark .kicker span, .kicker--light span { color: var(--text-faint); }
.kicker--light { color: #ff5a70; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-size: .78rem; font-weight: 600; color: var(--text-dim); }
.pill b { background: var(--red); color: #fff; font-size: .66rem; letter-spacing: .12em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 76px 0 0; }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(61,139,253,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(200,16,46,.13), transparent 60%);
}
.hero__bg::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: .98; letter-spacing: -.01em; margin: 26px 0 22px; }
.hero h1 em { color: #ff5a70; }
.hero__trades { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 24px; }
.hero__trades span { font-size: .8rem; font-weight: 600; color: #fff; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.hero__sub { font-size: 1.12rem; color: var(--text-dim); max-width: 540px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* Blueprint house */
.blueprint { position: relative; border-radius: 22px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(19,42,80,.55), rgba(11,26,48,.35)); padding: 18px 18px 14px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); }
.blueprint__bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 12px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.blueprint__bar .live { display: inline-flex; align-items: center; gap: 8px; color: #7ee2a8; }
.blueprint__bar .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2fd07a; animation: blink 1.6s 3; }
@keyframes blink { 50% { opacity: .25; } }
.blueprint svg { width: 100%; height: auto; display: block; overflow: visible; }
.bp-line { fill: none; stroke: rgba(180,208,255,.7); stroke-width: 1.4; }
.bp-thin { fill: none; stroke: rgba(170,200,255,.22); stroke-width: 1; }
.bp-fill { fill: rgba(140,188,255,.08); stroke: rgba(180,208,255,.55); stroke-width: 1.1; }
.bp-cold { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bp-hot { fill: none; stroke: #ff6b6b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bp-drain { fill: none; stroke: #9fb0c8; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.bp-wire { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 4; }
.bp-text { fill: rgba(200,220,255,.55); font: 600 9px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.6s var(--ease) forwards; }
.draw.d2 { animation-delay: .5s; } .draw.d3 { animation-delay: .9s; } .draw.d4 { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bp-wire.draw { stroke-dasharray: 5 4; stroke-dashoffset: 0; animation: march 1.2s linear 4; }
@keyframes march { to { stroke-dashoffset: -18; } }
.hotspot { cursor: pointer; }
.hotspot .ring { fill: rgba(255,90,112,.18); stroke: rgba(255,90,112,.7); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) 2; }
.hotspot .core { fill: #fff; stroke: var(--red); stroke-width: 3; }
.hotspot .hit { fill: transparent; }
.hotspot:focus-visible .hit { fill: rgba(255,255,255,.1); stroke: #fff; stroke-width: 2; }
.hotspot:hover .core, .hotspot:focus .core, .hotspot.is-active .core { fill: var(--red); stroke: #fff; }
.hotspot:focus { outline: none; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.scanline { animation: scan 5s ease-in-out 1; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(330px); } }
.bp-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 190px; max-width: 240px; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 14px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.55); opacity: 0; transform: translate(-50%, calc(-100% - 18px)) scale(.96); transition: opacity .2s, transform .25s var(--ease); }
.bp-tip.is-visible { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.bp-tip small { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.bp-tip strong { display: block; font-size: .95rem; line-height: 1.25; margin: 2px 0 4px; }
.bp-tip span { font-size: .78rem; color: var(--muted); line-height: 1.4; display: block; }
.bp-tip::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.blueprint__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 6px 2px; border-top: 1px solid var(--line-dark); margin-top: 8px; font-size: .72rem; color: var(--text-dim); font-weight: 600; }
.blueprint__legend span { display: inline-flex; align-items: center; gap: 8px; }
.blueprint__legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.blueprint__legend .hint { margin-left: auto; color: #fff; }
.blueprint__legend .hint i { width: auto; height: auto; background: none; color: var(--red); }

/* Hero stats */
.stats { position: relative; margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 30px 28px 36px; border-right: 1px solid var(--line-dark); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.01em; }
.stat__num sup { font-size: .5em; color: #ff5a70; vertical-align: super; margin-left: 2px; }
.stat p { margin-top: 10px; font-size: .88rem; color: var(--text-dim); max-width: 220px; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section--white { background: var(--white); }
.dark { background: var(--navy-950); color: #fff; }
.dark--900 { background: var(--navy-900); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.head--stack { display: block; max-width: 820px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.01em; margin-top: 18px; }
.h2 em { color: var(--red); }
.dark .h2 em { color: #ff5a70; }
.head p, .lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.dark .head p, .dark .lead { color: var(--text-dim); }

/* ---------- Divisions ---------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.division { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.division:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(12,20,36,.35); }
.division__media { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; background: var(--navy-900); }
.division__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.95); mix-blend-mode: luminosity; opacity: .8; transition: transform 1s var(--ease), filter .6s, opacity .6s; }
.division__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,48,.1) 30%, rgba(11,26,48,.85) 100%); }
.division:hover .division__media img { transform: scale(1.06); filter: none; mix-blend-mode: normal; opacity: 1; }
.division__tag { position: absolute; z-index: 2; left: 22px; bottom: 20px; color: #fff; }
.division__tag small { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.7); }
.division__tag strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.division__icon { position: absolute; z-index: 2; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.division__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.division__body h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.division__body p { color: var(--muted); font-size: .95rem; }
.division__list { list-style: none; margin: 18px 0 22px; display: grid; gap: 8px; }
.division__list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.division__list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.division__enter { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.division__enter i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .8rem; transition: background .3s, transform .4s var(--ease); }
.division:hover .division__enter i { background: var(--red); transform: rotate(-45deg); }

/* ---------- Diagnostics gallery ---------- */
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); gap: 4px; }
.tabs button { padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: background .25s, color .25s; }
.tabs button.is-active { background: var(--ink); color: #fff; }
.dg-panel { display: none; }
.dg-panel.is-active { display: grid; }
.dg-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dg-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dg-card { border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); scroll-margin-top: 120px; }
.dg-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -30px rgba(12,20,36,.3); }
.dg-card__img { position: relative; overflow: hidden; background: #eef1f6; cursor: zoom-in; }
.dg-card__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .9s var(--ease); }
.dg-grid--4 .dg-card__img img, .dg-card--tall .dg-card__img img { aspect-ratio: 2 / 3; }
.dg-card:hover .dg-card__img img { transform: scale(1.04); }
.dg-card__zoom { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(12,20,36,.82); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.dg-card__body { padding: 20px 22px 24px; }
.dg-card__body small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.dg-card__body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; margin: 6px 0 8px; }
.dg-card__body p { font-size: .92rem; color: var(--muted); }

/* ---------- Thermal ---------- */
.thermal { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.thermal__list { list-style: none; margin: 34px 0 38px; display: grid; gap: 0; }
.thermal__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.thermal__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.thermal__list i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #ff9a3c, #c8102e); color: #fff; }
.thermal__list strong { display: block; font-size: 1rem; }
.thermal__list span { font-size: .92rem; color: var(--text-dim); }
.compare { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; background: #000; cursor: ew-resize; box-shadow: 0 50px 100px -30px rgba(0,0,0,.8); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__ir { filter: url(#thermal-filter) contrast(1.1); }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare__handle::after { content: '\f337'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); font-size: .95rem; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.compare:focus-within { outline: 3px solid #fff; outline-offset: 4px; }
.compare__note { margin-top: 14px; font-size: .8rem; color: var(--text-dim); text-align: center; }
.compare__label { position: absolute; top: 18px; padding: 7px 14px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: rgba(4,10,21,.7); color: #fff; backdrop-filter: blur(8px); pointer-events: none; }
.compare__label--l { left: 18px; } .compare__label--r { right: 18px; background: linear-gradient(135deg, #ff9a3c, #c8102e); }
.compare__scale { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; font-size: .68rem; font-weight: 700; color: #fff; letter-spacing: .1em; pointer-events: none; }
.compare__scale i { flex: 1; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #0b0630, #4b0c7a, #c8102e, #ff8a00, #ffe066, #fff); }

/* ---------- Why us (numbered) ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.why__sticky { position: sticky; top: 130px; }
.why__sticky .h2 { margin-bottom: 20px; }
.why__sticky .btn { margin-top: 32px; }
.why__list { list-style: none; }
.why__item { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--red); }
.why__item h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.why__item p { color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: s; }
.process::before { content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.process__step { position: relative; padding-right: 40px; }
.process__dot { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 1.5rem; margin-bottom: 28px; box-shadow: 0 0 0 8px var(--white); }
.process__step:nth-child(2) .process__dot { background: var(--navy-700); }
.process__step:nth-child(3) .process__dot { background: var(--red); }
.process__step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.process__step p { color: var(--muted); max-width: 340px; }

/* ---------- Commercial teaser ---------- */
.commercial { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.benefit { padding: 24px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); transition: background .3s, border-color .3s; }
.benefit:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.benefit i { color: #ff5a70; font-size: 1.2rem; margin-bottom: 16px; display: block; }
.benefit strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.benefit span { font-size: .88rem; color: var(--text-dim); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__card { position: relative; border-radius: 24px; padding: 56px 48px 44px; background: radial-gradient(600px 400px at 30% 0%, rgba(61,139,253,.25), transparent 60%), var(--navy-900); color: #fff; overflow: hidden; }
.about__card::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; pointer-events: none; }
.about__card img { position: relative; z-index: 1; width: 250px; height: auto; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.about__card blockquote { position: relative; z-index: 1; font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; text-align: center; margin-top: 28px; }
.about__card cite { position: relative; z-index: 1; display: block; text-align: center; margin-top: 14px; font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.about__text p { color: var(--muted); font-size: 1.05rem; margin-top: 20px; }
.licenses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.license { padding: 18px 18px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.license i { color: var(--red); margin-bottom: 12px; display: block; }
.license small { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.license strong { font-size: 1.02rem; letter-spacing: .03em; }
.corp { margin-top: 26px; font-size: .88rem; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--red); }

/* ---------- Locations ---------- */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.location { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.location__map { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #dfe6f1, #eef2f8); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.location__body { padding: 28px 30px 30px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.location__body small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 800; }
.location__body h3 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; margin: 6px 0 8px; }
.location__body p { color: var(--muted); font-size: .95rem; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 120px 0; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 100%, rgba(200,16,46,.28), transparent 60%), radial-gradient(700px 400px at 0% 0%, rgba(61,139,253,.18), transparent 60%); }
.final__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.final .h2 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.final p.lead { margin-top: 20px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.contact-card:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); transform: translateX(4px); }
.contact-card i.ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red); flex-shrink: 0; }
.contact-card small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.contact-card strong { font-size: 1.12rem; }
.contact-card .go { margin-left: auto; color: var(--text-faint); }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 88px 0 96px; }
.page-hero .hero__bg::after { mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 10%, transparent 70%); }
.page-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.crumbs { font-size: .8rem; color: var(--text-faint); font-weight: 600; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs li + li::before { content: '/'; opacity: .6; margin-right: 10px; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.01em; margin: 22px 0 20px; }
.page-hero h1 em { color: #ff5a70; }
.page-hero p.lead { font-size: 1.14rem; max-width: 640px; }
.page-hero__media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); background: #fff; cursor: zoom-in; }
.page-hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.page-hero__media--tall img { aspect-ratio: 4 / 5; object-position: top; }
.page-hero__media figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(4,10,21,.78); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600; color: #fff; }
.mini-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; font-size: .85rem; color: var(--text-dim); font-weight: 600; }
.mini-trust span { display: inline-flex; align-items: center; gap: 9px; }
.mini-trust i { color: #ff5a70; }

/* ---------- Service cards (division pages) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { position: relative; display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(12,20,36,.3); border-color: transparent; }
.svc-card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--ivory); border: 1px solid var(--line); color: var(--red); font-size: 1.1rem; margin-bottom: 22px; transition: background .3s, color .3s; }
.svc-card:hover .svc-card__icon { background: var(--red); color: #fff; border-color: var(--red); }
.svc-card h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; line-height: 1.3; }
.svc-card p { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.svc-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
.svc-card__foot i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .75rem; transition: background .3s, transform .4s var(--ease); }
.svc-card:hover .svc-card__foot i { background: var(--red); transform: rotate(-45deg); }

/* ---------- Service detail ---------- */
.detail { display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: start; }
.detail h2 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1.05; margin-bottom: 20px; }
.detail__block + .detail__block { margin-top: 56px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.option i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fdecef; color: var(--red); font-size: .7rem; flex-shrink: 0; }
.signs { list-style: none; display: grid; gap: 0; }
.signs li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.signs li:last-child { border-bottom: 1px solid var(--line); }
.signs li i { color: var(--red); margin-top: 5px; }
.detail__figure { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); cursor: zoom-in; }
.detail__figure figcaption { padding: 18px 22px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.detail__figure figcaption i { color: var(--red); margin-top: 4px; }
.aside { position: sticky; top: 120px; border-radius: 22px; padding: 32px 28px; background: var(--navy-950); color: #fff; overflow: hidden; }
.aside::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 260px at 100% 0%, rgba(200,16,46,.3), transparent 60%); pointer-events: none; }
.aside > * { position: relative; }
.aside h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; margin-bottom: 10px; }
.aside p { color: var(--text-dim); font-size: .95rem; margin-bottom: 22px; }
.aside .btn { margin-bottom: 10px; }
.aside__phones { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: grid; gap: 12px; font-size: .9rem; }
.aside__phones a { display: flex; justify-content: space-between; color: var(--text-dim); }
.aside__phones a b { color: #fff; }
.aside__lic { margin-top: 18px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; transition: border-color .3s, transform .3s var(--ease); }
.related a:hover { border-color: var(--ink); transform: translateY(-3px); }
.related a i { color: var(--red); font-size: .8rem; }

/* ---------- Form ---------- */
.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.form-card { background: var(--white); color: var(--ink); border-radius: 26px; padding: 44px; box-shadow: 0 50px 120px -40px rgba(0,0,0,.7); }
.form-card h2 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: .98rem; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 4px rgba(29,58,107,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); font-size: .88rem; font-weight: 600; transition: .2s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29,58,107,.25); }
.captcha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 6px 0 24px; border: 1px solid #d3d3d3; border-radius: 6px; background: #f9f9f9; max-width: 310px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.captcha label { display: flex; align-items: center; gap: 12px; font-size: .92rem; cursor: pointer; }
.captcha input { width: 24px; height: 24px; accent-color: var(--navy-700); }
.captcha small { font-size: .6rem; color: #888; text-align: center; line-height: 1.2; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 16px; text-align: center; }
.form-note a { color: var(--red); font-weight: 700; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success i { font-size: 3rem; color: #1f9d55; margin-bottom: 16px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }
.info-list { list-style: none; display: grid; gap: 0; margin-top: 40px; }
.info-list li { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.info-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.info-list i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: #ff5a70; }
.info-list small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.info-list a, .info-list strong { color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-990); color: var(--text-dim); padding: 96px 0 30px; font-size: .92rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr repeat(var(--offices, 2), 1fr); gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { width: 96px; margin-bottom: 20px; }
.footer__brand p { max-width: 360px; }
.footer__brand .btn { margin-top: 24px; }
.footer__title { color: #fff; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__big { font-family: var(--serif); font-size: clamp(3rem, 9vw, 8.5rem); line-height: .9; color: rgba(255,255,255,.07); letter-spacing: -.02em; padding: 48px 0 32px; white-space: nowrap; overflow: hidden; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--text-faint); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4,10,21,.96); display: grid; place-items: center; padding: 28px; opacity: 0; visibility: hidden; transition: .3s; overflow-y: auto; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__inner { display: grid; grid-template-columns: auto minmax(260px, 340px); gap: 32px; align-items: start; max-width: min(1440px, 100%); }
.lightbox__inner.no-legend { grid-template-columns: auto; justify-items: center; }
.lightbox__inner.no-legend .lightbox__side { text-align: center; max-width: 760px; }
.lightbox__stage .dg-frame { display: inline-block; border-radius: 14px; overflow: visible; background: #fff; }
.lightbox__stage .dg-frame img { display: block; max-height: 86vh; width: auto; max-width: 100%; border-radius: 14px; }
.lightbox__side { color: #fff; max-height: 86vh; overflow-y: auto; padding-right: 6px; }
.lightbox__title { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.lightbox__text { color: var(--text-dim); font-size: .92rem; margin: 10px 0 18px; }
.lightbox__close { position: fixed; top: 20px; right: 20px; z-index: 2; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.2rem; }
.lightbox__close:hover { background: var(--red); }

/* ---------- Diagram frames, numbered pins & legends ---------- */
.dg-frame { position: relative; }
.dg-frame img { width: 100%; }
.pins { position: absolute; inset: 0; }
.dg-card .pins, .page-hero__media .pins { display: none; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--red); border: 2px solid var(--red); font: 800 .68rem/1 var(--sans); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(12,20,36,.3); cursor: pointer; z-index: 2; transition: transform .2s var(--ease), background .2s, color .2s; padding: 0; }
.pin::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(200,16,46,.45); animation: pinPulse 2.6s var(--ease) 2; pointer-events: none; }
@keyframes pinPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.pin:hover, .pin:focus-visible, .pin.is-on { background: var(--red); color: #fff; transform: translate(-50%, -50%); z-index: 4; outline: none; }
.pin__tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); white-space: nowrap; background: var(--ink); color: #fff; font: 700 .78rem/1.2 var(--sans); font-style: normal; padding: 8px 12px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.pin__tip::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.pin:hover .pin__tip, .pin:focus-visible .pin__tip, .pin.is-on .pin__tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 18px; }
.legend[hidden] { display: none; }
.legend li { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: .88rem; color: var(--ink-2); cursor: pointer; transition: background .2s; line-height: 1.3; }
.legend li b { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--red); color: var(--red); font-size: .66rem; font-weight: 800; background: #fff; transition: background .2s, color .2s; }
.legend li:hover, .legend li.is-on { background: #fdecef; }
.legend li:hover b, .legend li.is-on b { background: var(--red); color: #fff; }
.legend--dark { grid-template-columns: 1fr; margin-top: 0; }
.legend--dark li { color: var(--text-dim); }
.legend--dark li:hover, .legend--dark li.is-on { background: rgba(255,255,255,.08); color: #fff; }
.legend--dark li b { background: transparent; border-color: #ff5a70; color: #ff5a70; }
.dg-card__count { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(12,20,36,.82); color: #fff; font-size: .74rem; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dg-card__count i { color: #ff5a70; }
@media (max-width: 900px) {
  .lightbox { place-items: start center; }
  .lightbox__inner { grid-template-columns: 1fr; gap: 20px; padding-top: 56px; }
  .lightbox__stage .dg-frame img { max-height: none; width: 100%; }
  .lightbox__side { max-height: none; }
}
@media (max-width: 720px) {
  .pin { width: 20px; height: 20px; font-size: .56rem; border-width: 1.5px; }
  .pin::before { inset: -4px; }
  .legend { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.js .reveal.is-visible, .reveal-fallback .reveal { opacity: 1; translate: none; }
.js .division.reveal { transition: opacity 1s var(--ease), translate 1s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.js .svc-card.reveal, .js .dg-card.reveal { transition: opacity 1s var(--ease), translate 1s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; }
  .draw { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav { gap: 20px; }
  .header__inner { gap: 18px; }
}
@media (max-width: 1180px) {
  .nav, .header__phone { display: none; }
  .hamburger { display: block; }
  .location__body { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .hero__grid, .page-hero__grid, .thermal, .why, .commercial, .about, .final__inner, .form-shell, .detail { grid-template-columns: 1fr; }
  .head { grid-template-columns: 1fr; gap: 20px; }
  .divisions, .dg-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .dg-grid--4 { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(3) { padding-left: 0; }
  .why__sticky { position: static; }
  .aside { position: relative; top: auto; }
  .final__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .utility__lic { display: none; }
  .section { padding: 96px 0; }
}
@media (max-width: 720px) {
  .container, .header__inner, .utility__inner { padding-left: 16px; padding-right: 16px; }
  .utility__group { gap: 16px; font-size: .72rem; }
  .utility__group .hide-sm { display: none; }
  .brand img { width: 44px; }
  .brand__name strong { font-size: .88rem; }
  .brand__name span { font-size: .56rem; letter-spacing: .24em; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 3rem; }
  .hero__actions .btn { width: 100%; }
  .stats { margin-top: 56px; }
  .stat { padding: 24px 16px 26px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .divisions, .dg-grid, .dg-grid--4, .svc-grid, .locations, .benefits, .options, .related, .licenses { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 40px; }
  .process::before { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 30px 20px; }
  .about__card { padding: 40px 24px 32px; }
  .footer__top { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .head { margin-bottom: 44px; }
  .blueprint { padding: 12px 10px 10px; }
  .blueprint__legend .hint { margin-left: 0; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 10px 12px; }
  .location__body { grid-template-columns: 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; border-radius: 999px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; font-size: .86rem; font-weight: 800; color: #fff; }
  .callbar a:first-child { background: var(--red); }
  .callbar a:last-child { background: var(--navy-900); }
  .footer { padding-bottom: 110px; }
  .header__actions .btn { display: none; }
  html { scroll-padding-top: 84px; scroll-padding-bottom: 96px; }
  .footer__big { white-space: normal; font-size: 3.4rem; line-height: .95; }
  .contact-card { gap: 14px; padding: 16px; }
  .contact-card strong { font-size: 1rem; }
}

/* Text on dark bands that aren't .dark sections */
.hero .lead, .page-hero .lead, .final .lead { color: var(--text-dim); }
.page-hero .kicker span, .final .kicker span, .aside .kicker span { color: var(--text-faint); }
.page-hero__grid--solo { grid-template-columns: minmax(0, 900px); }
.detail__figure--tall { max-width: 460px; }
@media (max-width: 720px) { .blueprint__bar { font-size: .6rem; letter-spacing: .1em; } }
/* keep pin tooltips inside the image near the edges */
.pin--l .pin__tip { left: -8px; transform: translateY(4px); }
.pin--l .pin__tip::after { left: 18px; }
.pin--r .pin__tip { left: auto; right: -8px; transform: translateY(4px); }
.pin--r .pin__tip::after { left: auto; right: 12px; transform: none; }
.pin--l:hover .pin__tip, .pin--l.is-on .pin__tip, .pin--l:focus-visible .pin__tip,
.pin--r:hover .pin__tip, .pin--r.is-on .pin__tip, .pin--r:focus-visible .pin__tip { transform: translateY(0); }
.pin--b .pin__tip { bottom: auto; top: calc(100% + 10px); }
.pin--b .pin__tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }

/* ==========================================================
   QA fixes (full review) — accessibility, robustness, print
   ========================================================== */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 400; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 10px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hotspot:focus, .hotspot:focus-visible { outline: none; }
.btn--red:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--red); }

/* header: always leave room for the menu button */
@media (max-width: 400px) {
  .brand { gap: 10px; }
  .brand__name strong { font-size: .8rem; }
  .brand__name span { display: none; }
}

/* mobile menu open state */
body.menu-open .callbar { display: none; }

/* final CTA & contact cards never force the grid wider than the screen */
.contact-card > div { min-width: 0; }
.contact-card strong { overflow-wrap: anywhere; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }

/* divisions on tablets: the odd last card spans the row */
@media (min-width: 721px) and (max-width: 1024px) {
  .division:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .division:last-child:nth-child(odd) .division__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 320px; }
}
.division__tag small { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.division__tag strong { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.division__media::after { background: linear-gradient(180deg, rgba(11,26,48,.1) 30%, rgba(11,26,48,.92) 100%); }

/* infrared slider labels stay readable on light areas */
.compare__scale span { padding: 3px 9px; border-radius: 999px; background: rgba(4,10,21,.75); text-transform: uppercase; }
.compare__scale { background: none; }

/* diagrams: enlarge button, figure caption, static hero image */
.detail__figure figcaption { align-items: center; flex-wrap: wrap; }
.detail__figure figcaption span { flex: 1 1 260px; }
.dg-enlarge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); font-weight: 700; font-size: .82rem; color: var(--ink); }
.dg-enlarge:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-hero__media--static { cursor: default; }
.dg-card__img, .page-hero__media[data-lightbox] { cursor: zoom-in; }

/* pins: 32px hit area, tooltips wrap on phones and are clamped by JS */
.pin::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; }

@media (max-width: 720px) {
  .pin { width: 22px; height: 22px; }
  .pin__tip { white-space: normal; width: max-content; max-width: min(200px, 55vw); text-align: left; }
}
.lightbox .pin__tip { max-width: min(260px, 70vw); white-space: normal; width: max-content; }

/* blueprint tooltip arrow follows the hotspot when the tip is clamped */
.bp-tip::after { left: calc(50% + var(--arrow, 0px)); }

/* lightbox hidden state (content cleared after fade) */
.lightbox[aria-hidden="true"] { pointer-events: none; }

/* forms */
.field input, .field select, .field textarea { font-size: 1rem; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chips input:focus-visible + span { outline: 3px solid var(--navy-700); outline-offset: 3px; }
.form-note a, .info-list a, .aside__phones b, .utility b { white-space: nowrap; }
.form-privacy { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 8px; }
.form-card { scroll-margin-top: 100px; }
.form-success h2:focus { outline: none; }
.form-fallback { font-size: .88rem; color: var(--muted); margin: 14px 0 20px; }
.form-fallback a { color: var(--red); font-weight: 700; }

/* 404 */
.notfound-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.notfound-links a { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: .9rem; }
.notfound-links a:hover { background: rgba(255,255,255,.08); }

/* Windows High Contrast / forced colors */
@media (forced-colors: active) {
  .hamburger span { background: CanvasText; forced-color-adjust: none; }
  .chips input:checked + span, .tabs button.is-active, .pin.is-on, .legend li.is-on { outline: 3px solid Highlight; outline-offset: 2px; }
  .compare__handle { background: CanvasText; }
}

/* print */
@media print {
  .js .reveal, .reveal { opacity: 1 !important; translate: none !important; transform: none !important; }
  .skip-link, .utility, .header, .mobile-menu, .callbar, .lightbox, .blueprint, .compare, .compare__note, .footer__big, .hero__bg, .final::before, .aside::before, .location__map, .dg-enlarge { display: none !important; }
  body, .hero, .page-hero, .final, .dark, .footer, .aside, .contact-card, .benefit, .about__card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .lead, .hero__sub, .crumbs, .kicker span, .aside p, .footer, .contact-card small, .benefit span, .thermal__list span, .stat p { color: #333 !important; }
  .h2 em, .hero h1 em, .page-hero h1 em { color: #000 !important; }
  .btn { box-shadow: none !important; border: 1px solid #000; color: #000 !important; background: none !important; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  .detail__block, .dg-card, .svc-card, .why__item, .location, .contact-card { break-inside: avoid; }
  .section, .final, .page-hero { padding: 32px 0 !important; }
}

/* ---- round 2: pin tooltips are always centred, JS shifts them inside the diagram ---- */
.pin__tip, .pin--l .pin__tip, .pin--r .pin__tip { left: 50%; right: auto; transform: translateX(calc(-50% + var(--shift, 0px))) translateY(4px); pointer-events: auto; }
.pin:hover .pin__tip, .pin:focus-visible .pin__tip, .pin.is-on .pin__tip,
.pin--l:hover .pin__tip, .pin--l.is-on .pin__tip, .pin--l:focus-visible .pin__tip,
.pin--r:hover .pin__tip, .pin--r.is-on .pin__tip, .pin--r:focus-visible .pin__tip { transform: translateX(calc(-50% + var(--shift, 0px))); }
.pin__tip::after, .pin--l .pin__tip::after, .pin--r .pin__tip::after { left: calc(50% - var(--shift, 0px)); right: auto; transform: translateX(-50%); }
.pin:not(:hover):not(.is-on):not(:focus-visible) .pin__tip { pointer-events: none; }
.pin span { transition: transform .2s var(--ease); display: inline-block; }
.pin.is-on span, .pin:hover span { transform: scale(1.15); }
@media (max-width: 720px) { .pin__tip { width: min(200px, 55vw); } }
.tips-off .pin:hover:not(.is-on) .pin__tip { opacity: 0; }
.bp-tip.is-visible { pointer-events: auto; }

/* short / zoomed viewports: keep the content visible */
@media (max-height: 480px) { .header { position: static; } .callbar { display: none !important; } body.menu-open .mobile-menu { padding-top: 24px; } }

/* narrow phones */
@media (max-width: 340px) {
  .brand img { width: 36px; height: auto; }
  .brand { gap: 8px; }
  .brand__name strong { white-space: normal; font-size: .74rem; line-height: 1.15; }
}
.kicker { flex-wrap: wrap; row-gap: 4px; }
.contact-card strong { overflow-wrap: normal; word-break: normal; }
@media (min-width: 721px) and (max-width: 1024px) { .svc-grid > .svc-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* buttons keep a boundary in forced-colors mode */
.btn { border: 1px solid transparent; }
@media (forced-colors: active) {
  .blueprint__legend i { forced-color-adjust: none; }
  .hotspot:focus-visible .hit { stroke: Highlight; stroke-width: 3; }
}
@media print {
  .footer__title, .footer__bottom, .aside__phones a, .aside__phones b, .aside__lic, .pill, .hero__trades span, .mini-trust span,
  .page-hero__media figcaption, .about__card cite, .about__card blockquote, .info-list small, .info-list a, .info-list strong, .notfound-links a, .h2, h1, .stat__num, .benefit strong, .thermal__list strong, .contact-card strong { color: #000 !important; border-color: #000 !important; background: none !important; }
}
/* touch screens: an open tooltip must never block tapping the neighbouring pins */
@media (hover: none) { .pin__tip, .pin--l .pin__tip, .pin--r .pin__tip { pointer-events: none !important; } }

/* ---------- Hero visual (illustrated home cross-section) ---------- */
.hero-visual { position: relative; margin: 0; }
.hero-visual__frame { position: relative; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,.75); border: 1px solid rgba(255,255,255,.12); }
.hero-visual__frame img { width: 100%; }
.hero-visual figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .84rem; color: var(--text-dim); font-weight: 600; }
.hero-visual figcaption i { color: #ff5a70; }
.hero-visual figcaption a { color: #fff; }
.hero-visual figcaption a:hover { color: #ff5a70; }
.hv-spot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; display: grid; place-items: center; z-index: 2; }
.hv-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(200,16,46,.22), 0 6px 16px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.hv-spot:hover .hv-dot, .hv-spot:focus-visible .hv-dot { transform: scale(1.25); }
.hv-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px); white-space: nowrap; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; padding: 8px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.hv-tip small { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #ff8a9a; font-weight: 800; }
.hv-spot--l .hv-tip { left: 0; transform: translate(0, 6px); }
.hv-spot--r .hv-tip { left: auto; right: 0; transform: translate(0, 6px); }
.hv-spot:hover .hv-tip, .hv-spot:focus-visible .hv-tip { opacity: 1; transform: translate(-50%, 0); }
.hv-spot--l:hover .hv-tip, .hv-spot--l:focus-visible .hv-tip, .hv-spot--r:hover .hv-tip, .hv-spot--r:focus-visible .hv-tip { transform: translate(0, 0); }
.hv-spot:focus-visible { outline: none; }
.hv-spot:focus-visible .hv-dot { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 720px) { .hv-spot { width: 30px; height: 30px; } .hv-dot { width: 13px; height: 13px; } .hv-tip { display: none; } }
@media print { .hero-visual { display: none; } }

/* ---------------------------------------------------------------- CMS: announcement bar + project gallery */
.announce { background: var(--red); color: #fff; font-size: .86rem; font-weight: 600; }
.announce__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; max-width: var(--container); margin: 0 auto; padding: 10px 32px; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce a:hover { text-decoration-thickness: 2px; }
.announce a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery__item { margin: 0; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.js .gallery__item.reveal { transition: opacity 1s var(--ease), translate 1s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.gallery__item:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -30px rgba(12,20,36,.3); }
.gallery__item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery__item .dg-frame { overflow: hidden; background: #eef1f6; }
.gallery__item img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { padding: 16px 20px 18px; font-weight: 600; color: var(--ink); }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .announce__inner { padding: 9px 16px; font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .gallery__item, .gallery__item img { transition: none; } .gallery__item:hover, .gallery__item:hover img { transform: none; } }
@media (forced-colors: active) { .announce { border-bottom: 1px solid CanvasText; } }
@media print { .announce { display: none; } }
/* odd number of offices: the last card spans the row (1 or 3+ offices) */
.locations > .location:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 721px) { .locations > .location:last-child:nth-child(odd) .location__map { aspect-ratio: 16 / 5; } }
.utility__group { row-gap: 4px; }
/* long unbreakable words typed in the panel (emails, "Plumbing/Electrical") wrap instead of widening the page */
body { overflow-wrap: anywhere; }
/* gallery photos in the lightbox: whole photo always fits the screen with its caption, on every device */
.lightbox__stage .dg-frame img.lb-photo { width: auto; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
/* footer with many offices: phones never break, columns wrap instead of squeezing */
.footer__top a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 1025px) {
  .footer__top--many { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .footer__top--many .footer__brand { grid-column: 1 / -1; }
}
