/* Self-hosted fonts: no third-party font requests. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400.woff2) format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600.woff2) format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-400.woff2) format("woff2");
}

/* ---------- tokens ----------
   One dark identity. Three colors carry meaning, the rest is neutral:
   --accent = what you can act on (links, focus, the booking button)
   --merged = GitHub's "merged" state (pull request log, open-source figures)
   --ok     = the improved side of a measurement, and "available" */
:root {
  color-scheme: dark;
  --bg: #07080c;
  --surface: rgba(255, 255, 255, 0.045);
  --panel: rgba(14, 16, 24, 0.72);
  --ink: #f3f4f8;
  --muted: #a5abc0;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #a995ff;
  --accent-ink: #0b0a1f;
  --action: linear-gradient(135deg, #b9a8ff, #7cc4ff); /* the booking button */
  --merged: #b79bff;
  --ok: #4fe39a;
  --star: #f5c542;
  --bg-alt: #0b0d15;
  --sheen: linear-gradient(100deg, #ffffff 25%, #d9ceff 62%, #a8d4ff);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --page: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
svg[hidden] { display: none; }
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
ul,
ol {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  color: inherit;
}
.container {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
}
.skip:focus {
  top: 10px;
  color: var(--bg);
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 4.4vw, 56px);
}
h3 {
  font-size: 26px;
  line-height: 1.1;
}
p {
  text-wrap: pretty;
}
.sheen {
  background: var(--sheen);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em; /* background-clip cuts descenders otherwise */
}

/* ---------- header ---------- */
/* A floating glass capsule, in the manner of iOS: the page shows through, blurred and
   saturated, under a bright top edge. The header itself takes no room, so the hero's
   glow runs behind the bar from the first pixel. */
.site-header {
  --bar-h: 54px;
  --bar-top: 10px;
  position: sticky;
  top: var(--bar-top);
  z-index: 50;
  margin-bottom: calc(-1 * var(--bar-h));
  padding-inline: max(8px, calc(var(--gutter) - 16px));
}
.site-header .container {
  position: relative;
  max-width: calc(var(--page) + 32px);
  height: var(--bar-h);
  padding-inline: 16px 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 46%, rgba(255, 255, 255, 0.07)),
    rgba(16, 18, 28, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 14px 40px -14px rgba(0, 0, 0, 0.75);
}
/* controls inside the capsule take its shape */
.site-header .btn.small,
.site-header .lang {
  border-radius: 999px;
}
/* without backdrop blur the text behind would show through sharp: use a near-solid bar */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .container {
    background: rgba(14, 16, 24, 0.96);
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  font-size: 15px;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--ink);
}
.socials {
  display: flex;
  gap: 2px;
}
.site-header .socials {
  margin-left: auto;
}
.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
}
.socials a:hover {
  color: var(--ink);
  background: var(--surface);
}
.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
/* one color for the three marks, white on this dark page */
.socials .s-github,
.socials .s-linkedin,
.socials .s-x {
  color: #ffffff;
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.lang button {
  font-size: 13px;
  font-weight: 600;
  min-width: 36px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
/* quiet on purpose: the booking button next to it is the one that should stand out */
.lang button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.btn.primary {
  background: var(--action);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 1px rgba(169, 149, 255, 0.5),
    0 12px 44px -10px rgba(124, 150, 255, 0.8);
}
.btn.primary:hover {
  color: var(--accent-ink);
  filter: brightness(1.1);
  box-shadow:
    0 0 0 1px rgba(169, 149, 255, 0.7),
    0 14px 54px -8px rgba(124, 150, 255, 1);
}
.btn.quiet {
  border-color: var(--line);
  background: rgba(22, 24, 34, 0.85);
}
.btn.quiet:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}
.btn.small {
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  /* the glass bar floats over the top of the hero */
  padding-block: calc(64px + clamp(32px, 5.5vw, 78px)) clamp(32px, 5.5vw, 78px);
}
/* two colored glows: blue and violet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52% 60% at 12% 8%, rgba(70, 150, 255, 0.2), transparent 70%),
    radial-gradient(58% 70% at 88% 18%, rgba(124, 92, 255, 0.3), transparent 70%);
}
/* Perspective grid receding to the horizon. Everything that moves here moves by
   transform only, on its own layer: no mask, no filter, no repaint per frame. */
.hero-floor {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  opacity: 0.28;
  z-index: -3;
  overflow: hidden;
  perspective: 420px;
  perspective-origin: 50% 0;
  contain: strict;
}
.hero-floor::before {
  content: "";
  position: absolute;
  inset: -100% -60% 0;
  background-image:
    linear-gradient(rgba(183, 155, 255, 0.3) 2px, transparent 2px),
    linear-gradient(90deg, rgba(183, 155, 255, 0.3) 2px, transparent 2px);
  background-size: 72px 72px;
  background-position: 50% 100%;
  transform: rotateX(68deg) translate3d(0, 0, 0);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}
/* the horizon fades into the page color; the far lines, which would shimmer, are hidden */
.hero-floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 22%, transparent 95%);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(22px, 3.4vh, 36px) clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.hero-copy > * + * {
  margin-top: 22px;
}
.hero-copy .lede {
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--muted);
  max-width: 32em;
}
/* two statements, one per line */
.hero-copy .lede > span {
  display: block;
  text-wrap: balance;
}
.hero-copy .lede > span + span {
  margin-top: 4px;
}
/* the employer's name with its official mark, kept together on one line */
.org {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  vertical-align: bottom;
}
.org img {
  width: 22px;
  height: 22px;
}
.hero-copy .lede strong {
  font-weight: 600;
  color: var(--ink);
}
.availability {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 24, 34, 0.85);
  font-size: 14.5px;
}
.availability::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.hero-copy .actions {
  margin-top: 30px;
}

