*{box-sizing:border-box}
:root{--navy:#082746;--navy2:#061e36;--gold:#e7b84e;--ink:#10263e;--muted:#657181;--line:#d6dde5}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;font-family:"DM Sans",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.55}
a{color:inherit;text-decoration:none}
.container{width:min(1416px,calc(100% - 7.8%));margin:0 auto}
.topbar{height:76px;background:#fff;overflow:hidden}
.topbar-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0}
.brand img{display:block;width:clamp(300px,34vw,470px);max-width:100%;height:auto;max-height:58px;object-fit:contain;object-position:left center}
.top-links{display:flex;align-items:center;white-space:nowrap}
.top-links a{padding:0 14px;border-right:1px solid #d1d8df;color:#0a2038;font-size:13px;font-weight:600}
.top-links a:last-child{border:0;padding-right:0}
.header{height:50px;background:var(--navy);color:#fff;position:sticky;top:0;z-index:50}
.nav-wrap{height:100%;display:flex;align-items:center;justify-content:center}
.nav{height:100%;width:100%;display:flex;align-items:stretch;justify-content:space-around}
.nav a{display:flex;align-items:center;gap:8px;padding:0 17px;border-bottom:4px solid transparent;font-size:16px;font-weight:600;white-space:nowrap}
.nav a.active{color:var(--gold);border-bottom-color:var(--gold)}
.nav a:hover{color:var(--gold)}
.menu-toggle{display:none}
.hero{height:410px;position:relative;overflow:hidden;background:var(--navy2);color:white}
.hero-bg{position:absolute;inset:0;background-image:url("assets/imsb-hero-building.jpg");background-size:100% auto;background-position:center top;background-repeat:no-repeat}
.hero:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,#062541 0%,#062541 27%,rgba(6,37,65,.94) 36%,rgba(6,37,65,.58) 47%,transparent 68%)}
.hero-angle{position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(119deg,transparent 0 37%,rgba(11,48,79,.75) 37.1% 42%,rgba(230,183,73,.72) 42.1% 45.5%,transparent 45.6%);opacity:.9}
.hero-content{position:relative;z-index:3;padding-top:49px}
.eyebrow{display:flex;align-items:center;gap:17px;font-size:16px;letter-spacing:1.4px;color:#f3d58a}
.eyebrow span{width:48px;height:4px;background:var(--gold)}
.hero h1{font:800 clamp(48px,4vw,60px)/.99 Manrope,Arial,sans-serif;letter-spacing:-1.4px;margin:18px 0 12px;color:#fff}
.hero h1 em{font-style:normal;color:var(--gold)}
.hero p{font-size:17px;line-height:1.45;margin:12px 0 20px;color:#fff}
.hero-actions{margin-top:20px}
.btn{display:inline-flex;align-items:center;gap:22px;padding:12px 25px;border-radius:3px;font-size:15px;font-weight:800}
.btn-gold{background:linear-gradient(100deg,#f6d275,#e4ad3c);color:#12263b;box-shadow:0 2px 5px #0002}
.btn-gold:hover{filter:brightness(1.07)}
.service-ribbon{height:70px;background:#f0f2f5;border-bottom:1px solid #e0e4e9}
.ribbon-grid{height:100%;display:grid;grid-template-columns:repeat(4,1fr);align-items:center}
.ribbon-grid>a{height:42px;display:flex;align-items:center;justify-content:center;gap:18px;border-right:1px solid #aeb9c5}
.ribbon-grid>a:last-child{border:0}
.line-icon{font-size:34px;color:var(--navy);line-height:1}
.ribbon-grid strong{font-size:16px;font-weight:700;color:#142a43;white-space:nowrap}
.section{padding:78px 0}
.about-section{padding:34px 0 31px;background:#fff}
.about-reference-grid{display:grid;grid-template-columns:1.08fr .95fr .95fr 1.05fr;gap:0;align-items:stretch}
.about-intro{padding:0 27px 0 0}
.about-intro h2{font:800 34px/1.1 Manrope,Arial,sans-serif;margin:0 0 13px;color:#092746;letter-spacing:-.6px}
.gold-rule{display:block;width:70px;height:4px;background:var(--gold);margin-bottom:17px}
.about-intro p{font-size:14px;line-height:1.55;color:#111d2a;margin:0 0 20px}
.outline-link{display:inline-flex;align-items:center;gap:17px;padding:8px 15px;border:1.5px solid #ad7b24;border-radius:3px;font-size:14px;font-weight:700;color:#162a40}
.reference-value{padding:0 24px;border-left:1px solid #d4dbe2}
.reference-value-head{display:flex;align-items:center;gap:14px;margin:10px 0 14px}
.round-icon{width:57px;height:57px;border-radius:50%;background:linear-gradient(145deg,#315b7d,#092746);color:#fff;display:grid;place-items:center;font-size:30px;flex:none;box-shadow:0 2px 5px #0927462b}
.reference-value h3{font:800 21px/1.1 Manrope,Arial,sans-serif;margin:0;color:#092746;white-space:nowrap}
.reference-value p,.reference-value li{font-size:13px;line-height:1.5;color:#111d2a}
.reference-value p{margin:10px 0}
.reference-value ul{padding-left:17px;margin:8px 0 0}
.reference-value li{padding:2px 0}
.reference-value li::marker{color:#c28c2c}
.stats-band{background:#082746;color:white;padding:23px 0}
.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);align-items:center}
.stats-grid>div{min-height:55px;display:grid;grid-template-columns:52px 1fr;grid-template-rows:1fr 1fr;align-items:center;padding:0 20px;border-right:1px solid #ffffff40}
.stats-grid>div:last-child{border:0}
.stat-icon{grid-row:1/3;color:#f1c65e;font-size:34px;text-align:center}
.stats-grid span:not(.stat-icon){font-size:12px;color:#fff;line-height:1.2}
.stats-grid b{font-size:15px;color:#fff;line-height:1.2}
.section-heading{margin-bottom:42px}
.section-heading.centered{text-align:center;max-width:760px;margin:0 auto 45px}
.kicker{font-size:12px;font-weight:800;letter-spacing:2px;color:#b47f23}
.section-heading h2,.equipment-layout h2,.contact-section h2{font:800 clamp(34px,4vw,50px)/1.12 Manrope,sans-serif;letter-spacing:-1px;margin:12px 0 16px;color:#092746}
.section-heading h2 em,.equipment-layout h2 em,.contact-section h2 em{color:#c08a28;font-style:normal}
.section-heading p{color:#6b7785}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}
.about-copy p{color:#5e6a78}
.about-copy .lead{font-size:19px;color:#24384d}
.about-image img{width:100%;height:340px;object-fit:cover}
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:55px}
.value-card{border:1px solid #e4e9ef;padding:28px}
.value-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#092746;color:#e5b44b;font-size:24px}
.value-card h3{font:800 18px Manrope;color:#092746;margin:17px 0 10px}
.value-card p,.value-card li{font-size:13px;color:#687482}
.service-ribbon + .about-section + .stats-band + .services-section{padding-top:82px}
.services-section,.projects-section{background:#f6f8fa}
.service-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.service-card{background:#fff;box-shadow:0 10px 30px #0927460c}
.service-card img{width:100%;height:180px;object-fit:cover}
.service-body{padding:22px}
.service-body>span,.project-info>span{font-size:10px;letter-spacing:1.4px;color:#b27b1c;font-weight:800}
.service-body h3{font:800 18px Manrope;color:#092746;margin:9px 0}
.service-body p{font-size:13px;color:#687482;margin:0}
.service-card-text{background:#092746;color:white;padding-top:24px}
.service-card-text .service-body h3{color:white}
.service-card-text .service-body p{color:#d3dfeb}
.service-symbol{font-size:62px;color:#e5b44b;text-align:center;padding:18px}
.credential-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.certificate-card{display:block;text-align:left;padding:0;border:1px solid #dfe6ed;background:#fff;cursor:pointer;color:inherit;box-shadow:0 8px 24px #0927460b}
.certificate-preview{display:block;height:220px;background:#f0f3f6;overflow:hidden;padding:10px}
.certificate-preview img{width:100%;height:100%;object-fit:contain}
.certificate-label{display:block;padding:17px 18px}
.certificate-label b,.certificate-label small,.certificate-label em{display:block}
.certificate-label b{font:800 15px Manrope;color:#092746}
.certificate-label small{font-size:11px;color:#758291;margin:5px 0 10px}
.certificate-label em{font-style:normal;color:#a87317;font-size:11px;font-weight:800}
.notice{background:#fff8e8;border-left:4px solid #d39a2e;padding:15px 18px;margin-top:20px;font-size:12px;color:#65512e}
.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.project-card{display:grid;grid-template-columns:42% 1fr;background:white;box-shadow:0 8px 25px #0927460b}
.project-card img{width:100%;height:100%;min-height:235px;object-fit:cover}
.project-info{padding:24px}
.project-info h3{font:800 19px/1.25 Manrope;color:#092746;margin:9px 0}
.project-info p{font-size:13px;color:#687482}
.project-info>b{display:block;color:#a87317;font-size:17px}
.project-info small{display:block;color:#7e8995;margin-top:6px;font-size:11px}
.project-list{background:white;padding:26px 30px;margin-top:28px}
.project-list h3{font:800 18px Manrope;color:#092746;margin-top:0}
.project-row{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-top:1px solid #e8edf1;font-size:13px;color:#596777}
.project-row b{color:#a87317;white-space:nowrap}
.equipment-section{background:#082746;color:white;padding:90px 0}
.equipment-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}
.equipment-layout h2{color:white}
.equipment-layout p{color:#cbd8e5;max-width:420px}
.equipment-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.equipment-list>div{display:flex;gap:15px;align-items:center;border:1px solid #ffffff24;padding:17px}
.equipment-list b{font:800 28px Manrope;color:#e5b44b;min-width:58px}
.equipment-list span{font-size:13px;font-weight:700}
.equipment-list small{font-size:10px;font-weight:400;color:#b9c8d8}
.leaders-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.director-card{padding:0!important;overflow:hidden;background:#fff;box-shadow:0 10px 32px #09274612;border:1px solid #e3e9ef}
.director-photo{height:310px;background:#edf1f5;display:flex;align-items:center;justify-content:center;overflow:hidden}
.director-photo img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.director-copy{padding:24px}
.director-role{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#b27d21}
.director-copy h3{font:800 19px/1.25 Manrope;color:#092746;margin:9px 0 12px}
.director-copy p{font-size:13px;color:#687482}
.director-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}
.director-tags span{font-size:10px;color:#23415e;background:#f0f4f7;padding:5px 8px}
.contact-section{background:#071f37;color:white;padding:90px 0}
.contact-grid{display:grid;grid-template-columns:1fr .8fr;gap:90px}
.contact-section h2{color:white;font-size:55px}
.contact-section p{color:#c5d2df;max-width:490px}
.contact-detail{display:grid;grid-template-columns:110px 1fr;margin-top:22px;font-size:13px}
.contact-detail b{color:#e5b44b}
.contact-detail span{color:#e2e9ef}
.contact-form{background:white;color:#092746;padding:32px}
.contact-form h3{font:800 24px Manrope;margin:0}
.contact-form>p{color:#778391;font-size:12px}
.contact-form label{display:block;font-size:11px;font-weight:800;margin-top:14px}
.contact-form input,.contact-form textarea{display:block;width:100%;padding:12px;border:1px solid #dbe2e8;margin-top:6px;font:13px "DM Sans";border-radius:2px}
.contact-form button{margin-top:18px}
.footer{background:#041729;color:white}
.footer-main{display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px;padding:48px 0}
.footer-main img{width:320px;max-width:100%;filter:brightness(0) invert(1)}
.footer-main p,.footer-main a,.footer-main span{display:block;color:#b8c6d4;font-size:12px;margin:8px 0}
.footer-main b{display:block;color:#e5b44b;margin-bottom:12px}
.footer-bottom{border-top:1px solid #ffffff1c;padding:16px 0;color:#9eafbf;font-size:10px}
.footer-bottom .container{display:flex;justify-content:space-between;gap:20px}
.certificate-modal{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;padding:24px}
.certificate-modal.visible{display:flex}
.certificate-modal-backdrop{position:absolute;inset:0;background:#031426e8}
.certificate-modal-panel{position:relative;z-index:1;width:min(1000px,96vw);max-height:94vh;background:white;display:flex;flex-direction:column}
.certificate-modal-head{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;background:#082746;color:#fff}
.certificate-modal-head>div{display:flex;gap:18px}
.certificate-modal-head a{font-size:12px;color:#f0c45d}
.certificate-modal-head button{border:0;background:transparent;color:white;font-size:28px;cursor:pointer}
.certificate-modal-body{overflow:auto;text-align:center;padding:16px;background:#e9edf1}
.certificate-modal-body img{max-width:100%;height:auto;max-height:calc(94vh - 90px);object-fit:contain}
body.modal-open{overflow:hidden}
@media(max-width:1100px){.top-links a{padding:0 10px;font-size:12px}.nav a{font-size:13px;padding:0 9px}.about-reference-grid{grid-template-columns:1fr 1fr;row-gap:24px}.reference-value:nth-child(2){border-left:1px solid var(--line)}.reference-value:nth-child(4){grid-column:2}.service-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){
.container{width:calc(100% - 32px)}
.topbar{height:auto;min-height:66px}
.topbar-inner{padding:8px 0;display:block}
.brand img{width:min(310px,76vw);max-height:44px;margin:0 auto 5px;object-position:center}
.top-links{display:flex;justify-content:center;flex-wrap:wrap;gap:3px}
.top-links a{font-size:10px;padding:3px 7px}
.header{height:54px}
.nav-wrap{justify-content:flex-end}
.menu-toggle{display:block;border:0;background:transparent;color:#fff;font-size:26px}
.nav{display:none;position:absolute;top:54px;left:0;right:0;height:auto;background:var(--navy);padding:8px 16px 18px;flex-direction:column}
.nav.open{display:flex}
.nav a{padding:12px;border:0;font-size:14px}
.hero{height:440px}
.hero-bg{background-position:58% center}
.hero:before{background:linear-gradient(90deg,#062541f5 0%,#062541e8 52%,#06254155 100%)}
.hero-angle{opacity:.45}
.hero-content{padding-top:55px}
.hero h1{font-size:47px}
.hero p{font-size:14px}
.service-ribbon{height:auto}
.ribbon-grid{grid-template-columns:1fr 1fr;padding:12px 0;gap:10px}
.ribbon-grid>a{justify-content:flex-start;border:0;gap:9px}
.ribbon-grid strong{font-size:11px;white-space:normal}
.line-icon{font-size:25px}
.about-section{padding:30px 0}
.about-reference-grid{grid-template-columns:1fr;gap:20px}
.about-intro{padding:0}
.about-intro h2{font-size:30px}
.reference-value,.reference-value:nth-child(2),.reference-value:nth-child(4){grid-column:auto;border-left:0;border-top:1px solid var(--line);padding:17px 0 0}
.reference-value-head{margin:0 0 8px}
.reference-value h3{font-size:18px}
.reference-value p,.reference-value li{font-size:12px}
.stats-grid{grid-template-columns:1fr 1fr;gap:12px}
.stats-grid>div{padding:7px;border:0;grid-template-columns:38px 1fr}
.stat-icon{font-size:25px}
.stats-grid b{font-size:11px}
.stats-grid span:not(.stat-icon){font-size:10px}
.section{padding:60px 0}
.about-grid,.equipment-layout,.contact-grid{grid-template-columns:1fr;gap:30px}
.values-grid,.leaders-grid{grid-template-columns:1fr}
.service-cards,.credential-grid,.project-grid{grid-template-columns:1fr}
.project-card{grid-template-columns:1fr}
.project-card img{height:190px;min-height:0}
.equipment-list{grid-template-columns:1fr}
.contact-section h2{font-size:45px}
.footer-main{grid-template-columns:1fr 1fr;gap:25px}
.footer-main>div:first-child{grid-column:span 2}
.footer-bottom .container{display:block}
}

/* ==========================================================
   IMSB MOBILE-FIRST RESPONSIVE REFINEMENTS
   Optimised for iPhone/Android webviews, tablets and desktop.
   ========================================================== */
img, video, iframe { max-width:100%; }
html, body { width:100%; max-width:100%; overflow-x:hidden; }
body { -webkit-text-size-adjust:100%; }
button, input, textarea, select { font:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }

/* Tablet and compact laptop */
@media (max-width: 1024px) {
  .container { width:min(100% - 40px, 960px); }
  .topbar { height:auto; min-height:76px; }
  .topbar-inner { gap:12px; }
  .brand { flex:0 1 44%; min-width:0; }
  .brand img { width:100%; max-width:430px; max-height:52px; }
  .top-links { flex:1 1 auto; justify-content:flex-end; min-width:0; }
  .top-links a { padding:0 8px; font-size:11px; }
  .nav { justify-content:space-between; }
  .nav a { padding:0 8px; font-size:12px; }
  .hero { height:390px; }
  .hero-content { padding-top:44px; }
  .hero h1 { font-size:clamp(42px,5.3vw,56px); }
  .about-reference-grid { grid-template-columns:1fr 1fr; row-gap:24px; }
  .about-intro { padding-right:24px; }
  .reference-value { padding:0 20px; }
  .reference-value:nth-child(4) { grid-column:auto; }
  .stats-grid>div { padding:0 10px; grid-template-columns:42px 1fr; }
  .stats-grid b { font-size:12px; }
  .stats-grid span:not(.stat-icon) { font-size:10px; }
}

/* Phones */
@media (max-width: 720px) {
  html { scroll-padding-top:64px; }
  .container { width:calc(100% - 32px); }

  .topbar { min-height:0; height:auto; padding:8px 0 7px; }
  .topbar-inner { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:0; }
  .brand { display:block; width:100%; min-width:0; }
  .brand img { width:min(290px,78vw); max-height:43px; height:auto; margin:0 auto; object-fit:contain; object-position:center; }
  .top-links { width:100%; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:0; line-height:1.35; }
  .top-links a { font-size:9px; padding:2px 7px; white-space:nowrap; border-right:1px solid #d1d8df; }
  .top-links a:last-child { border:0; }

  .header { height:50px; position:sticky; top:0; z-index:100; }
  .nav-wrap { width:calc(100% - 32px); height:50px; justify-content:flex-end; }
  .menu-toggle { display:inline-flex; align-items:center; justify-content:center; width:44px; height:42px; padding:0; border:1px solid #ffffff55; border-radius:3px; background:transparent; color:#fff; font-size:24px; line-height:1; cursor:pointer; }
  .nav { display:none; position:absolute; top:50px; left:0; right:0; width:100%; height:auto; max-height:calc(100dvh - 110px); overflow-y:auto; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; padding:8px 16px 18px; background:#082746; box-shadow:0 12px 24px #00142645; }
  .nav.open { display:flex; }
  .nav a { display:flex; align-items:center; justify-content:space-between; min-height:46px; width:100%; padding:11px 10px; border:0; border-bottom:1px solid #ffffff20; font-size:14px; white-space:normal; }
  .nav a.active { color:var(--gold); border-bottom:1px solid #ffffff20; }

  .hero { height:auto; min-height:440px; display:flex; align-items:stretch; }
  .hero-bg { background-size:cover; background-position:58% center; }
  .hero:before { background:linear-gradient(90deg,rgba(6,37,65,.97) 0%,rgba(6,37,65,.88) 58%,rgba(6,37,65,.48) 100%); }
  .hero-angle { opacity:.28; }
  .hero-content { width:calc(100% - 40px); padding:56px 0 42px; }
  .eyebrow { gap:10px; font-size:10px; letter-spacing:1px; }
  .eyebrow span { width:32px; height:3px; flex:none; }
  .hero h1 { margin:18px 0 13px; font-size:clamp(39px,10vw,49px); line-height:1.02; letter-spacing:-1px; }
  .hero p { max-width:330px; margin:12px 0 20px; font-size:13px; line-height:1.55; }
  .hero p br { display:none; }
  .btn { min-height:44px; padding:11px 16px; gap:14px; font-size:13px; }

  .service-ribbon { height:auto; }
  .ribbon-grid { grid-template-columns:1fr 1fr; gap:0 12px; padding:12px 0; }
  .ribbon-grid>a { min-width:0; min-height:48px; height:auto; justify-content:flex-start; gap:8px; padding:5px 2px; border:0; }
  .line-icon { flex:0 0 26px; width:26px; text-align:center; font-size:23px; }
  .ribbon-grid strong { min-width:0; white-space:normal; font-size:10px; line-height:1.3; }

  .about-section { padding:30px 0 26px; }
  .about-reference-grid { grid-template-columns:1fr; gap:0; }
  .about-intro { padding:0 0 20px; }
  .about-intro h2 { font-size:29px; }
  .about-intro p { font-size:13px; line-height:1.6; }
  .outline-link { min-height:42px; font-size:12px; }
  .reference-value, .reference-value:nth-child(2), .reference-value:nth-child(4) { grid-column:auto; border-left:0; border-top:1px solid var(--line); padding:17px 0; }
  .reference-value-head { gap:12px; margin:0 0 8px; }
  .round-icon { width:43px; height:43px; font-size:23px; }
  .reference-value h3 { font-size:17px; white-space:normal; }
  .reference-value p, .reference-value li { font-size:12px; line-height:1.55; }
  .reference-value ul { padding-left:18px; }

  .stats-band { padding:16px 0; }
  .stats-grid { grid-template-columns:1fr 1fr; gap:7px 8px; }
  .stats-grid>div { min-width:0; min-height:54px; padding:6px 3px; border:0; grid-template-columns:30px minmax(0,1fr); grid-template-rows:auto auto; column-gap:5px; }
  .stat-icon { font-size:21px; }
  .stats-grid span:not(.stat-icon) { font-size:9px; line-height:1.25; }
  .stats-grid b { font-size:10px; line-height:1.25; overflow-wrap:anywhere; }

  .section { padding:48px 0; }
  .section-heading { margin-bottom:26px; }
  .section-heading.centered { margin-bottom:28px; }
  .section-heading h2, .equipment-layout h2 { font-size:32px; }
  .section-heading p { font-size:13px; }
  .about-grid, .equipment-layout, .contact-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .about-grid { gap:18px; }
  .about-image img { height:220px; }
  .values-grid, .leaders-grid { grid-template-columns:1fr; gap:14px; margin-top:28px; }
  .value-card { padding:20px; }
  .service-cards, .credential-grid, .project-grid { grid-template-columns:1fr; gap:14px; }
  .service-card img { height:190px; }
  .certificate-preview { height:220px; }
  .certificate-label { padding:14px; }
  .notice { font-size:11px; line-height:1.5; }
  .project-card { grid-template-columns:minmax(0,1fr); }
  .project-card img { height:190px; min-height:0; }
  .project-info { padding:18px; }
  .project-info h3 { font-size:17px; }
  .project-row { flex-direction:column; gap:4px; font-size:12px; }
  .project-row b { white-space:normal; }
  .equipment-section { padding:54px 0; }
  .equipment-list { grid-template-columns:1fr; gap:9px; }
  .equipment-list>div { padding:13px; }
  .equipment-list b { min-width:48px; font-size:24px; }
  .director-photo { height:280px; }
  .director-copy { padding:18px; }
  .contact-section { padding:54px 0; }
  .contact-section h2 { font-size:39px; }
  .contact-detail { grid-template-columns:84px minmax(0,1fr); gap:8px; font-size:12px; overflow-wrap:anywhere; }
  .contact-form { padding:20px; }
  .contact-form h3 { font-size:21px; }
  .contact-form input, .contact-form textarea { font-size:16px; } /* prevent iOS input zoom */
  .contact-form button { width:100%; justify-content:center; }

  .footer-main { grid-template-columns:1fr 1fr; gap:20px 14px; padding:32px 0; }
  .footer-main>div:first-child { grid-column:1 / -1; }
  .footer-main img { width:min(280px,78vw); }
  .footer-main b { font-size:12px; }
  .footer-main p, .footer-main a, .footer-main span { font-size:11px; }
  .footer-bottom { padding:13px 0; line-height:1.6; }
  .footer-bottom .container { display:block; }

  .certificate-modal { padding:7px; }
  .certificate-modal-panel { width:100%; max-height:96dvh; }
  .certificate-modal-head { gap:8px; padding:10px 12px; }
  .certificate-modal-head strong { font-size:12px; }
  .certificate-modal-head>div { gap:10px; align-items:center; }
  .certificate-modal-head a { font-size:10px; white-space:nowrap; }
  .certificate-modal-head button { font-size:26px; }
  .certificate-modal-body { padding:8px; }
  .certificate-modal-body img { max-height:calc(96dvh - 75px); }
}

/* Small phones (e.g. iPhone SE / compact Android) */
@media (max-width: 390px) {
  .container { width:calc(100% - 26px); }
  .brand img { width:min(260px,78vw); max-height:39px; }
  .top-links a { font-size:8px; padding:2px 5px; }
  .hero { min-height:420px; }
  .hero-content { width:calc(100% - 30px); padding-top:48px; }
  .hero h1 { font-size:39px; }
  .hero p { font-size:12px; }
  .ribbon-grid { column-gap:7px; }
  .ribbon-grid strong { font-size:9px; }
  .stats-grid>div { grid-template-columns:25px minmax(0,1fr); }
  .stats-grid b { font-size:9px; }
  .footer-main { gap:18px 10px; }
}

/* Landscape phones: keep the hero readable and avoid excessive height. */
@media (max-width: 900px) and (orientation:landscape) {
  .hero { min-height:340px; height:auto; }
  .hero-content { padding-top:28px; padding-bottom:28px; }
  .hero h1 { font-size:38px; }
}

/* Transparent director cut-outs — keep the supplied original faces */
.director-card{background:linear-gradient(180deg,#f7f9fb 0%,#ffffff 72%);border:1px solid #e2e8ef}
.director-photo{height:330px;background:linear-gradient(180deg,#eef3f7 0%,#ffffff 100%);padding:12px 14px 0;align-items:flex-end}
.director-photo img{width:100%;height:100%;object-fit:contain;object-position:center bottom;background:transparent}
@media(max-width:720px){.director-photo{height:340px}}

/* FINAL BRAND FIX — full company name in header and matching footer logo */
.topbar{height:82px;overflow:visible}
.topbar-inner{min-height:82px;gap:20px}
.brand{display:flex;align-items:center;flex:0 1 650px;min-width:0}
.brand img{width:100%;max-width:650px;max-height:72px;height:auto;object-fit:contain;object-position:left center;display:block}
.top-links{flex:0 0 auto}
.top-links a{font-size:13px;padding:0 12px}
.footer-main .footer-logo{display:block;width:min(520px,100%);max-width:100%;height:auto;filter:none!important;object-fit:contain;object-position:left center}

@media(max-width:1100px){
 .brand{flex:1 1 48%}
 .brand img{max-width:520px}
 .top-links a{font-size:11px;padding:0 8px}
 
}
@media(max-width:720px){
 .topbar{height:auto;min-height:76px}
 .topbar-inner{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:8px 0}
 .brand{flex:none;width:100%;justify-content:center}
 .brand img{width:min(470px,94vw);max-height:52px;object-position:center}
 .top-links{width:100%;justify-content:center;flex-wrap:wrap}
 .top-links a{font-size:10px;padding:2px 7px}
 
 .hero{position:relative}
 .hero-bg{background-size:auto 100%;background-position:right top;background-repeat:no-repeat}
 .footer-main .footer-logo{width:min(440px,100%);margin:0 auto}
}
@media(max-width:420px){
 .brand img{width:96vw;max-height:46px}
 
}

/* Authentic source director portraits — no AI-generated replacements */
.director-photo{background:linear-gradient(180deg,#f4f7fa 0%,#ffffff 100%);height:340px;padding:12px 16px 0;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.director-photo img{display:block;width:100%;height:100%;max-width:340px;object-fit:contain;object-position:center bottom;background:transparent}
@media(max-width:720px){.director-photo{height:360px}.director-photo img{max-width:320px}}

/* Mohamad Niza — user-supplied original portrait with white studio background removed */
.director-photo img[src*="mohamad-niza-bin-ismail"]{
  object-fit:contain;
  object-position:center bottom;
  background:transparent;
}

/* Mohamad Niza updated portrait — supplied tuxedo photograph */
.director-photo img[src*="mohamad-niza-bin-ismail"]{
  width:100%;height:100%;object-fit:contain;object-position:center bottom;
  background:transparent;
}

/* Uniform director portraits: transparent background, original source dimensions, no cropping */
.director-photo{
  height:380px;
  padding:12px 14px 0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  background:linear-gradient(180deg,#f4f7fa 0%,#ffffff 100%);
}
.director-photo img{
  display:block;
  width:auto;
  height:100%;
  max-width:100%;
  object-fit:contain;
  object-position:center bottom;
  background:transparent;
  margin:0 auto;
}
.director-card{display:flex;flex-direction:column;height:100%}
.director-copy{flex:1}
@media(max-width:720px){
  .director-photo{height:390px;padding:12px 14px 0}
  .director-photo img{height:100%;max-width:100%;width:auto}
}

/* All director image files share the same 900 x 1200 transparent canvas */
.director-photo{
  height:380px;
  min-height:380px;
  padding:10px 14px 0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  background:linear-gradient(180deg,#f4f7fa 0%,#ffffff 100%);
}
.director-photo img{
  display:block;
  width:100%;
  height:100%;
  max-width:300px;
  object-fit:contain;
  object-position:center bottom;
  margin:0 auto;
  background:transparent;
}
@media(max-width:720px){
  .director-photo{height:390px;min-height:390px}
  .director-photo img{width:100%;height:100%;max-width:310px}
}

/* Certificate viewer supports both scanned image certificates and original PDF certificates */
.certificate-modal-body{padding:0;overflow:hidden;height:min(82vh,900px);background:#e9edf1}
.certificate-modal-body iframe{display:block;width:100%;height:100%;min-height:560px;border:0;background:#fff}
@media(max-width:720px){
  .certificate-modal{padding:8px}
  .certificate-modal-panel{width:100%;max-height:96vh}
  .certificate-modal-body{height:82vh}
  .certificate-modal-body iframe{min-height:70vh}
}

/* FINAL FIX: identical director portrait frame and image sizing for every profile */
.director-grid{
  align-items:stretch;
}
.director-grid .director-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.director-grid .director-photo{
  width:100%;
  height:380px !important;
  min-height:380px !important;
  max-height:380px !important;
  box-sizing:border-box;
  padding:10px 14px 0 !important;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  background:linear-gradient(180deg,#f4f7fa 0%,#ffffff 100%);
}
.director-grid .director-photo img{
  display:block;
  width:300px !important;
  height:370px !important;
  max-width:100% !important;
  max-height:370px !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  margin:0 auto !important;
  background:transparent !important;
}
.director-grid .director-copy{
  flex:1 1 auto;
}
@media(max-width:720px){
  .director-grid .director-photo{
    height:380px !important;
    min-height:380px !important;
    max-height:380px !important;
  }
  .director-grid .director-photo img{
    width:300px !important;
    height:370px !important;
    max-width:100% !important;
    max-height:370px !important;
  }
}

/* FINAL leadership portrait layout: identical frame and responsive image fit */
.leaders-grid .director-card{display:flex;flex-direction:column;height:100%;min-width:0}
.leaders-grid .director-photo{
  height:380px;min-height:380px;max-height:380px;
  width:100%;box-sizing:border-box;padding:10px 14px 0;
  display:flex;align-items:flex-end;justify-content:center;
  overflow:hidden;background:linear-gradient(180deg,#f4f7fa 0%,#fff 100%);
}
.leaders-grid .director-photo img{
  display:block;width:300px;height:370px;max-width:100%;max-height:370px;
  object-fit:contain;object-position:center bottom;margin:0 auto;
  background:transparent;
}
.leaders-grid .director-copy{flex:1 1 auto}
@media(max-width:720px){
  .leaders-grid{grid-template-columns:minmax(0,1fr)}
  .leaders-grid .director-photo{height:380px;min-height:380px;max-height:380px}
  .leaders-grid .director-photo img{width:300px;height:370px;max-width:100%;max-height:370px}
}

/* FINAL OVERRIDE — identical director photo dimensions on desktop, tablet and mobile */
.leaders-grid .director-card{display:flex;flex-direction:column;height:100%;min-width:0}
.leaders-grid .director-photo{
  display:flex;width:100%;height:390px;min-height:390px;max-height:390px;
  box-sizing:border-box;padding:10px 12px 0;overflow:hidden;
  align-items:flex-end;justify-content:center;
  background:linear-gradient(180deg,#f4f7fa 0%,#fff 100%);
}
.leaders-grid .director-photo img{
  display:block!important;width:300px!important;height:380px!important;
  min-width:300px;max-width:100%!important;max-height:380px!important;
  object-fit:contain!important;object-position:center bottom!important;
  margin:0 auto!important;background:transparent!important;
}
.leaders-grid .director-copy{flex:1 1 auto}
@media(max-width:900px){
  .leaders-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .leaders-grid{grid-template-columns:minmax(0,1fr)}
  .leaders-grid .director-photo{height:390px;min-height:390px;max-height:390px}
  .leaders-grid .director-photo img{
    width:300px!important;height:380px!important;min-width:0;
    max-width:100%!important;max-height:380px!important;
  }
}

/* Managing Director: use the supplied original photograph, waist-up, in the same director frame */
.leaders-grid .director-photo,
.leaders-grid .director-photo img {
  background-color:#fff;
}


/* Interactive project gallery */
.project-gallery-grid{align-items:stretch}
.project-gallery-card{display:block;text-align:left;padding:0;border:1px solid #d9e1e9;background:#fff;border-radius:5px;overflow:hidden;cursor:pointer;color:inherit;font:inherit;transition:transform .2s ease,box-shadow .2s ease}
.project-gallery-card:hover,.project-gallery-card:focus-visible{transform:translateY(-4px);box-shadow:0 14px 30px rgba(8,39,70,.14);outline:2px solid #d8a332;outline-offset:2px}
.project-photo{height:230px;display:block;position:relative;overflow:hidden;background:#e8edf2}
.project-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.project-gallery-card:hover .project-photo img{transform:scale(1.04)}
.album-tag{position:absolute;left:16px;bottom:14px;background:#e7b84e;color:#082746;padding:10px 14px;font-size:11px;font-weight:800;letter-spacing:.04em}
.project-gallery-card .project-info{display:flex;flex-direction:column;gap:8px;padding:18px 20px 20px}
.project-gallery-card .project-info>span:first-child{font-size:10px;letter-spacing:.1em;color:#b27b18;font-weight:800}
.project-gallery-card .project-info strong{font-size:17px;line-height:1.35;color:#082746}
.project-gallery-card .project-info>span:not(:first-child){font-size:13px;color:#65758a}
.project-gallery-card .project-info b{font-size:16px;color:#b27b18}
.project-gallery-card .project-info small{font-size:11px;color:#65758a}
.project-lightbox{display:none;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;padding:22px}
.project-lightbox.is-open{display:flex}
.project-lightbox-shade{position:absolute;inset:0;background:rgba(2,16,30,.88)}
.project-lightbox-box{position:relative;width:min(100%,1000px);max-height:94vh;overflow:auto;background:#fff;border-radius:8px;box-shadow:0 20px 70px rgba(0,0,0,.4)}
.project-lightbox-header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;gap:20px}
.project-lightbox-header small{font-size:10px;color:#b27b18;font-weight:800;letter-spacing:.1em}
.project-lightbox-header h3{margin:5px 0 0;color:#082746;font-size:20px}
.project-lightbox-header button{border:0;background:#edf1f5;color:#082746;border-radius:50%;width:38px;height:38px;font-size:26px;cursor:pointer}
.project-lightbox-image{background:#071d32;display:flex;align-items:center;justify-content:center;min-height:220px}
.project-lightbox-image img{display:block;max-width:100%;max-height:65vh;object-fit:contain}
.project-lightbox-caption{padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.project-lightbox-caption p{margin:0;color:#526477;font-size:13px}
.project-lightbox-caption div{display:flex;gap:8px;flex-shrink:0}
.project-lightbox-caption button{border:1px solid #d5dee7;background:#fff;color:#082746;padding:9px 12px;border-radius:3px;cursor:pointer;font-weight:700}
body.album-open{overflow:hidden}
@media(max-width:700px){.project-photo{height:190px}.project-lightbox{padding:10px}.project-lightbox-caption{display:block}.project-lightbox-caption div{margin-top:12px}.project-lightbox-header h3{font-size:16px}}
