:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --ink: #211d29;
  --muted: #5d5765;
  --line: #ded9df;
  --purple: #572dce;
  --deep-purple: #23164b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --shell: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.case-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
em { font-weight: inherit; }
.shell { width: min(var(--shell), calc(100% - 112px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; inset: 12px auto auto 12px; background: white; color: var(--purple); padding: 10px 14px; }
.eyebrow { font: 500 11px/1.45 var(--mono); letter-spacing: .085em; text-transform: uppercase; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.identity { display: inline-flex; width: max-content; align-items: center; gap: 11px; font-size: 15px; font-weight: 680; letter-spacing: -.035em; }
.mark { display: grid; place-content: center; grid-auto-flow: column; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--purple); font: italic 24px/1 var(--serif); letter-spacing: -.07em; }
.mark span { color: #cbb7ff; }
.header-inner nav { display: flex; gap: clamp(20px, 3vw, 43px); color: var(--muted); font-size: 14px; font-weight: 520; }
.header-inner nav a:hover, .identity:hover { color: var(--purple); }
.contact-link { display: inline-flex; gap: 12px; align-items: center; justify-self: end; border: 1px solid #d9d0e4; border-radius: 7px; padding: 8px 13px; color: var(--purple); font-size: 13px; font-weight: 620; }
.contact-link:hover { border-color: var(--purple); background: #f0eaff; }

.hero { display: grid; grid-template-columns: 1.11fr 1fr; align-items: center; gap: 56px; padding-block: 58px 43px; }
.hero-copy { padding-block: 4px; }
.hero h1 { font: 400 clamp(64px, 7.6vw, 116px)/.86 var(--serif); letter-spacing: -.044em; }
.hero h1 em, .section-heading h2 em, .about h2 em, .personal h2 em { color: var(--purple); }
.intro { max-width: 470px; color: var(--muted); margin-top: 25px; font-size: clamp(15px, 1.27vw, 18px); line-height: 1.61; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 16px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 620; transition: background .18s, border-color .18s; }
.button.primary { color: #fff; background: var(--purple); }
.button.primary:hover { background: #4320ab; }
.button.secondary { border-color: #d9d0e4; background: transparent; }
.button.secondary:hover { color: var(--purple); border-color: var(--purple); background: #f0eaff; }
.hero-visual { position: relative; isolation: isolate; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 11px; background: #eee6fd; border: 1px solid #e3d8f8; }
.hero-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 57% 50%; }
.hero-meta { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-block: 1px solid var(--line); font: 500 11px/1.55 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .045em; }
.hero-meta b, .meta-symbol { color: var(--purple); font-weight: 500; }
.hero-meta b { margin-inline: 7px; }
.meta-symbol { display: inline-block; margin-right: 4px; font-size: 14px; vertical-align: -1px; }

.work { padding-block: 59px 76px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.section-heading h2, .experience h2, .about h2, .footer-main h2 { font: 400 clamp(56px, 6vw, 88px)/.89 var(--serif); letter-spacing: -.045em; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 2px; }
.filter { background: transparent; border: 1px solid #e1dbe5; border-radius: 99px; padding: 6px 11px; font-size: 12px; font-weight: 550; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.filter:hover { border-color: var(--purple); }
.filter[aria-pressed="true"] { color: #fff; background: var(--deep-purple); border-color: var(--deep-purple); }

.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; }
.feature-link { display: flex; flex: 1; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fcfbf9; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature-link:hover { border-color: #b8a2e8; transform: translateY(-3px); box-shadow: 0 7px 18px #2d19430c; }
.feature-art { position: relative; isolation: isolate; display: grid; align-content: center; justify-items: start; min-height: 165px; padding: 18px 21px; overflow: hidden; }
.art-label, .art-note { position: relative; z-index: 1; font: 500 10px/1.4 var(--mono); }
.art-label { letter-spacing: .035em; }
.art-note { font-weight: 400; }
.art-value { position: relative; z-index: 1; margin: 5px 0 3px; font: 400 clamp(44px, 5vw, 66px)/.98 var(--serif); letter-spacing: -.035em; }
.art-aml { color: #f4ebff; background: #2b1b52; }
.art-aml .art-note { color: #d7c7f7; }
.art-health { color: #243f39; background: #e1efe6; }
.art-nlp { color: #432c69; background: #ede5fa; }
.network { position: absolute; right: -16px; bottom: -46px; width: 180px; height: 194px; transform: rotate(-25deg); opacity: .76; }
.network i { position: absolute; width: 142px; height: 142px; border: 1px solid #9c79ea; border-radius: 37%; }
.network i:nth-child(2) { top: 9px; left: 10px; }
.network i:nth-child(3) { top: 18px; left: 20px; }
.network i:nth-child(4) { top: 27px; left: 30px; }
.network i:nth-child(5) { top: 36px; left: 40px; }
.network i:nth-child(6) { top: 45px; left: 50px; }
.ring { position: absolute; width: 129px; aspect-ratio: 1; right: 11px; bottom: -28px; border-radius: 50%; background: conic-gradient(#74a38d 0% 61%, #bddec9 61% 100%); mask-image: radial-gradient(farthest-side, transparent 68%, #000 69%); opacity: .92; }
.bars { position: absolute; display: grid; gap: 9px; width: 120px; right: -14px; bottom: 23px; }
.bars i { display: block; height: 11px; width: 77.2%; background: #c2a9e8; border-radius: 3px 0 0 3px; }
.bars i:last-child { width: 83.9%; background: #9670ce; }
.feature-body { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 20px 21px 18px; }
.feature-body .eyebrow { color: var(--purple); font-size: 10px; margin-bottom: 6px; }
.feature-body h3 { font-size: clamp(18px, 1.75vw, 24px); line-height: 1.16; letter-spacing: -.045em; font-weight: 650; }
.feature-body > p:not(.eyebrow) { font-size: 13px; margin-block: 9px 18px; color: var(--muted); }
.read-link { display: inline-flex; gap: 8px; margin-top: auto; color: var(--purple); font-size: 13px; font-weight: 610; }

.archive { margin-top: 41px; }
.featured[hidden] + .archive { margin-top: 5px; }
.archive h3 { margin-bottom: 11px; font-size: 15px; font-weight: 650; }
.archive-list { border-top: 1px solid var(--line); }
.archive-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, 24%) 21px; align-items: center; gap: 14px; min-height: 55px; border-bottom: 1px solid var(--line); padding: 8px 4px 8px 0; font-size: 15px; font-weight: 600; transition: background .18s, padding .18s; }
.archive-row:hover { color: var(--purple); background: #f0ebf8; padding-left: 9px; }
.archive-row small { color: var(--muted); font-size: 12px; font-weight: 450; margin-left: 5px; }
.archive-type { font: 400 11px/1.4 var(--mono); color: var(--muted); }
.row-arrow { color: var(--purple); justify-self: end; }

.experience { border-block: 1px solid #e3dbe9; background: #f1ecf6; padding-block: 61px 66px; }
.experience-layout, .about { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; }
.experience-intro p, .about-copy p { color: var(--muted); max-width: 420px; margin-top: 20px; }
.timeline { list-style: none; margin: 2px 0 0; padding: 0; }
.timeline li { padding: 17px 0 19px; border-top: 1px solid #d8cde0; }
.timeline li:last-child { border-bottom: 1px solid #d8cde0; }
.job-heading { display: flex; gap: 8px 16px; justify-content: space-between; align-items: start; }
.job-heading h3, .education h3 { font-size: 20px; line-height: 1.19; letter-spacing: -.035em; font-weight: 640; }
.job-heading p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.job-date, .education-date { color: var(--purple); white-space: nowrap; font: 500 11px/1.5 var(--mono); }
.timeline li > p { margin-top: 9px; max-width: 610px; font-size: 14px; color: var(--muted); }

.about { padding-block: 74px 78px; }
.about-details { display: grid; align-content: start; gap: 25px; }
.about-details .eyebrow { color: var(--purple); margin-bottom: 8px; }
.education { border: 1px solid var(--line); border-radius: 9px; padding: 18px 21px; background: #fcfbf9; }
.education p:not(.eyebrow) { margin-block: 6px 9px; color: var(--muted); font-size: 14px; }
.toolkit ul, .case-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.toolkit li, .case-tags li { border: 1px solid var(--line); border-radius: 99px; padding: 4px 9px; font: 400 11px/1.4 var(--mono); }

.personal { padding-bottom: 74px; }
.personal-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 24px 48px; padding: 34px clamp(28px, 5vw, 76px); border: 1px solid #e1d6ed; border-radius: 11px; background: #f1ecf6; }
.personal h2 { font: 400 clamp(49px, 5vw, 72px)/.9 var(--serif); letter-spacing: -.045em; }
.personal-copy p { max-width: 470px; margin-top: 16px; color: var(--muted); }
.personal-copy p + p { margin-top: 10px; }
.personal-photo { width: min(100%, 300px); }
.personal-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.personal-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.site-footer { background: var(--deep-purple); color: #fcf8ff; }
.site-footer :focus-visible { outline-color: #d6b9ff; }
.footer-main { padding-block: 49px 43px; display: flex; align-items: center; justify-content: space-between; gap: 23px; }
.footer-main h2 em { color: #d6b9ff; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-actions a { display: inline-flex; gap: 13px; align-items: center; border: 1px solid #6c588f; border-radius: 7px; padding: 8px 12px; font-size: 13px; }
.footer-actions a:hover { background: #4a3472; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #d9cbe9; font: 400 11px/1.4 var(--mono); border-top: 1px solid #594778; padding-block: 15px 17px; }
.footer-bottom a:hover { text-decoration: underline; }

dialog { position: fixed; width: min(710px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 36px); margin: auto; padding: 0; border: 1px solid #d8cbe8; border-radius: 13px; color: var(--ink); background: var(--paper); box-shadow: 0 16px 70px #17101d4a; overscroll-behavior: contain; }
dialog::backdrop { background: #21173488; backdrop-filter: blur(4px); }
.case-panel { padding: clamp(19px, 4vw, 39px); }
.case-header { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.case-header .eyebrow { color: var(--purple); padding-top: 5px; }
.dialog-close { display: grid; place-content: center; width: 34px; height: 34px; cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 23px; line-height: 1; }
.dialog-close:hover { color: var(--purple); background: #eee4ff; }
.case-panel h2 { font: 400 clamp(40px, 7vw, 67px)/.93 var(--serif); letter-spacing: -.035em; margin: 6px 0 11px; }
.case-deck { max-width: 590px; color: var(--muted); font-size: 16px; }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; margin: 20px 0; }
.case-metrics > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 4px; min-width: 0; padding: 11px 13px; border-radius: 6px; background: #eee6fb; }
.case-metrics dd { color: var(--purple); font: 400 35px/.95 var(--serif); }
.case-metrics dt { font-size: 12px; line-height: 1.35; }
.case-details { display: grid; gap: 13px; margin-block: 20px; }
.case-details h3 { margin-bottom: 3px; font-size: 15px; }
.case-details p { color: var(--muted); font-size: 14px; }
.case-actions { margin-top: 17px; }

@media (max-width: 1020px) {
  .shell { width: calc(100% - 74px); }
  .hero { gap: 28px; }
  .hero-visual { aspect-ratio: 1.02; }
  .feature-art, .feature-body { padding-inline: 15px; }
  .experience-layout, .about { gap: 39px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 44px); }
  .header-inner { min-height: 63px; gap: 13px; }
  .header-inner nav { gap: 13px; font-size: 12px; }
  .identity { font-size: 13px; gap: 7px; }
  .mark { width: 29px; height: 29px; font-size: 21px; }
  .contact-link { font-size: 12px; padding: 6px 8px; gap: 6px; }
  .hero { grid-template-columns: 1fr 0.88fr; gap: 18px; padding-block: 44px 29px; }
  .hero h1 { font-size: clamp(50px, 9vw, 67px); }
  .intro { margin-top: 18px; }
  .hero-actions { margin-top: 16px; }
  .button { min-height: 41px; padding-inline: 9px; gap: 8px; }
  .hero-meta { font-size: 9px; gap: 6px; }
  .hero-meta b { margin-inline: 1px; }
  .work { padding-block: 47px 58px; }
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-row { grid-template-columns: minmax(0, 1fr) minmax(110px, 28%) 16px; }
  .experience, .about { padding-block: 48px; }
  .personal { padding-bottom: 48px; }
  .personal-panel { gap: 20px 24px; padding: 25px 24px; }
  .experience-layout, .about { grid-template-columns: 1fr; gap: 24px; }
  .experience-intro p, .about-copy p { margin-top: 15px; max-width: 560px; }
}

@media (max-width: 525px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner nav { justify-self: end; gap: 12px; }
  .contact-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 30px 20px; }
  .hero h1 { font-size: clamp(52px, 16.2vw, 81px); }
  .hero-visual { aspect-ratio: 4 / 3; }
  .personal-panel { grid-template-columns: 1fr; }
  .hero-meta { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 3px; padding-block: 8px; }
  .hero-meta b { margin-inline: 3px; }
  .section-heading { gap: 13px; margin-bottom: 17px; }
  .filter-group { gap: 5px; }
  .filter { padding: 6px 8px; font-size: 11px; }
  .featured { grid-template-columns: 1fr; gap: 11px; }
  .feature-art { min-height: 135px; }
  .feature-body h3 { font-size: 21px; }
  .feature-body > p:not(.eyebrow) { margin-bottom: 13px; }
  .archive { margin-top: 31px; }
  .archive-row { grid-template-columns: minmax(0, 1fr) 15px; gap: 2px 12px; padding-block: 10px; }
  .archive-type { grid-row: 2; }
  .row-arrow { grid-column: 2; grid-row: 1 / 3; }
  .job-heading { flex-wrap: wrap; }
  .footer-main { align-items: start; flex-direction: column; padding-block: 38px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

.arrow-ne { position: relative; display: inline-block; flex: 0 0 9px; width: 9px; height: 9px; align-self: center; }
.arrow-ne::before { content: ""; position: absolute; top: 0; right: 0; width: 6px; height: 6px; border-top: 1.4px solid; border-right: 1.4px solid; }
.arrow-ne::after { content: ""; position: absolute; top: 4px; left: -1px; width: 11px; border-top: 1.4px solid; transform: rotate(-45deg); }
