@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}

/* Black mark on a white sheet. The sheet sits on a dark desk. */
:root {
  color-scheme: light dark;
  --desk: #121212;
  --bg: #ffffff;
  --panel: #f5f5f5;
  --panel-strong: #e9e9e9;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --plate: #0a0a0a;
  --plate-hover: #2a2a2a;
  --on-plate: #ffffff;
  --link: #0a0a0a;
  --header: rgba(255, 255, 255, 0.85);
  --dot: #333333;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 36rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --frame: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #000000;
    --bg: #0d0d0d;
    --panel: #161616;
    --panel-strong: #222222;
    --ink: #ededed;
    --muted: #a3a3a3;
    --line: #262626;
    --plate: #ededed;
    --plate-hover: #ffffff;
    --on-plate: #0a0a0a;
    --link: #ededed;
    --header: rgba(13, 13, 13, 0.85);
    --dot: #8a8a8a;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* The sheet: everything lives on one white card with rounded corners. */
.sheet {
  background: var(--bg);
  min-height: 100vh;
}
@media (min-width: 48rem) {
  .sheet {
    margin: var(--frame);
    min-height: calc(100vh - 2 * var(--frame));
    border-radius: var(--radius);
    overflow: clip;
  }
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.5vw, 5rem); letter-spacing: -0.04em; font-weight: 450; line-height: 1.0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; font-weight: 500; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }

p, ul, ol, dl { margin: 0; }
p + p { margin-top: 1rem; }

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  border-radius: 0.35em;
  background: var(--panel-strong);
  overflow-wrap: anywhere;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--plate);
  color: var(--on-plate);
  z-index: 20;
}
.skip:focus { top: 1rem; }

/* Header: mark and links on the left, contact as a button on the right. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-header .wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 4.5rem;
}
.site-header nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mark { width: auto; height: 1.15rem; flex: none; }
.site-header .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-header .wordmark .mark { height: 1.35rem; }

.site-header ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-header ul { flex-wrap: nowrap; gap: clamp(0.75rem, 2vw, 1.75rem); }
.site-header nav ul a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav ul a:hover,
.site-header nav ul a[aria-current="page"] { color: var(--ink); }
.site-header .button { padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
.nav-end { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1rem); }

/* The language switch: the flag of the language it switches to. */
.lang-switch {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  flex: none;
}
.lang-switch:hover { background: var(--panel); }
.lang-switch .flag {
  display: block;
  height: 1rem;
  width: auto;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px var(--line);
}
@media (max-width: 30rem) {
  .site-header .wrap { min-height: 3.75rem; }
  .site-header .button { display: none; }
}

/* Footer */

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: 1.75rem 3rem;
  padding-block: 3rem 3.5rem;
}
.site-footer .wordmark { font-size: 1.0625rem; margin-bottom: 0.35rem; color: var(--ink); }
.site-footer a { color: inherit; }
.site-footer nav a[aria-current="page"] { color: var(--ink); }
.site-footer ul { gap: 0.35rem 1.5rem; }
@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: 1.2fr 1fr auto; }
  .site-footer ul { flex-direction: column; }
}

/* Sections */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section h2 { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section h3 { margin-bottom: 0.4rem; }
.section > .wrap > p { max-width: var(--measure); }
.more { margin-top: 2rem; }

.section-quiet { background: var(--panel); }

.lede {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
  max-width: var(--measure);
  color: var(--muted);
}

.page-head { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.page-head h1 { margin-bottom: 1.25rem; }
.page-head + .section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.page-head:last-child { padding-bottom: clamp(3rem, 8vw, 6rem); }

.prose .wrap > * { max-width: var(--measure); }
.prose h2 { margin: 2.5rem 0 0.75rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose .meta { margin-top: 2.5rem; color: var(--muted); font-size: 0.9375rem; }

.columns,
.grid-2x2 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .columns,
  .grid-2x2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .columns-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Panels: light grey, rounded, with a small icon. */

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid transparent;
}
.section-quiet .panel { background: var(--bg); border-color: var(--line); }
.panel .icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 0.85rem;
  background: var(--plate);
  color: var(--on-plate);
}
.panel .icon svg { width: 1.375rem; height: 1.375rem; }
.panel p { color: var(--muted); }

/* People: a portrait above the name. */

.person .portrait {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  aspect-ratio: 2 / 3;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--panel-strong);
}

/* Principles: one outlined block, split into cells by hairlines. */

