@font-face {
  font-family: 'Manrope';
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/manrope.woff2') format('woff2');
}

:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #1f2430;
  --muted: #545b6e;
  --muted-2: #656c80;
  --accent: #0d6bd0;
  --accent-deep: #0a54a8;
  --accent-soft: #eaf2fc;
  --accent-soft-2: #dcebfc;
  --line: #e3e7ef;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 20px;
  --radius-sm: 10px;

  /* Hero-only dark treatment -- deep navy, restrained blue/cyan, technical grid */
  --hero-bg: #0a1526;
  --hero-ink: #eef3fa;
  --hero-muted: #a9b8cc;
  --hero-accent: #4fb2f0;
  --hero-accent-2: #63e0d4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible { outline-color: var(--hero-accent-2); }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,251,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: 1120px; margin: 0 auto;
}
.nav img { height: 48px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 11px 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 4px 14px rgba(13,107,208,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,107,208,0.3); }

#menu-check { display: none; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; width: 26px; padding: 4px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-panel { display: none; }

/* Hero -- deep navy systems treatment: technical grid backdrop, restrained
   blue/cyan accents, a real operational system map (not a repeat of the
   service list). Text left, map right. */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  padding: 64px 28px 56px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at 78% 45%, rgba(79,178,240,0.14), transparent 65%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.hero-inner { text-align: left; }
.eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--hero-accent); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 18px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--hero-ink); margin-bottom: 18px; text-wrap: balance;
}
.hero h1 span { color: var(--hero-accent); }
.hero p.lead { font-size: 18px; color: var(--hero-muted); max-width: 480px; margin: 0 0 26px; }
.hero-trust {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--hero-accent-2);
  margin-bottom: 30px;
}
.hero-trust::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hero-accent-2); flex-shrink: 0; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.hero-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--hero-muted); font-weight: 700; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-link:hover { color: var(--hero-ink); border-color: var(--hero-accent); }
.hero-link span { display: inline-block; transition: transform .15s ease; }
.hero-link:hover span { transform: translateX(3px); }

/* Service landing pages -- same dark systems treatment as the homepage
   hero, single-column and text-only (no diagram -- one service per page
   doesn't need a system map). */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  padding: 64px 28px 56px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.16;
  letter-spacing: -0.02em; color: var(--hero-ink); margin-bottom: 18px; text-wrap: balance;
}
.page-hero p.lead { font-size: 18px; color: var(--hero-muted); max-width: 600px; margin: 0 auto 30px; }

