@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #3d3d42;
  --cobalt: #1f3fd1;
  --on-cobalt: #ffffff;
  --on-cobalt-2: #d3dbff;
  --rule: 2px solid var(--ink);
  --rule-light: 2px solid rgba(255, 255, 255, 0.9);
  --gutter: clamp(20px, 3vw, 48px);
  --step: clamp(56px, 8vw, 120px);
  --top-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M0 7h21M15 1l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cobalt); color: var(--on-cobalt); }
.field ::selection { background: var(--paper); color: var(--cobalt); }
p, h1, h2, h3, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.field :focus-visible { outline-color: var(--paper); }

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: var(--rule);
}
.mark {
  font-size: 1.375rem;
  font-weight: 850;
  font-stretch: 72%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav { display: flex; gap: clamp(14px, 2.4vw, 36px); font-size: 0.9375rem; font-weight: 700; }
.nav a { text-decoration: none; border-bottom: 2px solid transparent; padding: 4px 0; }
.nav a:hover { border-bottom-color: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 1.375rem;
  font-weight: 750;
  font-stretch: 88%;
  text-decoration: none;
  border: var(--rule);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn::after { content: ""; flex: none; align-self: center; width: 22px; height: 13px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 0.3s var(--ease); }
.btn:hover::after { transform: translateX(6px); }
.btn-note { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; margin-left: auto; }
.btn-white { background: var(--paper); color: var(--cobalt); border-color: var(--paper); }
.btn-white:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-white-line { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-white-line:hover { background: var(--paper); color: var(--cobalt); }
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9375rem; font-weight: 600; }
.links a { text-decoration: none; border-bottom: 2px solid transparent; }
.links a:hover { border-bottom-color: currentColor; }

/* ---------- intro: who he is ---------- */
.field { background: var(--cobalt); color: var(--on-cobalt); }
.intro {
  min-height: calc(100vh - var(--top-h));
  min-height: calc(100svh - var(--top-h));
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  padding: 0 var(--gutter);
}
.intro-copy {
  grid-column: 1 / 8;
  align-self: end;
  padding: var(--step) 0 clamp(32px, 4vw, 56px);
}
.intro-h {
  font-size: clamp(4rem, 9.6vw, 10rem);
  font-weight: 900;
  font-stretch: 66%;
  line-height: 0.84;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 7ch;
  margin-left: -0.03em;
}
.intro-roles {
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 750;
  font-stretch: 85%;
  line-height: 1.3;
}
.intro-lede {
  margin-top: 18px;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.5;
  color: var(--on-cobalt-2);
}
.intro-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 10px;
  margin-top: 32px;
}
.status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: var(--rule-light);
  max-width: 530px;
  font-size: 1rem;
  font-weight: 700;
}
.status-text > span { white-space: nowrap; }
.intro-roles > span:not(.sep) { white-space: nowrap; }
.dot { flex: none; width: 10px; height: 10px; margin-top: 0.45em; background: var(--paper); }
.intro .links { margin-top: 12px; color: var(--on-cobalt-2); }
.intro-photo {
  grid-column: 8 / 13;
  align-self: stretch;
  position: relative;
  margin: clamp(32px, 4vw, 56px) 0;
  min-height: 420px;
}
.intro-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}