/* The portrait and the years stand directly on the hero: no panel around them. */
/* Stretched to the height of the copy: the portrait starts with the title, the years end with the buttons. */
.profile {
  align-self: stretch;
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: clamp(18px, 2.4vw, 28px);
}
.identity {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0;
  text-align: center;
}
/* The photo is a cut-out with a transparent background: the disc behind it is
   drawn here, in the page's colors, inside a gradient ring. */
.identity img {
  width: clamp(160px, 19vw, 248px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    radial-gradient(circle at 50% 30%, #262b47, #0d0f1a 75%) padding-box,
    var(--action) border-box;
  box-shadow:
    0 0 0 10px rgba(169, 149, 255, 0.07),
    0 30px 80px -24px rgba(124, 150, 255, 0.95);
}
.snapshot { font-size: 15px; color: var(--muted); }
/* Yespark's figures under the portrait: a two-by-two panel, each figure over its label,
   split by one vertical and one horizontal hairline */
.scale {
  width: 100%;
  max-width: 400px;
  display: grid;
  gap: 16px;
  padding-top: 8px;
}
.scale p {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  text-wrap: balance;
}
.scale p span {
  color: var(--ink);
  font-weight: 600;
}
.scale ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.scale li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 0 18px clamp(14px, 1.8vw, 24px);
}
.scale li:nth-child(odd) {
  padding-left: 0;
  padding-right: clamp(14px, 1.8vw, 24px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.scale li:nth-child(n + 3) {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0;
}
.scale b {
  justify-self: start;
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 52px);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scale li span {
  color: var(--muted);
  font-size: clamp(13.5px, 4vw, 15.5px);
  line-height: 1.3;
  white-space: nowrap;
}
.log {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 28px;
}
.log-head,
.log-foot {
  padding: 14px 18px;
  font-size: 14px;
}
.log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
/* one block per repository: its name and stars, then its pull requests */
.log-group {
  border-bottom: 1px solid var(--line);
}
.log-repo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 4px;
}
.log-repo a {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
}
.log-repo a:hover {
  text-decoration: underline;
}
.log-group ul {
  padding-bottom: 6px;
}
.log-group ul a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 5px 18px 5px 30px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}
.log-group ul a:hover {
  background: color-mix(in srgb, var(--merged) 9%, transparent);
  color: var(--ink);
}
.log-list svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: var(--merged);
}
.log-list .title {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}
.log-list time,
.stars {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.stars {
  font-variant-numeric: tabular-nums;
  color: var(--star);
}
.stars::before {
  content: "\2605";
  margin-right: 5px;
}
.log-foot {
  color: var(--muted);
}
.log-foot b {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(56px, 9vh, 104px);
  border-top: 1px solid var(--line);
}
.section.alt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-alt);
}
/* dotted backdrop that fades out toward the bottom */
.section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
/* Soft accent behind the open-source section. */
.section.alt::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -10%;
  width: min(720px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.22), transparent);
  pointer-events: none;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head > div {
  max-width: 42em;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

/* ---------- services ---------- */
/* One row per service, read left to right: what it is, what it covers, the proof. */
.services > li {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 16px clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.services > li:last-child {
  padding-bottom: 0;
}
.service-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.service-title svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--accent);
}
.services h3 {
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.1;
  text-wrap: balance;
}
.service-body p {
  color: var(--muted);
}
.service-body .chips {
  margin-top: 14px;
}
/* the proof: a figure or a name first, then the sentence that backs it */
.service-proof {
  display: grid;
  gap: 4px;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 2px solid var(--accent);
  font-size: 15.5px;
  color: var(--muted);
}
.service-proof b {
  justify-self: start;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1;
  white-space: nowrap;
}
.services a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* secondary text one step brighter here: long paragraphs and small tags on the darkest background */
#services {
  --muted: #bdc2d6;
}
.services .chips li {
  padding: 4px 11px;
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 13.5px;
}
/* a link that leaves the page says so */
.ext {
  color: var(--ink);
}
.ext::after {
  content: "\00a0↗";
  color: var(--accent);
}
/* the booking link again, where the reader finishes the four rows */
.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
}
.services-cta .btn {
  gap: 8px;
  font-family: var(--body);
}
.services-cta .btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- open source: one row per project ---------- */
/* ---------- open source: one card per project ----------
   Reading order inside a card: who (logo, name, what I did), then tags, with the
   figures set apart in a rail on the right. */
.rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.row {
  position: relative;
  display: grid;
  /* one header line (logo, name, stars, merged PRs, arrow), then the description
     and the tags across the full width */
  grid-template-columns: 44px minmax(0, max-content) auto minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.2s;
}
.row:hover,
.row:focus-within {
  border-color: color-mix(in srgb, var(--merged) 60%, transparent);
  background-color: rgba(183, 155, 255, 0.06);
  transform: translateY(-2px);
}
/* a green edge and a faint green wash mark the projects I maintain */
.row:has(.badge) {
  box-shadow: inset 3px 0 0 var(--ok);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--ok) 9%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}
.row .logo {
  grid-row: 1;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--line);
}
.row span.logo {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
}
.row span.logo svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
}
.row .i-rails svg {
  fill: #ff5252;
}
.row .i-datadog svg {
  fill: #b08cff;
}
.row .i-rubygems svg {
  fill: #ff7a5c;
}
/* The name sits beside the logo; the one-line description and the one-line tag list
   each take the full width of the card, so two neighbours always have the same rows. */
.row .who {
  display: contents;
}
.row h3 {
  grid-column: 2;
  grid-row: 1;
}
.row .role {
  grid-column: 1 / -1;
  grid-row: 2;
}
.row .chips {
  grid-column: 1 / -1;
  grid-row: 3;
}
/* the figures live in the header: stars right after the name, merged PRs before the arrow */
.row .meta {
  display: contents;
}
.row .stars {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}
.row .count {
  grid-column: 5;
  grid-row: 1;
}
.row .go {
  grid-column: 6;
  grid-row: 1;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--muted);
  transition:
    transform 0.2s,
    color 0.2s;
}
.row:hover .go,
.row:focus-within .go {
  color: var(--merged);
  transform: translate(3px, -3px);
}
/* the whole row is the link */
.row h3 a {
  text-decoration: none;
}
.row h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.row h3 a:hover {
  color: inherit;
}
.row h3 a:focus-visible {
  outline: none;
}
.row:has(a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.row h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 22px;
}
/* projects I maintain, not only contribute to */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ok);
}
.badge svg {
  width: 13px;
  height: 13px;
}
.row .role {
  margin-top: -2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.row .count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}
