:root {
  --paper: #F3F5F2;
  --surface: #FFFFFF;
  --surface-2: #E8EEEA;
  --ink: #13201D;
  --muted: #56655F;
  --line: #D3DBD6;
  --grid: rgba(19, 32, 29, 0.055);
  --accent: #2748D6;
  --accent-hover: #1C37AE;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(39, 72, 214, 0.13);
  --pass: #1E8E5A;
  --logo-tile: #FFFFFF;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.875rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  --radius: 10px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0D1312;
    --surface: #141C1A;
    --surface-2: #1A2421;
    --ink: #E4ECE8;
    --muted: #93A39D;
    --line: #27332F;
    --grid: rgba(228, 236, 232, 0.045);
    --accent: #8198FF;
    --accent-hover: #A2B2FF;
    --accent-ink: #0D1312;
    --accent-soft: rgba(129, 152, 255, 0.17);
    --pass: #4CC38A;
  --logo-tile: #E6ECE9;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D1312;
  --surface: #141C1A;
  --surface-2: #1A2421;
  --ink: #E4ECE8;
  --muted: #93A39D;
  --line: #27332F;
  --grid: rgba(228, 236, 232, 0.045);
  --accent: #8198FF;
  --accent-hover: #A2B2FF;
  --accent-ink: #0D1312;
  --accent-soft: rgba(129, 152, 255, 0.17);
  --pass: #4CC38A;
  --logo-tile: #E6ECE9;
}

/* ---------- base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container-xl {
  --bs-gutter-x: 2.5rem;
  max-width: 1240px;
}
@media (max-width: 575.98px) {
  .container-xl { --bs-gutter-x: 2rem; }
}
@media (min-width: 992px) {
  .container-xl { --bs-gutter-x: 3rem; }
}
h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .navbar {
  min-height: var(--header-h);
  padding-block: .6rem;
  padding-inline: calc(var(--bs-gutter-x) * .5);
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  height: 38px; padding-inline: .6rem;
  border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-display); font-weight: 800; font-size: .88rem; letter-spacing: .03em;
  white-space: nowrap;
}
@media (max-width: 389.98px) {
  .brand { gap: .5rem; }
  .brand-mark { font-size: .8rem; padding-inline: .45rem; height: 34px; }
  .brand-name { font-size: 1rem; }
}
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; margin-right: 1.8rem; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  padding: .45rem .95rem; border: 1px solid var(--ink); border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--ink); color: var(--paper); }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted);
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  padding: .3rem .65rem; border-radius: 999px; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang-btn:not([aria-pressed="true"]):hover { color: var(--ink); }

.menu-toggle {
  width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 991.98px) {
  .nav-right { margin-left: auto; }
  .navbar-collapse { flex-basis: 100%; }
  .nav-links {
    flex-direction: column; align-items: stretch; gap: 0;
    margin: .8rem 0 .4rem; padding-top: .4rem; border-top: 1px solid var(--line);
  }
  .nav-links a { display: block; padding: .75rem 0; font-size: 1.05rem; }
  .nav-links .nav-cta { border: 0; padding: .75rem 0; color: var(--accent); }
  .nav-links .nav-cta:hover { background: none; color: var(--accent-hover); }
}

/* ---------- buttons ---------- */
.btn-main, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-main { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn-main:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 5vw, 4.5rem);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.hero > .container-xl { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(to top, var(--accent-soft) 0 38%, transparent 38%);
  padding-inline: .05em;
}
.hero-lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--muted);
}
.hero-facts strong { font-family: var(--f-display); font-weight: 800; color: var(--ink); margin-right: .25rem; font-size: 1.05rem; }

/* ---------- clients ---------- */
.clients { padding-block: 1rem 3.5rem; }
.clients-inner { display: grid; gap: 1.5rem; }
.clients-title {
  font-family: var(--f-mono); font-weight: 400; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.client {
  background: var(--logo-tile);
  min-height: 132px;
  display: grid; place-items: center;
  padding: 1.5rem 1.25rem;
}
.client img { display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; }
.client .logo-wide { max-height: 38px; max-width: 80%; }
.client .logo-mid  { max-height: 58px; max-width: 72%; }
.client .logo-tall { max-height: 84px; }
.client-next { background: var(--surface-2); }
.client-next a { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
@media (max-width: 575.98px) {
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 104px; padding: 1.1rem .9rem; }
  .client .logo-wide { max-height: 24px; max-width: 90%; }
  .client .logo-mid  { max-height: 44px; max-width: 85%; }
  .client .logo-tall { max-height: 66px; }
  .client-next a { font-size: 1rem; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-title {
  font-size: var(--step-3); font-weight: 800; line-height: 1.08; letter-spacing: -.028em;
  margin-bottom: 1.25rem;
}
.section-head .section-title { margin-bottom: 0; }
.lead-text { font-size: var(--step-1); line-height: 1.55; color: var(--muted); margin-bottom: 1.5rem; max-width: 32em; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.service {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 1.25rem; row-gap: .6rem;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.service > :not(.service-icon) { grid-column: 2; }
.service-icon {
  grid-row: 1 / span 3; width: 40px; height: 40px;
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.service p { color: var(--muted); max-width: 34em; }
.service .stack { font-size: .78rem; color: var(--ink); opacity: .75; letter-spacing: .01em; margin-top: .25rem; }
@media (max-width: 767.98px) {
  .services { grid-template-columns: 1fr; }
  .service { grid-template-columns: 36px 1fr; column-gap: 1rem; }
  .service-icon { width: 34px; height: 34px; }
}

/* about */
.facts { display: grid; gap: 0; margin: 2rem 0 0; }
.facts > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem;
  padding-block: .8rem; border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: .74rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 419.98px) { .facts > div { grid-template-columns: 1fr; gap: .1rem; } }
.prose { display: grid; gap: 1.1rem; max-width: 40em; font-size: 1.1rem; margin-bottom: 2.5rem; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.why li { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.why h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: .45rem; }
.why p { color: var(--muted); font-size: .96rem; }
@media (max-width: 767.98px) { .why { grid-template-columns: 1fr; gap: 1.25rem; } }

/* process */
.section-rule { padding-top: 0; }
.section-rule > .container-xl {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - var(--bs-gutter-x)) 1px no-repeat;
}
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.process li { position: relative; padding: 1.5rem 1.5rem 0 0; }
.process li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line);
}
.process li::after {
  content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.process li:first-child::after { background: var(--accent); }
.step { display: block; font-size: .78rem; color: var(--accent); margin-bottom: .5rem; letter-spacing: .04em; }
.process h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.process p { color: var(--muted); font-size: .96rem; }
@media (max-width: 991.98px) {
  .process { grid-template-columns: 1fr; }
  .process li { padding: 0 0 1.75rem 2rem; }
  .process li::before { top: 6px; bottom: 0; left: 4px; right: auto; width: 2px; height: auto; }
  .process li:last-child::before { display: none; }
  .process li::after { top: 2px; }
}

/* contact */
.contact {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.contact-title { font-size: var(--step-3); font-weight: 800; line-height: 1.08; letter-spacing: -.028em; margin-bottom: 1.25rem; }
.contact-lead { font-size: var(--step-1); color: var(--muted); max-width: 32em; }
.contact-list { display: grid; }
.contact-list li { display: grid; gap: .2rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list .v {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere; user-select: all;
}
.contact-list .v:hover { color: var(--accent); }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.copy-btn {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: .35rem .8rem; cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-done { border-color: var(--pass); color: var(--pass); }

/* footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
