/* Design tokens */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-raised: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --hairline: #d2d2d7;
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --btn-text: #ffffff;
  --tile-dark: #000000;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-line: rgba(0, 0, 0, 0.12);
  --grad-a: #0066cc;
  --grad-b: #00799e;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --column: 980px;
  --column-wide: 1200px;
  --gutter: 22px;
  --section-pad: 120px;
  --tile-radius: 28px;
  --tile-pad: 48px;
  --art-stroke: 2;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --bg-raised: #1d1d1f;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --hairline: #424245;
    --link: #2997ff;
    --tile-dark: #1d1d1f;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --nav-line: rgba(255, 255, 255, 0.16);
    --grad-a: #2997ff;
    --grad-b: #5ac8fa;
  }
}

@media (max-width: 733px) {
  :root {
    --section-pad: 72px;
    --tile-radius: 18px;
    --tile-pad: 28px;
    --art-stroke: 4.5;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure,
address {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

[id] {
  scroll-margin-top: 64px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 980px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 0.875rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--nav-line);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.nav__brand {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 24px;
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: -0.01em;
}

.nav__links a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
}

@media (max-width: 400px) {
  .nav__links {
    gap: 14px;
  }
}

/* Layout */

.wrap {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: calc(var(--column-wide) + 2 * var(--gutter));
}

.section {
  padding-block: var(--section-pad);
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section--compact {
  padding-block: calc(var(--section-pad) * 0.67);
}

.section--hero {
  padding-top: calc(var(--section-pad) * 0.7);
  padding-bottom: 0;
}

.center {
  text-align: center;
}

.section__head {
  margin-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}

.section__head .lead {
  margin-inline: auto;
}

.section--hero + .section {
  padding-top: calc(var(--section-pad) * 0.75);
}

.section--hero:has(.hero__art) {
  padding-bottom: 24px;
}

/* Type */

h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.007em;
}

.eyebrow--accent {
  width: fit-content;
  margin-inline: auto;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 38rem;
  margin-top: 20px;
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: 0.009em;
  text-wrap: pretty;
}

.center .lead {
  margin-inline: auto;
}

.small {
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: -0.01em;
}

.secondary {
  color: var(--text-2);
}

/* Controls */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 0;
  border-radius: 980px;
  background: var(--btn);
  color: var(--btn-text);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.1765;
  letter-spacing: -0.022em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--btn-hover);
  text-decoration: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  font-size: 1.0625rem;
}

.link-more::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.4em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.link-more--down::after {
  margin-top: -0.2em;
  transform: rotate(135deg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 32px;
}

.actions + .actions {
  margin-top: 20px;
}

/* Tiles and lists */

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid > li {
  display: flex;
}

.tile {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--tile-pad);
  border-radius: var(--tile-radius);
  background: var(--bg-alt);
  text-align: left;
}

.tile--raised {
  background: var(--bg-raised);
}

.tile--dark {
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --link: #2997ff;
  --hairline: #424245;
  background: var(--tile-dark);
  color: var(--text);
}

.tile .eyebrow {
  margin-bottom: 8px;
}

.tile h3 + p {
  margin-top: 16px;
}

.tile .list {
  margin-top: 28px;
}

.tile__art {
  align-self: flex-start;
  height: 112px;
  width: auto;
  margin-bottom: 32px;
}

.tile__link {
  margin-top: auto;
  padding-top: 32px;
}

.tile--small {
  position: relative;
  padding: 28px;
  padding-right: 52px;
  color: var(--text);
  transition: transform 0.3s var(--ease);
}

.tile--small h3 {
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.tile--small h3 + p {
  margin-top: 6px;
  color: var(--text-2);
}

.tile--link:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.tile--link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-top: 1.5px solid var(--link);
  border-right: 1.5px solid var(--link);
  transform: rotate(45deg);
}

.tile--wide {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 48px;
}

.tile--wide h2 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
}

.tile--wide p {
  max-width: 34rem;
  margin-top: 16px;
}

.tile--wide .small {
  margin-top: 12px;
}

.tile__icon {
  width: 120px;
  height: 120px;
  border-radius: 22.5%;
}

.list li {
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
}

.list li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.tile .list li:last-child {
  border-bottom: 0;
}

.bullets {
  padding-left: 1.1em;
  list-style: disc;
}

.bullets li {
  margin-top: 8px;
}

.bullets li::marker {
  color: var(--text-2);
}

/* Illustration */

.art {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--art-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art__faint {
  opacity: 0.25;
  stroke-width: 1;
}

.art__dot {
  fill: currentColor;
  stroke: none;
}

.art__dash {
  opacity: 0.45;
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
}

.art__ref {
  stroke: var(--text-2);
  stroke-dasharray: 0.01 9;
}

.hero__art {
  margin-top: 40px;
  color: var(--text);
}

.curve {
  stroke-width: calc(var(--art-stroke) * 1.5);
  stroke-dasharray: 1 1;
  animation: draw 1.6s var(--ease) 0.3s both;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

.glyph {
  width: 40px;
  height: 40px;
  color: var(--link);
  stroke-width: 1.5;
}

.tile--dark .tile__art {
  color: var(--text);
}

/* Record and facts */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}

.stat {
  display: block;
  text-align: center;
}

.stat__value {
  display: block;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat__label {
  display: block;
  max-width: 14rem;
  margin: 10px auto 0;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.35;
}

.stats__note {
  margin-top: 56px;
  color: var(--text-2);
  text-align: center;
}

.address {
  margin-top: 48px;
}

/* Expertise rows */

.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 48px;
  padding-block: 48px;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 72px;
}

.area__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.area h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.15;
}

