/* EM3 service-category pages — bespoke, animated sections.
   Cinematic hero + auto-advancing services slider + why band. The overview split,
   sectors, Proven Outcome, related and FAQ reuse services.css. */

/* ============================ 1. Cinematic hero ============================ */
.em3-cat-hero { position: relative; overflow: hidden; min-height: clamp(560px, 86vh, 860px); display: flex; align-items: flex-end; isolation: isolate; }
.em3-cat-hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transform-origin: center; transform: scale(1.06); animation: em3-cat-hero-zoom 1.6s ease-out both; will-change: transform; }
@keyframes em3-cat-hero-zoom { from { transform: scale(1.14); } to { transform: scale(1.06); } }
/* Once the load zoom settles, service-category.js adds .is-parallax and the image drifts
   a few px opposite the pointer (offsets via --em3-hero-px/py) — like the service-page hero. */
.em3-cat-hero.is-parallax .em3-cat-hero__bg { animation: none; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); transform: scale(1.06) translate3d(var(--em3-hero-px, 0px), var(--em3-hero-py, 0px), 0); }
@keyframes em3catken { 0% { transform: scale(1.12); } 100% { transform: scale(1.0); } }
.em3-cat-hero__scrim { position: absolute; inset: 0; z-index: 1; background:
	linear-gradient(180deg, rgba(5,10,32,0.55) 0%, rgba(5,10,32,0.10) 32%, rgba(5,10,32,0.55) 72%, rgba(5,10,32,0.96) 100%),
	radial-gradient(120% 90% at 12% 96%, rgba(5,10,32,0.85) 0%, rgba(5,10,32,0) 60%); }
.em3-cat-hero:not(.has-image) { background: radial-gradient(120% 120% at 20% 0%, #122466 0%, #070d28 60%); }
.em3-cat-hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 64px; }
.em3-cat-hero__eyebrow { margin-bottom: 18px; }
.em3-cat-hero__title { margin: 0 0 18px; max-width: 16ch; font-family: var(--em3-font-sans); font-weight: 700; font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.025em; color: #fff; }
.em3-cat-hw { display: inline-block; opacity: 0; transform: translateY(22px); animation: em3catword .72s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--w) * 0.075s + 0.25s); }
@keyframes em3catword { to { opacity: 1; transform: none; } }
.em3-cat-hero__sub { max-width: 56ch; margin: 0 0 30px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.82); opacity: 0; animation: em3catfade .7s ease forwards; animation-delay: .9s; }
.em3-cat-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: em3catfade .7s ease forwards; animation-delay: 1.05s; }
.em3-cat-hero__stats { list-style: none; margin: 40px 0 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 14px 52px; border-top: 1px solid rgba(255,255,255,0.16); opacity: 0; animation: em3catfade .7s ease forwards; animation-delay: 1.2s; }
.em3-cat-hero__stat { display: flex; flex-direction: column; gap: 3px; }
.em3-cat-hero__statv { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.em3-cat-hero__statl { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
@keyframes em3catfade { to { opacity: 1; } }
.em3-cat-hero__cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.22); border-radius: 50%; background: rgba(255,255,255,0.04); transition: color .2s, border-color .2s; animation: em3catbob 2.2s ease-in-out infinite; }
.em3-cat-hero__cue:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.em3-cat-hero__cue svg { width: 18px; height: 18px; }
@keyframes em3catbob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* =================== 3. Auto-advancing services slider ==================== */
.em3-cat-explore__intro { max-width: 760px; margin: -2px 0 30px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.72); }
.em3-cat-slider { display: flex; flex-direction: column; gap: 16px; }
/* stage */
.em3-cat-slider__stage { position: relative; aspect-ratio: 16 / 8; min-height: 420px; border-radius: var(--em3-radius-card); overflow: hidden; background: #0a1230; border: 1px solid rgba(255,255,255,0.08); }
.em3-cat-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.em3-cat-slide.is-active { opacity: 1; visibility: visible; }
.em3-cat-slide__media { position: absolute; inset: 0; }
.em3-cat-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.em3-cat-slide.is-active .em3-cat-slide__img { animation: em3catken 7s ease-out both; }
.em3-cat-slide__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,32,0.12) 0%, rgba(5,10,32,0.25) 36%, rgba(5,10,32,0.94) 100%), linear-gradient(90deg, rgba(5,10,32,0.62) 0%, rgba(5,10,32,0) 56%); }
.em3-cat-slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 38px 32px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.em3-cat-slide__text { max-width: 620px; }
.em3-cat-slide__cta { flex-shrink: 0; margin-bottom: 4px; }
.em3-cat-slide__index { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
.em3-cat-slide__index b { color: var(--em3-accent-hot); font-size: 14px; }
.em3-cat-slide__title { margin: 0 0 10px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; line-height: 1.14; letter-spacing: -0.015em; color: #fff; }
.em3-cat-slide__desc { max-width: 54ch; margin: 0 0 20px; font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,0.86); }
.em3-cat-slide__cta { display: flex; flex-wrap: wrap; gap: 10px; }
/* nav cards (the horizontal timer cards) */
.em3-cat-slider__nav { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.em3-cat-slider__nav::-webkit-scrollbar { height: 6px; }
.em3-cat-slider__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.em3-cat-slidecard { flex: 0 0 auto; width: 210px; display: flex; flex-direction: column; scroll-snap-align: center; text-align: left; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--em3-radius-card); padding: 15px 15px 0; cursor: pointer; color: inherit; font: inherit; overflow: hidden; transition: background .18s, border-color .18s, transform .18s; }
.em3-cat-slidecard:hover, .em3-cat-slidecard:focus { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.em3-cat-slidecard.is-active { background: rgba(46,93,255,0.12); border-color: rgba(46,93,255,0.42); }
.em3-cat-slidecard:focus-visible { outline: 2px solid var(--em3-accent-hot); outline-offset: 2px; }
.em3-cat-slidecard__name { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0 0 14px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: rgba(255,255,255,0.8); white-space: normal; overflow-wrap: break-word; }
.em3-cat-slidecard.is-active .em3-cat-slidecard__name { color: #fff; }
.em3-cat-slidecard__bar { display: block; height: 3px; margin: 0 -15px; margin-top: auto; background: rgba(255,255,255,0.10); }
.em3-cat-slidecard__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--em3-accent), var(--em3-accent-hot)); }
.em3-cat-explore__foot { margin: 22px 0 0; font-size: 15px; }