.row .count b {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.row .stars {
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--star) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--star) 9%, transparent);
  font-size: 13.5px;
}
/* Gold is for the projects I maintain. On someone else's repository the stars are
   theirs, so they stay quiet. */
.row:not(:has(.badge)) .stars {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.row .chips {
  gap: 5px;
}
.row .chips li {
  padding: 3px 9px;
  font-size: 12.5px;
}
.chips li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- work with me ---------- */
/* ---------- closing section: a lit horizon under the call panel ----------
   Static on purpose (no animation, nothing to flicker): a field of dots fading
   upward, and the edge of a very large disc rising from the bottom of the page. */
#contact {
  --disc: max(1700px, 170vw);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(150px, 26vh, 260px);
  background:
    radial-gradient(60% 55% at 50% 18%, rgba(124, 92, 255, 0.2), transparent 70%),
    linear-gradient(to bottom, var(--bg) 0%, #0a0b18 100%);
}
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 100%, #000 20%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 100%, #000 20%, transparent 100%);
}
#contact::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: calc(100% - clamp(84px, 14vh, 150px));
  left: calc(50% - var(--disc) / 2);
  width: var(--disc);
  height: var(--disc);
  border-radius: 50%;
  background: radial-gradient(60% 12% at 50% 0%, rgba(124, 150, 255, 0.28), #05060b 70%);
  box-shadow:
    inset 0 2px 1px rgba(214, 205, 255, 0.85),
    inset 0 18px 60px -14px rgba(124, 196, 255, 0.5),
    0 -10px 50px -4px rgba(124, 196, 255, 0.45),
    0 -60px 160px -20px rgba(124, 92, 255, 0.6);
}
/* the page signs off on the disc, under the horizon */
.colophon {
  position: absolute;
  inset: auto 0 18px;
  padding-inline: var(--gutter);
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
/* The call to action sits directly in the section, centered above the horizon:
   no card, the section's own background carries it. */
.cta-panel {
  display: grid;
  justify-items: center;
  gap: clamp(26px, 4vw, 40px);
  max-width: 880px;
  margin-inline: auto;
  padding-top: clamp(8px, 3vh, 36px);
  text-align: center;
}
.cta-panel h2 {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
}
.cta-panel p {
  margin: 18px auto 0;
  color: var(--muted);
  max-width: 40em;
}
.principles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.principles li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14.5px;
}
.cta-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
/* the social icons take their own line under the two buttons */
.cta-side .socials {
  flex-basis: 100%;
}
.cta-side .socials {
  justify-content: center;
}

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

/* ---------- responsive ---------- */
/* narrow two-column cards and small phones: the maintainer badge keeps its icon and drops
   its word, so the header still fits */
@media (min-width: 1001px) and (max-width: 1180px), (max-width: 400px) {
  .row .badge {
    padding: 4px 6px;
  }
  .row .badge span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* two project cards side by side only while each keeps its description and its tags on one line */
@media (max-width: 1000px) {
  .rows {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .hero .container,
  .cta-panel,
  .services > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-title {
    align-items: center;
  }
  .site-nav {
    display: none;
  }
  .site-header .container {
    gap: 12px;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  /* phones: no room for the stars beside the name, they go under it, next to the logo */
  .row:has(.stars) .logo {
    grid-row: 1 / span 2;
    align-self: start;
  }
  .row:has(.stars) h3 {
    align-self: end;
  }
  .row:has(.stars) .stars {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: -8px;
  }
  .row:has(.stars) .role {
    grid-row: 3;
  }
  .row:has(.stars) .chips {
    grid-row: 4;
  }
  /* the same icons close the page, in the call panel */
  .site-header .socials {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
}
@media (max-width: 480px) {
  .row { column-gap: 8px; padding-inline: 16px; }
  .row h3 { font-size: 20px; }
  .site-header .container { gap: 7px; }
  .brand { gap: 6px; font-size: 15px; }
  .btn.small { padding-inline: 9px; }
  .log-head { flex-wrap: wrap; }
  .hero-copy .actions .btn { padding: 12px 14px; }
}
