/* Layout: one 1120px column; a connected-node motif (from the logo) carries the hero; quiet sections below.
   Uses CSS logical properties (inline/block) so an RTL language like Arabic works by setting dir="rtl". */
:root {
  --bg: #ffffff;
  --surface: #eff4f5;
  --ink: #0c2430;
  --muted: #4a6370;
  --line: #d3e0e4;
  --brand: #004765;
  --brand-soft: #d9eaef;
  --on-brand: #ffffff;
  --signal: #1f8ea8;
  --mark: url("assets/mark.png");

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.3rem, 5.2vw, 3.7rem);
  --radius: 10px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08161d; --surface: #0e222b; --ink: #e5eff2; --muted: #9db3bc; --line: #1f3a46;
    --brand: #7ac4de; --brand-soft: #123441; --on-brand: #06222d; --signal: #4fc3dd;
    --mark: url("assets/mark-dark.png"); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08161d; --surface: #0e222b; --ink: #e5eff2; --muted: #9db3bc; --line: #1f3a46;
  --brand: #7ac4de; --brand-soft: #123441; --on-brand: #06222d; --signal: #4fc3dd;
  --mark: url("assets/mark-dark.png"); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--signal); font-weight: 500;
}
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-block-end: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand-mark { inline-size: 34px; block-size: 34px; background: var(--mark) center / contain no-repeat; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px 6px; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav a.nav-cta { background: var(--brand); color: var(--on-brand); }
.nav a.nav-cta:hover { filter: brightness(1.1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--f-body);
  padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand); cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-block-end: 40px; max-width: 62ch; }
.alt { background: var(--surface); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 span { color: var(--brand); }
.pipeline { min-width: 0; }
.pipeline svg { inline-size: 100%; block-size: auto; overflow: visible; }
.pipeline .node { fill: var(--brand); }
.pipeline .node.hollow { fill: var(--bg); stroke: var(--brand); stroke-width: 3; }
.pipeline .link { stroke: var(--brand); stroke-width: 10; stroke-linecap: round; fill: none; }
.pipeline .pulse { fill: var(--signal); }
.pipeline .lbl { font-family: var(--f-mono); font-size: 15px; fill: var(--ink); }
.pipeline .lbl-sub { font-family: var(--f-body); font-size: 14px; fill: var(--muted); }
.pipeline .ico { fill: none; stroke: var(--on-brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .pipeline .pulse { display: none; } }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); min-width: 0;
}
.tile .tag { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.tile ul { margin: 4px 0 0; padding-inline-start: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.tile a.more { font-weight: 600; text-decoration: none; margin-block-start: 4px; }
.tile a.more:hover { text-decoration: underline; }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { position: relative; padding-block-start: 44px; padding-inline-end: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; inset-inline-start: 0; inline-size: 30px; block-size: 30px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font: 700 0.9rem/30px var(--f-mono); text-align: center;
}
.steps li::after {
  content: ""; position: absolute; top: 13px; inset-inline-start: 36px; inset-inline-end: 8px; height: 4px; border-radius: 2px; background: var(--brand-soft);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--on-brand); }
.cta-band p { opacity: 0.85; margin-block-start: 8px; max-width: 52ch; }
.cta-band .btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 6vw, 80px) 24px; }
.page-hero .wrap { display: grid; gap: 16px; }

/* Service detail rows */
.svc { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-block: 44px; border-block-start: 1px solid var(--line); }
.svc:first-child { border-block-start: 0; padding-block-start: 0; }
.svc-head { display: grid; gap: 10px; align-content: start; min-width: 0; }
.svc-body { display: grid; gap: 20px; min-width: 0; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-cols h4 { font: 600 0.78rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.svc-cols ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }

/* About */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two > * { min-width: 0; }
.prose { display: grid; gap: 16px; max-width: 64ch; }
.facts { display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.facts dt { font: 500 0.8rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-block-start: 3px; }
.facts dd { margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values > div { display: grid; gap: 8px; align-content: start; }
.values p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { display: grid; gap: 22px; }
.contact-list .k { font: 500 0.78rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-list .v { font-size: var(--step-1); font-weight: 600; overflow-wrap: anywhere; }
.contact-list .v a { text-decoration: none; }
.contact-list .v a:hover { text-decoration: underline; }
form.card { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; inline-size: 100%;
}
.field textarea { min-block-size: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; inset-inline-start: -9999px; }
.form-note { font-size: 0.92rem; color: var(--muted); }
.form-status { font-weight: 600; color: var(--brand); }

/* Footer */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 40px; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 900px) {
  .hero .wrap, .svc, .two, .contact-grid { grid-template-columns: 1fr; }
  .tiles, .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .tiles, .values, .svc-cols, .row2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .brand-name { font-size: 1.2rem; }
  .nav a { padding: 6px 10px; }
}