.page-content { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.page-content p { color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.page-content ul { list-style: none; margin: 24px 0; }
.page-content li {
  color: var(--ink); font-size: 16px; padding: 8px 0 8px 26px; position: relative;
}
.page-content li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 14px; height: 2px; background: var(--accent);
}
.page-content h2 {
  font-size: 24px; font-weight: 800; color: var(--ink); margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.page-content .work-card { margin: 8px 0 8px; }
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none;
  margin-bottom: 20px;
}
.page-back:hover { color: var(--accent); }

/* Operational system map -- Customer / Workflow / Devices feeding Core Systems */
.hero-diagram { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.diagram-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagram-svg line.connector { stroke: var(--hero-accent); stroke-width: 0.6; opacity: 0.55; }
.diagram-svg line.connector--soft { opacity: 0.22; stroke-dasharray: 2 2; }
.diagram-node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(13,25,46,0.92); border: 1.5px solid rgba(79,178,240,0.5);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--hero-ink);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.diagram-node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hero-accent-2); flex-shrink: 0; }
.diagram-node--core {
  background: var(--hero-accent); border-color: var(--hero-accent); color: #04101f;
  padding: 13px 24px; font-size: 13.5px; font-weight: 800;
  top: 50%; left: 68%;
}
.diagram-node--core::before { background: #04101f; }
.diagram-node--customer { top: 16%; left: 22%; }
.diagram-node--workflow { top: 54%; left: 13%; }
.diagram-node--devices  { top: 88%; left: 40%; }

.btn-primary {
  background: var(--accent); color: #fff;
  padding: 15px 32px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 8px 22px rgba(13,107,208,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13,107,208,0.32); }

/* Section shell */
section { padding: 60px 28px; }
.section-head { max-width: 640px; margin: 0 auto 44px; }
.section-head.center { text-align: center; }
.eyebrow-dark {
  color: var(--accent-deep); font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
  margin-bottom: 12px; display: block;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em; text-wrap: balance;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* What We Do -- compact 2x2 card system, one distinct tint per card,
   one cohesive card shape/type scale */
.service-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 980px; margin: 0 auto;
}
.service-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px;
  display: flex; flex-direction: column;
}
.card-number {
  position: absolute; top: 24px; right: 26px;
  font-size: 12px; font-weight: 800; color: var(--muted-2); letter-spacing: .04em;
}
.card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.service-card:nth-child(1) .card-icon { background: #eaf2fc; }
.service-card:nth-child(2) .card-icon { background: #e7effa; }
.service-card:nth-child(3) .card-icon { background: #e4f2f6; }
.service-card:nth-child(4) .card-icon { background: #eceef9; }
.service-card h3 {
  font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 10px;
  letter-spacing: -0.01em; text-wrap: balance;
}
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.service-card ul { list-style: none; margin-top: auto; padding-top: 6px; }
.service-card li {
  color: var(--ink); font-size: 13.5px; padding: 5px 0 5px 22px; position: relative;
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 2px; background: var(--accent);
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-deep); font-weight: 700; font-size: 13.5px; text-decoration: none;
  margin-top: 18px;
}
.card-link:hover { text-decoration: underline; }

/* Selected Work -- representative engagements, clearly labeled, no fabricated
   names/testimonials/metrics */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1080px; margin: 0 auto;
}
.work-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px;
}
.work-tag {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px;
}
.work-card h3 {
  font-size: 17.5px; font-weight: 800; color: var(--ink); margin-bottom: 16px;
  line-height: 1.3; text-wrap: balance;
}
.work-card dl { display: flex; flex-direction: column; gap: 12px; }
.work-card dt {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted-2); margin-bottom: 3px;
}
.work-card dd { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Contextual CTA repeat -- slim, distinct from the full closing cta-band */
.inline-cta {
  background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 28px; text-align: center;
}
.inline-cta p { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.inline-cta .btn-primary { padding: 12px 26px; font-size: 14.5px; box-shadow: none; }

/* How We Work -- 4-step rail with a visual progression, not equal generic columns */
.process { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-rail {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  max-width: 1080px; margin: 0 auto; text-align: center;
}
.process-rail::before {
  content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--accent));
  z-index: 0;
}
.rail-step { position: relative; z-index: 1; }
.rail-node {
  width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%;
  border: 2px solid var(--accent); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--accent-deep);
}
.rail-step:nth-child(2) .rail-node { background: var(--accent-soft); }
.rail-step:nth-child(3) .rail-node { background: var(--accent-soft-2); }
.rail-step:nth-child(4) .rail-node { background: var(--accent); border-color: var(--accent); color: #fff; }
.rail-step h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.rail-step p { color: var(--muted); font-size: 14.5px; }
.rail-deliverable {
  display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); text-align: left;
}
.rail-deliverable strong { color: var(--ink); }

/* Principles -- pull-quote + short value notes, calm accent wash */
.principles { background: var(--accent-soft); }
.principles-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start;
  max-width: 1000px; margin: 0 auto;
}
.principles .eyebrow-dark { grid-column: 1 / -1; margin-bottom: 28px; }
.principle-quote {
  font-size: clamp(24px, 2.7vw, 32px); font-weight: 700; line-height: 1.4;
  color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; margin: 0;
}
.principle-notes { display: flex; flex-direction: column; }
.principle-notes p {
  font-size: 15px; font-weight: 700; color: var(--accent-deep);
  padding: 16px 0; border-top: 1px solid rgba(13,107,208,0.18);
}
.principle-notes p:first-child { padding-top: 6px; }

