/* TEGA × TCRM. Local fallback of the TCRM v42 hero structure, used together
   with the official TCRM project stylesheet. No code or markup changes on Live. */
#tcrm-case-study{--tega-accent:#a47bff;--tega-accent-strong:#8250ed;--tega-glow:rgba(144,91,255,.32);--tega-white:#f9f7ff;position:relative;overflow:clip;direction:rtl;color:#f7fbff;background:#071b31;font-family:Cairo,Tahoma,Arial,sans-serif;isolation:isolate}
#tcrm-case-study *,#tcrm-case-study *::before,#tcrm-case-study *::after{box-sizing:border-box}
#tcrm-case-study .hero-v42{background:radial-gradient(ellipse 670px 460px at 16% 45%,rgba(97,47,181,.17),transparent 78%),radial-gradient(ellipse 500px 430px at 78% 40%,rgba(42,60,125,.16),transparent 79%),#071b31;position:relative;isolation:isolate;display:flex;align-items:center;overflow:hidden;min-height:760px;padding:105px 0;color:#f7fbff}
#tcrm-case-study .hero-v42 .hero-mesh{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(90deg,rgba(170,150,255,.035) 1px,transparent 1px),linear-gradient(rgba(170,150,255,.02) 1px,transparent 1px);background-size:82px 82px;opacity:.32}
#tcrm-case-study .hero-v42 .hero-spot{position:absolute;pointer-events:none;border-radius:50%;filter:blur(60px);opacity:.17;background:var(--tega-accent-strong)}
#tcrm-case-study .hero-v42 .hero-spot-one{width:430px;height:430px;top:-150px;right:9%}
#tcrm-case-study .hero-v42 .hero-spot-two{width:390px;height:390px;left:-100px;bottom:0;opacity:.11}
#tcrm-case-study .hero-v42 .hero-orbit{position:absolute;width:580px;height:580px;border-radius:50%;border:1px solid rgba(166,125,255,.09);pointer-events:none}
#tcrm-case-study .hero-v42 .hero-orbit-one{top:-140px;left:-150px}
#tcrm-case-study .hero-v42 .hero-orbit-two{bottom:-200px;left:8%;width:830px;height:830px;border-color:rgba(134,89,255,.065)}
#tcrm-case-study .hero-v42 .hero-grid{position:relative;z-index:2;width:min(1360px,calc(100% - 80px));min-height:760px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,1.34fr) minmax(0,1fr);gap:52px;align-items:center;direction:ltr;padding:0}
#tcrm-case-study .hero-v42 .hero-visual{grid-column:1;position:relative;display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:630px;margin:0 0 0 -34px;direction:ltr}
#tcrm-case-study .hero-v42 .hero-copy{grid-column:2;position:relative;justify-self:end;text-align:right;direction:rtl;max-width:540px;width:100%;padding:12px 0 10px;z-index:4}
#tcrm-case-study .hero-v42 .hero-badge{display:table;width:max-content;margin:0 0 24px auto;background:linear-gradient(135deg,rgba(115,59,199,.72),rgba(55,35,137,.58));color:#fff;border:1px solid rgba(170,116,255,.74);box-shadow:0 0 38px rgba(140,70,255,.18),inset 0 1px rgba(255,255,255,.09);border-radius:999px;padding:10px 26px;font-size:15px;letter-spacing:.9px;font-weight:800;line-height:1.8}
#tcrm-case-study .hero-v42 h1{font:800 clamp(46px,4.6vw,66px)/1.4 Cairo,Tahoma,sans-serif;margin:0 0 18px;color:#fff;min-height:2.45em;letter-spacing:-1.1px;text-align:right}
#tcrm-case-study .hero-v42 h1 .type-line{position:relative;display:inline-block;min-height:1.18em;background:linear-gradient(90deg,#fff 0%,#e6dcff 52%,#b9a6ff 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#fff;white-space:normal}
#tcrm-case-study .hero-v42 h1 .type-line-2{background-image:linear-gradient(90deg,#ded2ff 0%,#a77dff 48%,#edddff 100%);padding-top:6px}
#tcrm-case-study .hero-v42 .hero-copy>p{font-size:16px;line-height:1.8;color:#d6dfeb;max-width:520px;margin:0 auto 0 0}
#tcrm-case-study .hero-v42 .hero-copy>p strong{color:#fff;font-weight:900}
#tcrm-case-study .hero-v42 .hero-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px;direction:rtl}
#tcrm-case-study .hero-v42 .benefit-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;padding:16px 14px;min-height:142px;min-width:0;border-radius:18px;border:1px solid rgba(150,106,255,.28);background:linear-gradient(rgba(35,24,74,.64),rgba(16,18,45,.76));box-shadow:0 18px 34px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.03);color:#f7fbff;text-align:right;transition:transform .25s,border-color .25s,box-shadow .25s}
#tcrm-case-study .hero-v42 .benefit-card:hover{transform:translateY(-5px);border-color:rgba(169,127,255,.77);box-shadow:0 23px 42px rgba(0,0,0,.25),0 0 28px rgba(151,97,255,.09)}
#tcrm-case-study .hero-v42 .benefit-card strong{font-size:12px;line-height:1.8;font-weight:800}
#tcrm-case-study .hero-v42 .benefit-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(159,115,255,.22);border-radius:13px;background:linear-gradient(145deg,rgba(136,97,255,.25),rgba(84,57,155,.15));color:#c4a4ff}
#tcrm-case-study .hero-v42 .benefit-icon svg{display:block;width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
#tcrm-case-study .hero-v42 .device-scene{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;min-height:600px;max-width:790px;direction:ltr;transition:transform .16s ease-out;isolation:isolate}
#tcrm-case-study .hero-v42 .device-scene::before{content:"";position:absolute;z-index:-2;inset:10% 5% 0;background:radial-gradient(ellipse,rgba(140,88,255,.23),transparent 65%);filter:blur(30px);pointer-events:none}
#tcrm-case-study .hero-v42 .scene-orbit{position:absolute;z-index:-2;top:11%;left:7%;width:76%;aspect-ratio:1;border:1px solid rgba(165,120,255,.12);border-radius:50%;pointer-events:none}
#tcrm-case-study .hero-v42 .scene-orbit.orbit-two{inset:4% auto auto 2%;width:91%;border-color:rgba(180,141,255,.06)}
#tcrm-case-study .hero-v42 .scene-glow{position:absolute;inset:12%;z-index:-2;border-radius:50%;background:radial-gradient(ellipse,rgba(137,81,255,.24),transparent 68%);filter:blur(28px);pointer-events:none;animation:premiumGlowDrift 8s ease-in-out infinite}
#tcrm-case-study .hero-v42 .scene-glow.glow-two{animation-delay:-3s;transform:translate(18px,12px);opacity:.48}
#tcrm-case-study .hero-v42 .laptop-mockup{width:min(100%,650px);position:relative;z-index:2;margin:0 auto 10px;transform-origin:center 70%;animation:premiumDeviceFloatStrong 5.4s cubic-bezier(.45,.05,.22,1) infinite;will-change:transform;direction:ltr}
#tcrm-case-study .hero-v42 .laptop-bezel{position:relative;width:100%;border-radius:34px 34px 22px 22px;padding:18px 18px 22px;background:linear-gradient(#090f18,#0d141f 54%,#0a0f16);box-shadow:0 34px 80px rgba(0,0,0,.30),0 0 0 1px rgba(255,255,255,.05),0 0 40px rgba(138,87,255,.15);animation:premiumBezelGlowStrong 5.4s ease-in-out infinite}
#tcrm-case-study .hero-v42 .laptop-notch{position:absolute;width:20%;height:5px;top:6px;left:40%;border-radius:0 0 9px 9px;background:rgba(35,45,67,.9)}
#tcrm-case-study .hero-v42 .laptop-screen{position:relative;overflow:hidden;border-radius:18px;aspect-ratio:1.6;background:#0b0b11;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14),inset 0 6px 18px rgba(255,255,255,.03);isolation:isolate}
#tcrm-case-study .hero-v42 .dashboard-shot{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;transform:scale(1.055);transition:transform .95s cubic-bezier(.16,1,.3,1),filter .45s;filter:saturate(1.04) contrast(1.015)}
#tcrm-case-study .hero-v42 .laptop-screen::after{content:"";position:absolute;inset:-25% auto -25% -30%;width:32%;background:linear-gradient(90deg,transparent,rgba(198,174,255,.14),transparent);transform:translateX(-185%) skewX(-18deg);pointer-events:none;animation:premiumScreenSheenStrong 9s linear infinite}
#tcrm-case-study .hero-v42 .laptop-screen:hover .dashboard-shot{transform:scale(1.085)}
#tcrm-case-study .hero-v42 .laptop-hinge{position:absolute;z-index:-1;width:180px;height:22px;bottom:-21px;left:50%;transform:translateX(-50%);background:linear-gradient(#9cb4ca,#6d8193 42%,#465564);border-radius:0 0 18px 18px;box-shadow:0 10px 18px rgba(0,0,0,.18)}
#tcrm-case-study .hero-v42 .laptop-base{height:16px;width:88%;margin:16px auto 0;background:linear-gradient(#dbe4ec,#9eb0c0 52%,#7e90a1);border-radius:0 0 18px 18px;box-shadow:0 10px 18px rgba(0,0,0,.12)}
#tcrm-case-study .hero-v42 .laptop-shadow{position:absolute;z-index:-3;left:18%;right:18%;height:30px;bottom:8px;border-radius:50%;filter:blur(17px);background:rgba(0,0,0,.5);animation:premiumShadowBreathStrong 5.4s ease-in-out infinite}
#tcrm-case-study .hero-v42 .reveal{opacity:0;transform:translateY(26px);transition:opacity .75s cubic-bezier(.22,1,.36,1),transform .75s cubic-bezier(.22,1,.36,1)}
#tcrm-case-study .hero-v42 .reveal.visible{opacity:1;transform:none}
#tcrm-case-study .hero-v42 .hero-typewriter .type-line.is-typing::after,#tcrm-case-study .hero-v42 .hero-typewriter .type-line.is-done.cursor-on::after{content:"";position:absolute;top:50%;left:-10px;width:2px;height:.9em;border-radius:99px;background:rgba(218,198,255,.94);transform:translateY(-50%);animation:heroCaretBlink .85s step-end infinite}
@keyframes premiumDeviceFloatStrong{0%,100%{transform:translateY(12px) rotateZ(-.35deg) scale(1)}28%{transform:translateY(-4px) rotateZ(.28deg) scale(1.008)}58%{transform:translateY(-10px) rotateZ(.48deg) scale(1.012)}82%{transform:translateY(1px) rotateZ(-.16deg) scale(1.005)}}
@keyframes premiumBezelGlowStrong{0%,100%{box-shadow:0 34px 80px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.04),0 0 22px rgba(122,79,255,.10)}50%{box-shadow:0 38px 84px rgba(0,0,0,.36),0 0 0 1px rgba(255,255,255,.08),0 0 44px rgba(160,94,255,.21)}}
@keyframes premiumShadowBreathStrong{0%,100%{transform:scaleX(.82) scaleY(.82);opacity:.38;filter:blur(15px)}55%{transform:scaleX(1.15) scaleY(1.05);opacity:.68;filter:blur(21px)}}
@keyframes premiumScreenSheenStrong{0%,8%{transform:translateX(-185%) skewX(-18deg);opacity:0}12%{opacity:.18}28%{transform:translateX(195%) skewX(-18deg);opacity:0}100%{transform:translateX(195%) skewX(-18deg);opacity:0}}
@keyframes premiumGlowDrift{0%,100%{transform:translate3d(-16px,10px,0) scale(.94);opacity:.62}50%{transform:translate3d(16px,-10px,0) scale(1.07);opacity:.92}}
@keyframes heroCaretBlink{0%,48%{opacity:1}50%,100%{opacity:0}}
/* TEGA-specific palette only; same exact component structure, spacings and keyframes as CRM */
#tcrm-case-study .hero-v42 .hero-badge{border-color:rgba(174,118,255,.8)!important;background:linear-gradient(135deg,rgba(116,58,190,.83),rgba(58,34,140,.58))!important}
#tcrm-case-study .hero-v42 .benefit-card{border-color:rgba(159,110,255,.29)!important;background:linear-gradient(180deg,rgba(33,23,70,.82),rgba(14,18,39,.78))!important}
#tcrm-case-study .hero-v42 .hero-copy{max-width:540px}
#tcrm-case-study .hero-v42 h1{font-size:clamp(43px,4.58vw,66px);line-height:1.4;min-height:2.6em}
#tcrm-case-study .hero-v42 .type-line-2{font-size:.85em;line-height:1.4}
/* Nav is original Tamiyouz home/TCRM markup and CSS, no independent TEGA menu. */
body:has(#tcrm-case-study) .main-site-header{position:relative!important;top:auto!important;padding-top:14px;z-index:300;background:#071b31}
body:has(#tcrm-case-study) .main-site-header .homepage-nav-shell{margin-bottom:0}
body:has(#tcrm-case-study) .main-site-header .homepage-current{color:#ecf0fc}
body:has(#tcrm-case-study) .main-site-header .homepage-current:after{display:none}
/* identical CRM desktop/tablet stacking and sizes */
@media(max-width:1180px){#tcrm-case-study .hero-v42 .hero-grid{grid-template-columns:1fr;min-height:0;gap:20px;padding:20px 0 30px}#tcrm-case-study .hero-v42{padding:50px 0 25px;min-height:0}#tcrm-case-study .hero-v42 .hero-copy{grid-column:1;grid-row:1;justify-self:center;text-align:center;max-width:620px}#tcrm-case-study .hero-v42 .hero-badge{margin:0 auto 20px}#tcrm-case-study .hero-v42 h1{text-align:center}#tcrm-case-study .hero-v42 .hero-copy>p{margin-inline:auto}#tcrm-case-study .hero-v42 .hero-visual{grid-column:1;grid-row:2;min-height:480px;justify-content:center;margin:0 auto;max-width:780px;width:100%}#tcrm-case-study .hero-v42 .device-scene{min-height:480px}#tcrm-case-study .hero-v42 .laptop-mockup{width:min(100%,650px)}#tcrm-case-study .hero-v42 .hero-benefits{margin-top:22px}}
@media(max-width:720px){#tcrm-case-study .hero-v42 .hero-grid{width:min(100% - 24px,680px);gap:8px;padding:18px 0 10px}#tcrm-case-study .hero-v42{padding:32px 0 18px}#tcrm-case-study .hero-v42 .hero-copy{padding:0 4px}#tcrm-case-study .hero-v42 h1{font-size:clamp(31px,8vw,43px);line-height:1.28;min-height:2.8em;margin-bottom:13px}#tcrm-case-study .hero-v42 .hero-typewriter .type-line-2{font-size:.79em;padding-top:3px}#tcrm-case-study .hero-v42 .hero-copy>p{font-size:13px;line-height:1.85}#tcrm-case-study .hero-v42 .hero-badge{font-size:12px;padding:6px 20px;margin-bottom:15px}#tcrm-case-study .hero-v42 .hero-benefits{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#tcrm-case-study .hero-v42 .benefit-card{padding:12px 8px;min-height:102px;gap:9px}#tcrm-case-study .hero-v42 .benefit-card strong{font-size:9px;line-height:1.7}#tcrm-case-study .hero-v42 .benefit-icon{width:31px;height:31px;border-radius:10px}#tcrm-case-study .hero-v42 .benefit-icon svg{width:18px;height:18px}#tcrm-case-study .hero-v42 .hero-visual{min-height:280px}#tcrm-case-study .hero-v42 .device-scene{min-height:280px}#tcrm-case-study .hero-v42 .laptop-mockup{width:min(100%,525px)}#tcrm-case-study .hero-v42 .laptop-bezel{padding:9px 9px 12px;border-radius:18px 18px 13px 13px}#tcrm-case-study .hero-v42 .laptop-screen{border-radius:9px}#tcrm-case-study .hero-v42 .laptop-base{margin-top:7px;height:9px}#tcrm-case-study .hero-v42 .laptop-hinge{width:90px;height:12px;bottom:-12px}#tcrm-case-study .hero-v42 .scene-orbit{width:74%}body:has(#tcrm-case-study) .main-site-header{padding-top:6px}}
@media(max-width:390px){#tcrm-case-study .hero-v42 .hero-benefits{gap:6px}#tcrm-case-study .hero-v42 h1{font-size:30px}#tcrm-case-study .hero-v42 .hero-visual,#tcrm-case-study .hero-v42 .device-scene{min-height:250px}}
@media(prefers-reduced-motion:reduce){#tcrm-case-study .hero-v42 .reveal{opacity:1;transform:none;transition:none}#tcrm-case-study .hero-v42 .laptop-mockup,#tcrm-case-study .hero-v42 .laptop-bezel,#tcrm-case-study .hero-v42 .laptop-screen::after,#tcrm-case-study .hero-v42 .scene-glow,#tcrm-case-study .hero-v42 .laptop-shadow{animation:none!important;transform:none!important}#tcrm-case-study .hero-v42 .dashboard-shot{transform:none!important;transition:none}}
/* Final alignment: TCRM places its real homepage header ON TOP of hero (not before it). */
body:has(#tcrm-case-study) .main-site-header{position:absolute!important;top:0!important;left:0;right:0;width:100%;background:transparent!important;z-index:300}
#tcrm-case-study .hero-v42 .hero-grid{max-width:none!important;width:min(1360px,calc(100% - 80px))!important}
@media(max-width:720px){#tcrm-case-study .hero-v42 .hero-grid{width:min(100% - 24px,680px)!important}}
/* Reserve the navbar's overlay footprint on narrower screens, just as the TCRM layout does. */
@media(max-width:1180px){#tcrm-case-study .hero-v42{padding-top:110px}}
@media(max-width:720px){#tcrm-case-study .hero-v42{padding-top:115px}}
