:root{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --ink:#0b1f33;
  --muted:#51657b;
  --brand:#0e3a5c;
  --brand2:#0b1f33;
  --border:rgba(11,31,51,.12);
  --shadow: 0 12px 30px rgba(11,31,51,.12);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}
a{color:inherit}
img{max-width:100%; height:auto; display:block}

.container{
  width:min(1120px, 92vw);
  margin-inline:auto;
}

/* Header / Nav */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,249,252,.86);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width:220px;
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  box-shadow: 0 10px 20px rgba(11,31,51,.10);
  background:var(--panel);
  padding:6px;
}
.brand-text{display:flex; flex-direction:column}
.brand-name{font-weight:750; letter-spacing:.2px}
.brand-tag{font-size:12px; color:var(--muted)}

.primary-nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.primary-nav a{
  text-decoration:none;
  font-weight:600;
  color:rgba(11,31,51,.82);
  padding:10px 10px;
  border-radius:12px;
  transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover{
  background:rgba(14,58,92,.08);
  color:var(--ink);
}
.primary-nav a.pill{
  background:rgba(14,58,92,.10);
  border:1px solid rgba(14,58,92,.14);
}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:14px;
  padding:10px;
  box-shadow: 0 8px 18px rgba(11,31,51,.08);
}
.nav-toggle-bar{
  display:block;
  width:22px;
  height:2px;
  background:var(--ink);
  margin:5px 0;
  border-radius:2px;
}

/* Hero */
.hero{
  padding:64px 0 26px;
  background: radial-gradient(900px 380px at 20% -10%, rgba(14,58,92,.25), transparent 60%),
              radial-gradient(900px 380px at 90% 0%, rgba(11,31,51,.18), transparent 55%);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:26px;
  align-items:stretch;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing:-.4px;
  line-height:1.12;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 62ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  min-height: 180px;
}
.entity-logo{
  max-height:140px;
  width:auto;
  filter: drop-shadow(0 10px 18px rgba(11,31,51,.15));
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  background: var(--brand2);
  color:white;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(11,31,51,.2);
  box-shadow: 0 12px 22px rgba(11,31,51,.14);
}
.btn:hover{transform: translateY(-1px)}
.btn-ghost{
  background: rgba(255,255,255,.75);
  color: var(--ink);
  border:1px solid var(--border);
  box-shadow: 0 10px 20px rgba(11,31,51,.08);
}

/* Sections */
.section{ padding: 34px 0 54px; }
.section-alt{
  padding: 44px 0 54px;
  background: rgba(14,58,92,.05);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.section-tight{ padding: 22px 0 6px; }
h2{ font-size: 26px; margin: 0 0 10px; letter-spacing:-.2px}
h3{ font-size: 18px; margin: 22px 0 10px}
h4{ font-size: 14px; margin: 0 0 8px; text-transform: uppercase; letter-spacing:.08em; color: rgba(11,31,51,.72)}
p{margin: 0 0 14px}
.muted{color:var(--muted)}

/* Cards / Grid */
.grid{display:grid; gap:16px}
.grid.two{grid-template-columns: repeat(2, minmax(0, 1fr))}
.grid.three{grid-template-columns: repeat(3, minmax(0, 1fr))}
.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(11,31,51,.08);
  padding: 18px;
}
.card.compact{padding:16px}
.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(11,31,51,.86);
}
.bullets li{margin: 6px 0}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top: 12px;
}
.kpi{
  border:1px dashed rgba(11,31,51,.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(14,58,92,.03);
}
.kpi-num{display:block; font-weight:800}
.kpi-label{display:block; font-size:12px; color:var(--muted); margin-top:4px}

/* Portfolio cards */
.portfolio-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.portfolio-card{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  text-decoration:none;
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(11,31,51,.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.portfolio-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11,31,51,.12);
}
.portfolio-card img{
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255,255,255,.85);
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
}
.portfolio-card h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.portfolio-card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.coming-soon{
  width:64px; height:64px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(14,58,92,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.badge{
  font-size: 11px;
  font-weight: 800;
  color: rgba(11,31,51,.78);
  text-transform: uppercase;
  letter-spacing:.06em;
}

/* Post styling */
.post{max-width: 880px}
.post-header{margin-bottom: 10px}
.post-eyebrow{
  display:inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing:.1em;
  text-transform: uppercase;
  color: rgba(14,58,92,.85);
  background: rgba(14,58,92,.10);
  border:1px solid rgba(14,58,92,.18);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.post-meta{color:var(--muted); margin: 6px 0 0}

.note{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border:1px solid rgba(11,31,51,.16);
  background: rgba(11,31,51,.03);
  color: rgba(11,31,51,.86);
}

/* Callout */
.callout{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
}
.callout-actions{flex: 0 0 auto}

/* Footer */
.site-footer{
  background: var(--brand2);
  color: rgba(255,255,255,.92);
  padding: 34px 0;
}
.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.footer-left{display:flex; gap: 12px; align-items:center}
.footer-mark{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 6px;
}
.footer-title{font-weight: 800}
.footer-sub{font-size: 12px; opacity:.85; margin-top: 2px}
.footer-links{
  display:grid;
  gap: 8px;
  align-content:start;
}
.footer-links a{
  text-decoration:none;
  opacity:.9;
}
.footer-links a:hover{opacity:1; text-decoration:underline}
.fineprint{font-size: 12px; opacity:.82; margin-top: 6px}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns: 1fr}
  .hero-card{min-height: 140px}
  .grid.three{grid-template-columns: 1fr}
  .footer-inner{grid-template-columns: 1fr}
  .callout{flex-direction:column}
}

@media (max-width: 860px){
  .nav-toggle{display:inline-flex}
  .primary-nav{
    position:absolute;
    right: 4vw;
    top: 74px;
    width: min(520px, 92vw);
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow);
    display:none;
  }
  .primary-nav.is-open{display:flex}
  .primary-nav a{padding: 12px 12px}
  .portfolio-grid{grid-template-columns: 1fr}
  .grid.two{grid-template-columns: 1fr}
}

@media (prefers-reduced-motion: reduce){
  .btn:hover{transform:none}
  .portfolio-card:hover{transform:none}
}
