:root{--r1:#E2000F;--r2:#ED2100;--r3:#FA003F;--r4:#FF746C;--r5:#FF0000;--grey:#F2F2F2;--ink:#2b2b2b}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:70px}
body{font-family:Verdana,Geneva,Tahoma,sans-serif;color:var(--ink);background:#fff;line-height:1.6}
img{max-width:100%;display:block}
section{padding:80px 6%}
h1,h2,h3,h4{line-height:1.2;margin-bottom:14px}
p{margin-bottom:12px}
i.mark{display:block;width:48px;height:5px;background:var(--r3);margin-bottom:18px;font-style:normal}
/* navigation */
nav{position:sticky;top:0;z-index:100;display:flex;justify-content:space-between;align-items:center;background:var(--grey);padding:8px 6%;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.logo img{height:46px;width:auto}
.navbar{display:flex;gap:6px;flex-wrap:wrap}
.navbar a{background:var(--grey);font-size:.9rem;color:var(--ink);text-decoration:none;padding:8px 12px;border-bottom:3px solid transparent}
.navbar a:hover{color:var(--r1);border-color:var(--r1)}
/* home */
#home{position:relative;min-height:92vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#fff;overflow:hidden}
#home video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
#home::before{content:"";position:absolute;inset:0;background:rgba(20,0,0,.55);z-index:-1}
#home h1{font-size:clamp(2.4rem,7vw,5rem);letter-spacing:.06em}
#home h2{font-size:clamp(1rem,2.6vw,1.6rem);font-weight:400;letter-spacing:.18em;color:var(--grey)}
#home p{max-width:640px;font-size:1.05rem}
#home p.tag{background:var(--r1);display:inline-block;padding:10px 24px;margin-top:10px}
/* about */
#about{background:var(--grey);text-align:left;width:100%}
#about p{max-width:900px}
/* services */
.cards{display:flex;flex-wrap:wrap;gap:24px;margin-top:30px}
.cards>div{flex:1 1 calc(25% - 24px);min-width:220px;max-width:calc(25% - 18px);border:1px solid #ddd;border-top:4px solid var(--r1);border-radius:6px;padding:18px;background:#fff;transition:border-color .2s}
.cards>div:hover{border-color:var(--r5)}
.cards img{width:100%;height:140px;object-fit:cover;border-radius:4px;margin-bottom:14px}
.cards h3{font-size:1.05rem;color:var(--r1)}
.cards p{font-size:.88rem}
/* team */
#team{background:var(--grey);text-align:center}
.people{display:flex;flex-wrap:wrap;justify-content:center;gap:40px;margin-top:30px}
.people img{width:180px;height:180px;border-radius:50%;object-fit:cover;border:4px solid var(--r1);margin:0 auto 14px}
.people h4{margin-bottom:2px}
.people p{color:var(--r3)}
/* inquire */
#inquire{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px;text-align:left}
.grow-tech,.send-tech{flex:1 1 320px}
.grow-tech{background:var(--r1);color:#fff;padding:40px;border-radius:8px}
form{display:flex;flex-direction:column;gap:14px}
form input,form textarea{font-family:inherit;font-size:.95rem;padding:14px;border:1px solid #ccc;border-radius:6px;background:var(--grey);width:100%}
form input:focus,form textarea:focus{outline:2px solid var(--r3);background:#fff}
form textarea{min-height:130px;resize:vertical}
form button{font-family:inherit;background:var(--r3);color:#fff;border:0;padding:14px;font-weight:bold;border-radius:6px;cursor:pointer;letter-spacing:.05em}
form button:hover{background:var(--r1)}
.ok{background:#e8f6ea;border:1px solid #6bbf78;padding:12px;border-radius:6px;margin-bottom:14px}
/* programs */
#programs{background:var(--grey)}
.events{display:flex;flex-wrap:wrap;gap:24px;margin-top:30px}
.ev{flex:1 1 calc(25% - 24px);min-width:220px;position:relative;aspect-ratio:4/3;border:3px solid transparent;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:18px;color:#fff;background-size:cover;transition:border-color .2s}
.ev:hover{border-color:red}
.ev::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 30%,rgba(0,0,0,.8))}
.ev>*{position:relative;word-wrap:break-word;overflow-wrap:anywhere;margin-bottom:4px}
.ev h2{font-size:1.2rem}
.ev p{font-size:.85rem;margin:0}
/* resources */
.carousel{position:relative;margin:30px auto 0;max-width:1140px}
.track{display:flex;justify-content:safe center;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
.track::-webkit-scrollbar{display:none}
.res{flex:0 0 260px;scroll-snap-align:start;border:1px solid #ddd;border-radius:8px;overflow:hidden;background:#fff}
.res img{width:100%;height:182px;object-fit:cover}
.res div{padding:14px;height:30%}
.res h4{color:var(--r1);font-size:.9rem;margin-bottom:6px}
.res p{font-size:.85rem;margin-bottom:4px}
.nb{position:absolute;top:35%;width:42px;height:42px;border:0;border-radius:50%;background:var(--r1);color:#fff;font-size:1.3rem;cursor:pointer;z-index:2}
.nb:hover{background:var(--r5)}.prev{left:-14px}.next{right:-14px}
/* contact */
#contact{background:var(--grey);display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between}
#contact>div{flex:1 1 260px}
.binoctal-tech img{max-width:200px;margin:12px 0}
.row{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.row i{font-style:normal;background:var(--grey);color:var(--r1);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:.1.2rem;flex:none}
.row p{margin:0}
.social-row{display:flex;flex-direction:row;gap:14px;flex-wrap:nowrap}
.social-row a{display:inline-block;line-height:0}
.social-row img{width:42px;height:42px;transition:transform .2s}
.social-row a:hover img{transform:translateY(-3px)}
/* footer */
footer{background:var(--ink);color:#fff;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:22px 6%;font-size:.8rem}
footer p{margin:0}
footer a{display:inline;color:#fff;margin-left:16px;text-decoration:none}
footer a:hover{color:var(--r4)}
@media(max-width:1000px){.cards>div{flex-basis:calc(50% - 24px);max-width:none}}
@media(max-width:800px){nav{flex-direction:column;gap:6px}.navbar{justify-content:center}section{padding:56px 6%}.prev{left:0}.next{right:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