/* ---------- numbers band: the proof right under the intro ---------- */
.numbers { border-bottom: var(--rule); }
.numbers-main { padding: var(--step) var(--gutter) clamp(28px, 4vw, 56px); container-type: inline-size; }
.numbers-figure {
  font-size: min(37cqw, 30rem);
  font-weight: 900;
  font-stretch: 68%;
  line-height: 0.78;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
  white-space: nowrap;
  color: var(--cobalt);
}
.numbers-caption {
  margin-top: clamp(20px, 2.4vw, 36px);
  max-width: 34ch;
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 600;
  line-height: 1.35;
}
.deltas { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); }
.deltas li { padding: 22px var(--gutter) 28px; border-right: var(--rule); }
.deltas li:last-child { border-right: 0; }
.delta-figure {
  display: block;
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  font-weight: 850;
  font-stretch: 70%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.delta-text { display: block; margin-top: 12px; max-width: 32ch; font-size: 1rem; line-height: 1.4; color: var(--ink-2); transition: color 0.3s var(--ease); }
body[data-active="akveo"] .numbers [data-co="akveo"] .delta-text,
body[data-active="teacode"] .numbers [data-co="teacode"] .delta-text,
body[data-active="belvg"] .numbers [data-co="belvg"] .delta-text { color: var(--on-cobalt-2); }
body[data-active="teacode"] .numbers-main[data-co="teacode"] .numbers-figure { color: var(--on-cobalt); }
.arrow { display: inline-block; width: 0.78em; height: 0.46em; margin: 0 0.14em; vertical-align: 0.14em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }

/* ---------- content blocks ---------- */
.block {
  padding: var(--step) var(--gutter);
  border-bottom: var(--rule);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 24px;
}
.block-h {
  grid-column: 1 / 5;
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 850;
  font-stretch: 72%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.block-note {
  grid-column: 1 / 5;
  margin-top: 18px;
  max-width: 30ch;
  font-size: 1rem;
  color: var(--ink-2);
}
.block > :not(.block-h):not(.block-note) { grid-column: 5 / 13; grid-row: 1 / span 2; }

/* results */
.results { border-top: var(--rule); }
.results li {
  display: grid;
  grid-template-columns: 1fr;
  padding: 24px 0 28px;
  border-bottom: var(--rule);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), padding 0.3s var(--ease);
}
.r-where { margin-top: 8px; font-size: 0.9375rem; font-weight: 700; }
.r-figure {
  font-size: clamp(1.875rem, 3.4vw, 3.25rem);
  font-weight: 850;
  font-stretch: 72%;
  line-height: 1;
  letter-spacing: -0.015em;
}
.vs { font-weight: 500; font-stretch: 100%; font-size: max(0.45em, 0.875rem); padding: 0 0.2em; vertical-align: 0.15em; }
.r-text { margin-top: 12px; max-width: 62ch; color: var(--ink-2); }

/* timeline */
.timeline { border-top: var(--rule); }
.years {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: var(--rule);
}
.years span { border-left: 1px solid var(--ink); padding-left: 6px; }
.roles li, .results li { cursor: pointer; }
.roles li {
  --span: 11;
  position: relative;
  padding: 18px 0 22px;
  border-bottom: var(--rule);
  outline-offset: -3px;
  transition: background-color 0.3s var(--ease);
}
.bar {
  display: block;
  height: 14px;
  margin-left: calc(var(--from) / var(--span) * 100%);
  width: calc((var(--to) - var(--from)) / var(--span) * 100%);
  background: var(--ink);
  transform-origin: left center;
  transition: background-color 0.3s var(--ease), height 0.3s var(--ease);
}
.role-h, .role-meta, .role-text { transition: padding 0.3s var(--ease); }
.role-h { margin-top: 14px; font-size: 1.25rem; line-height: 1.3; }
.role-h b { font-weight: 850; font-stretch: 80%; font-size: 1.5rem; margin-right: 8px; }
.role-meta { margin-top: 2px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.role-text { margin-top: 8px; max-width: 62ch; color: var(--ink-2); }

/* linked highlight: a company in focus paints its rows cobalt */
body[data-active] [data-co] { transition-delay: 0s; }
body[data-active="akveo"] [data-co="akveo"],
body[data-active="teacode"] [data-co="teacode"],
body[data-active="belvg"] [data-co="belvg"],
body[data-active="fivejars"] [data-co="fivejars"],
body[data-active="idego"] [data-co="idego"],
body[data-active="ewave"] [data-co="ewave"] {
  background: var(--cobalt);
  color: var(--on-cobalt);
}
body[data-active="akveo"] .roles [data-co="akveo"] :is(.role-h, .role-meta, .role-text),
body[data-active="teacode"] .roles [data-co="teacode"] :is(.role-h, .role-meta, .role-text),
body[data-active="belvg"] .roles [data-co="belvg"] :is(.role-h, .role-meta, .role-text),
body[data-active="fivejars"] .roles [data-co="fivejars"] :is(.role-h, .role-meta, .role-text),
body[data-active="idego"] .roles [data-co="idego"] :is(.role-h, .role-meta, .role-text),
body[data-active="ewave"] .roles [data-co="ewave"] :is(.role-h, .role-meta, .role-text),
body[data-active="akveo"] .results [data-co="akveo"],
body[data-active="teacode"] .results [data-co="teacode"],
body[data-active="belvg"] .results [data-co="belvg"] { padding-left: 20px; padding-right: 20px; }
body[data-active] .results [data-co] .r-text,
body[data-active] .roles [data-co] .role-text,
body[data-active] .roles [data-co] .role-meta { transition: color 0.3s var(--ease); }
body[data-active="akveo"] [data-co="akveo"] :is(.r-text, .role-text, .role-meta),
body[data-active="teacode"] [data-co="teacode"] :is(.r-text, .role-text, .role-meta),
body[data-active="belvg"] [data-co="belvg"] :is(.r-text, .role-text, .role-meta),
body[data-active="fivejars"] [data-co="fivejars"] :is(.role-text, .role-meta),
body[data-active="idego"] [data-co="idego"] :is(.role-text, .role-meta),
body[data-active="ewave"] [data-co="ewave"] :is(.role-text, .role-meta) { color: var(--on-cobalt-2); }
body[data-active="akveo"] .roles [data-co="akveo"] .bar,
body[data-active="teacode"] .roles [data-co="teacode"] .bar,
body[data-active="belvg"] .roles [data-co="belvg"] .bar,
body[data-active="fivejars"] .roles [data-co="fivejars"] .bar,
body[data-active="idego"] .roles [data-co="idego"] .bar,
body[data-active="ewave"] .roles [data-co="ewave"] .bar { background: var(--paper); height: 22px; }
.roles li:focus-visible { outline: 3px solid var(--ink); }
.numbers [data-co] { transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }

.how h3, .r-figure, .role-h, .close-h, .intro-h { text-wrap: balance; }

/* how I work */
.how {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: var(--rule);
}
.how > div { padding: 24px 24px 32px 0; border-bottom: var(--rule); }
.how > div:nth-child(odd) { border-right: var(--rule); }
.how > div:nth-child(even) { padding-left: 24px; padding-right: 0; }
.how > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.how h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 850;
  font-stretch: 76%;
  line-height: 1;
  letter-spacing: -0.01em;
}
.how p { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }

/* facts */
.fact-grid { border-top: var(--rule); }
.fact-grid > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: var(--rule);
}
.fact-grid dt { font-weight: 800; font-stretch: 85%; }
.course-list li + li { margin-top: 4px; }
.fact-grid dd { color: var(--ink-2); max-width: 62ch; }