.cells {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.cells > div {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.cells > div:first-child { border-top: 0; }
.cells p { color: var(--muted); }
@media (min-width: 48rem) {
  .cells { grid-template-columns: 1fr 1fr; }
  .cells > div:nth-child(2) { border-top: 0; }
  .cells > div:nth-child(even) { border-left: 1px solid var(--line); }
}

/* Hero: headline left, the mark in the middle with a screentone shadow, a short mono
   note on the right, and the tools we use along the bottom edge. */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.hero-grid {
  display: grid;
  gap: 2rem 3rem;
  align-items: center;
  grid-template-areas: "mark" "text";
  justify-items: start;
}
.hero-text { grid-area: text; container-type: inline-size; justify-self: stretch; width: 100%; }
.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text .actions { margin-top: 0; }

.hero-mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  padding: 0.5rem 0 1rem;
}
/* The svg fills .hero-logo, which also holds the screentone shadow canvas. */
.hero-logo {
  position: relative;
  isolation: isolate;
  display: block;
  width: clamp(7rem, 30vw, 11rem);
  color: var(--ink);
}
.hero-logo .mark { display: block; width: 100%; height: auto; }
/* Drawn by the script at the end of home.html, which also slides the mark.
   It reaches past the mark so the shadow's offset and streaks aren't clipped. */
.hero-shadow {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: grow 1800ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-logo .mark { animation: appear 700ms ease-out both; }
  @keyframes grow {
    from { transform: scale(0.88); }
    to { transform: none; }
  }
  @keyframes appear {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

.hero-note {
  margin: 0 0 2.25rem;
  font-family: var(--mono);
  /* Scales with the text column; wraps naturally. */
  font-size: clamp(0.75rem, 3.8cqw, 1.6rem);
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.hero-tools span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.hero-tools svg { width: 1.5rem; height: 1.5rem; flex: none; fill: currentColor; }
@media (max-width: 30rem) {
  .hero-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
}
.tool-flutter svg { color: #02569b; }
.tool-elixir svg { color: #4b275f; }
.tool-phoenix svg { color: #fd4f00; }
.tool-go svg { color: #00add8; }
@media (prefers-color-scheme: dark) {
  .tool-flutter svg { color: #54c5f8; }
  .tool-elixir svg { color: #a98bc7; }
}

@media (min-width: 48rem) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text mark";
    gap: 2rem clamp(2rem, 5vw, 5rem);
    align-items: center;
  }
  .hero-mark { padding: clamp(1rem, 3vw, 2.5rem); justify-self: center; width: 100%; }
  .hero-logo { width: min(100%, clamp(11rem, 28vw, 24rem)); }
}
@media (min-width: 72rem) {
  .hero-grid { min-height: 26rem; }
}


.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--plate);
  color: var(--on-plate);
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, transform 120ms ease;
}
.button:hover { background: var(--plate-hover); }
.button:active { transform: translateY(1px); }
.button svg { width: 1.05em; height: 1.05em; }

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button-ghost:hover { background: var(--panel); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2rem; }

/* Services */

.service + .service { padding-top: 0; }
.service .wrap {
  display: grid;
  gap: 1.5rem 4rem;
}
.service .wrap > div > h2 { margin-bottom: 1rem; }
.service .wrap > div > p { max-width: var(--measure); color: var(--muted); }
@media (min-width: 56rem) {
  .service .wrap { grid-template-columns: 3fr 2fr; align-items: start; }
}

.checks {
  list-style: none;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 0.75rem;
  max-width: var(--measure);
}
.checks li {
  position: relative;
  padding-left: 1.9rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--plate);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--on-plate);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.contact .checks { background: transparent; padding: 0; }
p + .checks { margin-top: 1.25rem; }

/* Process: a real sequence, so it gets numbers and a line joining them. */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 2rem 2.5rem;
}
@media (min-width: 48rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--plate);
  color: var(--on-plate);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.steps li p { color: var(--muted); }
@media (min-width: 48rem) {
  .steps li::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: 2.5rem;
    right: -2.5rem;
    border-top: 2px dashed var(--line);
  }
  .steps li:nth-child(2n)::after { display: none; }
}
@media (min-width: 72rem) {
  .steps li:nth-child(2n)::after { display: block; }
  .steps li:last-child::after { display: none; }
}

/* Call to action: a black plate. */

.cta { padding-block: 0 clamp(3.5rem, 8vw, 6rem); }
.section + .cta { padding-top: 0; }
.section-quiet + .cta { padding-top: clamp(3.5rem, 8vw, 6rem); }
.cta .plate {
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  background: var(--plate);
  color: var(--on-plate);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.cta h2 { margin-bottom: 0.6rem; color: inherit; }
.cta p { opacity: 0.75; max-width: var(--measure); }
.cta .actions { margin-top: 0; }
.cta .button { background: var(--on-plate); color: var(--plate); }
.cta .button:hover { background: var(--panel-strong); }
@media (min-width: 56rem) {
  .cta .plate { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* Contact */

.email {
  margin-top: 1.5rem;
  font-size: clamp(1.75rem, 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.email a { text-decoration-thickness: 3px; text-underline-offset: 0.14em; }

.contact {
  display: grid;
  gap: 3rem 4rem;
}
.contact h2 { font-size: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 56rem) { .contact { grid-template-columns: 3fr 2fr; } }

.facts {
  display: grid;
  gap: 1rem;
}
.facts div {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 48rem) {
  .section .facts { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .contact .facts { grid-template-columns: 1fr; }
}
