/* Entry point. The build inlines these into one fingerprinted file. */
/* Design tokens: "executive briefing": white paper, near-black ink, one deep-teal accent, IBM Plex Sans throughout. Type scale modelled on McKinsey, Gartner, Stripe and IBM: light, large headlines; 17px body. */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-300-normal.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-300-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --font: 'IBM Plex Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;

  --ink: #16191d;
  --ink-2: #4a5058;
  --ink-3: #737a84;
  --rule: #16191d;
  --line: #dedbd4;
  --paper: #ffffff;
  --paper-2: #f6f4ef;

  --accent: #0b5d5f; /* deep teal */
  --accent-hover: #084a4c;
  --accent-soft: #e6f0ef;

  --wrap: 1080px;
  --gutter: 32px;
  --side: 220px; /* left label column */
  --mast-h: 64px;
}

@media screen and (max-width: 900px) {
  :root {
    --gutter: 20px;
    --mast-h: 56px;
  }
}

/* Reset + element defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mast-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

@media screen and (max-width: 900px) {
  body {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Page chrome: masthead, content width, two-column rows, section heads, footer */
.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Masthead */
.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--line);
}

.mast__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--mast-h);
}

.mast__name {
  flex: none;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mast__links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.mast__links {
  align-items: center;
}

.mast__links a:hover,
.mast__links a[aria-current='true'] {
  color: var(--accent);
}

.mast__links .mast__cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
}

.mast__links .mast__cta:hover {
  color: #fff;
  background: var(--accent-hover);
}

.mast__links a[aria-current='true'] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Sections */
.section {
  padding-top: 112px;
}

.section__head {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--rule);
}


.section__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Two-column row: label on the left, content on the right */
.row {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 0;
}

.row--last {
  border-bottom: 0;
}

.row__label,
.kicker.row__label {
  padding-top: 4px;
  color: var(--ink-3);
}

