/* Hespera featured services — shared open ice-glass cards and detail panels */
:root{--hsg-petrol:#164b5b;--hsg-ice:#f6faff;--hsg-copy:#f5f9ff;--hsg-muted:#e2ebf5;--hsg-line:rgba(236,246,255,.42);--hsg-surface:linear-gradient(142deg,rgba(132,153,180,.74) 0%,rgba(75,99,130,.72) 53%,rgba(97,125,157,.69) 100%);--hsg-surface-hover:linear-gradient(142deg,rgba(142,162,188,.78) 0%,rgba(80,105,136,.76) 53%,rgba(105,133,164,.73) 100%)}
.service-v2-card.hsg-glass-surface,.service-v2-card.hespera-web-card.hsg-glass-surface,.service-card.hsg-glass-surface,.service-card.hespera-web-card.hsg-glass-surface{position:relative!important;display:flex!important;flex-direction:column!important;min-width:0!important;min-height:560px!important;padding:28px!important;overflow:hidden!important;isolation:isolate!important;cursor:pointer!important;color:var(--hsg-copy)!important;background:var(--hsg-surface)!important;border:1px solid rgba(233,244,255,.68)!important;border-radius:26px!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.56),inset 0 -1px 1px rgba(177,216,250,.18),0 22px 54px rgba(0,0,0,.31)!important;backdrop-filter:blur(28px) saturate(118%)!important;-webkit-backdrop-filter:blur(28px) saturate(118%)!important;transform:none;transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s,border-color .24s,background .24s!important}
.service-v2-card.hsg-glass-surface::before,.service-v2-card.hespera-web-card.hsg-glass-surface::before,.service-card.hsg-glass-surface::before,.service-card.hespera-web-card.hsg-glass-surface::before{content:""!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;border-radius:inherit!important;pointer-events:none!important;opacity:1!important;background:linear-gradient(116deg,rgba(246,250,255,.22),rgba(235,245,255,.07) 32%,rgba(207,228,249,.13) 72%,transparent 100%)!important;z-index:0!important}
.service-v2-card.hsg-glass-surface::after,.service-v2-card.hespera-web-card.hsg-glass-surface::after,.service-card.hsg-glass-surface::after,.service-card.hespera-web-card.hsg-glass-surface::after{content:""!important;position:absolute!important;left:10%!important;right:12%!important;top:-1px!important;height:1px!important;background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent)!important;pointer-events:none!important;z-index:1!important}
.hsg-glass-surface>*{position:relative;z-index:2}
.service-v2-card.hsg-glass-surface:hover,.service-v2-card.hsg-glass-surface:focus-visible,.service-v2-card.hsg-glass-surface:focus-within,.service-v2-card.hsg-glass-surface:active,.service-v2-card.hsg-glass-surface[aria-expanded="true"],.service-card.hsg-glass-surface:hover,.service-card.hsg-glass-surface:focus-visible,.service-card.hsg-glass-surface:focus-within,.service-card.hsg-glass-surface:active,.service-card.hsg-glass-surface[aria-expanded="true"]{background:var(--hsg-surface-hover)!important;border-color:rgba(244,250,255,.88)!important}
.service-v2-card.hsg-glass-surface:hover,.service-card.hsg-glass-surface:hover{transform:translateY(-4px)!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.64),inset 0 -1px 1px rgba(177,216,250,.2),0 28px 64px rgba(0,0,0,.36)!important}
.service-v2-card.hsg-glass-surface:active,.service-card.hsg-glass-surface:active{transform:translateY(-1px) scale(.995)!important}
.service-v2-card.hsg-glass-surface:focus-visible,.service-card.hsg-glass-surface:focus-visible{outline:3px solid #d3efff!important;outline-offset:4px!important}
.hsg-order{position:absolute!important;top:27px;right:27px;color:rgba(246,250,255,.82);font:700 .74rem/1 "Space Grotesk",sans-serif;letter-spacing:.18em;font-variant-numeric:tabular-nums}
.hsg-card-icon-tile,.hsg-glass-surface .hw-card-icon-tile{display:grid;place-items:center;width:68px;height:68px;margin:0 0 25px;border:1px solid rgba(242,248,255,.48);border-radius:20px;background:linear-gradient(145deg,rgba(247,251,255,.18),rgba(192,219,244,.08));box-shadow:inset 0 1px rgba(255,255,255,.34),0 14px 28px rgba(3,12,26,.16)}
.hsg-card-icon-tile svg,.hsg-glass-surface .hw-card-icon-tile svg{width:35px;height:35px;fill:none;stroke:#f2f8ff;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.hsg-card-title,.hsg-glass-surface .hw-card-title{margin:0 0 11px!important;color:var(--hsg-ice)!important;font:700 clamp(2.32rem,3.6vw,3.25rem)/.92 "Space Grotesk",sans-serif!important;letter-spacing:-.052em!important;text-transform:uppercase!important;overflow-wrap:anywhere}
.hsg-card-subtitle,.hsg-glass-surface .hw-card-subtitle{margin:0 0 11px;color:#fff!important;font:700 .98rem/1.35 Inter,sans-serif!important}
.hsg-card-description,.hsg-glass-surface .hw-card-description{margin:0!important;color:rgba(247,250,255,.93)!important;font:600 .89rem/1.57 Inter,sans-serif!important;transform:none!important}
.hsg-card-features,.hsg-glass-surface .hw-card-features{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0!important;margin:23px 0 21px!important;padding:0!important;border-top:1px solid rgba(239,247,255,.26)!important;border-bottom:1px solid rgba(239,247,255,.26)!important;list-style:none!important}
.hsg-service-card .hsg-card-features li,.hsg-glass-surface .hw-card-features li{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;min-height:70px!important;margin:0!important;padding:11px 10px!important;color:#fbfdff!important;font:650 .78rem/1.34 Inter,sans-serif!important}
.hsg-service-card .hsg-card-features li:nth-child(odd),.hsg-glass-surface .hw-card-features li:nth-child(odd){padding-left:0!important;border-right:1px solid rgba(239,247,255,.21)!important}
.hsg-service-card .hsg-card-features li:nth-child(-n+2),.hsg-glass-surface .hw-card-features li:nth-child(-n+2){border-bottom:1px solid rgba(239,247,255,.21)!important}
.hsg-service-card .hsg-card-features li::before,.hsg-glass-surface .hw-card-features li::before{content:none!important;display:none!important}
.hsg-feature-icon,.hsg-glass-surface .hw-feature-icon{display:grid;place-items:center;width:31px;height:31px;color:#d8efff}
.hsg-feature-icon svg,.hsg-glass-surface .hw-feature-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hsg-card-action,.hsg-glass-surface .hw-card-action{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:56px;margin-top:auto;padding:15px 19px;border:1px solid rgba(154,217,231,.33);border-radius:999px;background:#164b5b;color:#fff;font:700 .88rem/1.2 Inter,sans-serif;box-shadow:inset 0 1px rgba(255,255,255,.15),0 12px 25px rgba(0,0,0,.22)}
.hsg-card-action{white-space:normal}
.hsg-glass-surface .hw-card-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
#serviceGrid .hsg-glass-surface{min-height:560px!important}
#serviceGrid .hsg-card-title,#serviceGrid .hsg-glass-surface .hw-card-title{font-size:clamp(2rem,3vw,2.8rem)!important}
#serviceGrid .hsg-glass-surface .source-detail,#serviceGrid .hsg-glass-surface .detail-button,#serviceGrid .hsg-glass-surface .card-num{display:none!important}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.hsg-glass-surface{background:linear-gradient(142deg,#71849c,#4e647e 53%,#607a97)!important}}
body.hsg-modal-open{overflow:hidden!important}
.hsg-modal[hidden]{display:none!important}
.hsg-modal{position:fixed;inset:0;z-index:920;display:grid;place-items:center;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:transparent;color:inherit;overflow:hidden;padding:30px;opacity:0;visibility:hidden;transition:opacity .26s ease,visibility .26s;overscroll-behavior:none}
.hsg-modal::backdrop{background:transparent}
.hsg-modal.is-open{opacity:1;visibility:visible}
.hsg-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(2,7,14,.76);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);cursor:pointer}
.hsg-panel,.hw-panel{position:relative;z-index:1;display:flex;flex-direction:column;box-sizing:border-box;width:min(920px,100%);height:min(840px,calc(100vh - 60px));height:min(840px,calc(100dvh - 60px));max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);min-height:0;padding:0;overflow:hidden;color:var(--hsg-copy);background:linear-gradient(136deg,rgba(102,126,155,.97),rgba(56,76,99,.98) 55%,rgba(75,101,126,.97))!important;border:1px solid rgba(235,246,255,.65)!important;border-radius:28px;box-shadow:inset 0 1px rgba(255,255,255,.42),0 34px 110px rgba(0,0,0,.6)!important;transform:translateY(16px) scale(.985);transition:transform .26s cubic-bezier(.2,.8,.2,1)}
.hsg-modal.is-open .hsg-panel,.hw-modal.is-open .hw-panel{transform:none}
.hsg-panel:focus{outline:none}
.hsg-panel-top,.hw-panel-top{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:20px clamp(23px,4vw,44px) 17px;border-bottom:1px solid rgba(241,248,255,.23)!important;background:rgba(43,62,83,.28)!important}
.hsg-wordmark,.hw-wordmark{color:#f5f9ff!important;font:700 .78rem/1 "Space Grotesk",sans-serif!important;letter-spacing:.13em}
.hsg-close,.hw-close{position:relative;z-index:4;display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border:1px solid rgba(241,248,255,.35)!important;border-radius:50%;background:rgba(246,250,255,.09)!important;color:#fff!important;cursor:pointer;font-size:1.35rem;pointer-events:auto!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .2s,transform .2s}
.hsg-close:hover,.hw-close:hover{background:rgba(246,250,255,.18)!important;transform:rotate(4deg)}
.hsg-close:focus-visible,.hsg-audience-button:focus-visible,.hsg-contact-action:focus-visible{outline:3px solid #d2efff;outline-offset:3px}
.hsg-panel-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:clamp(24px,4vw,44px);scrollbar-color:rgba(231,244,255,.52) transparent;scrollbar-width:thin}
.hsg-panel-scroll::-webkit-scrollbar{width:9px}.hsg-panel-scroll::-webkit-scrollbar-track{background:transparent}.hsg-panel-scroll::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:rgba(231,244,255,.48);background-clip:padding-box}
.hsg-heading{max-width:780px;margin:0!important;color:#fff!important;font:700 clamp(2rem,4.5vw,3.8rem)/1.03 "Space Grotesk",sans-serif!important;letter-spacing:-.045em!important}
.hsg-intro{max-width:760px;margin:18px 0 30px!important;color:#f0f5fb!important;font:600 clamp(.96rem,1.4vw,1.06rem)/1.65 Inter,sans-serif!important}
.hsg-audience-wrap{margin:0 0 31px;padding:16px 0 25px;border-top:1px solid rgba(242,248,255,.22);border-bottom:1px solid rgba(242,248,255,.22)}
.hsg-audience-label{display:block;margin-bottom:11px;color:#ecf4fc;font:700 .75rem/1.2 Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.hsg-audience-switch{display:flex;flex-wrap:wrap;gap:8px}
.hsg-audience-button{min-height:46px;padding:11px 17px;border:1px solid rgba(241,248,255,.31);border-radius:999px;background:rgba(247,251,255,.08);color:#fff;cursor:pointer;font:700 .82rem/1.2 Inter,sans-serif}
.hsg-audience-button[aria-pressed="true"]{background:#164b5b;border-color:rgba(156,220,232,.42);box-shadow:inset 0 1px rgba(255,255,255,.14),0 8px 20px rgba(0,0,0,.2)}
.hsg-section-title{margin:0 0 14px!important;color:#fff!important;font:700 1.06rem/1.2 "Space Grotesk",sans-serif!important;letter-spacing:.01em}
.hsg-steps{margin:0 0 31px;padding:0;list-style:none;border-top:1px solid rgba(242,248,255,.23)}
.hsg-step{display:grid;grid-template-columns:48px minmax(0,1fr);gap:17px;padding:18px 0;border-bottom:1px solid rgba(242,248,255,.21)}
.hsg-step-number{padding-top:3px;color:#d7efff;font:700 .75rem/1.2 "Space Grotesk",sans-serif;letter-spacing:.14em}
.hsg-step-copy strong{display:block;margin:0 0 5px;color:#fff;font:700 .98rem/1.35 Inter,sans-serif}
.hsg-step-copy p,.hsg-example p,.hsg-closing p{margin:0!important;color:#edf4fb!important;font:600 .9rem/1.62 Inter,sans-serif!important}
.hsg-example{margin:0 0 28px;padding:20px;border:1px solid rgba(241,248,255,.24);border-radius:19px;background:rgba(42,61,82,.28)}
.hsg-example .hsg-section-title{margin-bottom:8px!important}
.hsg-closing{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;border-top:1px solid rgba(242,248,255,.25)}
.hsg-closing p{max-width:560px!important}
.hsg-contact-action{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:50px;padding:13px 19px;border:1px solid rgba(156,220,232,.35);border-radius:999px;background:#164b5b;color:#fff;cursor:pointer;pointer-events:auto!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font:700 .82rem/1.25 Inter,sans-serif;box-shadow:inset 0 1px rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.21)}
.hw-panel-scroll{scrollbar-color:rgba(231,244,255,.52) transparent}
.hw-heading,.hw-intro,.hw-section-heading h3,.hw-project-top h4,.hw-contact h3{color:#fff!important}
.hw-intro,.hw-highlights,.hw-contact p,.hw-project-top p{color:#edf4fb!important}
.hw-project{background:rgba(31,49,69,.34)!important;border-color:rgba(241,248,255,.24)!important}
.hw-contact-action,.hw-link{background:#164b5b!important}
@media(max-width:760px){
  .service-v2-card.hsg-glass-surface,.service-v2-card.hespera-web-card.hsg-glass-surface,.service-card.hsg-glass-surface,.service-card.hespera-web-card.hsg-glass-surface{min-height:550px!important;padding:24px!important;backdrop-filter:blur(24px) saturate(115%)!important;-webkit-backdrop-filter:blur(24px) saturate(115%)!important}
  .hsg-order{top:24px;right:24px}.hsg-card-icon-tile,.hsg-glass-surface .hw-card-icon-tile{width:62px;height:62px;margin-bottom:22px}
  .hsg-card-title,.hsg-glass-surface .hw-card-title{font-size:clamp(2.18rem,10.7vw,3rem)!important}
  .hsg-modal{align-items:end;padding:12px 0 0;padding-top:max(12px,env(safe-area-inset-top))}
  .hsg-panel,.hw-panel{width:100%;height:calc(100vh - 12px);height:calc(100dvh - max(12px,env(safe-area-inset-top)));max-height:calc(100vh - 12px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));border-radius:24px 24px 0 0;transform:translateY(100%)}
  .hsg-modal.is-open .hsg-panel,.hw-modal.is-open .hw-panel{transform:translateY(0)}
  .hsg-panel-top{padding:14px 19px 12px}.hsg-panel-scroll{padding:20px 19px max(34px,env(safe-area-inset-bottom))}.hsg-heading{font-size:clamp(1.95rem,9.6vw,2.85rem)!important}
  .hsg-closing{align-items:flex-start;flex-direction:column;gap:17px}.hsg-contact-action{width:100%}
}
@media(max-width:430px){
  .hsg-service-card .hsg-card-features li,.hsg-glass-surface .hw-card-features li{grid-template-columns:30px minmax(0,1fr)!important;gap:7px!important;padding-inline:8px!important;font-size:.74rem!important}
  .hsg-service-card .hsg-card-features li:nth-child(odd),.hsg-glass-surface .hw-card-features li:nth-child(odd){padding-left:0!important}
  .hsg-feature-icon,.hsg-feature-icon svg,.hsg-glass-surface .hw-feature-icon,.hsg-glass-surface .hw-feature-icon svg{width:26px;height:26px}
}
@media(max-width:390px){
  .service-v2-card.hsg-glass-surface,.service-v2-card.hespera-web-card.hsg-glass-surface,.service-card.hsg-glass-surface,.service-card.hespera-web-card.hsg-glass-surface{min-height:590px!important;padding:22px!important}
  .hsg-order{top:22px;right:22px}.hsg-card-title,.hsg-glass-surface .hw-card-title{font-size:clamp(2rem,10.2vw,2.65rem)!important}
  .hsg-card-features,.hsg-glass-surface .hw-card-features{grid-template-columns:1fr!important}
  .hsg-service-card .hsg-card-features li,.hsg-glass-surface .hw-card-features li{min-height:48px!important;padding:8px 0!important;border-right:0!important}
  .hsg-service-card .hsg-card-features li:not(:last-child),.hsg-glass-surface .hw-card-features li:not(:last-child){border-bottom:1px solid rgba(239,247,255,.21)!important}
  .hsg-panel-top,.hsg-panel-scroll{padding-inline:16px}.hsg-step{grid-template-columns:39px minmax(0,1fr);gap:11px}.hsg-example{padding:17px}.hsg-audience-button{flex:1 1 140px}
}
@media(prefers-reduced-motion:reduce){.hsg-glass-surface,.hsg-modal,.hsg-panel,.hsg-close,.hsg-audience-button{transition:none!important;animation:none!important}.hsg-glass-surface:hover{transform:none!important}}

/* Final six-card package: one responsive outer-card system */
.service-v2-card.hsg-service-card.hsg-glass-surface,.service-card.hsg-service-card.hsg-glass-surface{display:grid!important;grid-template-rows:auto 205px auto auto minmax(72px,auto) auto auto!important;align-content:start!important;row-gap:0!important;min-height:0!important;height:auto!important;padding:24px!important;background:linear-gradient(154deg,rgba(139,160,184,.82) 0%,rgba(91,116,143,.80) 43%,rgba(51,73,97,.94) 100%)!important;border:1px solid rgba(247,251,255,.72)!important;border-radius:28px!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.65),inset 0 -1px rgba(210,232,250,.20),0 25px 60px rgba(0,0,0,.34)!important;backdrop-filter:blur(30px) saturate(120%)!important;-webkit-backdrop-filter:blur(30px) saturate(120%)!important}
.service-v2-card.hsg-service-card.hsg-glass-surface::before,.service-card.hsg-service-card.hsg-glass-surface::before{background:linear-gradient(125deg,rgba(255,255,255,.25),rgba(238,247,255,.07) 38%,rgba(179,211,238,.11) 72%,transparent)!important;pointer-events:none!important}
.hsg-service-card .hsg-card-icon-tile{width:58px;height:58px;margin:0;border-radius:18px;background:linear-gradient(145deg,rgba(251,253,255,.18),rgba(202,224,243,.08));border-color:rgba(248,251,255,.55)}
.hsg-service-card .hsg-card-icon-tile svg{width:30px;height:30px}
.hsg-service-card .hsg-card-visual{display:flex;align-items:center;justify-content:center;width:calc(100% + 12px);height:205px;margin:2px -6px 13px;overflow:visible;pointer-events:none!important}
.hsg-service-card .hsg-card-visual img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;filter:none!important;transform:none!important;pointer-events:none!important;user-select:none}
.hsg-service-card[data-hsg-service="web"] .hsg-card-visual img{width:106%;max-width:106%}
.hsg-service-card .hsg-card-title{min-height:1.82em;margin:0 0 8px!important;color:#fbfdff!important;font:700 clamp(2rem,3.1vw,2.85rem)/.91 "Space Grotesk",sans-serif!important;letter-spacing:-.05em!important}
.hsg-service-card .hsg-card-subtitle{min-height:1.35em;margin:0 0 8px!important;color:#fff!important;font:700 .92rem/1.35 Inter,sans-serif!important}
.hsg-service-card .hsg-card-description{min-height:72px;margin:0!important;color:rgba(250,252,255,.94)!important;font:600 .84rem/1.55 Inter,sans-serif!important}
.hsg-service-card .hsg-card-features{align-self:stretch;margin:18px 0!important;border-color:rgba(245,250,255,.30)!important}
.hsg-service-card .hsg-card-features li{min-height:66px!important;color:#fff!important;font:650 .75rem/1.32 Inter,sans-serif!important}
.hsg-service-card .hsg-feature-icon{color:#e2f2ff}
.hsg-service-card .hsg-card-action{align-self:end;min-height:54px;margin-top:0;background:#164b5b!important;border-color:rgba(171,222,232,.37);font-size:.84rem}
#serviceGrid .service-card.hsg-service-card.hsg-glass-surface .hsg-card-action.detail-button{display:flex!important}
@media(max-width:760px){
 .service-v2-card.hsg-service-card.hsg-glass-surface,.service-card.hsg-service-card.hsg-glass-surface{grid-template-rows:auto 185px auto auto minmax(66px,auto) auto auto!important;min-height:0!important;height:auto!important;padding:23px!important}
 .hsg-service-card .hsg-card-visual{height:185px;margin-top:0;margin-bottom:11px}
 .hsg-service-card .hsg-card-title{font-size:clamp(2rem,9.8vw,2.65rem)!important}
 .hsg-service-card .hsg-card-description{min-height:0}
}
@media(max-width:390px){
 .service-v2-card.hsg-service-card.hsg-glass-surface,.service-card.hsg-service-card.hsg-glass-surface{grid-template-rows:auto 164px auto auto auto auto auto!important;min-height:0!important;padding:21px!important}
 .hsg-service-card .hsg-card-icon-tile{width:54px;height:54px}
 .hsg-service-card .hsg-card-visual{height:164px;margin-bottom:9px}
 .hsg-service-card .hsg-card-title{min-height:0;font-size:clamp(1.9rem,9.7vw,2.42rem)!important}
 .hsg-service-card .hsg-card-features{margin-block:15px!important}
 .hsg-service-card .hsg-card-features li{min-height:47px!important;font-size:.75rem!important}
}
