:root {
  color-scheme: dark;
  --bg: #151614;
  --panel: #1d1e1b;
  --ink: #f0ede3;
  --muted: #b2b4a8;
  --line: #3c3e36;
  --accent: #d7f86b;
  --purple: #c0a6ff;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
/* Vector arrows cannot fall back to a platform emoji glyph. */
.icon-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
a:hover {
  color: var(--accent);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 600;
}
h1 {
  font-size: clamp(56px, 7.6vw, 108px);
}
h2 {
  font-size: clamp(36px, 4.7vw, 64px);
}
h3 {
  font-size: clamp(25px, 3vw, 40px);
}
h1 em,
h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--purple);
}
p {
  margin-bottom: 1.2em;
}
.eyebrow {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.11em;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  padding: 12px;
  background: var(--accent);
  color: #111;
}
.skip:focus {
  top: 12px;
}
.site-header {
  max-width: var(--max);
  margin: auto;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  width: 55px;
  filter: invert(96%) sepia(8%) saturate(330%);
  height: 30px;
}
.brand-dot {
  color: var(--accent);
}
.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.contact-nav {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 17px;
}
.hero {
  max-width: var(--max);
  margin: auto;
  min-height: 740px;
  position: relative;
  isolation: isolate;
  padding: 78px 0 100px;
}
.hero-copy {
  max-width: 660px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(64px, 8.5vw, 118px);
  line-height: 0.94;
  margin: 28px 0 35px;
  letter-spacing: -0.065em;
}
.hero-intro {
  max-width: 470px;
  font-size: 21px;
  line-height: 1.5;
}
.hero-direction {
  color: var(--muted);
  font-size: 16px;
}
.hero-art {
  position: absolute;
  right: -30px;
  top: 30px;
  width: 690px;
  height: 620px;
  z-index: -1;
  opacity: 0.75;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  pointer-events: none;
}
.hero-art canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-copy:before {
  content: "";
  position: absolute;
  inset: -40px -50px -20px -50px;
  background: radial-gradient(
    ellipse at 30% 50%,
    #151614 15%,
    #151614e8 48%,
    transparent 76%
  );
  z-index: -1;
  pointer-events: none;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 9px;
}
.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
  margin: 28px 0;
}
.button,
.prose a.button {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 4px;
  background: var(--accent);
  color: #151614;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.button:hover,
.prose a.button:hover {
  background: #e6ffa5;
  color: #151614;
}
.text-link {
  font-size: 15px;
}
.math-controls {
  position: absolute;
  right: 0;
  bottom: 100px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  font-family: monospace;
  color: var(--muted);
  z-index: 2;
}
.math-caption {
  display: block;
  max-width: 115px;
  line-height: 1.5;
}
.math-controls button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  padding: 7px 10px;
  font-size: 11px;
}
.hero-bottom {
  position: absolute;
  bottom: 23px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.section {
  max-width: var(--max);
  margin: auto;
  padding: 85px 0;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0 80px;
  margin-bottom: 45px;
}
.section-heading .eyebrow {
  grid-column: 1/-1;
}
.section-heading h2 {
  margin: 12px 0;
}
.section-heading > p:last-child {
  align-self: end;
  color: var(--muted);
  max-width: 340px;
  font-size: 17px;
}
.work {
  border-bottom: 1px solid var(--line);
}
.work-row {
  display: grid;
  grid-template-columns: 60px 1fr 55px;
  gap: 25px;
  padding: 37px 12px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s;
}
.work-row:hover {
  background: #21231d;
  color: var(--ink);
}
.work-row:hover h3,
.work-row:hover .row-arrow {
  color: var(--accent);
}
.work-row h3 {
  max-width: 730px;
  margin: 8px 0 16px;
}
.work-row p:not(.eyebrow) {
  max-width: 655px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 16px;
}
.work-row .eyebrow {
  font-size: 11px;
}
.work-number {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 23px;
}
.row-arrow {
  justify-self: end;
  font-size: 35px;
  font-weight: 400;
}
.tags {
  font-family: monospace;
  font-size: 11px;
  color: var(--purple);
}
.featured h3 {
  font-size: clamp(36px, 4.5vw, 59px);
}
.section-note {
  margin: 25px 0 0 97px;
  color: var(--muted);
  font-size: 14px;
}
.story-strip {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 75px;
  border-bottom: 1px solid var(--line);
}
.story-strip > div {
  max-width: 650px;
}
.story-strip p:not(.eyebrow) {
  font-size: 21px;
  line-height: 1.65;
  color: var(--muted);
}
.earlier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 65px;
}
.earlier-grid > a {
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 25px 0 30px;
}
.earlier-grid span {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.earlier-grid h3 {
  font-size: 27px;
  margin: 14px 0;
  letter-spacing: -0.035em;
}
.earlier-grid p {
  color: var(--muted);
  max-width: 420px;
  font-size: 15px;
}
.more-work {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
.more-work summary {
  cursor: pointer;
}
.more-work > div {
  display: flex;
  gap: 15px 30px;
  flex-wrap: wrap;
  padding: 25px 0;
}
.contact {
  border-top: 1px solid var(--line);
  padding-bottom: 105px;
}
.contact h2 {
  font-size: clamp(45px, 6vw, 83px);
}
.contact > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
}
.contact-email {
  display: inline-block;
  font-size: clamp(20px, 3vw, 36px);
  letter-spacing: -0.035em;
  margin: 10px 0 20px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.contact-meta {
  font-size: 13px;
}
.site-footer {
  max-width: var(--max);
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.site-footer > div {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.about-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 70px;
  align-items: center;
  padding-bottom: 45px;
}
.about-hero h1 {
  font-size: clamp(55px, 6.5vw, 90px);
  margin-bottom: 28px;
}
.lede {
  font-size: 22px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}
.portrait {
  margin: 0;
  transform: rotate(2deg);
}
.portrait img {
  width: 100%;
  height: 355px;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 3px;
  background: var(--panel);
}
.portrait figcaption {
  font-size: 11px;
  margin-top: 12px;
  color: var(--muted);
  font-family: monospace;
}
.prose {
  max-width: 760px;
  font-size: 18px;
  padding-top: 35px;
}
.prose h2 {
  font-size: 34px;
  letter-spacing: -0.035em;
  margin-top: 55px;
  margin-bottom: 22px;
}
.prose p,
.prose li {
  color: #cccfc1;
}
.prose a {
  color: var(--ink);
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1.4;
}
.prose ul {
  padding-left: 24px;
}
.prose li {
  margin-bottom: 12px;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 55px 0;
}
.timeline {
  list-style: none;
  padding: 0 !important;
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline strong {
  font-family: monospace;
  font-size: 15px;
  color: var(--accent);
}
.case-hero {
  border-bottom: 1px solid var(--line);
  padding-top: 45px;
  padding-bottom: 50px;
}
.back {
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 45px;
}
.case-hero h1 {
  font-size: clamp(54px, 7vw, 95px);
  margin: 25px 0;
}
.case-facts {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
  font: 12px monospace;
  color: var(--accent);
}
.resume {
  max-width: 900px;
  padding-top: 55px;
}
.resume-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.resume h1 {
  font-size: 65px;
  margin-bottom: 20px;
}
.resume h2 {
  font-size: 29px;
  margin: 38px 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.resume h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 25px 0 6px;
}
.resume h3 span {
  font-weight: 400;
  color: var(--muted);
  font-size: 17px;
  display: block;
  margin-top: 8px;
}
.resume li {
  margin-bottom: 10px;
}
.resume ul {
  padding-left: 20px;
}
.job-date {
  font-size: 13px;
  color: var(--muted);
}
.resume-links {
  font-size: 13px;
}
.resume-summary {
  font-size: 18px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 30px 0;
}
@media (max-width: 1280px) {
  .site-header,
  .section,
  .hero,
  .site-footer {
    margin-left: 5%;
    margin-right: 5%;
  }
  .hero-art {
    right: 0;
    width: 60%;
  }
  .prose {
    margin-left: auto;
    margin-right: auto;
    padding-left: 25px;
    padding-right: 25px;
  }
  .resume {
    margin-left: auto;
    margin-right: auto;
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 25px;
  }
  .site-header {
    padding: 20px 0;
    gap: 15px;
  }
  .brand {
    font-size: 11px;
    gap: 8px;
  }
  .brand img {
    width: 38px;
    height: 24px;
  }
  .site-header nav {
    gap: 17px;
    font-size: 12px;
  }
  .contact-nav {
    display: none;
  }
  .hero {
    min-height: 710px;
    padding-top: 65px;
  }
  .hero h1 {
    font-size: clamp(44px, 13.5vw, 88px);
  }
  .hero-art {
    right: -5%;
    top: 65px;
    width: 100%;
    height: 430px;
    opacity: 0.47;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-copy:before {
    inset: -10px;
    background: linear-gradient(90deg, #151614ed, transparent);
  }
  .hero-intro {
    font-size: 19px;
    max-width: 430px;
  }
  .hero-direction {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .math-controls {
    position: static;
    margin-top: 36px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .math-caption {
    max-width: none;
    flex-basis: 100%;
    font-size: 9px;
  }
  .hero-bottom {
    font-size: 10px;
    flex-direction: column;
    gap: 4px;
  }
  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading > p:last-child {
    margin-top: 25px;
    max-width: 100%;
  }
  .work-row {
    grid-template-columns: 25px 1fr 22px;
    gap: 13px;
    padding: 28px 0;
  }
  .work-number {
    font-size: 17px;
  }
  .row-arrow {
    font-size: 26px;
  }
  .work-row p:not(.eyebrow) {
    font-size: 15px;
  }
  .work-row .eyebrow {
    font-size: 9px;
  }
  .tags {
    font-size: 9px;
  }
  .featured h3 {
    font-size: 36px;
  }
  .section-note {
    margin-left: 38px;
    font-size: 12px;
  }
  .story-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .story-strip p:not(.eyebrow) {
    font-size: 18px;
  }
  .earlier-grid {
    grid-template-columns: 1fr;
  }
  .earlier-grid h3 {
    font-size: 25px;
  }
  .site-footer {
    gap: 13px;
  }
  .site-footer > div {
    width: 100%;
    margin: 0;
    gap: 18px;
  }
  .about-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .portrait {
    max-width: 310px;
    justify-self: center;
  }
  .portrait img {
    height: 290px;
  }
  .prose {
    font-size: 17px;
    padding-top: 15px;
  }
  .prose h2 {
    font-size: 29px;
  }
  .lede {
    font-size: 19px;
  }
  .case-hero h1 {
    font-size: 54px;
  }
  .case-hero {
    padding-top: 30px;
  }
  .resume-top {
    display: block;
  }
  .resume h1 {
    font-size: 55px;
  }
  .resume-top .button,
  .prose a.button {
    margin-bottom: 25px;
  }
  .resume-summary {
    font-size: 16px;
  }
  .timeline li {
    grid-template-columns: 75px 1fr;
    gap: 10px;
  }
  .contact-email {
    font-size: clamp(18px, 5.5vw, 28px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
@page {
  size: A4;
  margin: 14mm 16mm;
}
@media print {
  :root {
    color-scheme: light;
  }
  body {
    background: white;
    color: #161616;
    font-size: 10pt;
    line-height: 1.3;
  }
  .site-header,
  .site-footer,
  .skip,
  .no-print {
    display: none !important;
  }
  .resume {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .resume-top {
    display: block;
  }
  .resume h1 {
    font-size: 29pt;
    margin: 0 0 6px;
    line-height: 1.05;
  }
  .resume h1 br {
    display: none;
  }
  .resume h1 em {
    color: #161616;
    font: inherit;
  }
  .resume .eyebrow {
    display: none;
  }
  .resume .lede {
    font-size: 12pt;
    margin: 8px 0;
    color: #333;
  }
  .resume h2 {
    font-size: 14pt;
    margin: 13px 0 6px;
    border-color: #bbb;
    break-after: avoid;
  }
  .resume h3 {
    font-size: 11pt;
    margin-top: 10px;
    break-after: avoid;
  }
  .resume h3 span {
    display: inline;
    font-size: 10pt;
    color: #333;
    margin-left: 8px;
  }
  .resume p {
    margin-bottom: 7px;
  }
  .resume li {
    margin-bottom: 4px;
  }
  .resume-summary {
    border-color: #555;
    font-size: 10pt;
    padding-left: 10px;
    margin: 10px 0;
  }
  .job-date,
  .resume-links {
    font-size: 9pt;
    color: #333;
  }
  .resume a {
    color: #161616;
    text-decoration: none;
  }
  .resume ul {
    margin: 8px 0;
    padding-left: 16px;
  }
  .resume .job {
    break-inside: avoid;
  }
}

[hidden] {
  display: none !important;
}
@media print {
  .resume h1 em {
    margin-left: 0.22em;
  }
}

/* Shared, subdued handwriting on the secondary portfolio pages. */
.sketch-page {
  isolation: isolate;
}
.sketch-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  filter: blur(0.5px);
  background:
    linear-gradient(90deg, #151614aa, #151614e8 30%, #151614e8 70%, #15161499),
    url("/public/about_me_background_3.png") center / cover no-repeat;
}
.sketch-page .site-header,
.sketch-page .site-footer {
  background: #151614df;
}
@media (max-width: 700px) {
  .sketch-page::before {
    background-image:
      linear-gradient(#151614d4, #151614e8),
      url("/public/about_me_background_3.png");
  }
}
@media print {
  .resume {
    font-size: 10.5pt;
    line-height: 1.4;
  }
  .resume .resume-research {
    break-before: page;
    margin-top: 0;
  }
  .resume li {
    margin-bottom: 6px;
  }
  .resume h2 {
    margin-top: 18px;
  }
}

@keyframes sketch-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.42;
  }
}
.sketch-enter .sketch-page::before {
  animation: sketch-enter 900ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .sketch-enter .sketch-page::before {
    animation: none;
  }
}
@media print {
  .sketch-page::before {
    display: none;
  }
}