/* About -- sticky heading, prose scrolls past */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start;
  max-width: 1080px; margin: 0 auto;
}
.about-sticky { position: sticky; top: 112px; }
.about-sticky h2 {
  font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.22; text-wrap: balance; margin-top: 12px;
}
.about-copy { max-width: 620px; }
.about-copy p { color: var(--muted); font-size: 17px; margin-bottom: 18px; line-height: 1.75; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--ink); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); flex-shrink: 0;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 15.5px; padding: 0 4px 22px; max-width: 62ch; }

/* CTA band -- copy left, real form right (not just a mailto link) */
.cta-wrap { padding: 0 28px 68px; }
.cta-band {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center;
  max-width: 1080px; margin: 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  padding: 48px; border-radius: 24px;
  box-shadow: 0 20px 50px rgba(13,107,208,0.22);
}
.cta-copy { color: #fff; }
.cta-band h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; margin-bottom: 14px; text-wrap: balance; }
.cta-band .cta-copy p { color: #dcebfc; font-size: 16.5px; }
.cta-alt { margin-top: 20px !important; font-size: 14.5px !important; }
.cta-alt a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cta-form-card { background: #fff; border-radius: 18px; padding: 28px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .field { margin-bottom: 14px; }
.contact-form label {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; background: var(--bg);
  transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form textarea { resize: vertical; min-height: 88px; }
.contact-form .btn-primary { width: 100%; text-align: center; border: none; cursor: pointer; margin-top: 4px; }
.hp-field {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.form-errors {
  background: #fdecec; border: 1px solid #f3b9b9; border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 16px;
}
.form-errors ul { margin: 0; padding-left: 18px; }
.form-errors li { color: #a8281f; font-size: 13.5px; padding: 2px 0; }
.form-success { text-align: center; padding: 24px 12px; }
.form-success h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 15px; }

/* Footer */
footer { background: var(--panel); border-top: 1px solid var(--line); padding: 40px 28px 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px;
  max-width: 1120px; margin: 0 auto 36px;
}
.footer-grid img { height: 40px; margin-bottom: 16px; }
.footer-grid p { font-size: 14px; color: var(--muted); max-width: 320px; }
.footer-grid h4 {
  color: var(--ink); font-size: 12.5px; font-weight: 800; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .06em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .15s ease; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1120px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--muted-2);
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  #menu-check:checked ~ .mobile-panel { display: flex; }
  .mobile-panel {
    flex-direction: column; gap: 2px; padding: 8px 28px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .mobile-panel a {
    padding: 14px 0; text-decoration: none; color: var(--ink); font-weight: 600;
    font-size: 15px; border-bottom: 1px solid var(--line);
  }
  .mobile-panel a:last-child { border-bottom: none; }
  .mobile-panel .nav-cta { display: inline-block; margin-top: 12px; text-align: center; }

  .hero { padding: 40px 22px 32px; background-size: 32px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-inner { text-align: center; }
  .hero h1 { margin-bottom: 16px; }
  .hero p.lead { margin: 0 auto 22px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn-primary { width: 100%; text-align: center; }
  .hero-diagram { max-width: 230px; }
  .diagram-node { font-size: 10.5px; padding: 7px 12px; }
  .diagram-node--core { font-size: 11.5px; padding: 10px 16px; }

  .service-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }

  .process-rail { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .process-rail::before { display: none; }
  .rail-node { margin: 0 0 14px; }
  .rail-deliverable { text-align: left; }

  .principles-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; gap: 28px; border-radius: 20px; padding: 32px 22px; }
  .cta-form-card { padding: 22px; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