@media (max-width: 980px) {
	.em3-cat-slider__stage { aspect-ratio: auto; min-height: 380px; }
	.em3-cat-slide__body { padding: 24px 22px; }
}

/* ====================== 4. Why EM3 — points (light) ======================= */
.em3-cat-why__grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.em3-cat-why__item { position: relative; background: #fff; border: 1px solid rgba(10,24,88,0.08); border-radius: var(--em3-radius-card); padding: 30px 32px 30px 34px; overflow: hidden; box-shadow: 0 1px 2px rgba(10,24,88,0.05); transition: transform .22s, box-shadow .22s, border-color .22s; }
.em3-cat-why__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--em3-accent), var(--em3-accent-hot)); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.em3-cat-why__item:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -26px rgba(10,24,88,0.4); border-color: rgba(46,93,255,0.28); }
.em3-cat-why__item:hover::before { transform: scaleY(1); }
.em3-cat-why__n { display: block; margin-bottom: 16px; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--em3-accent), var(--em3-accent-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.em3-cat-why__t { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--em3-ink-navy); letter-spacing: -0.01em; }
.em3-cat-why__b { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(10,24,88,0.72); }
@media (max-width: 720px) { .em3-cat-why__grid { grid-template-columns: 1fr; } }

/* ============== 7. Related — category icons (like the mega cards) ========= */
.em3-cat-relcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.em3-cat-relcard__icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--em3-radius-card); background: rgba(46,93,255,0.14); border: 1px solid rgba(46,93,255,0.22); }
.em3-cat-relcard__icon img { width: 24px; height: 24px; }
.em3-cat-relcard__head .em3-svc-relcard__title { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.em3-cat-hero__bg, .em3-cat-hw, .em3-cat-hero__sub, .em3-cat-hero__actions, .em3-cat-hero__stats, .em3-cat-hero__cue, .em3-cat-slide__img { animation: none !important; }
	.em3-cat-hw, .em3-cat-hero__sub, .em3-cat-hero__actions, .em3-cat-hero__stats { opacity: 1 !important; transform: none !important; }
	.em3-cat-slide__img { transform: none; }
	.em3-cat-slidecard__fill { transition: none !important; }
}
