/* Independent live layers share the hero; no raster artwork is used here. */
.hero { padding-top:5px; }
.hero-panel { position:relative; display:block; isolation:isolate; min-height:700px; overflow:hidden; border-radius:28px; background:#135397; color:white; }
.hero-panel { background:linear-gradient(115deg,#174e86,#2465a7 65%,#1a5591); }
.hero-copy { position:relative; z-index:2; display:flex; align-items:flex-start; justify-content:center; flex-direction:column; width:52%; min-height:700px; padding:80px 45px 125px 64px; }
.hero .eyebrow { margin-bottom:27px; font-size:10px; letter-spacing:.15em; font-weight:600; color:#cce6ff; }
.hero h1 { font-size:clamp(48px,4.6vw,68px); font-weight:650; line-height:1.09; letter-spacing:-.055em; text-shadow:0 3px 28px #0b3d6e20; }
.hero h1 span { color:#c5e5ff; }
.hero-description { max-width:390px; margin-top:30px; color:#edf5fc; font-size:15px; line-height:1.8; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-top:30px; }
.hero-actions .text-link { font-size:12px; }
.hero-note { display:flex; align-items:center; gap:8px; margin-top:26px; color:#b6cde2; font-size:9px; }
.hero-note .icon { width:14px; height:14px; }
.hero-foot { display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:78px; padding:0 8px; color:#75889a; font-size:9px; letter-spacing:.1em; border-bottom:1px solid var(--line); }
.hero-foot a { display:flex; align-items:center; gap:15px; color:var(--blue); font-size:11px; letter-spacing:0; font-weight:600; }
.hero-foot .icon { width:15px; height:15px; }
html[dir=rtl] .hero-copy { margin-inline-end:auto; padding:80px 64px 125px 45px; }
html[lang=ar] .hero .eyebrow { letter-spacing:0; font-size:12px; }
html[lang=ar] .hero h1 { font-size:clamp(45px,4.4vw,64px); line-height:1.45; letter-spacing:-.035em; }
html[lang=ar] .hero-note { font-size:10px; }
html[lang=ar] .hero-foot { letter-spacing:0; font-size:11px; }
@media(min-width:1600px) { .hero-panel,.hero-copy { min-height:740px; } }
@media(max-width:1150px) {
  .hero-panel,.hero-copy { min-height:650px; }
  .hero-copy,html[dir=rtl] .hero-copy { width:53%; padding:65px 30px 120px 40px; }
  html[dir=rtl] .hero-copy { padding:65px 40px 120px 30px; }
  .hero h1 { font-size:51px; }
  .hero-description { font-size:14px; }
  .hero-actions { align-items:flex-start; flex-direction:column; gap:8px; }
  html[lang=ar] .hero h1 { font-size:48px; }
}
@media(min-width:701px) and (max-width:850px) {
  .hero-panel,.hero-copy { min-height:630px; }
  .hero-copy,html[dir=rtl] .hero-copy { width:54%; padding-inline:30px 20px; }
  .hero h1 { font-size:43px; }
  .hero-description { font-size:12px; }
  .hero .eyebrow { font-size:8px; line-height:1.8; }
  .hero-actions .text-link { font-size:11px; }
  html[lang=ar] .hero h1 { font-size:41px; }
  html[lang=ar] .hero .eyebrow { font-size:10px; }
}
@media(max-width:700px) {
  .hero-panel { min-height:820px; border-radius:23px; background:#10509b; }
  .hero-copy,html[dir=rtl] .hero-copy { justify-content:flex-start; width:100%; min-height:0; padding:46px 30px 0; }
  .hero h1 { font-size:clamp(39px,7.5vw,55px); }
  .hero .eyebrow { font-size:9px; margin-bottom:23px; }
  .hero-description { font-size:14px; max-width:390px; margin-top:22px; }
  .hero-actions { flex-direction:row; align-items:center; gap:8px 20px; margin-top:26px; }
  .hero-actions .button { padding:13px 20px; font-size:12px; min-height:48px; gap:18px; }
  .hero-actions .text-link { font-size:11px; gap:8px; }
  .hero-actions .text-link .icon { width:16px; }
  .hero-note { font-size:9px; margin-top:19px; }
  .hero-foot { min-height:61px; padding:0; gap:12px; }
  .hero-foot>span:last-child { display:none; }
  .hero-foot>span { font-size:8px; letter-spacing:.07em; }
  .hero-foot a { font-size:10px; gap:8px; }
  .hero-foot .icon { width:13px; }
  html[lang=ar] .hero h1 { font-size:clamp(40px,8vw,55px); line-height:1.45; }
  html[lang=ar] .hero .eyebrow { font-size:11px; }
  html[lang=ar] .hero-description { font-size:13px; }
  html[lang=ar] .hero-note { font-size:9px; }
  html[lang=ar] .hero-foot>span { font-size:10px; letter-spacing:0; }
}
@media(min-width:451px) and (max-width:700px) {
  .hero-panel { min-height:clamp(900px,150vw,1050px); }
  .hero-copy,html[dir=rtl] .hero-copy { padding:55px 40px 0; }
  .hero-description { max-width:400px; }
}
@media(max-width:360px) {
  .hero-panel { min-height:800px; }
  .hero-copy,html[dir=rtl] .hero-copy { padding-inline:24px; padding-top:40px; }
  .hero h1 { font-size:36px; }
  .hero .eyebrow { font-size:8px; }
  .hero-description { font-size:13px; }
  .hero-actions { flex-direction:column; align-items:flex-start; gap:6px; }
  html[lang=ar] .hero h1 { font-size:38px; }
}

/* Procedural lighting, architecture, SVG connectors and two separate wave layers. */
.hero-stage { position:absolute; inset:0; z-index:0; pointer-events:none; user-select:none; }
.hero-light,.hero-corner,.hero-house-geometry,.hero-live-network,.hero-live-wave,.hero-webgl,.hero-fallback { position:absolute; pointer-events:none; }
.hero-light { border-radius:50%; }
.light-back { width:75%; height:100%; inset-inline-end:-5%; top:-5%; background:radial-gradient(ellipse,#8bc5f737,transparent 65%); }
.light-floor { width:95%; height:40%; bottom:-15%; inset-inline-end:-20%; background:radial-gradient(ellipse,#98d9ff40,transparent 68%); }
.hero-corner { width:290px; height:290px; border-radius:50%; border:32px solid #337ab42e; box-shadow:inset 0 1px 0 #c2e5ff24,0 2px 0 #0f417b36; }
.corner-one { top:-220px; inset-inline-start:-65px; transform:rotateX(30deg) rotate(-15deg); }
.corner-two { width:370px; height:370px; top:-270px; inset-inline-end:-180px; transform:rotateX(35deg); }
.hero-house-geometry { top:0; inset-inline-end:2%; width:59%; height:94%; color:#b0dafa; opacity:.19; }
.hero-house-geometry path { stroke:currentColor; stroke-width:2; }
.hero-house-geometry .house-edge { opacity:.28; stroke-width:7; }
.hero-live-network { inset:0; width:100%; height:100%; color:#acd8f9; }
.network-track { stroke:currentColor; stroke-width:.8; opacity:.22; }
.network-flow { stroke:currentColor; stroke-width:1.2; stroke-dasharray:4 170; opacity:.6; animation:connection-flow 25s linear infinite; }
.hero-live-network circle { fill:currentColor; opacity:.7; animation:connection-light 7s ease-in-out infinite; }
.hero-live-wave { width:110%; inset-inline-start:-5%; height:32%; bottom:-3%; fill:#1e63a3; stroke:#7bb6e138; stroke-width:1.5; filter:drop-shadow(0 -9px 18px #0a386c16); }
.wave-back { bottom:2%; animation:wave-breathe 18s ease-in-out infinite; }
.wave-front { height:19%; bottom:-4%; fill:#1a548f; opacity:.85; animation:wave-breathe 22s ease-in-out -8s infinite reverse; }
.hero-webgl,.hero-fallback { inset:0; }
.hero-webgl canvas { display:block; width:100%; height:100%; opacity:0; transition:opacity 250ms ease; }
[data-renderer=webgl] .hero-webgl canvas { opacity:1; }
[data-renderer=webgl] .hero-fallback { display:none; }
[data-renderer=webgl] .hero-live-network { top:0; height:100%; }
html[dir=rtl] .hero-live-network { transform:scaleX(-1); }
.hero-stage[data-scene-paused=true] * { animation-play-state:paused!important; }
.hero-scene-controls { position:absolute; inset:0; z-index:3; pointer-events:none; }
.hero-service-tile { position:absolute; width:45px; height:49px; display:grid; place-items:center; padding:11px; border:1px solid #b8dcfa68; border-radius:12px; background:#3d85bd29; color:#d7edfc; box-shadow:3px 4px 0 #0b3b702b,inset 1px 1px 0 #ddf3ff18; transform:perspective(350px) rotateY(-14deg) rotate(-5deg); pointer-events:auto; transition:transform 200ms ease,background 200ms ease; }
.hero-service-tile svg { width:24px; height:24px; }
.hero-service-tile i { position:absolute; top:calc(100% + 6px); inset-inline-start:10px; width:23px; height:2px; border-radius:2px; background:#acd8f95c; box-shadow:0 5px 0 #acd8f92e; }
.hero-service-tile:hover,.hero-service-tile:focus-visible,.hero-service-tile[aria-pressed=true] { transform:perspective(350px) rotateY(0) translateY(-3px); background:#75b9e83d; }
.tile-cleaning { inset-inline-start:38%; top:8%; }
.tile-satellite { inset-inline-end:3%; top:76%; }
.tile-appliance { inset-inline-start:43%; top:82%; }
.tile-maintenance { inset-inline-start:22%; top:87%; width:37px; height:41px; padding:9px; opacity:.75; }
.tile-maintenance svg { width:21px; height:21px; }
.hero-scene-label { position:absolute; bottom:20px; inset-inline-end:27px; z-index:4; padding:8px 14px; border:1px solid #a3d1f54a; border-radius:99px; color:#e0f3ff; background:#174b7dcf; font-size:11px; pointer-events:none; }
.hero-scene-label:empty { display:none; }
.scene-object-hover { cursor:pointer; }

/* Individual SVG/CSS objects also provide a full scene when WebGL is unavailable. */
.hero-fallback-object { position:absolute; width:135px; height:145px; inset-inline-start:var(--x); top:var(--y); transform:translate(-50%,-50%) perspective(700px) rotateY(-15deg) rotate(-4deg); animation:object-drift 10s ease-in-out infinite; }
.hero-fallback-object>svg { position:relative; width:100%; height:100%; filter:drop-shadow(5px 10px 8px #0b315b4d); }
.fallback-platform { position:absolute; bottom:-12px; left:-5%; width:110%; height:38px; border-radius:50%; background:linear-gradient(#5b9dd0,#1a5289); border-top:1px solid #b5ddf385; box-shadow:0 9px 0 #164a80,0 16px 17px #0b315b26; transform:perspective(400px) rotateX(42deg); }
.object-plumbing { --x:59%; --y:44%; }
.object-electrical { --x:76%; --y:28%; animation-delay:-2s; }
.object-cooling { --x:90%; --y:53%; width:155px; animation-delay:-4s; }
.object-painting { --x:80%; --y:78%; animation-delay:-6s; }
.object-carpentry { --x:59%; --y:77%; animation-delay:-3s; }
.object-cleaning { --x:92%; --y:19%; width:70px; height:80px; animation-delay:-5s; }
.object-satellite { --x:8.5%; --y:85.5%; width:65px; height:74px; opacity:.8; animation-delay:-2s; }
.object-appliance { --x:47%; --y:14%; width:70px; height:80px; animation-delay:-7s; }
.object-maintenance { --x:7.5%; --y:12.5%; width:48px; height:50px; opacity:.45; }
html[dir=rtl] .hero-fallback-object { transform:translate(50%,-50%) perspective(700px) rotateY(15deg) rotate(4deg); }
@keyframes connection-flow { to { stroke-dashoffset:-348; } }
@keyframes connection-light { 0%,100% { opacity:.35; } 50% { opacity:.8; } }
@keyframes wave-breathe { 0%,100% { translate:0 0; } 50% { translate:1% 5px; } }
@keyframes object-drift { 0%,100% { translate:0 0; } 50% { translate:0 -6px; } }
@media(min-width:701px) and (max-width:1000px) {
  .hero-fallback-object { width:105px; height:115px; }
  .object-cleaning,.object-appliance { width:57px; height:64px; }
  .object-maintenance,.object-satellite { width:45px; height:51px; }
  .hero-service-tile { width:36px; height:40px; padding:8px; }
  .hero-service-tile svg { width:21px; height:21px; }
}
@media(max-width:700px) {
  .hero-panel { background:linear-gradient(160deg,#19568f,#2465a7 65%,#174c83); }
  .hero-house-geometry { top:53%; height:43%; width:95%; inset-inline-end:2%; opacity:.25; }
  .hero-live-network { top:53%; height:43%; }
  .light-back { top:47%; height:53%; width:120%; }
  .light-floor { width:130%; height:25%; }
  .hero-live-wave { height:17%; }
  .wave-front { height:12%; }
  .hero-fallback-object { width:26%; height:110px; }
  .object-plumbing { --x:25%; --y:70%; }
  .object-electrical { --x:63%; --y:65%; }
  .object-cooling { --x:73%; --y:79%; width:29%; }
  .object-painting { --x:33%; --y:87%; }
  .object-carpentry,.object-cleaning,.object-satellite,.object-appliance,.object-maintenance { display:none; }
  .hero-service-tile { width:37px; height:41px; padding:9px; }
  .hero-service-tile svg { width:21px; height:21px; }
  .tile-cleaning { inset-inline-start:8%; top:59%; }
  .tile-satellite { inset-inline-end:4%; top:89%; }
  .tile-appliance,.tile-maintenance { display:none; }
  .hero-scene-label { bottom:17px; inset-inline-end:16px; font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-stage * { animation:none!important; }
  .hero-service-tile { transition:none; }
  .hero-service-tile:hover,.hero-service-tile:focus-visible { transform:none; }
}
