:root {
  --navy: #0e1b2a;
  --slate: #52657a;
  --green: #2ec27e;
  --blue: #1b7fd4;
  --tint: #f2f8f6;
  --line: #dde7e2;
  --grad: linear-gradient(100deg, var(--green), var(--blue));
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--navy);
  background: #fff;
  line-height: 1.6;
  font-size: 1.0625rem;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

a { color: var(--blue); }

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

/* ---------- header ---------- */

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  display: block;
  width: clamp(160px, 22vw, 220px);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--green); }

/* ---------- shared ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.875rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border: 2px solid var(--green);
  border-radius: 50%;
  margin-right: 0.6em;
  vertical-align: baseline;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
  background: var(--grad);
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(27, 127, 212, 0.28);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 1.5rem clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero-trace {
  position: absolute;
  top: 0;
  right: -40px;
  width: min(54%, 620px);
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}

.trace-path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: trace-draw 1.8s ease-out 0.2s forwards;
}

@keyframes trace-draw {
  to { stroke-dashoffset: 0; }
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.875rem);
  font-weight: 800;
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

/* ---------- services ---------- */

.services {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services, .about, .contact {
  padding: clamp(3.5rem, 7vw, 5.5rem) max(1.5rem, calc((100% - 1100px) / 2));
}

.services h2 { margin-bottom: 2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem 1.625rem;
}

.node {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.card p {
  color: var(--slate);
  font-size: 0.9875rem;
}

/* ---------- about & contact ---------- */

.about p, .contact p {
  max-width: 62ch;
  color: var(--slate);
}

.contact p { margin-bottom: 2rem; }

.contact .cta { font-size: 1rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: #c8d4e0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
}

.site-footer a { color: #fff; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 1.25rem; }
}

@media (max-width: 760px) {
  .hero-trace { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace-path { animation: none; stroke-dashoffset: 0; }
  .cta { transition: none; }
  .cta:hover { transform: none; }
}
