:root{
  --navy:#0B2C4A;
  --teal:#0B8A8F;
  --gold:#F2B233;
  --ink:#0F172A;
  --muted:#475569;
  --bg:#FFFFFF;
  --card:#F8FAFC;
  --border:#E2E8F0;
  --shadow: 0 10px 25px rgba(2,6,23,.08);
  --radius: 16px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}
a{color:inherit}
img{max-width:100%;display:block}

.container{max-width:var(--max);margin:0 auto;padding:0 20px}
header{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.brand-mark{
  width:40px; height:40px; border-radius:12px;
  border:1px solid var(--border);
  background:linear-gradient(135deg, rgba(11,44,74,.08), rgba(11,138,143,.06));
  display:grid; place-items:center;
  overflow:hidden;
}
.brand-mark img{width:100%; height:100%; object-fit:cover}
.brand-name{font-weight:800; letter-spacing:.2px}
.brand-name small{display:block; font-weight:600; color:var(--muted); letter-spacing:.1px}

.navlinks{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.navlinks a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:700;
}
.navlinks a:hover{background:var(--card); color:var(--ink)}
.navlinks a.active{
  background:rgba(242,178,51,.18);
  color:var(--ink);
  border:1px solid rgba(242,178,51,.35);
}

.hero{
  padding:40px 0 18px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:center;
}
.hero h1{
  font-size:clamp(30px, 4vw, 44px);
  line-height:1.1;
  margin:0 0 10px 0;
}
.hero p{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size:1.05rem;
}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 0}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:999px;
  font-weight:700;
  color:var(--muted);
}
.badge i{
  width:10px;height:10px;border-radius:999px;display:inline-block;
  background:var(--gold);
  box-shadow:0 0 0 3px rgba(242,178,51,.22);
}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.button{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  font-weight:800;
  box-shadow:none;
}
.button.primary{
  background:linear-gradient(135deg, var(--navy), #123E66);
  color:white;
  border-color:rgba(11,44,74,.35);
}
.button.primary:hover{filter:brightness(1.03)}
.button.secondary{
  background:white;
  color:var(--ink);
}
.button.secondary:hover{background:var(--card)}

.logo-card{
  border:1px solid var(--border);
  background:white;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.logo-card img{
  width:100%;
  height:auto;
}
.logo-note{
  margin-top:10px;
  color:var(--muted);
  font-size:.95rem;
}

.section{padding:26px 0}
.section h2{
  margin:0 0 14px 0;
  font-size:clamp(22px, 2.5vw, 30px);
}
.section p.lead{color:var(--muted); margin:0 0 14px 0}

.cards{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.card{
  grid-column: span 6;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
}
.card h3{margin:0 0 8px 0}
.card p{margin:0; color:var(--muted)}
.card ol{margin:10px 0 0 18px; color:var(--muted)}
.card li{margin:10px 0}

.list{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:10px;
}
.pill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:white;
  font-weight:700;
  color:var(--muted);
}

footer{
  margin-top:28px;
  padding:18px 0 30px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:.95rem;
}
.footer-grid{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-grid a{color:var(--muted)}
.footer-grid a:hover{color:var(--ink)}

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.project{
  grid-column: span 12;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:white;
  box-shadow:var(--shadow);
}
.project-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding:16px 16px 0 16px;
}
.project-head h3{margin:0}
.project-head p{margin:4px 0 0; color:var(--muted)}
.project-body{
  padding:14px 16px 16px 16px;
}
.project-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.tile{
  grid-column: span 6;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--card);
  cursor:pointer;
}
.tile img{
  width:100%;
  height:260px;
  object-fit:cover;
}
.tile .cap{
  padding:10px 12px;
  font-weight:800;
}
.tile .cap small{
  display:block;
  font-weight:700;
  color:var(--muted);
  margin-top:2px;
}

/* Modal */
.modal{
  position:fixed; inset:0;
  background:rgba(2,6,23,.75);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}
.modal.open{display:flex}
.modal-content{
  max-width:min(980px, 100%);
  max-height:90vh;
  background:white;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 30px 70px rgba(2,6,23,.35);
}
.modal-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}
.modal-title{font-weight:900}
.modal-close{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:12px;
  padding:8px 10px;
  font-weight:900;
  cursor:pointer;
}
.modal-close:hover{filter:brightness(0.98)}
.modal-img{
  width:100%;
  height:auto;
  max-height:calc(90vh - 52px);
  object-fit:contain;
  background:#0b1220;
}

/* Contact form */
.form{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.field{grid-column: span 6; display:flex; flex-direction:column; gap:6px}
.field.full{grid-column: span 12}
label{font-weight:800}
input, select, textarea{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:white;
  font:inherit;
}
textarea{min-height:140px; resize:vertical}
.hint{color:var(--muted); font-size:.95rem}
.form-actions{grid-column: span 12; display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.notice{
  margin-top:10px;
  color:var(--muted);
  font-size:.95rem;
}

@media (max-width: 860px){
  .hero-grid{grid-template-columns:1fr}
  .card{grid-column: span 12}
  .tile{grid-column: span 12}
  .tile img{height:240px}
  .field{grid-column: span 12}
}
