/* OISL Consulting — neutral corporate theme */
:root {
  --navy: #0f2a44;
  --navy-2: #173a5c;
  --accent: #1f6fb2;
  --accent-d: #185a92;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --c-iot: #0f8a7e;
  --c-iot-bg: #e7f5f3;
  --c-firmware: #c27c0e;
  --c-firmware-bg: #fbf2e3;
  --c-consulting: #1f6fb2;
  --c-consulting-bg: #e8f1f9;
  --ok: #1e7b4a;
  --err: #b3261e;
  --radius: 4px;
  --header-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 32px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 1em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 16px; letter-spacing: .02em; }
.brand b { font-weight: 600; color: var(--accent); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); font-size: 14px; }
.main-nav a:hover { color: var(--accent); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { padding: 4px 9px; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); }
.lang-switch a:first-child { border-left: 0; }
.lang-switch a.active { background: var(--navy); color: #fff; }

/* Buttons */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: var(--radius);
  font: 500 14px/1.2 var(--font); border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-primary[disabled] { opacity: .6; cursor: default; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.kicker { text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 16px; max-width: 560px; }
.actions { display: flex; gap: 10px; margin: 22px 0 28px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.stats > div { padding: 14px 12px 0 0; }
.stats dt { font-size: 20px; font-weight: 650; color: var(--navy); }
.stats dd { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.hero-media { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--navy); }

/* Sections */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

/* Expertise cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px 18px 18px; }
.card-body p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card-body ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.card-body li { padding: 5px 0 5px 14px; border-top: 1px solid var(--line); position: relative; }
.card-body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; background: var(--field, var(--accent)); }

/* One color per field */
.card-iot { --field: var(--c-iot); --field-bg: var(--c-iot-bg); }
.card-firmware { --field: var(--c-firmware); --field-bg: var(--c-firmware-bg); }
.card-consulting { --field: var(--c-consulting); --field-bg: var(--c-consulting-bg); }
.card { border-top: 3px solid var(--field, var(--accent)); }
.card-body { background: linear-gradient(var(--field-bg, #fff), #fff 64px); }
.card-body h3 { color: var(--field, var(--navy)); }

/* Platforms */
.platforms { display: grid; grid-template-columns: 2fr 1fr; gap: 12px 20px; margin-top: 24px; align-items: start; }
.platforms-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; }
.platforms-head h3 { margin-bottom: 4px; }
.platforms-head p { color: var(--muted); font-size: 14px; margin: 0; }
.platform {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 12px 16px; color: var(--ink);
}
.platform:hover { border-color: var(--accent); color: var(--ink); }
.platform-name { font-weight: 650; color: var(--navy); }
.platform-link { justify-self: end; font-size: 13px; color: var(--accent); }
.platform-desc { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Featured platform (HexaVI) */
.platform-featured { display: block; padding: 14px 18px 16px; }
.platform-featured:hover { border-color: var(--line); border-left-color: var(--accent); }
.platform-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.platform-top .platform-name { font-size: 16px; }
.platform-tagline { font-size: 13.5px; color: var(--accent); font-weight: 500; }
.platform-top .platform-link { margin-left: auto; }
.platform-featured .platform-desc { font-size: 13.5px; margin: 8px 0 0; }

/* Experience + contact */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.lead-sm { color: var(--muted); font-size: 14.5px; }
.timeline { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: s; }
.timeline li {
  display: grid; grid-template-columns: 28px 150px 1fr; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.timeline li::before { counter-increment: s; content: "0" counter(s); color: var(--accent); font-weight: 600; font-size: 12px; }
.timeline strong { color: var(--navy); font-weight: 600; }
.timeline span { color: var(--muted); }
.experience-img { border: 1px solid var(--line); border-radius: var(--radius); }

/* Experience alone (contact form off) */
.split.solo { grid-template-columns: 1fr; }
.split.solo .experience { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.solo .timeline { margin-bottom: 0; }

.contact-form { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: 14px/1.4 var(--font); color: var(--ink);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,178,.12);
}
.contact-form .invalid { border-color: var(--err); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { color: var(--muted); font-size: 12px; }
.form-status { margin: 0; font-size: 13.5px; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d3e0; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: #e3ebf3; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .split.solo .experience { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  h1 { font-size: 25px; }
  .row2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats dt { font-size: 16px; }
  .section-head { flex-direction: column; gap: 4px; }
  .timeline li { grid-template-columns: 26px 1fr; }
  .platforms-head { flex-direction: column; gap: 2px; }
  .timeline span { grid-column: 2; }
  .form-foot { flex-direction: column; align-items: stretch; }
}
