
:root{--red:#d90429;--red2:#9d0208;--dark:#111827;--muted:#667085;--line:#eceff3;--bg:#fff7f7;--card:#fff;--ink:#0f172a;--shadow:0 16px 50px rgba(17,24,39,.12);--radius:24px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--ink);background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(1180px,92vw);margin:auto}.top-strip{background:var(--red2);color:#fff;font-size:13px}.strip-flex{height:38px;display:flex;gap:18px;align-items:center;justify-content:space-between}.strip-flex a{text-decoration:underline;text-underline-offset:3px}.global-target{opacity:.85}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.nav-shell{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:12px}.logo-brand{display:inline-flex;align-items:center;gap:0;line-height:0;flex-shrink:0;text-decoration:none}.site-logo{height:34px;width:auto;max-width:210px;object-fit:contain;display:block}.footer-logo{height:56px;width:auto;max-width:360px;object-fit:contain;display:block;filter:none}.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,var(--red),#ff5a5f);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 10px 30px rgba(217,4,41,.28)}.brand b{display:block;font-size:18px;letter-spacing:-.02em}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.nav{display:flex;align-items:center;gap:8px}.nav>a,.mega-button{border:0;background:transparent;font:inherit;padding:10px 13px;border-radius:999px;color:#293241;cursor:pointer}.nav>a:hover,.mega-button:hover{background:#fff0f1;color:var(--red)}.nav-cta{background:var(--red)!important;color:#fff!important;box-shadow:0 10px 30px rgba(217,4,41,.24)}.mega-wrap{position:relative}.mega-panel{position:absolute;right:0;top:48px;width:min(780px,90vw);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px;padding:16px;display:none;grid-template-columns:repeat(3,1fr);gap:10px}.mega-wrap:hover .mega-panel,.mega-wrap:focus-within .mega-panel{display:grid}.mega-link{display:grid;grid-template-columns:30px 1fr;gap:5px 8px;padding:12px;border-radius:16px;border:1px solid transparent}.mega-link:hover{border-color:#ffd1d7;background:#fff8f8}.mega-link span{grid-row:span 2;font-size:22px}.mega-link b{font-size:13px}.mega-link small{font-size:11px;color:var(--muted)}.nav-toggle{display:none;border:0;background:#fff;border-radius:12px;padding:9px;box-shadow:0 6px 20px rgba(0,0,0,.08)}.nav-toggle span{display:block;width:24px;height:2px;background:var(--dark);margin:5px 0}.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 10% 0,#ffe1e5,transparent 34%),linear-gradient(135deg,#fff,#fff7f7 58%,#fff);padding:86px 0 64px}.hero:after{content:"";position:absolute;right:-180px;top:-180px;width:520px;height:520px;border:80px solid rgba(217,4,41,.08);border-radius:50%}.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--red);font-weight:800;text-transform:uppercase;letter-spacing:.12em;font-size:12px}.hero h1,.page-hero h1{font-size:clamp(40px,6vw,74px);line-height:.94;letter-spacing:-.06em;margin:18px 0}.hero p,.page-hero p,.lead{color:#475467;font-size:18px;line-height:1.72}.hero-actions,.cta-actions,.inline-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:14px 22px;font-weight:800;border:1px solid transparent;transition:.2s}.btn-primary{background:var(--red);color:#fff;box-shadow:0 14px 34px rgba(217,4,41,.26)}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(217,4,41,.32)}.btn-secondary{background:#fff;color:var(--red);border-color:#ffd2d8}.btn-light{background:#fff;color:var(--red)}.btn-outline-light{border-color:#fff;color:#fff}.btn-outline{border-color:#ffd2d8;color:var(--red);background:#fff}.terminal-card{background:#111827;color:#fff;border-radius:28px;padding:22px;box-shadow:var(--shadow);position:relative}.terminal-dots{display:flex;gap:7px;margin-bottom:18px}.terminal-dots span{width:11px;height:11px;border-radius:50%;background:#ff5a5f}.terminal-dots span:nth-child(2){background:#ffd166}.terminal-dots span:nth-child(3){background:#4ade80}.scope{height:260px;border-radius:20px;background:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:28px 28px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.08)}.scope:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 0 10%,rgba(217,4,41,.9) 10.3% 10.8%,transparent 11.2% 22%,rgba(255,255,255,.7) 22.3% 23%,transparent 23.4% 35%,rgba(217,4,41,.9) 35.3% 36.2%,transparent 36.6% 48%,rgba(255,255,255,.65) 48.3% 48.9%,transparent 49.3% 62%,rgba(217,4,41,.85) 62.2% 63.4%,transparent 63.8%);animation:scan 6s linear infinite}.scope:after{content:"MATLAB • Simulink • COMSOL • HFSS • ANSYS";position:absolute;left:18px;bottom:18px;font-weight:900;color:#fff}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.metric{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px}.metric b{display:block;font-size:20px}.metric small{color:#cbd5e1}@keyframes scan{to{transform:translateX(55%)}}.section{padding:72px 0}.section.alt{background:#fff7f7}.section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:28px}.section-head h2{font-size:clamp(30px,4vw,48px);line-height:1;letter-spacing:-.04em;margin:10px 0}.section-head p{max-width:660px;color:var(--muted);line-height:1.7}.domain-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.domain-card,.service-card,.project-card,.info-card,.faq-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 8px 28px rgba(15,23,42,.05);transition:.2s}.domain-card:hover,.project-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#ffc5ce}.domain-card .icon{font-size:34px}.domain-card h3,.service-card h3,.project-card h3{margin:14px 0 8px;font-size:21px;letter-spacing:-.02em}.domain-card p,.service-card p,.project-card p,.info-card p,.faq-card p{color:var(--muted);line-height:1.65}.tagline{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.tagline span,.chip{background:#fff0f1;color:#9d0208;border:1px solid #ffd2d8;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;text-align:center}.stat b{font-size:32px;color:var(--red)}.page-hero{background:linear-gradient(135deg,#fff,#fff4f4);padding:66px 0;border-bottom:1px solid var(--line)}.page-hero-grid{display:grid;grid-template-columns:1fr .48fr;gap:36px;align-items:center}.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:20px}.breadcrumb a{color:var(--red);font-weight:700}.project-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:22px 0 28px;flex-wrap:wrap}.search-box{flex:1;min-width:260px;position:relative}.search-box input{width:100%;padding:16px 18px;border:1px solid #ffd2d8;border-radius:999px;font:inherit;outline:none}.search-box input:focus{box-shadow:0 0 0 4px #fff0f1}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.project-card{display:flex;flex-direction:column;min-height:230px}.project-card h3{font-size:18px;line-height:1.25}.project-card .meta{font-size:12px;color:#9d0208;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.project-card .card-actions{margin-top:auto;padding-top:16px}.pill-list{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.project-layout{display:grid;grid-template-columns:1fr 360px;gap:28px}.article-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:0 8px 28px rgba(15,23,42,.05)}.article-card h2{font-size:30px;letter-spacing:-.03em}.article-card h3{font-size:22px;margin-top:28px}.article-card p,.article-card li{color:#475467;line-height:1.72}.media-frame{border-radius:24px;overflow:hidden;background:#111827;border:1px solid rgba(255,255,255,.06);min-height:320px;display:grid;place-items:center;color:#fff;text-align:center;padding:24px}.media-frame iframe{width:100%;aspect-ratio:16/9;border:0}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.gallery figure{margin:0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}.gallery figcaption{padding:10px 12px;font-size:13px;color:var(--muted)}.sticky-card{position:sticky;top:108px}.contact-card{background:linear-gradient(135deg,var(--red),var(--red2));color:#fff;border-radius:28px;padding:24px;box-shadow:0 20px 50px rgba(217,4,41,.25)}.contact-card p{color:#ffecef}.contact-card a{display:block;background:#fff;color:var(--red);border-radius:16px;padding:13px 15px;margin-top:10px;font-weight:900}.two-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.form-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:26px;box-shadow:var(--shadow)}.form-card label{display:block;font-weight:800;margin:12px 0 7px}.form-card input,.form-card textarea,.form-card select{width:100%;padding:14px;border:1px solid #e4e7ec;border-radius:14px;font:inherit}.form-card textarea{min-height:140px}.cta-band{background:linear-gradient(135deg,var(--red),var(--red2));color:#fff;padding:56px 0}.cta-grid{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center}.cta-band h2{font-size:clamp(28px,4vw,44px);line-height:1.05;letter-spacing:-.04em;margin:10px 0}.cta-band p{color:#ffe4e8;line-height:1.7}.footer{background:#0b1220;color:#d9e3f0;padding:56px 0 24px}.footer-grid{display:grid;grid-template-columns:1.1fr 1fr .9fr;gap:32px}.footer h3{color:#fff}.footer p,.footer li{color:#aeb8c8;line-height:1.7}.footer ul{list-style:none;margin:0;padding:0}.footer a:hover{color:#fff}.footer .brand b{color:#fff}.socials{display:flex;gap:10px;flex-wrap:wrap}.socials a{border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 12px}.copyright{border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:18px;color:#91a0b5;font-size:13px}.notice{background:#fff9e7;border:1px solid #ffe9a6;border-radius:20px;padding:16px;color:#7a5a00}.list-check{padding-left:0;list-style:none}.list-check li{position:relative;padding-left:28px;margin:10px 0}.list-check li:before{content:"✓";position:absolute;left:0;color:var(--red);font-weight:900}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:20px}.simple-table{border-collapse:collapse;width:100%;background:#fff}.simple-table th,.simple-table td{padding:14px;border-bottom:1px solid var(--line);text-align:left}.simple-table th{background:#fff7f7;color:#9d0208}.hidden{display:none!important}@media(max-width:950px){.site-logo{height:30px;max-width:185px}.footer-logo{height:48px;max-width:300px}.hero-grid,.page-hero-grid,.project-layout,.cta-grid,.footer-grid,.two-grid{grid-template-columns:1fr}.domain-grid,.project-grid,.service-grid,.stats{grid-template-columns:repeat(2,1fr)}.nav-toggle{display:block}.nav{position:absolute;left:4vw;right:4vw;top:82px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:14px;display:none;flex-direction:column;align-items:stretch}.nav.open{display:flex}.mega-panel{position:static;width:100%;display:none;grid-template-columns:1fr}.mega-wrap:hover .mega-panel,.mega-wrap:focus-within .mega-panel{display:grid}.nav>a,.mega-button{text-align:left}.strip-flex{height:auto;min-height:38px;flex-wrap:wrap;padding:8px 0}.global-target{display:none}.gallery{grid-template-columns:1fr}.sticky-card{position:static}}@media(max-width:640px){.site-logo{height:26px;max-width:165px}.footer-logo{height:44px;max-width:280px}.domain-grid,.project-grid,.service-grid,.stats{grid-template-columns:1fr}.hero{padding-top:54px}.metric-row{grid-template-columns:1fr}.hero-actions .btn,.cta-actions .btn{width:100%}.section{padding:50px 0}.section-head{display:block}.brand b{font-size:16px}.brand small{display:none}}

/* EA_MEDIA_AUTO_STYLES_V2 */
.project-video{display:grid;gap:18px;align-items:center;justify-items:center;background:linear-gradient(135deg,#121826,#2b0a12);padding:18px}.project-local-video{width:100%;max-height:520px;border-radius:18px;background:#05070d;box-shadow:0 18px 55px rgba(0,0,0,.28)}.project-video.no-local-video .video-fallback{max-width:760px}.project-video.has-video .video-fallback{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:16px;width:100%}.video-fallback code{background:rgba(255,255,255,.12);border-radius:6px;padding:2px 6px;color:#fff}.project-gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;background:#fff7f7}.project-gallery figure{box-shadow:0 8px 24px rgba(15,23,42,.06)}

/* EA_MEDIA_DISPLAY_FIX_V3: hide placeholders and display only matching uploaded project media */
.project-video .video-fallback{display:none}
.project-video.has-video .video-fallback{display:none!important}
.project-video.no-local-video .video-fallback{display:block}
.project-video.no-local-video .project-local-video{display:none!important}
.project-video.media-checking .video-fallback{display:none!important}
.project-video.has-video{background:linear-gradient(135deg,#0f172a,#2b0a12)}
.project-video.has-video .project-local-video{display:block;width:100%;max-height:560px;border-radius:18px;background:#05070d;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.project-gallery.media-enhanced figure{display:none}
.project-gallery.media-enhanced figure.media-ready{display:block}
.project-gallery.media-enhanced.has-images .media-note{display:none}
.project-gallery .media-note{grid-column:1/-1;margin:0;padding:22px;border:1px dashed rgba(225,29,72,.35);border-radius:18px;background:#fff7f8;color:#64748b}
.project-gallery img{background:#fff;}



/* EA_UPDATE_2026_05_MEDIA_PAGINATION_FIX */
.muted-small{color:var(--muted);line-height:1.6;margin:6px 0 0}.domain-select{padding:14px 18px;border:1px solid #ffd2d8;border-radius:999px;background:#fff;font:inherit;min-width:230px}.pagination{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:28px;flex-wrap:wrap}.pagination button{border:1px solid #ffd2d8;background:#fff;color:var(--red);border-radius:999px;padding:11px 18px;font-weight:900;cursor:pointer}.pagination button:disabled{opacity:.45;cursor:not-allowed}.pagination span{color:var(--muted);font-weight:800}.contact-card,.info-card,.article-card{overflow:hidden}.contact-card a,.contact-card p,.info-card p,.article-card p,.article-card li,.project-card h3{overflow-wrap:anywhere;word-break:normal}.contact-card a{line-height:1.25}.project-layout{align-items:start}.sticky-card{min-width:0}.project-gallery{align-items:start}.project-gallery.media-enhanced figure{display:block}.project-gallery img{width:100%;aspect-ratio:16/10;object-fit:contain;background:#fff;border-bottom:1px solid var(--line)}.project-video.no-local-video{min-height:240px}.project-video.no-local-video .video-fallback{display:block!important}.project-video.has-video .video-fallback{display:none!important}.project-video.has-video{padding:12px}.project-local-video{width:100%;max-height:620px}.contact-instructions p{font-size:16px;color:#475467;line-height:1.75}.seo-text{margin-top:22px}.article-card code,.notice code{white-space:normal;overflow-wrap:anywhere}@media(max-width:1100px){.project-layout{grid-template-columns:1fr}.sticky-card{position:static}.contact-card a{font-size:15px}}@media(max-width:640px){.domain-select{width:100%}.project-toolbar{align-items:stretch}.search-box{min-width:100%}.contact-card{padding:20px}.article-card{padding:22px}.page-hero{padding:44px 0}}


/* Final navigation/search/logo fixes */
.site-header .logo-brand{max-width:330px!important;overflow:hidden!important;flex:0 0 auto!important}
.site-header .site-logo{height:42px!important;max-height:42px!important;width:auto!important;max-width:310px!important;object-fit:contain!important;display:block!important}
.footer .footer-logo{height:54px!important;max-height:54px!important;width:auto!important;max-width:340px!important;object-fit:contain!important;display:block!important}
.mega-panel .search-all{grid-column:1/-1;background:linear-gradient(135deg,#fff1f3,#ffffff);border-color:#ffd1d7}
.mega-panel .search-all b{color:#d90429;font-size:14px}
.search-toolbar{background:#fff;border:1px solid var(--line);border-radius:24px;padding:16px;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.domain-select{min-width:260px;border:1px solid #ffd2d8;border-radius:999px;padding:15px 46px 15px 18px;font:inherit;font-weight:700;color:#293241;background:#fff;outline:none;box-shadow:0 8px 26px rgba(217,4,41,.06)}
.domain-select:focus{box-shadow:0 0 0 4px #fff0f1;border-color:#d90429}
.pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:26px;flex-wrap:wrap}
.pagination button{border:1px solid #ffd2d8;background:#fff;color:#d90429;border-radius:999px;padding:10px 16px;font-weight:800;cursor:pointer}
.pagination button:disabled{opacity:.45;cursor:not-allowed}.pagination span{font-weight:800;color:#667085}
.media-note,.notice code{display:none!important}
@media(max-width:950px){.site-header .logo-brand{max-width:240px!important}.site-header .site-logo{height:36px!important;max-height:36px!important;max-width:235px!important}.mega-panel .search-all{grid-column:auto}.domain-select{width:100%;min-width:0}.search-toolbar{padding:12px}}
@media(max-width:640px){.site-header .logo-brand{max-width:185px!important}.site-header .site-logo{height:30px!important;max-height:30px!important;max-width:180px!important}.footer .footer-logo{height:42px!important;max-width:280px!important}}


/* === FINAL HEADER LOGO + MENU NORMALIZATION === */
.logo-brand{display:inline-flex!important;align-items:center!important;gap:0!important;line-height:0!important;flex-shrink:0!important;text-decoration:none!important;max-width:280px!important;overflow:visible!important}
.site-logo{width:270px!important;height:auto!important;max-width:270px!important;max-height:42px!important;object-fit:contain!important;display:block!important}
.footer-logo{width:300px!important;height:auto!important;max-width:300px!important;max-height:62px!important;object-fit:contain!important;display:block!important}
.nav-shell{min-height:72px!important}
@media(max-width:950px){.logo-brand{max-width:225px!important}.site-logo{width:220px!important;max-width:220px!important;max-height:34px!important}.footer-logo{width:260px!important;max-width:260px!important}.nav{top:82px!important}}
@media(max-width:640px){.logo-brand{max-width:180px!important}.site-logo{width:175px!important;max-width:175px!important;max-height:28px!important}.footer-logo{width:230px!important;max-width:230px!important}}


/* FINAL WEBSITE PATCH: consistent small header/footer logos, blog pages and full footer */
.site-header .logo-brand{max-width:220px!important;overflow:hidden!important;display:inline-flex!important;align-items:center!important;line-height:0!important;flex:0 0 auto!important}
.site-header .site-logo{width:210px!important;height:auto!important;max-width:210px!important;max-height:38px!important;object-fit:contain!important;display:block!important}
.footer .logo-brand.footer-brand{max-width:230px!important;overflow:hidden!important;display:inline-flex!important;align-items:center!important;line-height:0!important;margin-bottom:18px!important}
.footer .footer-logo{width:220px!important;height:auto!important;max-width:220px!important;max-height:44px!important;object-fit:contain!important;display:block!important}
.blog-grid .blog-card{min-height:310px}.blog-article p{font-size:17px}.blog-pagination a{border:1px solid #ffd2d8;background:#fff;color:#d90429;border-radius:999px;padding:10px 16px;font-weight:900;text-decoration:none}.blog-pagination a.active{background:#d90429;color:#fff;box-shadow:0 10px 25px rgba(217,4,41,.18)}
.nav a[href$="blog.html"]{font-weight:500}
@media(max-width:950px){.site-header .logo-brand{max-width:190px!important}.site-header .site-logo{width:185px!important;max-width:185px!important;max-height:32px!important}.footer .footer-logo{width:190px!important;max-width:190px!important;max-height:40px!important}.nav{top:82px!important}}
@media(max-width:640px){.site-header .logo-brand{max-width:165px!important}.site-header .site-logo{width:160px!important;max-width:160px!important;max-height:28px!important}.footer .footer-logo{width:175px!important;max-width:175px!important;max-height:36px!important}.blog-grid .blog-card{min-height:auto}}


/* FINAL SIZE + MEDIA FIX OVERRIDES */
.site-header .site-logo{height:22px!important;max-height:22px!important;max-width:150px!important;width:auto!important;object-fit:contain!important;display:block!important;}
.footer .footer-logo{height:30px!important;max-height:30px!important;max-width:220px!important;width:auto!important;object-fit:contain!important;display:block!important;}
.nav-shell{min-height:58px!important;}
.footer{padding:44px 0 22px!important;}
.footer-grid{display:grid!important;grid-template-columns:1.1fr 1fr .9fr!important;gap:32px!important;align-items:start!important;}
.search-toolbar .domain-select,.domain-select{appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23d90429' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;border:1px solid #ffd2d8;border-radius:999px;color:#0f172a;font:inherit;font-weight:700;padding:15px 44px 15px 18px;min-width:230px;box-shadow:0 8px 24px rgba(217,4,41,.08);outline:none;}
.search-toolbar .domain-select:focus,.domain-select:focus{box-shadow:0 0 0 4px #fff0f1;border-color:#d90429;}
.project-video.media-frame{aspect-ratio:16/9!important;min-height:auto!important;padding:0!important;background:#111827!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.project-video .project-local-video{width:100%!important;height:100%!important;max-height:70vh!important;object-fit:contain!important;background:#111827!important;display:block;}
.video-fallback:empty,.video-fallback p:empty,.video-fallback h3:empty{display:none!important;}
.notice,.muted-small code{display:none!important;}
@media(max-width:950px){.site-header .site-logo{height:20px!important;max-height:20px!important;max-width:135px!important}.footer .footer-logo{height:28px!important;max-height:28px!important;max-width:200px!important}.footer-grid{grid-template-columns:1fr!important}.nav{top:68px!important}}
@media(max-width:640px){.site-header .site-logo{height:18px!important;max-height:18px!important;max-width:120px!important}.footer .footer-logo{height:24px!important;max-height:24px!important;max-width:175px!important}.nav-shell{min-height:54px!important}}


/* === FINAL UI FIX: balanced header/footer logo, one-line contact strip, media cards === */
body .top-strip{display:block!important;background:#a90008!important;color:#fff!important}
body .strip-flex{min-height:38px!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;flex-wrap:wrap!important;padding:7px 0!important}
body .site-header .nav-shell{min-height:78px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:22px!important}
body .site-header .logo-brand{width:300px!important;max-width:300px!important;min-width:240px!important;overflow:visible!important;display:inline-flex!important;align-items:center!important;line-height:0!important;flex:0 0 auto!important}
body .site-header .site-logo{width:300px!important;height:auto!important;max-width:300px!important;max-height:54px!important;object-fit:contain!important;display:block!important}
body .footer .logo-brand.footer-brand{width:300px!important;max-width:300px!important;overflow:visible!important;display:inline-flex!important;align-items:center!important;line-height:0!important;margin-bottom:18px!important}
body .footer .footer-logo{width:300px!important;height:auto!important;max-width:300px!important;max-height:56px!important;object-fit:contain!important;display:block!important}
body .gallery figure{background:#f8fafc!important;min-height:220px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important}
body .gallery figure img{width:100%!important;height:190px!important;object-fit:contain!important;background:#f8fafc!important;padding:0!important}
body .gallery figure.is-broken{display:none!important}
body .contact-card a{overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.35!important}
@media(max-width:950px){body .site-header .logo-brand{width:240px!important;max-width:240px!important;min-width:0!important}body .site-header .site-logo{width:240px!important;max-width:240px!important;max-height:44px!important}body .footer .footer-logo{width:260px!important;max-width:260px!important;max-height:50px!important}.nav{top:86px!important}}
@media(max-width:640px){body .site-header .logo-brand{width:190px!important;max-width:190px!important}body .site-header .site-logo{width:190px!important;max-width:190px!important;max-height:36px!important}body .footer .footer-logo{width:230px!important;max-width:230px!important;max-height:44px!important}.nav-shell{min-height:70px!important}}

/* Robust output-gallery and compact header logo final patch */
.gallery.project-gallery{align-items:start!important}
.gallery.project-gallery figure{background:#f8fafc!important;min-height:230px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important}
.gallery.project-gallery figure img{width:100%!important;height:205px!important;object-fit:contain!important;background:#f8fafc!important}
.gallery.project-gallery figure:empty{display:none!important}
.contact-card a{overflow-wrap:anywhere!important;word-break:break-word!important}
.site-logo{height:auto!important;width:300px!important;max-width:300px!important;max-height:58px!important;object-fit:contain!important}
.footer-logo{height:auto!important;width:300px!important;max-width:300px!important;max-height:56px!important;object-fit:contain!important}
@media(max-width:800px){.site-logo{width:220px!important;max-width:220px!important}.footer-logo{width:240px!important;max-width:240px!important}}

.seo-project-content{margin-top:30px;border-top:1px solid var(--line);padding-top:24px}.seo-project-content h2{margin-top:26px}.seo-project-content p{font-size:16px}.seo-tags .chip{margin-bottom:4px}.article-card video[poster]{background:#0b1220}.project-gallery img{width:100%;height:220px;object-fit:contain;background:#f8fafc}.project-gallery figure{display:block}.project-gallery figure:not(.media-ready):has(img[src=""]){display:none}.contact-card a{overflow-wrap:anywhere;word-break:break-word}.project-local-video{width:100%;max-height:520px;object-fit:contain;background:#0b1220;border-radius:18px}

.project-gallery.php-fixed, .project-gallery.media-enhanced{min-height:0}.project-gallery .php-gallery-card img{width:100%;height:210px;object-fit:contain;background:#f8fafc}

/* SEO 2026 performance and media fixes */
.site-logo{height:46px;max-width:300px;object-fit:contain}.footer-logo{height:50px;max-width:320px;object-fit:contain}.project-gallery:empty{display:none}.project-gallery.has-images{display:grid}.project-gallery img{width:100%;height:230px;object-fit:contain;background:#fff}.related-grid{margin-top:16px}.domain-select{padding:14px 18px;border:1px solid #ffd2d8;border-radius:999px;background:#fff;font:inherit;min-width:260px}.pagination{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:28px}.pagination button,.pagination span{border:1px solid #ffd2d8;background:#fff;border-radius:999px;padding:9px 13px;font-weight:800;color:#9d0208}.pagination button.active{background:#d90429;color:#fff}.media-frame video{width:100%;height:auto;max-height:520px;aspect-ratio:16/9;object-fit:contain;background:#000;border-radius:18px}.crawl-links{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.crawl-links a{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.seo-tags .chip{margin-bottom:5px}
@media(max-width:950px){.site-logo{height:40px;max-width:250px}.footer-logo{height:46px;max-width:280px}.crawl-links{grid-template-columns:1fr}}
@media(max-width:640px){.site-logo{height:34px;max-width:210px}.footer-logo{height:42px;max-width:250px}.project-gallery img{height:190px}}

/* SEO internal link improvements */
.research-link-panel{margin:28px 0;padding:22px;border:1px solid #ffd2d8;background:linear-gradient(135deg,#fff,#fff8f8);border-radius:22px}
.research-link-panel h2,.research-link-panel h3{margin-top:0}
.research-link-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.research-link-grid a{display:block;padding:13px 14px;border:1px solid #f1d5d8;border-radius:16px;background:#fff;color:#9d0208;font-weight:800;line-height:1.35}
.research-link-grid a small{display:block;color:#667085;font-weight:600;margin-top:4px}
.deep-seo-block{margin:28px 0;padding:22px;border:1px solid #e4e7ec;border-radius:22px;background:#fff}
.deep-seo-block h2{margin-top:0}
.deep-seo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:14px}
.deep-seo-grid .info-card{box-shadow:none}
@media(max-width:800px){.research-link-grid,.deep-seo-grid{grid-template-columns:1fr}}


/* FINAL HEADER LOGO SIZE FIX - applies to all normal, category and generated project landing pages */
body .site-header .nav-shell{min-height:74px!important;display:flex!important;align-items:center!important;}
body .site-header .logo-brand{width:260px!important;max-width:260px!important;min-width:0!important;overflow:visible!important;display:inline-flex!important;align-items:center!important;line-height:0!important;flex:0 0 auto!important;}
body .site-header img.site-logo{width:260px!important;height:auto!important;max-width:260px!important;max-height:52px!important;object-fit:contain!important;display:block!important;}
body .footer .logo-brand.footer-brand{width:250px!important;max-width:250px!important;min-width:0!important;overflow:visible!important;display:inline-flex!important;align-items:center!important;line-height:0!important;}
body .footer img.footer-logo{width:250px!important;height:auto!important;max-width:250px!important;max-height:48px!important;object-fit:contain!important;display:block!important;}
@media(max-width:950px){body .site-header .logo-brand{width:215px!important;max-width:215px!important}body .site-header img.site-logo{width:215px!important;max-width:215px!important;max-height:42px!important}.nav{top:82px!important}}
@media(max-width:640px){body .site-header .logo-brand{width:175px!important;max-width:175px!important}body .site-header img.site-logo{width:175px!important;max-width:175px!important;max-height:34px!important}body .footer img.footer-logo{width:210px!important;max-width:210px!important;max-height:42px!important}.nav-shell{min-height:66px!important}}


/* Final sitewide QA fixes */
.top-strip{display:block;background:#b80008;color:#fff}
.strip-flex{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.site-header .site-logo{height:42px!important;max-height:42px!important;width:auto!important;max-width:310px!important;object-fit:contain!important}
.footer .footer-logo{height:54px!important;max-height:54px!important;width:auto!important;max-width:360px!important;object-fit:contain!important}
.mega-panel{grid-template-columns:repeat(3,minmax(0,1fr))!important;min-width:min(900px,92vw)!important}
.mega-link{min-width:0}
.domain-card p{display:block!important;min-height:110px}
.domain-card .tagline{margin-top:16px}
@media(max-width:950px){
  .site-header .site-logo{height:36px!important;max-height:36px!important;max-width:240px!important}
  .footer .footer-logo{height:46px!important;max-height:46px!important;max-width:300px!important}
  .mega-panel{grid-template-columns:1fr!important;min-width:0!important}
}
@media(max-width:640px){
  .site-header .site-logo{height:32px!important;max-height:32px!important;max-width:210px!important}
}
