/* ==========================================================================
   CIPHER — home services "engineering space" scenes (scenes.js)
   ========================================================================== */
.svx-sec { position: relative; isolation: isolate; overflow: hidden; }
/* ---- full-section backgrounds (cross-fade, one per scene) ---- */
.sx-bgs { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #f5f8ff, #eef4ff); }
.sx-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.sx-bg.on { opacity: 1; }
.sx-bg::before { content: ""; position: absolute; inset: 0; }
.sx-bg::after { content: ""; position: absolute; inset: 0; -webkit-mask: radial-gradient(75% 70% at 30% 55%, #000 35%, transparent 80%); mask: radial-gradient(75% 70% at 30% 55%, #000 35%, transparent 80%); }
.bg-grid::before { background: radial-gradient(60% 70% at 18% 40%, rgba(47,111,232,.14), transparent 70%), linear-gradient(160deg, #f7faff, #e8f1ff); }
.bg-grid::after { background-image: linear-gradient(rgba(47,111,232,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(47,111,232,.09) 1px, transparent 1px); background-size: 44px 44px; }
.bg-dots::before { background: radial-gradient(55% 65% at 80% 30%, rgba(92,217,247,.2), transparent 70%), linear-gradient(200deg, #f6fbff, #e7f3fd); }
.bg-dots::after { background-image: radial-gradient(rgba(31,86,214,.2) 1.4px, transparent 1.6px); background-size: 22px 22px; }
.bg-iso::before { background: radial-gradient(60% 70% at 25% 25%, rgba(31,86,214,.12), transparent 70%), linear-gradient(150deg, #f4f7ff, #e5edfc); }
.bg-iso::after { background-image: repeating-linear-gradient(30deg, rgba(47,111,232,.08) 0 1px, transparent 1px 38px), repeating-linear-gradient(-30deg, rgba(47,111,232,.08) 0 1px, transparent 1px 38px); }
.bg-chart::before { background: radial-gradient(60% 60% at 15% 80%, rgba(92,217,247,.2), transparent 70%), linear-gradient(170deg, #f7faff, #eaf2ff); }
.bg-chart::after { background-image: linear-gradient(rgba(31,86,214,.1) 1px, transparent 1px); background-size: 100% 36px; }
.bg-circuit::before { background: radial-gradient(55% 60% at 30% 20%, rgba(79,151,243,.16), transparent 70%), linear-gradient(190deg, #f5f9ff, #e6effd); }
.bg-circuit::after { background-image: radial-gradient(rgba(31,86,214,.28) 2px, transparent 2.4px), linear-gradient(90deg, rgba(47,111,232,.08) 1px, transparent 1px); background-size: 64px 64px, 64px 64px; background-position: 0 0, 31px 0; }
.bg-rings::before { background: radial-gradient(50% 60% at 30% 50%, rgba(92,217,247,.22), transparent 70%), linear-gradient(160deg, #f4fbff, #e4f2fc); }
.bg-rings::after { background-image: repeating-radial-gradient(circle at 30% 55%, transparent 0 46px, rgba(47,111,232,.09) 47px 48px); }
.bg-blueprint::before { background: radial-gradient(60% 70% at 20% 30%, rgba(47,111,232,.12), transparent 70%), linear-gradient(165deg, #f5f8ff, #e7eefc); }
.bg-blueprint::after { background-image: linear-gradient(rgba(47,111,232,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(47,111,232,.12) 1px, transparent 1px), linear-gradient(rgba(47,111,232,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(47,111,232,.05) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.bg-stripes::before { background: radial-gradient(60% 60% at 25% 75%, rgba(31,86,214,.12), transparent 70%), linear-gradient(175deg, #f6f9ff, #e9f0fd); }
.bg-stripes::after { background-image: repeating-linear-gradient(135deg, rgba(47,111,232,.06) 0 2px, transparent 2px 22px); }
.bg-cubes::before { background: radial-gradient(55% 60% at 30% 30%, rgba(92,217,247,.18), transparent 70%), linear-gradient(155deg, #f6faff, #e8f0fe); }
.bg-cubes::after { background-image: linear-gradient(30deg, rgba(47,111,232,.07) 12%, transparent 12.5%, transparent 87%, rgba(47,111,232,.07) 87.5%), linear-gradient(150deg, rgba(47,111,232,.07) 12%, transparent 12.5%, transparent 87%, rgba(47,111,232,.07) 87.5%), linear-gradient(90deg, rgba(47,111,232,.05) 2%, transparent 2.5%, transparent 97%, rgba(47,111,232,.05) 97.5%); background-size: 60px 104px; }
.svx-sec .svx-pbg, .svx-sec .svx-wave { display: none !important; }

/* ---- stage ---- */
.svx-stage.sx { position: relative; aspect-ratio: 1 / .92; width: 100%; padding: 0 !important; perspective: 1400px; container-type: inline-size; transition: opacity .35s; }
.sx > * { position: absolute; }
.sx-light { inset: -10%; background: radial-gradient(40% 40% at var(--lx) var(--ly), rgba(255,255,255,.95), transparent 70%); pointer-events: none; transition: opacity .6s; }
.sx-floor { left: 50%; bottom: 3%; width: 84%; aspect-ratio: 3.6; transform: translateX(-50%); }
.sx-floor i { position: absolute; inset: 0; border-radius: 50%; }
.sx-floor i:first-child { background: radial-gradient(closest-side, rgba(47,111,232,.22), rgba(47,111,232,.06) 65%, transparent); }
.sx-floor i + i { inset: 18% 14%; border: 2px solid rgba(47,111,232,.28); box-shadow: inset 0 0 20px rgba(92,217,247,.25); }
.sx-links { inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; pointer-events: none; }
.sx-links path { fill: none; stroke: rgba(47,111,232,.35); stroke-width: .35; stroke-dasharray: 1.2 2; vector-effect: non-scaling-stroke; stroke-width: 1.6; animation: sxDash 2.4s linear infinite; }
@keyframes sxDash { to { stroke-dashoffset: -26; } }
.sx-world { inset: 0; transform-style: preserve-3d; transform: rotateX(calc(4deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.22,1,.36,1); z-index: 2; }
.sx-core { left: 10%; right: 10%; top: 10%; transform: translateZ(0); transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .5s; }
.sx-core .a3w { filter: drop-shadow(0 26px 30px rgba(10,26,74,.22)); }
.sx-core .a3-tile, .sx-core .a3-cb, .sx-core .a3-floor { display: none; }
/* ---- floating glass windows ---- */
.sw-w { position: absolute; left: var(--x); top: var(--y); width: var(--w); font-size: max(10px, 2.35cqw); transform: translate(-50%, -50%) translateZ(var(--z)) rotateY(var(--ry)); transform-style: preserve-3d;
  padding: .9em 1em; border-radius: 1.1em; color: var(--navy-800); text-align: start;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(240,246,255,.74)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1.8em 3em -1.8em rgba(10,26,74,.45), inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(47,111,232,.1);
  transition: transform .7s cubic-bezier(.22,1,.36,1) var(--d), opacity .5s ease var(--d), box-shadow .3s; animation: sxBob 7s ease-in-out infinite; animation-delay: calc(var(--d) * -6); z-index: 3; }
@keyframes sxBob { 50% { translate: 0 -.5em; } }
.sw-w:hover { box-shadow: 0 2.2em 3.4em -1.6em rgba(31,86,214,.5), inset 0 0 0 1px #fff, 0 0 0 1px rgba(92,217,247,.45); }
.sw-code { background: linear-gradient(160deg, rgba(18,40,107,.94), rgba(7,19,56,.94)); color: #dbe7ff; box-shadow: 0 1.8em 3em -1.6em rgba(7,19,56,.6), inset 0 0 0 1px rgba(92,217,247,.2); }
.sx-bar { display: flex; align-items: center; gap: .35em; margin: -.2em 0 .6em; direction: ltr; }
.sx-bar i { width: .55em; height: .55em; border-radius: 50%; background: rgba(169,236,251,.35); } .sx-bar i:first-child { background: #5cd9f7; }
.sx-bar b { margin-left: .5em; font: 500 .82em var(--font-mono); color: rgba(219,231,255,.6); }
.w-code { margin: 0; font: 500 .86em/1.75 var(--font-mono); white-space: pre; overflow: hidden; }
.w-code span { display: block; clip-path: inset(0 100% 0 0); animation: sxType 1s steps(28) forwards; animation-delay: calc(.5s + var(--i) * .45s); unicode-bidi: plaintext; }
@keyframes sxType { to { clip-path: inset(0 0 0 0); } }
.w-code .t { color: #5cd9f7; font-style: normal; } .w-code .a { color: #a9c8ff; font-style: normal; } .w-code .s { color: #c9f3ff; font-style: normal; }
.w-head { display: flex; align-items: center; gap: .55em; margin-bottom: .7em; }
.w-head b { font: 700 .95em/1.2 var(--font-head); flex: 1; }
.w-ic { width: 2em; height: 2em; border-radius: .6em; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #4f97f3, #1f56d6); }
.w-ic svg { width: 1.05em; height: 1.05em; }
.w-live { width: .5em; height: .5em; border-radius: 50%; background: #2f6fe8; box-shadow: 0 0 0 .25em rgba(47,111,232,.18); animation: sxLive 2s ease-in-out infinite; }
@keyframes sxLive { 50% { box-shadow: 0 0 0 .45em rgba(47,111,232,0); } }
.w-rows { display: grid; gap: .45em; margin: 0; padding: 0; list-style: none; }
.w-rows li { display: flex; align-items: center; gap: .5em; padding: .45em .55em; border-radius: .6em; background: rgba(47,111,232,.06); opacity: 0; transform: translateY(.4em); animation: sxRow .5s ease forwards; animation-delay: calc(.6s + var(--i) * .25s); }
@keyframes sxRow { to { opacity: 1; transform: none; } }
.w-rows .dot { width: .55em; height: .55em; border-radius: 50%; background: #9fb8e6; flex: none; } .w-rows .dot.ok { background: #2f6fe8; } .w-rows .dot.warn { background: #5cd9f7; }
.w-rows b { font: 600 .82em var(--font-head); flex: 1; } .w-rows small { font-size: .72em; color: #5b6b8f; white-space: nowrap; }
.sx-bars { display: flex; align-items: flex-end; gap: .35em; height: 5.2em; }
.sx-bars i { flex: 1; height: var(--h); border-radius: .3em .3em .1em .1em; background: linear-gradient(180deg, #5cd9f7, #2f6fe8); transform-origin: bottom; transform: scaleY(0); animation: sxBar .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(.5s + var(--i) * .1s); }
@keyframes sxBar { to { transform: scaleY(1); } }
.w-ring { position: relative; width: 5em; height: 5em; margin: 0 auto .4em; }
.w-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.w-ring circle { fill: none; stroke: rgba(47,111,232,.14); stroke-width: 3.4; }
.w-ring .fg { stroke: #2f6fe8; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; animation: sxRing 1.4s .5s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes sxRing { to { stroke-dashoffset: 8; } }
.w-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.3em var(--font-head); color: var(--navy-800); }
.w-note, .w-p { display: block; font-size: .78em; line-height: 1.6; color: #5b6b8f; margin: 0; text-align: center; }
.w-p { text-align: start; font-size: .82em; }
.w-flow { display: flex; align-items: center; justify-content: space-between; gap: .3em; }
.w-flow span { display: grid; justify-items: center; gap: .3em; padding: .55em .35em; min-width: 3.4em; border-radius: .7em; background: rgba(47,111,232,.07); color: #1f56d6; opacity: 0; animation: sxRow .5s ease forwards; animation-delay: calc(.5s + var(--i) * .3s); }
.w-flow span svg { width: 1.3em; height: 1.3em; } .w-flow small { font: 600 .66em var(--font-head); color: var(--navy-800); white-space: nowrap; }
.w-flow .arr { flex: 1; height: 2px; min-width: .8em; background: linear-gradient(90deg, rgba(47,111,232,.2), #2f6fe8); position: relative; overflow: hidden; }
.w-flow .arr::after { content: ""; position: absolute; inset: 0; width: 40%; background: #5cd9f7; animation: sxFlow 1.6s linear infinite; }
@keyframes sxFlow { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.w-kv { display: grid; gap: .4em; margin: 0; }
.w-kv div { display: flex; justify-content: space-between; gap: 1em; padding: .4em .55em; border-radius: .55em; background: rgba(47,111,232,.06); opacity: 0; animation: sxRow .5s ease forwards; animation-delay: calc(.5s + var(--i) * .25s); }
.w-kv dt { font: 500 .78em var(--font-mono); color: #5b6b8f; } .w-kv dd { margin: 0; font: 700 .86em var(--font-mono); color: #1f56d6; }
.sw-chip { width: auto !important; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.w-chip { display: inline-flex; align-items: center; gap: .45em; padding: .55em .9em; border-radius: 999px; font: 700 .82em var(--font-mono); color: #1f56d6; white-space: nowrap; background: rgba(255,255,255,.92); box-shadow: 0 1em 2em -1em rgba(10,26,74,.4), inset 0 0 0 1px rgba(47,111,232,.14); }
.w-chip svg { width: 1.1em; height: 1.1em; }

/* ---- enter / exit choreography ---- */
.sx.sx-enter .sw-w { opacity: 0; transform: translate(-50%, -50%) translateZ(calc(var(--z) - 180px)) rotateY(var(--ry)); transition: none; }
.sx.sx-enter .sx-core { opacity: 0; transform: translateZ(-120px) scale(.9); transition: none; }
.svx.swap .sx .sw-w { opacity: 0; transform: translate(-50%, -50%) translateZ(calc(var(--z) + 120px)) rotateY(var(--ry)); transition-delay: calc(var(--d) * .4); transition-duration: .35s; }
.svx.swap .sx .sx-core { opacity: 0; transform: translateZ(-80px) scale(.94); transition-duration: .35s; }
.svx.swap .sx .sx-links { opacity: 0; transition: opacity .25s; }

/* ---- layout overrides for the explorer ---- */
.svx-stage.sx { overflow: visible; }
@media (min-width: 1181px) { .svx-stage.sx { align-self: center; } }
@media (max-width: 900px) {
  .svx-stage.sx { width: min(380px, 100%) !important; aspect-ratio: 1 / .86; margin-inline: auto; }
  .sw-x { display: none; }
  .sw-w { font-size: max(9px, 2.6cqw); }
  .sx-world > .sw-w ~ .sw-w { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-w, .sx-links path, .w-live, .w-flow .arr::after { animation: none; }
  .w-code span, .w-rows li, .w-kv div, .w-flow span { animation: none; opacity: 1; clip-path: none; transform: none; }
  .sx-bars i { animation: none; transform: none; } .w-ring .fg { animation: none; stroke-dashoffset: 8; }
}
@media (min-width: 1181px) {
  .svx { grid-template-columns: 260px minmax(0, .82fr) minmax(0, 1.38fr) !important; column-gap: 30px !important; }
  .svx-stage.sx { margin-inline-start: -2%; }
}
.sw-w { font-size: max(11px, 2.55cqw); }
.sx-core { left: 14%; right: 14%; top: 14%; }
.sx-bar b { background: none !important; padding: 0; height: auto; width: auto; box-shadow: none; }
/* keep windows inside the stage on narrow screens */
@media (max-width: 900px) {
  .sw-w { left: clamp(calc(var(--w) / 2 + 4px), var(--x), calc(100% - var(--w) / 2 - 4px)); }
}

/* =====================================================================
   DESKTOP (≥901px): immersive full-bleed services band.
   Colours, waves and light change with the selected service.
   (Phone layout above is unchanged.)
   ===================================================================== */
@property --g1 { syntax: "<color>"; inherits: true; initial-value: #0a1a4a; }
@property --g2 { syntax: "<color>"; inherits: true; initial-value: #1f56d6; }
@property --g3 { syntax: "<color>"; inherits: true; initial-value: #5cd9f7; }
.svw, .svx-orbs { display: none; }
@media (min-width: 901px) {
  .svx-sec { --g1: #0b2a6f; --g2: #1f56d6; --g3: #5cd9f7; color: #fff; min-height: min(100vh, 1100px); display: grid; align-content: center;
    padding-block: clamp(150px, 12vw, 190px) clamp(160px, 13vw, 200px) !important;
    background: radial-gradient(55% 60% at 22% 55%, color-mix(in srgb, var(--g3) 26%, transparent), transparent 70%), radial-gradient(45% 55% at 92% 20%, color-mix(in srgb, var(--g2) 55%, transparent), transparent 70%), linear-gradient(150deg, var(--g1) 0%, color-mix(in srgb, var(--g1) 55%, var(--g2)) 60%, var(--g1) 100%);
    transition: --g1 1s ease, --g2 1s ease, --g3 1s ease; }
  .svx-sec[data-scene="web"] { --g1: #0b2a6f; --g2: #1f56d6; --g3: #5cd9f7; }
  .svx-sec[data-scene="mobile"] { --g1: #0a2160; --g2: #2f6fe8; --g3: #00cffe; }
  .svx-sec[data-scene="systems"] { --g1: #071338; --g2: #173a9a; --g3: #4f97f3; }
  .svx-sec[data-scene="data"] { --g1: #06275e; --g2: #05a7f1; --g3: #a9ecfb; }
  .svx-sec[data-scene="automation"] { --g1: #0d1f5c; --g2: #2f6fe8; --g3: #5cd9f7; }
  .svx-sec[data-scene="iot"] { --g1: #062a52; --g2: #0b7fc7; --g3: #00cffe; }
  .svx-sec[data-scene="consulting"] { --g1: #0a1a4a; --g2: #1f56d6; --g3: #4f97f3; }
  .svx-sec[data-scene="support"] { --g1: #08183f; --g2: #12286b; --g3: #5cd9f7; }
  .svx-sec[data-scene="micro"] { --g1: #0b2a6f; --g2: #4f97f3; --g3: #a9ecfb; }
  .svx-sec .sx-bgs { display: none; }
  /* pattern overlay (per scene, from the scene backgrounds) */
  .svx-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(169,236,251,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(169,236,251,.07) 1px, transparent 1px); background-size: 56px 56px;
    -webkit-mask: radial-gradient(70% 70% at 30% 50%, #000 30%, transparent 80%); mask: radial-gradient(70% 70% at 30% 50%, #000 30%, transparent 80%); }
  .svx-sec[data-scene="mobile"]::before, .svx-sec[data-scene="micro"]::before { background-image: radial-gradient(rgba(169,236,251,.16) 1.4px, transparent 1.6px); background-size: 24px 24px; }
  .svx-sec[data-scene="iot"]::before { background-image: repeating-radial-gradient(circle at 28% 55%, transparent 0 48px, rgba(169,236,251,.08) 49px 50px); background-size: auto; }
  .svx-sec[data-scene="systems"]::before, .svx-sec[data-scene="support"]::before { background-image: repeating-linear-gradient(135deg, rgba(169,236,251,.06) 0 1px, transparent 1px 26px); background-size: auto; }
  /* waves */
  .svw { display: block; position: absolute; left: 0; right: 0; height: clamp(90px, 8vw, 140px); overflow: hidden; pointer-events: none; z-index: 0; }
  .svw.top { top: -1px; } .svw.bot { bottom: -1px; }
  .svw svg { position: absolute; left: 0; width: 200%; max-width: none; height: 100%; animation: bwX 28s linear infinite; }
  .svw.top svg { top: 0; } .svw.bot svg { bottom: 0; }
  .svw .w2 { height: 78%; animation-duration: 18s; animation-direction: reverse; }
  .svw.top .w1 path { fill: color-mix(in srgb, var(--g3) 30%, var(--bg)); }
  .svw.top .w2 path:first-child { fill: var(--bg); }
  .svw.bot .w1 path { fill: color-mix(in srgb, var(--g3) 35%, #071338); }
  .svw.bot .w2 path:first-child { fill: #071338; }
  .svw .cr { fill: none !important; stroke: var(--g3); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--g3) 70%, transparent)); }
  .svx-orbs { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .svx-orbs i { position: absolute; border-radius: 50%; animation: wbFloat 18s ease-in-out infinite alternate; }
  .svx-orbs .o1 { width: 620px; height: 620px; left: 2%; top: 22%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g3) 28%, transparent), transparent); }
  .svx-orbs .o2 { width: 480px; height: 480px; right: 6%; top: 10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g2) 60%, transparent), transparent); animation-duration: 22s; }
  .svx-orbs .o3 { width: 360px; height: 360px; left: 40%; bottom: 4%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g3) 18%, transparent), transparent); animation-duration: 26s; }

  /* layout: list | content | scene, filling the screen */
  .svx-sec > .container { position: relative; z-index: 1; width: min(1440px, 94%); max-width: none; }
  .svx { grid-template-columns: 290px minmax(0, .95fr) minmax(0, 1.3fr) !important; grid-template-rows: auto auto 1fr auto !important;
    grid-template-areas: "head head head" "list card stage" "list btns stage" "feats feats feats" !important; column-gap: clamp(24px, 2.6vw, 44px) !important; row-gap: 22px !important; align-items: start; }
  .svx-head { grid-area: head; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 40px; row-gap: 12px; margin-bottom: 12px; padding-top: 0 !important; }
  .svx-head .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .svx-head .h-1 { color: #fff; margin: 0; }
  .svx-head .h-1 .accent-ul { color: var(--g3); -webkit-text-fill-color: currentColor; }
  .svx-head .lead { color: rgba(226,236,255,.78); margin: 0; justify-self: end; max-width: 46ch; }
  .svx-head .eyebrow { background: rgba(255,255,255,.08); color: #dbe7ff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
  /* list */
  .svx-list { grid-area: list; align-self: stretch; padding: 10px !important; border-radius: 26px; gap: 6px !important;
    background: rgba(255,255,255,.06) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .svx-item { color: rgba(226,236,255,.82) !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
  .svx-item:hover { background: rgba(255,255,255,.06) !important; }
  .svx-item .ic { background: rgba(255,255,255,.08) !important; color: var(--g3) !important; box-shadow: none !important; }
  .svx-item.active { color: var(--navy-800) !important; }
  .svx-item.active .ic { background: linear-gradient(145deg, var(--g2), var(--g1)) !important; color: #fff !important; }
  .svx-glider { background: #fff !important; box-shadow: 0 16px 30px -14px rgba(0,0,0,.45) !important; }
  .svx-item.run::after { background: var(--g2) !important; }
  /* content card */
  .svx-card { grid-area: card; align-self: start; color: #fff; border-radius: 30px !important; padding: 32px 32px 28px !important;
    background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 40px 80px -50px rgba(0,0,0,.6) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .svx-card h3 { color: #fff !important; font-size: clamp(28px, 2.4vw, 38px) !important; }
  .svx-card p { color: rgba(226,236,255,.85) !important; font-size: 17px; }
  .svx-card .pill { background: rgba(255,255,255,.1) !important; color: var(--g3) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g3) 45%, transparent) !important; }
  .svx-card .svx-mini { display: grid !important; gap: 8px; margin-top: 4px; }
  .svx-card .svx-mini li { color: #e3ecff; } .svx-card .svx-mini svg { color: var(--g3); }
  .svx-more { color: #fff !important; } .svx-more i { border-color: var(--g3) !important; color: var(--g3) !important; }
  .svx-more:hover i { background: var(--g3) !important; color: var(--g1) !important; }
  .svx-btns { grid-area: btns; align-self: start; }
  .svx-btns .btn-navy { background: #fff !important; color: var(--navy-800) !important; box-shadow: 0 16px 34px -16px rgba(0,0,0,.5) !important; }
  .svx-btns .btn-ghost { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4) !important; }
  /* scene */
  .svx-stage.sx { grid-area: stage !important; grid-row: 2 / 4 !important; align-self: center; width: 100% !important; margin: 0 !important; aspect-ratio: 1 / .78 !important; }
  .sx-light { background: radial-gradient(42% 42% at var(--lx) var(--ly), color-mix(in srgb, var(--g3) 30%, transparent), transparent 70%); }
  .sx-floor i:first-child { background: radial-gradient(closest-side, color-mix(in srgb, var(--g3) 35%, transparent), transparent 70%); }
  .sx-floor i + i { border-color: color-mix(in srgb, var(--g3) 55%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--g3) 35%, transparent), inset 0 0 20px color-mix(in srgb, var(--g3) 30%, transparent); }
  .sx-links path { stroke: color-mix(in srgb, var(--g3) 70%, transparent); }
  .sx-core .a3w { filter: drop-shadow(0 30px 34px rgba(0,0,0,.4)); }
  .sx-core { left: 12%; right: 12%; top: 6%; }
  /* features row */
  .svx-feats { grid-area: feats !important; margin-top: 16px !important; padding: 16px 20px !important; border-radius: 24px !important; display: grid !important; grid-template-columns: repeat(3, 1fr);
    background: rgba(255,255,255,.06) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1) !important; }
  .svx-feats li { color: #fff !important; flex-direction: row !important; justify-content: center; gap: 12px !important; border-color: rgba(255,255,255,.12) !important; }
  .svx-feats li svg { color: var(--g3) !important; }
  .svx-feats li br { display: none; }
  .svx-g { display: none !important; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .svx { grid-template-columns: 250px minmax(0, 1fr) !important; grid-template-areas: "head head" "list stage" "list card" "list btns" "feats feats" !important; }
  .svx-stage.sx { grid-row: auto !important; aspect-ratio: 1 / .7 !important; }
  .svx-head { grid-template-columns: 1fr; } .svx-head .lead { justify-self: start; }
}
@media (min-width: 901px) {
  .svx-head { display: flex !important; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; }
  .svx-head .eyebrow { flex-basis: 100%; width: max-content; flex-grow: 0; }
  .svx-head .h-1 { flex: 1 1 520px; }
  .svx-head .lead { flex: 0 1 440px; }
}
@media (min-width: 901px) {
  .svx-head { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: end; gap: 14px 48px; }
  .svx-head .eyebrow { grid-column: 1 / -1; justify-self: start; width: auto; }
  .svx-head .h-1, .svx-head .lead { flex: none; }
  .svx-head .lead { font-size: 18px; justify-self: stretch; }
  .svx-feats li br { display: inline; }
  .svx-feats li span { text-align: start; line-height: 1.4; }
  .svx-stage.sx { padding-inline: 2% !important; }
}
@media (min-width: 901px) { .svx-head .h-1 { max-width: none !important; width: auto; } .svx-head > * { max-width: none; } }
@media (min-width: 901px) { .svx .svx-head { max-width: none !important; width: 100%; } }
@media (min-width: 901px) { .svx-sec + .statement > .wave:first-of-type { display: none; } .svx-sec + .statement { margin-top: -1px; } }
@media (min-width: 901px) {
  .svw .cr { filter: none !important; }
  .svx-list, .svx-card, .svx-sec .sw-w { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .svx-sec .sw-w { background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(236,244,255,.92)); }
  .svx-sec .sw-code { background: linear-gradient(160deg, #12286b, #071338); }
}

/* =====================================================================
   v14 — home services explorer: rebuilt desktop layout (≥901px)
   head (title + lead below) / list | card | scene / feats under scene
   fixed sizes → no jumps when switching services
   ===================================================================== */
@media (min-width: 901px) {
  .svx-sec { min-height: 0; }
  .svx { grid-template-columns: 318px minmax(0, 1fr) minmax(0, 1.22fr) !important; grid-template-rows: auto auto auto !important;
    grid-template-areas: "head head head" "list card stage" "list btns feats" !important; column-gap: clamp(22px, 2.2vw, 40px) !important; row-gap: 18px !important; align-items: start !important; }
  .svx-head { display: grid !important; grid-template-columns: 1fr !important; justify-items: start; gap: 14px !important; margin-bottom: 18px; }
  .svx-head .eyebrow, .svx-head .h-1, .svx-head .lead { grid-column: 1 !important; justify-self: start !important; }
  .svx-head .lead { max-width: 62ch; font-size: 18px; }
  /* list: one line per service, fixed rhythm */
  .svx-list { align-self: start !important; justify-content: flex-start !important; gap: 4px !important; padding: 8px !important; }
  .svx-item { min-height: 50px !important; padding: 6px 12px !important; white-space: nowrap; }
  .svx-item .tx { white-space: nowrap; font-size: 15px; }
  .svx-item .tx b, .svx-item .tx span { white-space: nowrap; }
  .svx-item .pr { display: none !important; }
  .svx-item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .svx-glider { right: auto !important; left: 0 !important; top: 0 !important; transition: transform .45s cubic-bezier(.22,1,.36,1), height .3s, width .3s; }
  /* card: fixed height so the scene never jumps */
  .svx-card { min-height: 440px; display: grid; align-content: start; gap: 14px; }
  .svx-card h3 { font-size: clamp(26px, 2.1vw, 34px) !important; line-height: 1.25; text-wrap: balance; }
  .svx-card p { text-wrap: pretty; }
  .svx-card .svx-card-h { align-items: center; }
  .svx-btns { display: flex; flex-wrap: nowrap; gap: 12px; }
  .svx-btns .btn { white-space: nowrap; }
  /* scene: fixed box */
  .svx-stage.sx { grid-area: stage !important; grid-row: auto !important; align-self: start !important; aspect-ratio: 1 / .8 !important; }
  /* features: a slim row directly under the scene */
  .svx-feats { grid-area: feats !important; align-self: start; margin: 0 !important; padding: 10px 12px !important; display: grid !important; grid-template-columns: repeat(3, auto) !important; justify-content: space-between; gap: 8px; border-radius: 18px !important; }
  .svx-feats li { padding: 4px 6px !important; border: 0 !important; gap: 8px !important; white-space: nowrap; }
  .svx-feats li br { display: none !important; }
  .svx-feats li span { font-size: 14px; line-height: 1.3; white-space: nowrap; }
  .svx-feats li svg { width: 20px; height: 20px; flex: none; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .svx { grid-template-columns: 300px minmax(0, 1fr) !important; grid-template-areas: "head head" "list stage" "list feats" "card card" "btns btns" !important; }
  .svx-card { min-height: 0; }
  .svx-feats li span { font-size: 13px; }
}
/* scene windows: no squashed text */
.sx .sw-w { transform: translate(-50%, -50%) translateZ(var(--z)) rotateY(calc(var(--ry) * .45)); }
.sx.sx-enter .sw-w { transform: translate(-50%, -50%) translateZ(calc(var(--z) - 180px)) rotateY(calc(var(--ry) * .45)); }
.svx.swap .sx .sw-w { transform: translate(-50%, -50%) translateZ(calc(var(--z) + 120px)) rotateY(calc(var(--ry) * .45)); }
.sw-panel { width: calc(var(--w) * 1.18); }
.w-rows b, .w-rows small, .w-kv dt, .w-kv dd, .w-head b, .w-flow small { white-space: nowrap; }
.w-head b { overflow: hidden; text-overflow: ellipsis; }
.w-rows li { gap: .7em; }
/* ribbon hover: keep the icon visible */
.gbi:hover i, .gbi:focus-visible i { animation: none !important; color: #fff !important; }
.gbi:hover i svg, .gbi:focus-visible i svg { color: #fff; stroke: currentColor; }
