:root {
  --ink: #0E1B2A;
  --ink-soft: #15293f;
  --paper: #F5F7FA;
  --paper-2: #E9EEF5;
  --volt: #1F6FEB;
  --volt-deep: #134a9e;
  --amber: #F2A900;
  --copper: #C8743A;
  --slate: #5A6B7B;
  --line: #D3DCE6;
  --white: #ffffff;

  --maxw: 1140px;
  --r: 4px;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--volt-deep); text-decoration: none; }
a:hover { color: var(--amber); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cdd7e3;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #cdd7e3; }
.topbar a:hover { color: var(--amber); }
.langs a { margin-left: 14px; }
.langs a.active { color: var(--amber); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand .brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1;
}
.brand .brand-text small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--slate);
  margin-top: 3px;
  text-transform: uppercase;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r);
  text-transform: uppercase;
}
.nav a:hover { background: var(--paper-2); color: var(--volt-deep); }
.nav a.active { background: var(--ink); color: #fff; }
.nav .has-sub { position: relative; }
.nav .has-sub > .sub {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--amber);
  border-radius: 0 0 var(--r) var(--r);
  min-width: 220px;
  display: none;
  box-shadow: 0 12px 30px rgba(14,27,42,.12);
  padding: 6px 0;
}
.nav .has-sub:hover > .sub,
.nav .has-sub:focus-within > .sub { display: block; }
.nav .sub a {
  display: block;
  text-transform: none;
  border-radius: 0;
  padding: 9px 16px;
}

.nav-toggle {
  display: none;
  background: var(--ink);
  color: #fff;
  border: 0;
  font-family: var(--mono);
  padding: 10px 14px;
  border-radius: var(--r);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-bottom: 4px solid var(--amber);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero .container { position: relative; padding-top: 84px; padding-bottom: 84px; }
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: #c9d4e0;
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .founded {
  margin-top: 38px;
  font-family: var(--mono);
  font-size: 13px;
  color: #8ea1b4;
  letter-spacing: .04em;
}

/* animated current along the bottom edge */
.hero .current {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--volt), var(--amber), transparent);
  background-size: 200% 100%;
  animation: flow 3.2s linear infinite;
}
@keyframes flow { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffc23a; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-line { background: var(--volt); color: #fff; }
.btn-line:hover { background: var(--volt-deep); color: #fff; }

/* ---------- Section scaffolding ---------- */
.section { padding: 72px 0; position: relative; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 48px 0; }

.callout-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--volt-deep);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.callout-label::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
}
.callout-index { color: var(--copper); font-weight: 700; }

h2.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 18px;
  max-width: 22ch;
}
.section p.body { max-width: 64ch; color: #2c3a49; }
.section.alt p.body { color: #2c3a49; }

/* ---------- Service list (the signature: drawing callouts) ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.service {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service:nth-child(2n) { border-right: 0; }
.service .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
  letter-spacing: .1em;
}
.service h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 6px 0 8px;
  font-weight: 600;
}
.service p { margin: 0; font-size: 15px; color: var(--slate); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  border-left: 3px solid var(--amber);
  padding-left: 18px;
}
.stat .big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  color: var(--volt-deep);
}
.stat .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--slate); text-transform: uppercase; margin-top: 8px; }

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.project:hover { border-color: var(--volt); transform: translateY(-3px); }
.project .meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--copper); text-transform: uppercase; }
.project h3 { font-family: var(--display); font-size: 18px; margin: 8px 0 10px; font-weight: 600; }
.project p { font-size: 14.5px; color: var(--slate); margin: 0; }

/* ---------- Detail lists ---------- */
.detail-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 40px; margin: 18px 0 0; padding: 0; list-style: none; }
.detail-list li { position: relative; padding-left: 22px; font-size: 15px; color: #2c3a49; }
.detail-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 10px; height: 2px; background: var(--volt);
}
.subhead { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 26px 0 6px; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); min-width: 86px; }
.contact-row .v { font-size: 16px; }
.assoc-logos { display: flex; gap: 18px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.assoc-logos img { height: 44px; width: auto; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; border-bottom: 4px solid var(--amber); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.page-hero .container { position: relative; padding: 56px 24px; }
.page-hero .crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--amber); text-transform: uppercase; margin: 0 0 12px; }
.page-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 5vw, 48px); margin: 0; letter-spacing: -.02em; }
.page-hero p { color: #c9d4e0; max-width: 60ch; margin: 14px 0 0; }

/* ---------- Licenses / certificates ---------- */
.license {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--volt);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.license .code { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--volt-deep); }
.license .date { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-left: 10px; }
.license p { margin: 8px 0 0; color: #2c3a49; font-size: 15px; }
.iso-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; font-family: var(--mono);
  padding: 12px 18px; border-radius: var(--r); font-size: 14px; letter-spacing: .04em;
}

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--volt-deep); color: #fff; }
.cta-strip .container { padding: 44px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { font-family: var(--display); font-size: clamp(22px,3.5vw,32px); margin: 0; font-weight: 700; }
.cta-strip p { margin: 6px 0 0; color: #cfe0fb; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb0c2; border-top: 4px solid var(--amber); }
.site-footer .container { padding: 48px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.site-footer a { color: #cdd7e3; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand-text { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 12px; color: #6f8298; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- LED / schematic accent for home intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(14,27,42,.12); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; border-bottom: 2px solid var(--ink); padding: 8px 16px 16px; gap: 2px; box-shadow: 0 14px 30px rgba(14,27,42,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .sub { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--amber); margin-left: 8px; min-width: 0; }
  .nav-toggle { display: inline-block; }
  .services, .stats, .projects-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .detail-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hero .current { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .project:hover { transform: none; }
}
