@view-transition { navigation: auto; }

:root {
  view-transition-name: site-page;
}

body.home-overview #top > section[id]:not(#site-section-hub):not(#home-products):not(#client-directory):not(#home-rating):not(#quote-estimator):not(#process) { display: none !important; }
body.home-overview #contact { display: block; }
.home-hub { position: relative; padding: 70px 20px 88px; overflow: hidden; border-block: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg,rgba(17,21,17,.92),rgba(12,14,18,.96)); }
.home-hub::before { position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 30%,rgba(184,255,31,.08),transparent 40%),radial-gradient(ellipse at 88% 75%,rgba(61,107,255,.1),transparent 36%); content: ''; pointer-events: none; }
.home-hub-inner { position: relative; width: min(100%,1320px); margin: auto; }
.home-hub-title { max-width: 700px; margin-bottom: 32px; }
.home-hub-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.home-hub-card { position: relative; display: flex; min-height: 170px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.015)); color: #fff; text-decoration: none; animation: hub-rise .75s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--hub-order,0) * 80ms); transition: transform .38s cubic-bezier(.2,.8,.2,1),border-color .3s,background .3s,box-shadow .3s; }
.home-hub-card:nth-child(1) { --hub-order: 0; }.home-hub-card:nth-child(2) { --hub-order: 1; }.home-hub-card:nth-child(3) { --hub-order: 2; }.home-hub-card:nth-child(4) { --hub-order: 3; }.home-hub-card:nth-child(5) { --hub-order: 4; }.home-hub-card:nth-child(6) { --hub-order: 5; }.home-hub-card:nth-child(7) { --hub-order: 6; }.home-hub-card:nth-child(8) { --hub-order: 7; }
.home-hub-card::after { position: absolute; top: -90%; left: -45%; width: 35%; height: 280%; transform: rotate(28deg); background: linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent); content: ''; transition: left .65s ease; pointer-events: none; }
.home-hub-card:hover { transform: translateY(-7px); border-color: rgba(184,255,31,.45); background: linear-gradient(145deg,rgba(184,255,31,.09),rgba(61,107,255,.05)); box-shadow: 0 20px 50px rgba(0,0,0,.24),0 0 28px rgba(184,255,31,.08); }
.home-hub-card:hover::after { left: 130%; }
.home-hub-card .hub-icon { color: var(--neon); font-size: 24px; }
.home-hub-card strong { display: block; margin-top: 20px; font: 700 20px/1.2 'Space Grotesk',sans-serif; }
.home-hub-card span:last-child { display: block; margin-top: 8px; color: #9ca3af; font-size: 13px; line-height: 1.55; }
@media (max-width: 900px) { .home-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .home-hub { padding: 52px 16px 62px; } .home-hub-grid { gap: 10px; } .home-hub-card { min-height: 146px; padding: 16px; } .home-hub-card strong { font-size: 17px; } .home-hub-card span:last-child { font-size: 12px; } }

::view-transition-old(site-page) {
  animation: page-out .24s ease both;
}

::view-transition-new(site-page) {
  animation: page-in .56s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes page-out {
  to { opacity: 0; filter: blur(8px); transform: scale(.985); }
}

@keyframes page-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(14px) scale(.99); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

.section-page { min-height: 100vh; background: var(--obsidian); color: var(--offwhite); }
.sp-nav { position: fixed; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(12,13,16,.82); backdrop-filter: blur(18px); }
.sp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; min-height: 76px; margin: auto; padding: 10px clamp(18px,4vw,56px); }
.sp-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #fff; font-family: 'Space Grotesk',sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.sp-brand img { width: 44px; height: 44px; object-fit: contain; }
.sp-brand b { color: var(--neon); }
.sp-nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(12px,1.8vw,26px); }
.sp-nav-links > a, .sp-more > summary { color: #cbd5e1; font-size: 13px; text-decoration: none; transition: color .2s, text-shadow .2s; cursor: pointer; list-style: none; white-space: nowrap; }
.sp-nav-links > a:hover, .sp-nav-links > a[aria-current="page"], .sp-more > summary:hover { color: var(--neon); text-shadow: 0 0 18px rgba(184,255,31,.35); }
.sp-more { position: relative; }
.sp-more > summary::-webkit-details-marker { display: none; }
.sp-more > summary::after { content: '⌄'; margin-left: 5px; }
.sp-more-menu { position: absolute; top: calc(100% + 17px); right: -18px; display: grid; min-width: 180px; padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #14161a; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.sp-more-menu a { padding: 10px 12px; border-radius: 8px; color: #cbd5e1; font-size: 13px; text-decoration: none; }
.sp-more-menu a:hover { background: rgba(184,255,31,.1); color: var(--neon); }
.sp-langs { display: flex; gap: 5px; }
.sp-langs button { min-width: 37px; min-height: 34px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: transparent; color: #94a3b8; font-size: 11px; font-weight: 700; cursor: pointer; transition: .2s; }
.sp-langs button[aria-pressed="true"] { border-color: var(--neon); background: var(--neon); color: #111; }
.sp-menu-toggle, .sp-mobile { display: none; }
.section-page main { min-height: 70vh; padding: 76px 0 60px; }
.sp-intro { position: relative; display: grid; min-height: clamp(340px,48vh,540px); place-items: center; overflow: hidden; padding: 82px 22px 56px; text-align: center; isolation: isolate; }
.sp-intro::before, .sp-intro::after { position: absolute; z-index: -1; content: ''; pointer-events: none; }
.sp-intro::before { inset: -35%; background: radial-gradient(ellipse at 24% 40%,rgba(184,255,31,.14),transparent 38%),radial-gradient(ellipse at 78% 54%,rgba(61,107,255,.2),transparent 40%),linear-gradient(130deg,transparent 30%,rgba(255,255,255,.025) 50%,transparent 70%); animation: sp-aurora 14s ease-in-out infinite alternate; }
.sp-intro::after { inset: 0; opacity: .25; 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: 58px 58px; mask-image: linear-gradient(to bottom,#000,transparent 90%); }
.sp-intro-inner { width: min(100%,900px); animation: sp-title-enter .9s cubic-bezier(.2,.8,.2,1) both; }
.sp-eyebrow { margin-bottom: 18px; color: var(--neon); font: 600 11px/1.5 'JetBrains Mono',monospace; letter-spacing: .28em; text-transform: uppercase; }
.sp-intro h1 { margin: 0; color: #fff; font: 700 clamp(42px,8vw,86px)/.98 'Space Grotesk',sans-serif; letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 10px 50px rgba(0,0,0,.45); }
.sp-intro-inner > p:not(.sp-eyebrow) { max-width: 670px; margin: 22px auto 0; color: #aab4c2; font-size: clamp(15px,2vw,18px); line-height: 1.75; text-wrap: pretty; }
.sp-scroll { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: #d7e3c2; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.sp-scroll span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(184,255,31,.5); border-radius: 50%; color: var(--neon); animation: sp-nudge 1.8s ease-in-out infinite; }
.sp-content { position: relative; min-height: 220px; }
.sp-content > section { animation: sp-content-in .7s cubic-bezier(.2,.8,.2,1) both; }
.sp-content .max-w-7xl, .sp-content .max-w-6xl, .sp-content .max-w-5xl, .sp-content .max-w-4xl { width: min(100% - 40px,1440px); }
.sp-content .sp-reveal { opacity: 0; transform: translate3d(0,38px,0) scale(.985); filter: blur(4px); transition: opacity .8s cubic-bezier(.2,.8,.2,1),transform .8s cubic-bezier(.2,.8,.2,1),filter .8s ease; transition-delay: calc(var(--sp-order,0) * 70ms); }
.sp-content .sp-reveal.sp-visible { opacity: 1; transform: none; filter: none; }
.sp-content .service-card, .sp-content .gm-card, .sp-content .pf-item, .sp-content .pc-card { transition: transform .35s ease,border-color .35s ease,box-shadow .35s ease; }
.sp-content .service-card:hover, .sp-content .gm-card:hover, .sp-content .pf-item:hover, .sp-content .pc-card:hover { transform: translateY(-7px); box-shadow: 0 24px 70px rgba(0,0,0,.3),0 0 28px rgba(184,255,31,.08); }
.sp-content .service-card img, .sp-content .pf-item img { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.sp-content .service-card:hover img, .sp-content .pf-item:hover img { transform: scale(1.045); }
.sp-content #home-media { display: block; }
.sp-content #home-media[hidden] { display: block; }
.sp-content .sp-error { margin: 45px auto; width: min(90%,700px); padding: 20px; border: 1px solid rgba(248,113,113,.4); border-radius: 12px; color: #fecaca; }
.sp-content .sp-error a { color: var(--neon); }
.sp-footer { padding: 46px 22px 22px; border-top: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg,rgba(255,255,255,.025),transparent); }
.sp-footer-inner { display: grid; grid-template-columns: minmax(200px,1fr) 2fr auto; align-items: center; gap: 24px; max-width: 1320px; margin: auto; }
.sp-footer-inner > p { max-width: 250px; margin: 0; color: #8792a2; font-size: 13px; line-height: 1.6; }
.sp-footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.sp-footer-inner nav a { color: #aeb8c6; font-size: 12px; text-decoration: none; }
.sp-footer-inner nav a:hover { color: var(--neon); }
.sp-contact-link { padding: 11px 15px; border-radius: 9px; background: #25d366; color: #04210f; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sp-copyright { margin: 32px 0 0; color: #677181; font-size: 11px; text-align: center; }
@keyframes sp-aurora { from { transform: translate3d(-1.5%,0,0) rotate(-2deg) scale(1); } to { transform: translate3d(1.5%,-1%,0) rotate(2deg) scale(1.08); } }
@keyframes sp-title-enter { from { opacity: 0; clip-path: inset(0 0 100%); transform: translateY(26px); } to { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes sp-content-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sp-nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes hub-rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1080px) {
  .sp-topbar { min-height: 68px; }
  .sp-nav-links { gap: 13px; }
  .sp-nav-links > a, .sp-more > summary { font-size: 12px; }
}
@media (max-width: 1080px) {
  .sp-topbar { min-height: 66px; }
  .sp-nav-links, .sp-topbar > .sp-langs { display: none; }
  .sp-menu-toggle { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; font-size: 22px; }
  .sp-mobile { position: absolute; inset: 100% 0 auto; display: none; max-height: calc(100dvh - 66px); overflow: auto; padding: 12px 18px max(16px,env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); background: rgba(12,13,16,.97); }
  .sp-mobile.open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; animation: sp-mobile-in .24s ease both; }
  .sp-mobile > a { display: flex; min-height: 46px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; color: #d5dbe4; font-size: 13px; text-decoration: none; }
  .sp-mobile > a[aria-current="page"] { border-color: rgba(184,255,31,.45); color: var(--neon); }
  .sp-mobile > a::after { content: '↗'; color: #728091; }
  .sp-mobile-langs { display: flex; grid-column: 1/-1; padding-top: 6px; }
  .sp-intro { min-height: 390px; }
  .sp-footer-inner { grid-template-columns: 1fr auto; }
  .sp-footer-inner nav { grid-row: 2; grid-column: 1/-1; justify-content: flex-start; }
}
@keyframes sp-mobile-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .sp-intro { min-height: 360px; padding-inline: 20px; }
  .sp-intro h1 { font-size: clamp(40px,13vw,60px); }
  .sp-content .max-w-7xl, .sp-content .max-w-6xl, .sp-content .max-w-5xl, .sp-content .max-w-4xl { width: min(100% - 28px,1440px); }
  .sp-footer-inner { grid-template-columns: 1fr; }
  .sp-footer-inner nav { grid-row: auto; grid-column: auto; gap: 12px 16px; }
  .sp-contact-link { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-old(site-page), ::view-transition-new(site-page) { animation: none; }
  .sp-content .sp-reveal { opacity: 1; transform: none; filter: none; }
  .home-hub-card { animation: none; }
}