.area__tagline {
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.009em;
}

.area__tagline + p {
  margin-top: 12px;
}

.area__label {
  margin-bottom: 8px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.33;
  text-transform: uppercase;
}

.area .list li:last-child {
  border-bottom: 0;
}

/* Profile */

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.summary {
  max-width: 46rem;
  margin: 0 auto 56px;
  text-align: left;
}

.section__title {
  margin-bottom: 40px;
}

.entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0 32px;
  padding-block: 32px;
  border-top: 1px solid var(--hairline);
}

.entry__when {
  color: var(--text-2);
}

.entry__role {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.entry__org {
  margin-top: 4px;
  color: var(--text-2);
}

.entry__main .bullets {
  margin-top: 14px;
}

.skills .entry {
  padding-block: 18px;
}

.skills .entry:last-child,
.entry:last-child {
  padding-bottom: 0;
}

.refs li {
  padding-block: 18px;
  border-top: 1px solid var(--hairline);
}

.refs li:last-child {
  padding-bottom: 0;
}

/* Footer */

.site-footer {
  padding: 24px 0 32px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: -0.01em;
}

.site-footer a {
  color: var(--text-2);
}

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

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.footer__legal {
  padding-top: 16px;
}

.footer__legal p + p {
  margin-top: 6px;
}

/* Facts awaiting confirmation */

[data-confirm] {
  padding: 0 0.15em;
  border-bottom: 1px dotted #1d1d1f;
  border-radius: 2px;
  background: #ffe066;
  color: #1d1d1f;
  -webkit-text-fill-color: #1d1d1f;
}

/* Motion */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html:not(.js) [data-action] {
  display: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .curve {
    animation: none;
  }

  .tile--small,
  .link-more::after,
  .btn,
  .nav__links a {
    transition: none;
  }

  .tile--link:hover {
    transform: none;
  }
}

/* Breakpoints */

@media (max-width: 1067px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile--wide {
    gap: 32px;
  }
}

@media (max-width: 733px) {
  .grid,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 16px;
  }

  .tile--wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .tile--small {
    padding: 20px 44px 20px 22px;
  }

  .tile--link::after {
    right: 20px;
  }

  .area {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 36px;
  }

  .area__head {
    gap: 14px;
  }

  .entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-block: 24px;
  }

  .section--hero + .section {
    padding-top: var(--section-pad);
  }

  .hero__art {
    margin-top: 40px;
  }

  .actions {
    gap: 16px 24px;
  }
}

/* Print: the profile page is the one that matters */

@media print {
  :root {
    --bg: #ffffff;
    --bg-alt: #ffffff;
    --bg-raised: #ffffff;
    --text: #000000;
    --text-2: #333333;
    --hairline: #999999;
    --link: #000000;
    --section-pad: 18pt;
    --tile-pad: 0;
  }

  @page {
    margin: 16mm 15mm;
  }

  body {
    min-height: 0;
    background: #ffffff;
    color: #000000;
    font-size: 10.5pt;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .site-header,
  .skip-link,
  .footer__links,
  .btn,
  .link-more::after,
  .art,
  .glyph,
  .hero__art,
  .visually-hidden,
  [data-action] {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section,
  .section--alt,
  .section--compact {
    padding-block: 12pt;
    background: none;
  }

  .section--hero {
    padding-top: 0;
  }

  h1 {
    font-size: 24pt;
    line-height: 1.1;
  }

  h2,
  .section__title {
    margin-bottom: 8pt;
    font-size: 15pt;
    line-height: 1.15;
    break-after: avoid;
  }

  .lead,
  .summary {
    margin-top: 6pt;
    font-size: 11pt;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .eyebrow,
  .eyebrow--accent {
    background: none;
    color: #333333;
    -webkit-text-fill-color: #333333;
    font-size: 10.5pt;
  }

  .monogram {
    width: 22mm;
    height: 22mm;
    border: 1px solid #000000;
    background: none;
    font-size: 16pt;
  }

  .stat__value {
    background: none;
    color: #000000;
    -webkit-text-fill-color: #000000;
    font-size: 16pt;
  }

  .stat__label {
    font-size: 9.5pt;
  }

  .stats {
    gap: 8pt;
  }

  .summary {
    margin-bottom: 12pt;
  }

  .actions {
    justify-content: flex-start;
    margin-top: 8pt;
    gap: 4pt 14pt;
  }

  .entry {
    grid-template-columns: 38mm minmax(0, 1fr);
    gap: 0 6mm;
    padding-block: 8pt;
    break-inside: avoid;
  }

  .skills .entry,
  .refs li {
    padding-block: 5pt;
    break-inside: avoid;
  }

  .entry__role {
    font-size: 11pt;
  }

  .bullets li {
    margin-top: 3pt;
  }

  a {
    color: #000000;
    text-decoration: none;
  }

  a[href]::after {
    content: none;
  }

  [data-confirm] {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentcolor;
  }

  .site-footer {
    padding: 8pt 0 0;
    background: none;
    color: #333333;
    font-size: 8.5pt;
  }

  .footer__legal {
    padding-top: 6pt;
    border-top: 1px solid #999999;
  }
}