/* close */
.close {
  padding: var(--step) var(--gutter) var(--gutter);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}
.close-h {
  font-size: clamp(3.5rem, 9vw, 9.5rem);
  font-weight: 900;
  font-stretch: 68%;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 9ch;
}
.close-text { margin-top: 28px; line-height: 1.45; font-size: 1.25rem; font-weight: 600; color: var(--on-cobalt-2); }
.close-mail {
  margin-top: 12px;
  font-size: clamp(1.5rem, 4.2vw, 4rem);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.01em;
  text-decoration-thickness: 3px;
  overflow-wrap: anywhere;
  align-self: flex-start;
}
.close-sub { margin-top: 14px; font-size: 1rem; font-weight: 600; color: var(--on-cobalt-2); }
.close-sub a { color: var(--on-cobalt); }
.close-mail:hover { text-decoration-thickness: 6px; }
.close-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; margin-bottom: var(--step); }
.close-actions .btn { margin-top: 0; min-width: 240px; }
.colophon {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-cobalt-2);
  border-top: var(--rule-light);
  padding-top: 14px;
  margin-top: auto;
}

/* load moment: the bars draw along the year axis once, from a visible default */
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .roles.is-drawn .bar { animation: draw 1.1s var(--ease) both; }
  .roles.is-drawn li:nth-child(2) .bar { animation-delay: 0.08s; }
  .roles.is-drawn li:nth-child(3) .bar { animation-delay: 0.16s; }
  .roles.is-drawn li:nth-child(4) .bar { animation-delay: 0.24s; }
  .roles.is-drawn li:nth-child(5) .bar { animation-delay: 0.32s; }
  .roles.is-drawn li:nth-child(6) .bar { animation-delay: 0.4s; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .block-h, .block-note { grid-column: 1 / -1; }
  .block > :not(.block-h):not(.block-note) { grid-column: 1 / -1; grid-row: auto; margin-top: 36px; }
  .intro-copy { grid-column: 1 / 9; }
  .intro-photo { grid-column: 9 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  :root { --top-h: 56px; }
  .nav a:not(:last-child) { display: none; }
  .intro { display: flex; flex-direction: column; min-height: 0; }
  .intro-copy { padding: 36px 0 32px; }
  .intro-h { font-size: clamp(3rem, 16.5vw, 5.5rem); }
  .intro-actions { grid-template-columns: 1fr; }
  .intro-roles > span:not(.sep), .status-text > span { display: block; }
  .intro-roles .sep, .status-text .sep { display: none; }
  .intro-photo { margin: 0 calc(var(--gutter) * -1); min-height: 0; aspect-ratio: 4 / 5; }
  .numbers-main { padding-top: 56px; }
  .deltas { grid-template-columns: 1fr; }
  .deltas li { border-right: 0; border-bottom: var(--rule); }
  .deltas li:last-child { border-bottom: 0; }
  .how { grid-template-columns: 1fr; }
  .how > div, .how > div:nth-child(even) { padding: 22px 0 26px; border-right: 0; }
  .fact-grid > div { grid-template-columns: 1fr; gap: 4px; }
  .years { font-size: 0.6875rem; }
  .years span:nth-child(even), .years span:nth-child(11) { visibility: hidden; }
  .close-actions .btn { min-width: 0; flex: 1 1 100%; }
}

/* ---------- print: the page doubles as a CV ---------- */
@media print {
  .top, .intro-photo, .btn, .intro-actions, .close-actions, .links, .nav { display: none; }
  .field { background: none; color: var(--ink); }
  .intro-lede, .close-text, .colophon { color: var(--ink-2); }
  .intro { min-height: 0; display: block; }
  .numbers-figure { font-size: 6rem; }
  .block { break-inside: avoid; padding: 32px 0; }
}