/* Footer */
.footer {
  padding: 28px 0;
  font-size: 14px;
  color: var(--ink-3);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer a:hover {
  color: var(--accent);
}

.notfound {
  padding: 120px 0;
}

@media screen and (max-width: 900px) {
  .mast__links {
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .mast__name {
    font-size: 16px;
  }

  .section {
    padding-top: 64px;
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }


  .section__title {
    font-size: 30px;
  }

  .row {
    padding: 24px 0;
  }
}

@media screen and (max-width: 560px) {
  .mast__name {
    display: none;
  }
}

.notfound__actions {
  margin-top: 24px;
}

/* Reusable building blocks */
.kicker {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  transition: background-color 0.15s;
  border-radius: 8px;
}

.btn:hover {
  background: var(--accent-soft);
}

.btn--solid {
  color: #fff;
  background: var(--accent);
}

.btn--solid:hover {
  background: var(--accent-hover);
}

.btn--light {
  color: #fff;
  border-color: #fff;
}

.btn--light:hover {
  background: rgb(255 255 255 / 0.1);
}

.btn--light.btn--solid {
  color: var(--accent);
  background: #fff;
}

.list-plain {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.list-plain strong {
  color: var(--ink);
}

/* Small "Stack:" line under roles and case studies */
.stack {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
}

.stack b {
  margin-right: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Name on one line, detail underneath (education, recognition) */
.list-plain--pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
}

.list-plain--pairs strong,
.list-plain--pairs span {
  display: block;
}

.list-plain--pairs span {
  margin-top: 2px;
  font-size: 15px;
}

@media screen and (max-width: 700px) {
  .list-plain--pairs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .list-plain--pairs {
    gap: 4pt 14pt;
  }
  .list-plain--pairs span {
    margin-top: 0;
    font-size: 8.5pt;
  }
}

/* Styles for individual sections, in page order */

/* Opening */
.open {
  padding: 88px 0 64px;
}

.open__grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 64px;
  align-items: start;
}

.open__name {
  margin-top: 18px;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 300;
}

.open__position {
  margin-top: 24px;
  max-width: 720px;
  font-family: var(--font);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 300;
  letter-spacing: 0;
}

.open__position em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

.open__photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

.open__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 2px solid var(--rule);
}

.open__meta {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.open__meta li + li::before {
  content: '|';
  margin: 0 12px;
  color: var(--line);
}

/* Distinctions get their own line so the bar never wraps mid-list */
.open__meta .open__honors {
  flex-basis: 100%;
  margin-top: 6px;
  font-weight: 500;
  color: var(--accent);
}

.open__meta .open__honors::before {
  content: none;
}

@media screen and (max-width: 900px) {
  .open {
    padding: 40px 0 48px;
  }
  .open__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .open__photo {
    order: -1;
    width: 120px;
    height: 146px;
  }
  .open__name {
    font-size: 42px;
  }
  .open__position {
    font-size: 19px;
  }
  .open__meta {
    flex-direction: column;
    gap: 2px;
  }
  .open__meta li + li::before {
    content: none;
  }
}

/* At a glance */
.glance {
  padding: 56px 0 64px;
  background: var(--paper-2);
}

.glance__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.glance__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.figure {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}

.figure:first-child {
  padding-left: 0;
  border-left: 0;
}

.figure__tag {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.figure__value {
  display: block;
  font-family: var(--font);
  font-size: 48px;
  line-height: 1;
  font-weight: 300;
  white-space: nowrap;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.figure__label {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

@media screen and (max-width: 900px) {
  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .figure {
    padding: 0 16px;
  }
  .figure:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .figure__value {
    font-size: 32px;
  }
}

/* Perspective */
.pov__quote {
  font-family: var(--font);
  font-size: 28px;
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -0.005em;
}

.pov__quote::before {
  content: '\201C';
  color: var(--accent);
}

.pov__quote::after {
  content: '\201D';
  color: var(--accent);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
}


.principle__title {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.principle p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-2);
}

@media screen and (max-width: 900px) {
  .pov__quote {
    font-size: 21px;
  }
  .principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* Selected work */
.case {
  display: grid;
  grid-template-columns: var(--side) 1fr 220px;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}


.case__org {
  padding-top: 8px;
  color: var(--ink-3);
}

.case__title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 500;
}

.case__facts {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.case__facts dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.case__facts dd {
  margin-top: 2px;
  color: var(--ink-2);
}

.case__result {
  align-self: start;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.case__result-value {
  font-family: var(--font);
  font-size: 34px;
  line-height: 1.05;
  white-space: nowrap;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.case__result-label {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

@media screen and (max-width: 900px) {
  .case {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 32px 0;
  }
  .case__org {
    padding-top: 0;
  }
}

/* Experience */
.role__company {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

.role__dates {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-3);
}

.role__title {
  font-weight: 500;
}

.role__title span {
  font-weight: 400;
  color: var(--ink-3);
}

.role__title + .role__title {
  margin-top: 2px;
}

.role__points {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 18px;
  color: var(--ink-2);
}

.role__points li::marker {
  color: var(--accent);
}

.role__points strong {
  color: var(--ink);
}

.role__earlier {
  color: var(--ink-2);
}

/* Technical depth */
.depth__intro {
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: 0;
  font-weight: 300;
}

.depth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}

.depth__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: 16px;
  border-bottom: 2px solid var(--accent);
  font-weight: 500;
}

.depth__list {
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.depth__list li {
  display: inline-block;
  white-space: nowrap; /* never split a skill across lines */
}

.depth__list li:not(:last-child)::after {
  content: '·';
  margin: 0 9px;
  color: var(--accent);
  font-weight: 700;
}

@media screen and (max-width: 700px) {
  .depth {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* Credentials & recognition */





.cred__badge {
  margin-left: 10px;
  padding: 2px 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent);
  background: var(--accent-soft);
}


/* Contact */
.contact {
  margin-top: 96px;
  padding: 72px 0;
  color: #fff;
  background: var(--accent);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.contact__title {
  max-width: 640px;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.contact__detail {
  margin-top: 12px;
  color: rgb(255 255 255 / 0.85);
}

.contact__detail a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media screen and (max-width: 900px) {
  .contact {
    margin-top: 64px;
    padding: 56px 0;
  }
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .contact__title {
    font-size: 26px;
  }
}

/* Doctoral research */
.research__lead {
  font-family: var(--font);
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 300;
}

.research__title {
  margin-top: 20px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 500;
}

.research__text {
  margin-top: 12px;
  color: var(--ink-2);
}

.research__text strong {
  color: var(--ink);
}

.research__question {
  margin-top: 16px;
  padding: 16px 20px;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 0;
  border-radius: 10px;
}

.research__question b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.rfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
  list-style: none;
}

.rfacts li {
  display: grid;
  align-content: start;
  gap: 8px;
}

.rfacts__value {
  font-family: var(--font);
  font-size: 40px;
  line-height: 1;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.rfacts__label {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.rfacts__source {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

.phases li {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.phases li:first-child {
  border-top-color: var(--accent);
}

.phases__when {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.phases__what {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

@media screen and (max-width: 900px) {
  .research__lead {
    font-size: 17px;
  }
  .research__title {
    font-size: 19px;
  }
  .rfacts,
  .phases {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .rfacts__value {
    font-size: 32px;
  }
}

.role__points a,
.list-plain a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Data bars (widths are classes because the CSP blocks inline styles) */
.meter {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  background: var(--line);
  border-radius: 4px;
}

.meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 4px;
}

.meter__fill--15 { width: 14.8%; }
.meter__fill--25 { width: 25%; }
.meter__fill--50 { width: 50%; }

.rfacts .meter {
  max-width: 220px;
}

.bars {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.bars div {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.bars dd {
  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

/* Filtra flow diagram */
.flow {
  margin: 0;
}

.flow__steps {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 0;
  list-style: none;
}

.flow__steps > li {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
}

/* arrow between steps */
.flow__steps > li + li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -22px;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.flow__steps > li + li::after {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  left: -10px;
  border: 5px solid transparent;
  border-left: 6px solid var(--accent);
}

.flow__node {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.flow__node--agent {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.flow__node--agent .flow__desc {
  color: rgb(255 255 255 / 0.85);
}

.flow__node--human {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.flow__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.flow__desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.flow__caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

/* Career trajectory */
.trajectory {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.trajectory li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 22px 12px 0 0;
  border-top: 2px solid var(--line);
}

.trajectory li::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.trajectory li:last-child {
  border-top-color: var(--accent);
}

.trajectory li:last-child::before {
  background: var(--accent);
}

.trajectory__year {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.trajectory__role {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
}

.trajectory li:last-child .trajectory__role {
  font-weight: 600;
  color: var(--ink);
}





@media screen and (max-width: 900px) {
  .flow__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .flow__steps > li + li::before {
    top: -20px;
    left: 24px;
    width: 2px;
    height: 14px;
  }
  .flow__steps > li + li::after {
    top: -9px;
    left: 20px;
    border: 5px solid transparent;
    border-top: 6px solid var(--accent);
  }
  .trajectory {
    grid-template-columns: minmax(0, 1fr);
  }
  .trajectory li {
    grid-template-columns: 52px 1fr;
    padding: 0 0 16px 22px;
    border-top: 0;
    border-left: 2px solid var(--line);
  }
  .trajectory li:last-child {
    border-left-color: var(--accent);
  }
  .trajectory li::before {
    top: 4px;
    left: -7px;
  }
}

/* Certifications: badge groups */
.certs {
  display: grid;
  gap: 36px;
}

.cert-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}

.cert-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cert-group__name {
  font-size: 17px;
  font-weight: 500;
}

.cert-group__note {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--ink-3);
}

.cred__badge {
  margin-left: 0;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 12px;
  padding: 0;
  list-style: none;
}

.badge-grid li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 92px;
  text-align: center;
}

.badge-grid img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.badge-grid li > span:last-child {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-2);
}


/* Education with icons */
.edu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  padding: 0;
  list-style: none;
}

.edu li {
  display: grid;
  align-content: start;
  gap: 4px;
}


.edu__logo {
  justify-self: start;
  width: auto;
  max-width: 100%;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
}

.edu strong,
.edu span {
  display: block;
}

.edu strong {
  font-size: 15.5px;
  line-height: 1.4;
}

.edu li > span {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

.edu a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media screen and (max-width: 900px) {
  .cert-pair,
  .edu {
    grid-template-columns: minmax(0, 1fr);
  }
  .cert-group__note {
    margin-left: 0;
    width: 100%;
  }
  .badge-grid {
    gap: 16px 8px;
  }
  .badge-grid li {
    width: 84px;
  }
  .badge-grid img {
    width: 60px;
    height: 60px;
  }
}


/* Writing */
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.section__more {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.section__more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 0 0;
  list-style: none;
}

.article__link {
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* keeps "Read on Medium" aligned at the bottom of every card */
  gap: 8px;
  height: 100%;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.article__link:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgb(11 93 95 / 0.08);
}

.article__meta {
  font-size: 13px;
  color: var(--ink-3);
}

.article__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 500;
}

.article__summary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.article__cta {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

@media screen and (max-width: 760px) {
  .articles {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .article__link {
    padding: 20px;
  }
}

@media print {
  .articles {
    gap: 6pt 14pt;
    padding-top: 6pt;
  }
  .article__link {
    gap: 2pt;
    padding: 0;
    border: 0;
  }
  .article__meta {
    font-size: 7.5pt;
  }
  .article__title {
    font-size: 10pt;
  }
  .article__summary {
    font-size: 8.5pt;
  }
  .article__cta,
  .section__more {
    display: none;
  }
}

/* Progression of titles within one employer */
.progression {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.progression__step {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 2px solid var(--line);
}

.progression__step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

/* dot on the line */
.progression__step::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.progression__step--current::before {
  background: var(--accent);
}

/* line segment from the current role down to the previous one is teal */
.progression__step--current {
  border-left-color: var(--accent);
}

.progression__note {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

@media print {
  .progression__step {
    padding: 0 0 6pt 12pt;
  }
  .progression__step::before {
    top: 3pt;
    left: -5pt;
    width: 7pt;
    height: 7pt;
  }
  .progression__note {
    margin-top: 2pt;
    padding: 0 6pt;
    font-size: 7.5pt;
  }
  .progression__step,
  .progression__step::before,
  .progression__note {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.progression .role__points {
  list-style: disc; /* nested lists default to hollow circles */
}

/* Focus line under the headline figures */
.glance__expertise {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}

@media print {
  .glance__expertise {
    gap: 2pt 10pt;
    margin-top: 6pt;
    padding-top: 4pt;
    font-size: 9pt;
  }
}

/* Print / "Save as PDF" (also generates the downloadable resume): a compact briefing, ~3 pages */
@media print {
  @page {
    size: letter;
    margin: 13mm 14mm;
  }

  :root {
    --side: 120px;
    --paper-2: #fff;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    font-size: 9.5pt;
    line-height: 1.45;
  }

  .mast,
  .row__label:empty,
  .skip-link,
  .open__bar .actions,
  .contact .actions,
  .footer {
    display: none !important;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  /* Opening */
  .open {
    padding: 0 0 10pt;
  }
  .open__grid {
    grid-template-columns: 1fr 70pt;
    gap: 20pt;
  }
  .open__name {
    margin-top: 4pt;
    font-size: 28pt;
  }
  .open__position {
    margin-top: 6pt;
    font-size: 12pt;
    max-width: none;
  }
  .open__photo {
    width: 70pt;
    height: 85pt;
  }
  .open__bar {
    margin-top: 10pt;
    padding-top: 5pt;
    border-top-width: 1.5pt;
  }
  .open__meta {
    font-size: 9pt;
  }
  .open__meta .open__honors {
    margin-top: 1pt;
  }

  /* At a glance */
  .glance {
    padding: 4pt 0 8pt;
  }
  .glance__label {
    margin-bottom: 6pt;
  }
  .figure {
    padding: 0 10pt;
  }
  .figure__tag {
    margin-bottom: 2pt;
    font-size: 6.5pt;
  }
  .figure__value {
    font-size: 20pt;
  }
  .figure__label {
    margin-top: 3pt;
    font-size: 8.5pt;
  }

  /* Sections */
  .section {
    padding-top: 14pt;
  }
  .section__head {
    padding-bottom: 4pt;
    margin-bottom: 0;
    border-bottom-width: 1.5pt;
    break-after: avoid;
  }
  .section__title {
    font-size: 16pt;
  }
  .row {
    gap: 14pt;
    padding: 8pt 0;
  }
  .kicker {
    font-size: 7.5pt;
  }

  .pov__quote {
    font-size: 12pt;
  }
  .principles {
    gap: 14pt;
  }
  .principle__title {
    margin-top: 2pt;
    font-size: 10.5pt;
  }
  .principle p {
    margin-top: 2pt;
    font-size: 9pt;
  }

  .case {
    gap: 14pt;
    padding: 8pt 0;
    grid-template-columns: var(--side) 1fr 120pt;
  }
  .case__org {
    padding-top: 2pt;
  }
  .case__title {
    font-size: 12pt;
  }
  .case__facts {
    gap: 3pt;
    margin-top: 4pt;
  }
  .case__facts dt {
    font-size: 7.5pt;
  }
  .case__result {
    padding-left: 8pt;
  }
  .case__result-value {
    font-size: 15pt;
  }
  .case__result-label {
    margin-top: 2pt;
    font-size: 8.5pt;
  }

  .role__company {
    font-size: 12pt;
  }
  .role__dates {
    margin-top: 2pt;
    font-size: 8.5pt;
  }
  .role__points {
    gap: 2pt;
    margin-top: 4pt;
  }
  .stack {
    margin-top: 4pt;
    font-size: 8.5pt;
  }

  .depth {
    gap: 8pt 18pt;
  }
  .depth__intro {
    font-size: 11pt;
  }
  .depth__title {
    padding-bottom: 3pt;
    margin-bottom: 4pt;
    font-size: 10.5pt;
    border-bottom-width: 1.5pt;
  }
  .depth__list {
    font-size: 8.5pt;
    line-height: 1.5;
  }

  .list-plain {
    gap: 2pt;
  }

  .contact {
    margin-top: 10pt;
    padding: 8pt 0 0;
    color: var(--ink);
    background: none;
    border-top: 1.5pt solid var(--rule);
  }
  .contact__title {
    font-size: 12pt;
  }
  .contact__detail {
    margin-top: 2pt;
    color: var(--ink-2);
  }

  .research__lead {
    font-size: 10.5pt;
  }
  .research__title {
    margin-top: 4pt;
    font-size: 12pt;
  }
  .research__text {
    margin-top: 3pt;
  }
  .research__question {
    margin-top: 5pt;
    padding: 4pt 8pt;
  }
  .rfacts,
  .phases {
    gap: 12pt;
  }
  .rfacts__value {
    font-size: 16pt;
  }
  .rfacts__label,
  .phases__what {
    font-size: 8.5pt;
  }
  .rfacts__source,
  .phases__when {
    font-size: 7.5pt;
  }
  .phases li {
    padding-top: 3pt;
  }

  .case,
  .role,
  .figure,
  .principle,
  .depth > div {
    break-inside: avoid;
  }
}

@media print {
  .flow__steps {
    gap: 14pt;
  }
  .flow__node {
    padding: 5pt 7pt;
  }
  .flow__name {
    font-size: 9pt;
  }
  .flow__desc,
  .flow__caption {
    font-size: 7.5pt;
  }
  .flow__caption {
    margin-top: 4pt;
  }
  .flow__node--agent {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .meter,
  .meter__fill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .trajectory li {
    padding-top: 8pt;
  }
  .trajectory__year,
  .trajectory__role {
    font-size: 7.5pt;
  }
  .bars {
    margin-top: 4pt;
    gap: 2pt;
  }
  .bars div {
    font-size: 7.5pt;
  }
  .flow,
  .trajectory {
    break-inside: avoid;
  }
}

@media print {
  .certs {
    gap: 8pt;
  }
  .cert-pair {
    gap: 8pt 14pt;
  }
  .cert-group__head {
    padding-bottom: 3pt;
    margin-bottom: 5pt;
  }
  .cert-group__name {
    font-size: 10pt;
  }
  .cert-group__note {
    font-size: 7.5pt;
  }
  .badge-grid {
    gap: 6pt 4pt;
  }
  .badge-grid li {
    width: 50pt;
    gap: 2pt;
  }
  .badge-grid img {
    width: 32pt;
    height: 32pt;
  }
  .badge-grid li > span:last-child {
    font-size: 6.5pt;
  }
  .edu {
    gap: 6pt 14pt;
  }
  .edu li {
    gap: 1pt;
  }
  .edu__logo {
    height: 20pt;
    margin-bottom: 3pt;
  }
  .edu strong {
    font-size: 9pt;
  }
  .edu li > span {
    font-size: 8pt;
  }
  .cert-group {
    break-inside: avoid;
  }
}

/* Website-only content, left out of the printed / PDF resume to keep it short */
@media print {
  .print-hide {
    display: none !important;
  }
}

@media print {
  /* Keep short blocks whole so nothing splits awkwardly across pages */
  .list-plain--pairs,
  .edu,
  .depth {
    break-inside: avoid;
  }
  .badge-grid li {
    width: 44pt;
  }
  .badge-grid img {
    width: 28pt;
    height: 28pt;
  }
  .certs {
    gap: 6pt;
  }
}


@media print {
  /* keep a row's label with its content (e.g. "How Filtra Works" + diagram) */
  .row:has(.flow),
  .row:has(.trajectory) {
    break-inside: avoid;
  }
}

@media print {
  .research__question {
    break-inside: avoid;
  }
}

/* PDF keeps a classic resume order: Experience straight after Selected Work,
   then research, writing, skills and credentials. (The website leads with research and writing.) */
@media print {
  main {
    display: flex;
    flex-direction: column;
  }
  #research,
  #writing {
    order: 1;
  }
  #depth,
  #credentials,
  #contact {
    order: 2;
  }
}

