:root {
  --ink: #102341;
  --ink-soft: #46587a;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --tint: #eaf0f8;
  --line: #d5deeb;
  --green: #2b9a45;
  --green-deep: #1f7a35;
  --red: #e03a36;
  --yellow: #f2b01e;
  --blue: #2b62e3;
  --orange: #ee8a1d;
  --night: #0c1b33;
  --night-line: #263a5c;
  --night-text: #c4d1e6;

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name b { font-weight: 500; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--surface);
  background: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
}
.nav .nav-cta:hover { color: var(--surface); background: #1b3663; }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}
.lang button {
  font: 500 12px/1 var(--mono);
  border: 0;
  background: none;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Shared ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* The coloured spheres from the logo's network, used as section markers. */
.node {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--c) 45%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}
.n-green { --c: var(--green); }
.n-blue { --c: var(--blue); }
.n-yellow { --c: var(--yellow); }
.n-orange { --c: var(--orange); }
.n-red { --c: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 16px/1 var(--body);
  padding: 15px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

.section { padding-block: clamp(72px, 10vw, 120px); }
.section-tint { background: var(--tint); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 600; }
.section-sub { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 700; }

.lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 34em;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { position: relative; aspect-ratio: 1; }
.hero-art canvas {
  position: absolute;
  inset: -22%;
  width: 144%;
  height: 144%;
}
.hero-art img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(16, 35, 65, 0.16));
}

/* ---------- Services ---------- */

.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.svc {
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}
.svc h3 { font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.svc p { color: var(--ink-soft); max-width: 30em; }

/* ---------- Solutions ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.card .node { margin-bottom: 22px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }

.card-cta {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
  justify-content: flex-end;
  transition: background 0.15s;
}
.card-cta:hover { background: #1b3663; }
.card-cta p { color: var(--night-text); }
.card-cta .arrow {
  margin-top: 18px;
  font-size: 22px;
  color: #6fd487;
  transition: transform 0.2s;
}
.card-cta:hover .arrow { transform: translateX(6px); }

/* ---------- Process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-n {
  display: block;
  font: 500 13px/1 var(--mono);
  color: var(--green-deep);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

.principles {
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.principles h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.principles p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Contact ---------- */

.contact {
  background: var(--night);
  color: #fff;
  padding-block: clamp(72px, 10vw, 120px);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-mark { width: 96px; height: 96px; margin-bottom: 28px; }
.contact h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 600; }
.contact-copy > p { margin-top: 18px; color: var(--night-text); max-width: 30em; }
.contact-mail a {
  font-family: var(--mono);
  font-size: 15px;
  color: #6fd487;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.form {
  display: grid;
  gap: 18px;
  background: #12264a;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 34px);
}
.form label { display: grid; gap: 8px; }
.form label span { font-size: 14px; font-weight: 500; color: var(--night-text); }
.form input,
.form textarea {
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
}
.form input:focus-visible,
.form textarea:focus-visible { outline-color: #6fd487; outline-offset: 1px; }
.form .btn { justify-self: start; }
.form-note { font-size: 13.5px; color: #8fa2c2; }
.form-error { font-size: 14.5px; color: #ffb4a8; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-text);
  border-top: 1px solid var(--night-line);
  padding-block: 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-brand span {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-legal { font-size: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; width: 100%; }
  .svc-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name b { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
