
:root{--bg:#020607;--panel:#071012;--panel2:#0b181b;--teal:#0fe0d2;--teal2:#53f0e8;--red:#ff4e57;--red2:#ff747a;--text:#f3f7f7;--muted:#9caead;--line:#23464a;--max:1480px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,Helvetica,sans-serif;overflow-x:hidden}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.wrap{width:min(var(--max),94%);margin:auto}
body:before{content:"";position:fixed;inset:0;z-index:-5;background:radial-gradient(circle at 20% 20%,#0fe0d20b,transparent 28%),radial-gradient(circle at 82% 72%,#ff4e5708,transparent 26%),linear-gradient(135deg,#061011,#020506 55%,#071012);}
body:after{content:"";position:fixed;inset:0;z-index:-4;opacity:.16;background-image:linear-gradient(90deg,transparent 49.6%,#0fe0d218 50%,transparent 50.4%),linear-gradient(0deg,transparent 49.6%,#0fe0d210 50%,transparent 50.4%),repeating-linear-gradient(135deg,transparent 0 75px,#2e4a4d11 76px 77px);background-size:120px 120px,120px 120px,280px 280px;animation:gridmove 32s linear infinite}@keyframes gridmove{to{background-position:120px 0,0 120px,-280px 280px}}
header{position:fixed;top:0;left:0;right:0;height:76px;z-index:100;background:#020506e9;border-bottom:1px solid #214247;backdrop-filter:blur(14px)}.nav{height:76px;display:flex;align-items:center;gap:26px}.brand{width:150px;flex:0 0 150px}.brand img{width:140px;display:block}.navlinks{display:flex;align-items:center;justify-content:center;gap:28px;flex:1;font-size:12px;letter-spacing:.4px}.navlinks a{position:relative;padding:28px 0;color:#dbe6e5}.navlinks a:hover,.navlinks a.active{color:#fff}.navlinks a.active:after{content:"";position:absolute;left:0;right:0;bottom:16px;height:2px;background:var(--red)}.actions{display:flex;align-items:center;gap:14px}.langs{display:flex;gap:7px;font-size:11px}.lang{padding:7px 6px;border:0;background:transparent;color:#b8c8c7;cursor:pointer}.lang.active{color:#fff;border-bottom:2px solid var(--red)}.cta{display:inline-flex;align-items:center;gap:9px;background:linear-gradient(135deg,#ff5a60,#e93f48);border:1px solid #ff858a;color:#fff;padding:12px 17px;border-radius:5px;font-size:11px;font-weight:900;letter-spacing:.4px;box-shadow:0 12px 28px #ff4e5718}.outline{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--teal);color:#e6ffff;padding:11px 16px;border-radius:5px;font-size:11px;font-weight:800;background:#061314b5}
.hero{padding-top:76px;min-height:700px;position:relative;display:grid;align-items:center;overflow:hidden}.hero-art{position:absolute;inset:76px 0 0;background:url('../assets/hero-imaginary.svg') center/cover no-repeat}.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#020607f7 0%,#020607d4 36%,#02060738 70%,#020607d6 100%),linear-gradient(0deg,#020607 0%,transparent 38%,#02060742 100%)}.hero-inner{position:relative;z-index:2;padding:92px 0 155px;display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center}.eyebrow{font-size:12px;font-weight:900;letter-spacing:5px;color:var(--teal);text-transform:uppercase}.hero h1{font-size:clamp(54px,7vw,96px);line-height:.92;letter-spacing:-4px;margin:17px 0 12px;text-transform:uppercase}.hero h1 span{color:var(--teal)}.hero p{max-width:650px;color:#d0dcdb;line-height:1.65;font-size:17px}.hero-tags{display:flex;gap:15px;flex-wrap:wrap;margin:20px 0;color:#dce9e8;font-size:11px;font-weight:800}.hero-tags span{display:flex;gap:7px;align-items:center}.hero-tags i{width:24px;height:24px;border:1px solid var(--teal);border-radius:50%;display:grid;place-items:center;color:var(--teal);font-style:normal}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.hero-video-card{height:360px;border:1px solid #2e595d;background:#050b0d88;clip-path:polygon(10% 0,100% 0,100% 86%,88% 100%,0 100%,0 13%);position:relative;overflow:hidden;box-shadow:0 30px 90px #000b}.hero-video-card img{width:100%;height:100%;object-fit:cover;opacity:.7;filter:contrast(1.1) saturate(.7)}.play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:70px;height:70px;border-radius:50%;border:1px solid var(--teal);background:#020707cc;color:#fff;font-size:24px;display:grid;place-items:center;cursor:pointer}.play:hover{box-shadow:0 0 30px #0fe0d260}.video-note{position:absolute;left:22px;bottom:18px;font-size:10px;letter-spacing:2px;color:#b9c9c8}.stats{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:4;width:min(1200px,90%);display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #275458;background:#041012dd;clip-path:polygon(5% 0,95% 0,100% 100%,0 100%);backdrop-filter:blur(12px)}.stat{padding:16px 18px;text-align:center;border-right:1px solid #234346}.stat:last-child{border:0}.stat b{display:block;color:#eaf7f6;font-size:24px}.stat small{color:#9fb0af;font-size:9px;letter-spacing:1px;text-transform:uppercase}.stat b:first-letter{color:var(--teal)}
section{padding:72px 0}.section-head{margin-bottom:30px}.section-head h2{font-size:clamp(30px,4.2vw,54px);margin:8px 0 10px;line-height:1}.section-head p{max-width:850px;color:var(--muted);line-height:1.7}.department-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.dept-card{min-height:350px;position:relative;overflow:hidden;border:1px solid #24484c;background:#050b0c;clip-path:polygon(0 0,96% 0,100% 11%,100% 88%,94% 100%,0 100%,0 8%);transition:.35s}.dept-card:nth-child(2n){clip-path:polygon(4% 0,100% 0,100% 92%,96% 100%,0 100%,0 12%)}.dept-card:hover{transform:translateY(-5px);border-color:var(--teal)}.dept-art{position:absolute;inset:0;background-size:cover;background-position:center;transition:.45s}.dept-card:hover .dept-art{transform:scale(1.04)}.dept-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#02060722 10%,#02060730 35%,#020607ef 86%)}.dept-content{position:absolute;inset:auto 0 0;padding:22px;z-index:2}.dept-no{color:#d9e5e4;font-size:30px;font-weight:900;font-style:italic}.dept-content h3{font-size:22px;margin:5px 0 7px}.dept-content p{font-size:11px;line-height:1.5;color:#c3d0cf;min-height:49px;margin:0}.tags{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.tag{font-size:9px;color:#d8e9e8;border:1px solid #326064;padding:5px 7px;background:#0610119c}.dept-link{color:var(--teal);font-size:10px;font-weight:900;letter-spacing:1px}.dept-link:hover{color:#fff}
.process-cert-project{display:grid;grid-template-columns:1.05fr 1fr 1.35fr;gap:12px}.panel{border:1px solid #24484c;background:#061011e6;padding:22px;clip-path:polygon(2% 0,98% 0,100% 7%,100% 93%,97% 100%,3% 100%,0 93%,0 7%)}.process{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:20px}.step{text-align:center}.step .ico{width:44px;height:44px;margin:auto;border:1px solid var(--teal);border-radius:50%;display:grid;place-items:center;color:var(--teal);font-size:15px}.step b{display:block;font-size:10px;margin-top:7px}.step p{font-size:8px;color:#93a3a2;line-height:1.45}.certs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cert{display:grid;grid-template-columns:90px 1fr;gap:12px;align-items:center}.cert img{width:90px;height:110px;object-fit:cover;background:#fff;border:1px solid #b9c4c4}.cert h4{margin:0 0 4px;color:var(--teal);font-size:14px}.cert a{font-size:9px;color:#dbe7e6}.projects{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.projects img{width:100%;height:90px;object-fit:cover;border:1px solid #294b4f}.contact-grid{display:grid;grid-template-columns:.75fr 1.25fr .95fr;gap:12px}.contact-box{border:1px solid #24484c;background:#061011e6;padding:24px;clip-path:polygon(2% 0,98% 0,100% 7%,100% 93%,97% 100%,3% 100%,0 93%,0 7%)}.contact-box h3{margin:0 0 16px;font-size:20px}.contact-row{display:flex;gap:10px;margin:12px 0;color:#c4d0cf;font-size:12px}.contact-row b{color:#fff}.contact-row a{color:var(--teal)}.map{height:210px;background:#0b181a;border:1px solid #315458;margin-top:14px;overflow:hidden}.map iframe{width:100%;height:100%;border:0;filter:grayscale(.8) contrast(1.1)}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}input,select,textarea{background:#03090a;border:1px solid #294f53;color:#f4f7f7;padding:11px 12px;border-radius:3px;outline:none;font-size:12px}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 2px #0fe0d20d}textarea{min-height:118px;resize:vertical}.full{grid-column:1/-1}.file-note{font-size:9px;color:#879997}.socials{display:flex;gap:8px;margin-top:16px}.social{width:36px;height:36px;border:1px solid #35565a;display:grid;place-items:center;border-radius:50%;font-size:13px}.wa{position:fixed;right:22px;bottom:22px;z-index:120;width:62px;height:62px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 12px 40px #000c;border:3px solid #eafff055}.wa svg{width:33px;height:33px;fill:white}.thank{min-height:100vh;padding-top:120px;display:grid;place-items:center}.thank-box{max-width:700px;text-align:center;border:1px solid #24484c;background:#071214;padding:55px;clip-path:polygon(3% 0,97% 0,100% 8%,100% 92%,97% 100%,3% 100%,0 92%,0 8%)}.thank-box h1{font-size:52px;margin:10px 0}.thank-box p{color:var(--muted);line-height:1.7}
.dept-hero{padding-top:76px;min-height:540px;position:relative;overflow:hidden}.dept-hero .real-bg{position:absolute;inset:76px 0 0;background-size:cover;background-position:center;filter:saturate(.75) contrast(1.08)}.dept-hero .real-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#020607f2 0%,#020607bb 43%,#02060725 82%,#020607b9 100%),linear-gradient(0deg,#020607 0%,transparent 45%)}.dept-hero-content{position:relative;z-index:2;padding:110px 0 100px;max-width:780px}.dept-hero-content .num{color:var(--teal);font-size:16px;font-weight:900;letter-spacing:3px}.dept-hero h1{font-size:clamp(48px,6.5vw,84px);line-height:.94;margin:13px 0}.dept-hero p{font-size:16px;color:#d4dfde;line-height:1.75}.service-gallery{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.service-list{border:1px solid #24484c;background:#061011;padding:25px;clip-path:polygon(2% 0,98% 0,100% 7%,100% 93%,97% 100%,3% 100%,0 93%,0 7%)}.service-list h2{margin-top:0}.service-list ul{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;list-style:none}.service-list li{border:1px solid #294e52;padding:12px;color:#c8d5d4;font-size:11px}.real-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.real-gallery img{width:100%;height:160px;object-fit:cover;border:1px solid #294e52}.cert-full{display:flex;gap:10px;flex-wrap:wrap}.cert-full a{border:1px solid var(--teal);padding:10px 14px;color:#dff8f6;font-size:11px}.breadcrumb{padding:18px 0;color:#7f9190;font-size:10px}.breadcrumb a{color:var(--teal)}footer{border-top:1px solid #24484c;padding:26px 0;color:#7f9190;font-size:11px;text-align:center}
@media(max-width:1100px){.navlinks{gap:14px}.navlinks a:nth-child(n+5){display:none}.hero-inner{grid-template-columns:1fr}.hero-video-card{height:280px}.department-grid{grid-template-columns:1fr 1fr}.process-cert-project{grid-template-columns:1fr}.contact-grid{grid-template-columns:1fr 1fr}.contact-box:last-child{grid-column:1/-1}}
@media(max-width:760px){header,.nav{height:68px}.brand{width:115px;flex-basis:115px}.brand img{width:108px}.navlinks{display:none}.actions{margin-left:auto}.cta{padding:10px 12px;font-size:10px}.hero{padding-top:68px;min-height:900px}.hero-art{inset:68px 0 0}.hero-inner{padding:70px 0 210px}.hero h1{font-size:52px;letter-spacing:-2px}.hero-video-card{height:220px}.stats{grid-template-columns:repeat(2,1fr);bottom:10px}.stat{padding:11px}.stat:nth-child(5){grid-column:1/-1}.department-grid{grid-template-columns:1fr}.dept-card{min-height:330px}.contact-grid{grid-template-columns:1fr}.contact-box:last-child{grid-column:auto}.formgrid{grid-template-columns:1fr}.full{grid-column:auto}.process{grid-template-columns:1fr 1fr}.certs{grid-template-columns:1fr}.projects{grid-template-columns:1fr 1fr}.service-gallery{grid-template-columns:1fr}.real-gallery{grid-template-columns:1fr 1fr}.dept-hero-content{padding:90px 0 80px}.dept-hero h1{font-size:50px}}
[dir=rtl] body{text-align:right}[dir=rtl] .navlinks{direction:rtl}[dir=rtl] .hero-art:after{background:linear-gradient(270deg,#020607f7 0%,#020607d4 36%,#02060738 70%,#020607d6 100%)}[dir=rtl] .hero-inner,[dir=rtl] .dept-hero-content{direction:rtl}[dir=rtl] .contact-row{direction:rtl}

/* --- 987.jpg visual direction / homepage refresh --- */
:root{--bg:#020607;--panel:#061011;--panel2:#0b1719;--teal:#00e5d4;--teal2:#39f1e5;--red:#ff4d55;--red2:#ff747a;--text:#f5f8f8;--muted:#9aacab;--line:#1d464b}
body{background:#020607}
body:before{background:radial-gradient(circle at 20% 30%,#00e5d414,transparent 30%),radial-gradient(circle at 88% 65%,#ff4d550d,transparent 26%),linear-gradient(135deg,#061012,#020506 58%,#071113)}
header{height:64px;background:#020506ed;border-bottom:1px solid #23464b}
.nav{height:64px;gap:22px}.brand{width:135px;flex-basis:135px}.brand img{width:122px}
.navlinks{gap:25px;font-size:10px}.navlinks a{padding:24px 0}.navlinks a.active:after{bottom:13px}
.actions{gap:9px}.langs{font-size:9px}.lang{padding:6px 5px}.cta{padding:10px 14px;font-size:9px}
.hero{padding-top:64px;min-height:640px;border-bottom:1px solid #15383c}
.hero-art{inset:64px 0 0;background:url('../hero-machining.jpg') 63% center/cover no-repeat;opacity:.96}
.hero-art:after{background:linear-gradient(90deg,#020607f8 0%,#020607d8 28%,#02060755 62%,#020607a8 100%),linear-gradient(0deg,#020607 0%,transparent 45%,#02060766 100%)}
.hero-inner{grid-template-columns:1fr .92fr;gap:34px;padding:82px 0 145px;max-width:1440px}
.hero-copy{padding-left:20px}.eyebrow{font-size:10px;letter-spacing:5px;color:var(--teal)}
.hero h1{font-size:clamp(52px,6.1vw,86px);letter-spacing:-3px;margin:14px 0 11px}
.hero h1 .white{color:#f2f7f7}.hero h1 span{color:var(--teal)}
.hero-sub{font-size:10px;letter-spacing:1px;color:#d4dfde;font-weight:800;line-height:1.7}.hero-sub b{color:var(--red);margin:0 4px}
.hero-copy>p{font-size:13px;margin:12px 0;color:#d4dfde}.red-text{color:var(--red)}.teal-text{color:var(--teal)}
.hero-actions{margin-top:18px}.hero-video-card{height:325px;border:1px solid #2a6265;clip-path:polygon(9% 0,100% 0,100% 86%,89% 100%,0 100%,0 13%);box-shadow:0 25px 75px #000c;background:#03090a}
.hero-video-card img,.hero-video-card video{width:100%;height:100%;object-fit:cover;display:block;filter:contrast(1.08) saturate(.9);opacity:.88}.hero-video-card video{opacity:.94}
.play{width:58px;height:58px;font-size:20px}.video-note{display:none}
.stats{bottom:14px;width:min(1120px,88%);grid-template-columns:repeat(5,1fr);border-color:#237276;background:#041012e8}
.stat{padding:12px 14px}.stat b{font-size:20px;color:#eaf8f7}.stat small{font-size:8px}.stat b:first-letter{color:var(--teal)}

.about-band{padding:46px 0;background:linear-gradient(180deg,#041012,#020607);border-bottom:1px solid #123539}
.about-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:55px;align-items:center}.about-grid h2{font-size:clamp(28px,3.5vw,46px);line-height:1.03;margin:8px 0}.about-grid p{color:#b6c4c3;font-size:12px;line-height:1.8;margin:7px 0}

.departments-section{padding:54px 0 38px}.section-head.compact{margin-bottom:22px}.section-head.compact h2{font-size:clamp(30px,4vw,48px);margin:7px 0}.section-head.compact p{font-size:12px;margin:0}
.department-list{display:flex;flex-direction:column;gap:9px}
.dept-row{min-height:104px;display:grid;grid-template-columns:310px 95px minmax(0,1fr) 190px;align-items:center;position:relative;overflow:hidden;border:1px solid #24484c;background:#050b0d;clip-path:polygon(0 0,97.5% 0,100% 15%,100% 85%,97.5% 100%,0 100%,0 15%);transition:.3s}
.dept-row:nth-child(even){clip-path:polygon(2.5% 0,100% 0,100% 85%,97.5% 100%,0 100%,0 15%)}
.dept-row:hover{border-color:var(--teal);transform:translateX(4px)}
.dept-photo{height:104px;overflow:hidden;position:relative}.dept-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 55%,#050b0de8 100%)}.dept-photo img{width:100%;height:100%;object-fit:cover;display:block;filter:contrast(1.08) saturate(.95)}
.dept-number{font-size:34px;font-style:italic;font-weight:900;text-align:center;color:#eef5f4;line-height:1}.dept-number:before{content:"";display:block;width:35px;height:2px;background:var(--red);margin:0 auto 7px}.dept-number span{display:block;font-size:7px;font-style:normal;letter-spacing:1px;color:#a9b9b8;margin-top:5px}
.dept-content{padding:12px 15px}.dept-content h3{font-size:16px;margin:0 0 5px}.dept-content p{font-size:10px;line-height:1.45;color:#aebdbc;margin:0;max-width:600px}.dept-content .tags{margin:7px 0 0;gap:5px}.dept-content .tags span{font-size:7px;letter-spacing:.6px;color:#00e5d4}
.dept-link{justify-self:center;color:var(--teal);font-size:8px;font-weight:900;letter-spacing:1px;border:1px solid #1f696b;padding:9px 12px;background:#041012}.dept-link:hover{color:#fff;border-color:#fff}

.process-panel{padding:25px}.process{margin-top:16px}.step .ico{width:40px;height:40px}.step b{font-size:9px}.step p{font-size:8px}
#quality{padding-top:25px}#quality .panel{display:flex;align-items:center;gap:40px}.certs{flex:1}.cert h4{font-size:12px}.cert a{font-size:8px;color:var(--teal)}
#projects{padding-top:25px}.extracted-gallery{grid-template-columns:repeat(7,1fr);gap:7px}.extracted-gallery img{height:92px;object-fit:cover;filter:saturate(.85);transition:.25s}.extracted-gallery img:hover{transform:scale(1.03);filter:saturate(1)}
.contact-grid{grid-template-columns:.8fr 1.25fr .9fr}.contact-box{padding:20px}.contact-box h3{font-size:16px}.contact-row{font-size:10px;margin:10px 0}.map{height:150px}.location-copy{font-size:9px;color:#8fa09f;line-height:1.5}.social{width:31px;height:31px}
footer{font-size:9px;padding:20px}.wa{width:54px;height:54px;right:18px;bottom:18px}

@media(max-width:1100px){
 .navlinks{gap:13px}.navlinks a:nth-child(n+5){display:none}.hero-inner{grid-template-columns:1fr}.hero-video-card{max-width:720px;height:270px}.department-list .dept-row{grid-template-columns:250px 75px minmax(0,1fr) 160px}.extracted-gallery{grid-template-columns:repeat(4,1fr)}
 #quality .panel{display:block}.certs{margin-top:18px}
}
@media(max-width:760px){
 header,.nav{height:62px}.brand{width:108px;flex-basis:108px}.brand img{width:100px}.actions .langs{display:none}.actions .cta{padding:9px 10px}.hero{padding-top:62px;min-height:820px}.hero-art{inset:62px 0 0}.hero-inner{padding:65px 0 180px}.hero-copy{padding-left:0}.hero h1{font-size:49px}.hero-sub{font-size:8px}.hero-video-card{height:220px}.stats{grid-template-columns:repeat(2,1fr);bottom:8px}.stat{padding:10px}.stat:nth-child(5){grid-column:1/-1}
 .about-grid{grid-template-columns:1fr;gap:10px}.departments-section{padding-top:38px}.dept-row,.dept-row:nth-child(even){grid-template-columns:88px 1fr;grid-template-rows:95px auto auto;min-height:0;clip-path:none}.dept-photo{grid-column:1/-1;height:95px}.dept-number{grid-column:1;grid-row:2/4;font-size:28px;align-self:start;padding-top:13px}.dept-content{grid-column:2;grid-row:2;padding:12px 12px 5px}.dept-link{grid-column:2;grid-row:3;justify-self:start;margin:0 12px 13px}.dept-content h3{font-size:14px}.dept-content p{font-size:9px}.dept-content .tags{display:none}
 .process{grid-template-columns:1fr 1fr}.extracted-gallery{grid-template-columns:repeat(2,1fr)}.extracted-gallery img{height:105px}.contact-grid{grid-template-columns:1fr}
}


/* === Reference 1.jpg department layout === */
.departments-section{padding:30px 0 42px}
.departments-section .section-head{display:none}
.department-list{gap:7px}
.dept-row{
  min-height:92px;
  display:grid;
  grid-template-columns:310px 92px minmax(260px,1fr) 174px 68px;
  align-items:center;
  position:relative;
  overflow:hidden;
  border:1px solid #21474b;
  background:#030809;
  clip-path:polygon(0 0,97.8% 0,100% 50%,97.8% 100%,0 100%,0 50%);
  transition:transform .25s ease,border-color .25s ease,background .25s ease;
}
.dept-row:nth-child(even){
  clip-path:polygon(2.2% 0,100% 0,100% 50%,97.8% 100%,2.2% 100%,0 50%);
}
.dept-row:hover{transform:translateX(3px);border-color:var(--teal);background:#061012}
.dept-photo{
  height:92px;
  position:relative;
  overflow:hidden;
  grid-column:1;
}
.dept-photo:after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 45%,#030809 100%);
}
.dept-photo img{width:100%;height:100%;object-fit:cover;display:block;filter:contrast(1.12) saturate(.9)}
.dept-number{
  grid-column:2;
  font-size:36px;
  font-style:italic;
  font-weight:900;
  text-align:center;
  color:#f0f6f5;
  line-height:.85;
  position:relative;
  z-index:2;
}
.dept-number:before{
  content:"";display:block;width:36px;height:2px;
  background:var(--red);margin:0 auto 7px;
}
.dept-number span{
  display:block;font-size:7px;font-style:normal;letter-spacing:1.2px;
  color:#a9b9b8;margin-top:6px;
}
.dept-content{
  grid-column:3;
  padding:9px 14px;
  min-width:0;
  position:relative;
  z-index:2;
}
.dept-content h3{font-size:15px;margin:0 0 4px;color:#f4f7f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dept-content p{font-size:9px;line-height:1.35;color:#b6c3c2;margin:0;max-width:620px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dept-content .tags{margin:7px 0 0;gap:6px;display:flex;flex-wrap:nowrap;overflow:hidden}
.dept-content .tags span{font-size:7px;letter-spacing:.55px;color:#00e5d4;white-space:nowrap}
.dept-link{
  grid-column:4;
  justify-self:center;
  position:relative;
  z-index:10;
  pointer-events:auto;
  color:var(--teal);
  font-size:8px;font-weight:900;letter-spacing:1px;
  border:1px solid #1f696b;padding:9px 13px;
  background:#041012;
  white-space:nowrap;
}
.dept-link:hover{color:#fff;border-color:#fff;background:#07191a}
.dept-thumb{
  grid-column:5;
  width:58px;height:58px;
  border:1px solid #1f7778;
  border-radius:50%;
  overflow:hidden;
  justify-self:center;
  position:relative;
  z-index:3;
  background:#020707;
  box-shadow:0 0 0 3px #061113,0 0 16px #0fe0d21c;
}
.dept-thumb img{width:100%;height:100%;object-fit:cover;display:block;filter:contrast(1.1) saturate(.95)}
@media(max-width:1100px){
  .dept-row{grid-template-columns:250px 78px minmax(220px,1fr) 155px 60px}
  .dept-photo{height:92px}
  .dept-thumb{width:52px;height:52px}
}
@media(max-width:760px){
  .departments-section{padding-top:24px}
  .department-list{gap:6px}
  .dept-row,.dept-row:nth-child(even){
    min-height:88px;
    grid-template-columns:118px 58px minmax(0,1fr) 50px;
    grid-template-rows:88px;
    clip-path:polygon(0 0,96% 0,100% 50%,96% 100%,0 100%,0 50%);
  }
  .dept-photo{height:88px;grid-column:1;grid-row:1}
  .dept-number{grid-column:2;grid-row:1;font-size:27px}
  .dept-content{grid-column:3;grid-row:1;padding:8px 7px}
  .dept-content h3{font-size:11px}
  .dept-content p{font-size:7px}
  .dept-content .tags{display:none}
  .dept-link{
    grid-column:4;grid-row:1;
    width:42px;height:42px;padding:0;
    display:grid;place-items:center;
    font-size:0;border-radius:50%;
  }
  .dept-link:after{content:"→";font-size:17px}
  .dept-thumb{display:none}
}


/* === UCME FINAL LAYOUT STABILIZATION === */
html, body { width:100%; min-width:0; }
body { overflow-x:hidden; }
main { display:block; width:100%; }
section { position:relative; width:100%; clear:both; }

/* Keep each major home section inside its own box so hero content cannot overlap the next section. */
.hero {
  position:relative;
  isolation:isolate;
  min-height:760px;
  height:auto;
  overflow:hidden;
  display:block;
}
.hero-inner {
  min-height:620px;
  padding:105px 0 155px;
}
.hero-copy, .hero-video-card { min-width:0; }
.stats { bottom:18px; }

/* Heritage/about area */
.about-band {
  position:relative;
  z-index:5;
  display:block;
  min-height:190px;
  padding:46px 0;
  overflow:hidden;
  clear:both;
}
.about-grid {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:55px;
  align-items:center;
}
.about-grid > div { min-width:0; }
.about-grid h2 {
  position:relative;
  margin:8px 0;
  line-height:1.05;
}
.about-grid p {
  position:relative;
  margin:7px 0;
  line-height:1.8;
}

/* Department section */
.departments-section {
  position:relative;
  z-index:6;
  display:block;
  clear:both;
  overflow:hidden;
}
.department-list { position:relative; width:100%; }
.dept-row {
  position:relative;
  float:none;
  clear:both;
  width:100%;
  box-sizing:border-box;
}
.dept-photo, .dept-number, .dept-content, .dept-link, .dept-thumb {
  position:relative;
}
.dept-photo { z-index:1; }
.dept-content, .dept-number, .dept-link, .dept-thumb { z-index:2; }

/* Prevent any reveal/animation state from leaving content collapsed or misplaced. */
.reveal {
  opacity:1;
  transform:none;
  visibility:visible;
}

/* Stable desktop department layout matching reference 1.jpg */
@media (min-width:1101px) {
  .dept-row {
    min-height:92px;
    grid-template-columns:310px 92px minmax(260px,1fr) 174px 68px;
  }
  .dept-photo { height:92px; }
}

/* Mobile */
@media (max-width:760px) {
  .hero { min-height:820px; }
  .hero-inner { min-height:0; padding:65px 0 180px; }
  .about-band { min-height:0; }
  .about-grid { grid-template-columns:1fr; gap:10px; }
}

/* Correct all home-page asset references to be relative to index.html. */
.dept-photo img, .dept-thumb img { display:block; }

/* === UCME final visual/accessibility fixes === */
.wa img{width:34px!important;height:34px!important;display:block!important;filter:brightness(0) invert(1)!important}
.dept-row{cursor:pointer}
.dept-thumb{display:none!important}
.dept-photo img,.extracted-gallery img,.projects img{filter:contrast(1.06) saturate(1.12) brightness(1.06)!important;image-rendering:auto}
.dept-photo:after{background:linear-gradient(90deg,transparent 58%,#030809b8 100%)!important}
.dept-hero .real-bg{filter:contrast(1.06) saturate(1.1) brightness(1.08)!important}
.dept-hero .real-bg:after{background:linear-gradient(90deg,#020607d8 0%,#020607a0 43%,#02060718 82%,#0206079a 100%),linear-gradient(0deg,#020607 0%,transparent 45%)!important}
.hero{position:relative}
.hero-bg-video{position:absolute;inset:64px 0 0;width:100%;height:calc(100% - 64px);object-fit:cover;display:block;z-index:0}
.hero-video-overlay{position:absolute;inset:64px 0 0;z-index:1;background:linear-gradient(90deg,#020607ed 0%,#020607b8 32%,#02060748 62%,#020607b0 100%),linear-gradient(0deg,#020607e8 0%,transparent 45%,#02060755 100%)}
.hero-inner{z-index:2}
.stats{z-index:4}
.hero-copy>p{font-size:14px!important}
.eyebrow{font-size:11px!important}
.hero-sub{font-size:11px!important}
.dept-number span{font-size:8px!important}
.dept-content p{font-size:10px!important}
.dept-content .tags span{font-size:8px!important}
.dept-link{font-size:9px!important}
.step p{font-size:9px!important}
.stat small{font-size:9px!important}
footer{font-size:10px!important}
.contact-row{font-size:11px!important}
.social{font-size:14px!important}
@media(max-width:760px){
 .hero-bg-video,.hero-video-overlay{inset:62px 0 0;height:calc(100% - 62px)}
 .hero-sub{font-size:9px!important}
 .dept-content p{font-size:9px!important}
 .dept-content .tags span{font-size:8px!important}
 .dept-link{font-size:9px!important}
}


/* === UCME MOBILE LANGUAGE CONTROL — shared by homepage and department pages === */
.mobile-lang-toggle{
  display:none;
  width:36px;height:36px;padding:0;margin:0;
  align-items:center;justify-content:center;
  border:1px solid #2f676b;border-radius:50%;
  background:#041012e8;color:#dff8f6;cursor:pointer;
  box-shadow:0 8px 24px #0008;
}
.mobile-lang-toggle svg{
  width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round;
}
@media(max-width:760px){
  .actions{position:relative;gap:8px!important}
  .mobile-lang-toggle{display:inline-flex}
  .actions .langs{display:none!important}
  .actions.mobile-lang-open .langs{
    display:flex!important;position:absolute;right:0;top:46px;z-index:140;
    gap:2px;padding:7px;background:#03090aef;border:1px solid #2b5e62;
    border-radius:6px;box-shadow:0 15px 35px #000c;
  }
  .actions.mobile-lang-open .langs .lang{padding:7px 9px;font-size:10px}
}
