/* A single quiet column. All content stays readable without JavaScript. */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #242424;
  --muted: #707070;
  --soft: #858585;
  --line: #ececec;
  --wash: #f6f6f4;
  --content: 720px;
  --frame: 800px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
::selection { background: #e8e8e4; color: #171717; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #555; outline-offset: 6px; border-radius: 2px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { display: block; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 16px; left: 16px; transform: translateY(-160%); padding: 8px 16px; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { max-width: var(--frame); margin-inline: auto; }
.site-header { margin-top: 65px; padding-bottom: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 15px; font-weight: 500; letter-spacing: -.4px; }
.wordmark-brace { color: var(--soft); transition: color 180ms ease; }
.wordmark:hover .wordmark-brace { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 13px; color: var(--muted); transition: color 180ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: #bbb; }
main { max-width: var(--content); margin-inline: auto; }
.hero { padding-top: 82px; }
.hero-heading { display: block; }
.avatar { width: 57px; height: 57px; border-radius: 50%; flex: 0 0 57px; display: grid; place-items: center; background: var(--wash); color: #70706b; margin-top: 5px; overflow: hidden; }
.avatar span { font-size: 18px; font-weight: 450; letter-spacing: -.9px; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.hero-heading .avatar { width: 144px; height: 144px; margin: 3px 0 0; border-radius: 3px; }
.hero-heading .avatar img { filter: none; object-position: 60% 50%; transform: scale(1.4); }
.hero-heading .avatar span { font-size: 16px; }
.introduction { min-width: 0; flex: 1; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 3px 0 0; font-size: clamp(25px, 2.7vw, 28px); line-height: 1.4; letter-spacing: -.9px; font-weight: 500; }
.intro-prefix { white-space: nowrap; }
.rotator { display: inline-grid; vertical-align: baseline; font-weight: 400; color: var(--soft); white-space: nowrap; }
.rotator-word, .rotator-measure { grid-area: 1 / 1; }
.rotator-word { will-change: opacity; }
.rotator-measure { visibility: hidden; pointer-events: none; }
.hero-copy { max-width: 590px; margin: 20px 0 0; }
.hero-copy p { font-size: 15px; line-height: 1.7; letter-spacing: -.1px; margin-bottom: 0; }
.hero-copy .bio { margin-top: 8px; color: var(--muted); }
.hero-copy .current-role { margin-top: 22px; font-size: 13px; color: #555; }
.hero-with-photo { display: grid; grid-template-columns: minmax(0, 1fr) 144px; gap: 36px; align-items: start; }
.hero-with-photo .introduction { grid-column: 1; grid-row: 1; }
.hero-with-photo .avatar { grid-column: 2; grid-row: 1; }
.social-links { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 23px 0 0; list-style: none; }
.text-link { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; line-height: 1.6; text-decoration: underline; text-decoration-color: #c8c8c8; transition: text-decoration-color 180ms; }
.text-link:hover { text-decoration-color: var(--ink); }
.text-link svg { width: 12px; height: 12px; }
.home-section { margin-top: 73px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.section-heading h2 { font-size: 16px; font-weight: 550; letter-spacing: -.3px; margin-bottom: 0; }
.section-heading .text-link { font-size: 12px; color: var(--muted); }
.entry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.entry-list li + li { border-top: 1px solid var(--line); }
.project-entry { display: flex; align-items: flex-start; gap: 12px; }
.project-entry .entry-link { flex: 1; min-width: 0; }
.project-repository { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; margin-top: 18px; color: var(--muted); transition: color 180ms ease; }
.project-repository:hover { color: var(--ink); }
.project-repository svg { width: 18px; height: 18px; }
.entry-link { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0 24px; }
.entry-copy { min-width: 0; }
.entry-title { font-size: 17px; line-height: 1.4; font-weight: 480; letter-spacing: -.25px; margin: 0 0 5px; }
.entry-summary { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 60ch; margin: 0; }
.entry-type { display: inline-block; margin-top: 11px; font-size: 11px; color: var(--muted); letter-spacing: .12px; }
.entry-arrow { color: #717171; margin-top: 5px; transition: transform 200ms ease, color 200ms ease; }
.entry-link:hover .entry-arrow { transform: translateX(3px); color: var(--ink); }
.entry-link:hover .entry-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: #ccc; }
.writing-empty { border-top: 1px solid var(--line); padding-top: 22px; }
.writing-empty p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; max-width: 56ch; }
.writing-empty .quiet-note { font-size: 12px; color: var(--soft); margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); margin-top: 78px; margin-bottom: 40px; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer p { font-size: 11px; color: var(--muted); margin-bottom: 0; }
.footer-contact { display: flex; align-items: center; gap: 10px; }
.footer-contact-label { white-space: nowrap; font-size: 11px; color: var(--muted); }
.footer-social-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 -7px 0 0; padding: 0; }
.footer-social-link { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); transition: color 180ms ease; }
.footer-social-link:hover { color: var(--ink); }
.footer-social-link svg { width: 16px; height: 16px; }
.page-head { padding-top: 74px; margin-bottom: 45px; }
.eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 17px; }
.page-head h1 { font-size: clamp(32px, 4vw, 43px); line-height: 1.2; letter-spacing: -1.5px; font-weight: 480; margin-bottom: 18px; }
.page-lead { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 59ch; margin-bottom: 0; }
.page-head .text-link { margin-top: 25px; }
.page-work .entry-link { padding-block: 26px; }
.page-work .project-repository { margin-top: 22px; }
.work-section + .work-section { margin-top: 40px; }
.work-disclosure-summary { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 48px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.work-disclosure-summary::-webkit-details-marker { display: none; }
.work-disclosure-summary::marker { content: ''; }
.work-disclosure-less, .work-disclosure[open] .work-disclosure-more { display: none; }
.work-disclosure[open] .work-disclosure-less { display: inline; }
.work-disclosure-chevron { color: var(--muted); }
.work-disclosure[open] .work-disclosure-chevron { transform: rotate(180deg); }
.work-disclosure-summary:hover, .work-disclosure-summary:hover .work-disclosure-chevron { color: var(--ink); }
.work-disclosure-summary:focus-visible { outline: 2px solid #555; outline-offset: 5px; border-radius: 2px; }
.work-empty { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 0; font-size: 13px; color: var(--muted); }
.back-link { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.back-link:hover { color: var(--ink); }
.prose { max-width: 64ch; }
.prose section { margin-top: 36px; }
.prose h2 { font-size: 18px; line-height: 1.5; font-weight: 520; letter-spacing: -.3px; margin-bottom: 13px; }
.prose p { font-size: 15px; line-height: 1.85; color: #585858; margin-bottom: 16px; }
.section-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 24px 0; border-block: 1px solid var(--line); }
.case-facts > div { display: flex; flex-direction: column; gap: 7px; }
.case-facts dt { font-size: 12px; line-height: 1.5; color: var(--muted); }
.case-facts dd { order: -1; margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.8px; font-weight: 450; }
.case-steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.case-steps li { counter-increment: step; display: grid; grid-template-columns: 24px 82px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.case-steps li::before { content: counter(step, decimal-leading-zero); font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.9; color: var(--soft); }
.case-steps h3 { margin: 0; font-size: 13px; line-height: 1.7; font-weight: 500; }
.case-steps p { margin: 0; font-size: 13px; line-height: 1.7; }
.dashboard-snapshot { margin: 26px 0 28px; }
.snapshot-title { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.snapshot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 0; }
.snapshot-metric { min-width: 0; padding: 17px 12px 15px; background: var(--paper); }
.snapshot-metric dt { min-height: 34px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.snapshot-metric dd { margin: 10px 0 0; }
.snapshot-value { display: block; white-space: nowrap; font-size: 25px; line-height: 1.3; font-weight: 450; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.snapshot-unit { margin-left: 1px; font-size: .8em; letter-spacing: -.3px; }
.snapshot-change { display: inline-flex; align-items: center; gap: 3px; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.snapshot-change-positive { color: #47745d; }
.dashboard-snapshot figcaption { margin-top: 11px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.context-flow { margin: 26px 0 0; }
.context-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.context-sources li, .context-stage { border: 1px solid var(--line); border-radius: 4px; padding: 16px 12px; }
.context-flow h3 { font-size: 13px; line-height: 1.5; font-weight: 500; margin: 0 0 5px; }
.context-flow p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.context-connector { display: flex; justify-content: center; padding: 11px 0; color: #aaa; }
.context-connector svg { transform: rotate(90deg); }
.context-stage { max-width: 400px; margin-inline: auto; text-align: center; padding-inline: 22px; }
.context-flow figcaption { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.research-table-wrap { margin: 24px 0; overflow-x: auto; }
.page-research .page-head h1 { text-wrap: balance; }
.page-research .prose { max-width: none; }
.page-research .prose section > p { max-width: 64ch; }
.research-table-wrap:focus-visible { outline: 2px solid #777; outline-offset: 5px; }
.research-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.6; }
.research-table th, .research-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.research-table th:first-child, .research-table td:first-child { padding-left: 0; }
.research-table th:last-child, .research-table td:last-child { padding-right: 0; }
.research-table thead th { color: var(--muted); font-size: 11px; font-weight: 450; border-top: 1px solid var(--line); }
.research-table tbody th { font-weight: 450; min-width: 140px; }
.research-table td { color: #585858; }
.research-figures { margin: 28px 0 22px; }
.research-figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.research-figure-grid img { display: block; width: 100%; height: auto; }
.research-figure-grid a { display: block; cursor: zoom-in; }
.research-figures figcaption { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 14px; }
.prose p.research-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-closing-photo { width: 100%; max-width: 520px; margin: 24px 0 0; }
.project-closing-photo a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.project-closing-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.article-rule { border: 0; height: 1px; background: var(--line); margin: 38px 0; }
.related-work { max-width: 64ch; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.related-work h2 { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.related-work ul { display: flex; flex-direction: column; gap: 9px; list-style: none; padding: 0; margin: 0; }
.related-work .text-link { font-size: 12px; line-height: 1.6; }
.prose .profile-reference { margin-top: 28px; font-size: 13px; color: var(--muted); }
.profile-reference .text-link { font-size: inherit; }
.about-layout .avatar { width: 180px; height: 180px; margin: 0 0 28px; border-radius: 3px; }
.about-layout .avatar span { font-size: 23px; }
.about-layout .avatar img { filter: none; object-position: 60% 50%; transform: scale(1.4); }
.contact-section { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 29px; }
.contact-section h2 { font-size: 16px; font-weight: 520; letter-spacing: -.3px; margin-bottom: 8px; }
.contact-section p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.copy-button { border: none; background: none; font-size: 12px; color: var(--muted); padding: 3px 0; text-decoration: underline; text-decoration-color: #ccc; text-underline-offset: 4px; margin-top: 23px; }
.article-date { font-size: 12px; color: var(--muted); }
.empty-page { margin-top: 0; padding-top: 24px; padding-bottom: 70px; }
.not-found { min-height: 360px; }
.page-zari .page-head { margin-bottom: 30px; }
.zari-photo { --photo-ratio: .75; margin: 0; min-width: 0; flex: var(--photo-ratio) 1 0; }
.zari-photo-link { display: block; aspect-ratio: var(--photo-ratio); overflow: hidden; border-radius: 4px; cursor: zoom-in; background: var(--wash); }
.zari-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zari-photo-landscape { --photo-ratio: 1.333333; }
.zari-photo-focus-lower img { object-position: 50% 65%; }
.zari-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.zari-photo-placeholder { aspect-ratio: 3 / 2; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px; background: var(--wash); border-radius: 3px; }
.zari-photo-placeholder p { margin: 0; font-size: 12px; color: var(--muted); }
.zari-story { max-width: 620px; margin-top: 14px; }
.zari-story p:last-child { margin-bottom: 0; }
.zari-gallery { display: grid; gap: 14px; }
.zari-photo-row { display: flex; align-items: flex-start; gap: 14px; }
.photo-viewer { max-width: calc(100vw - 40px); max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.photo-viewer::backdrop { background: rgb(255 255 255 / 94%); backdrop-filter: blur(6px); }
.photo-viewer > img { display: block; max-width: 100%; max-height: calc(100dvh - 96px); width: auto; height: auto; border-radius: 3px; }
.photo-viewer-close { position: absolute; top: -38px; right: -6px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.photo-viewer-close:hover { color: var(--ink); }
@media (min-width: 1600px) { .site-header { margin-top: 88px; } .hero { padding-top: 94px; } }
@media (max-width: 880px) {
  .site-header, .site-footer { margin-inline: 32px; }
  main { margin-inline: 52px; }
}
@media (max-width: 760px) {
  .research-figure-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-with-photo { display: block; }
  .hero-with-photo .introduction { display: block; }
  .hero-with-photo .avatar { width: 112px; height: 112px; margin: 0 0 24px; }
  .hero-with-photo .hero-copy { margin-top: 20px; }
  .snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshot-metric { padding: 16px; }
  .snapshot-metric:first-child { grid-column: 1 / -1; }
  .snapshot-metric dt { min-height: 0; }
  .snapshot-metric:first-child dd { display: flex; align-items: baseline; gap: 14px; }
  .snapshot-metric:first-child .snapshot-change { margin-top: 0; }
}
@media (max-width: 600px) {
  .zari-gallery, .zari-photo-row { gap: 8px; }
  .zari-photo-link { border-radius: 3px; }
  .site-header, .site-footer, main { margin-inline: 25px; }
  .site-header { margin-top: 30px; padding-bottom: 19px; gap: 12px; }
  .wordmark { font-size: 13px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 12px; }
  .hero { padding-top: 50px; }
  .hero-heading { display: block; }
  .hero-heading .avatar { margin: 0 0 18px; }
  .hero h1 { font-size: clamp(24px, 6vw, 30px); letter-spacing: -.8px; margin-bottom: 3px; }
  .hero-copy { margin-top: 17px; }
  .hero-copy p { font-size: 15px; line-height: 1.7; }
  .hero-copy .current-role { margin-top: 20px; }
  .social-links { gap: 22px; margin-top: 21px; }
  .home-section { margin-top: 53px; }
  .entry-link { gap: 16px; padding-block: 20px; }
  .entry-summary { font-size: 13px; }
  .entry-type { font-size: 10px; }
  .site-footer { margin-top: 56px; margin-bottom: 28px; padding-top: 19px; flex-wrap: wrap; gap: 12px 20px; }
  .site-footer p { font-size: 10px; }
  .page-head { padding-top: 50px; margin-bottom: 34px; }
  .page-head h1 { font-size: 35px; }
  .page-lead { font-size: 15px; }
  .prose p { font-size: 14px; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .case-steps li { grid-template-columns: 20px minmax(0, 1fr); gap: 4px 12px; }
  .case-steps p { grid-column: 2; font-size: 13px; }
  .context-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-flow p { font-size: 12px; }
  .research-table-wide { min-width: 440px; }
}
@media (max-width: 360px) {
  .site-header, .site-footer, main { margin-inline: 20px; }
  .site-nav { gap: 15px; }
  .wordmark { font-size: 12px; }
  .hero h1 { font-size: 26px; }
  .section-heading .text-link { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The role uses a brief opacity-only dissolve, with no positional motion. */
  *:not(.rotator-word), *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
