:root {
  color-scheme: light;
  --paper: #ffffff; --ink: #202124; --muted: #61636b; --line: #dedee2; --surface: #f3f3f6;
  --accent: #7e3048; --experience: #7e3048; --research: #315d97; --projects: #336856; --competitions: #806022; --reading: #735188;
  --photo: none; --serif: Georgia, 'Times New Roman', serif; --sans: 'Segoe UI', Arial, sans-serif;
}
:root[data-theme="light"] {
  --ink: #202020; --muted: #626262; --line: #dedede; --surface: #f3f3f3; --accent: #202020;
  --experience: #595959; --research: #595959; --projects: #595959; --competitions: #595959; --reading: #595959; --photo: grayscale(1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191919; --ink: #efefef; --muted: #adadad; --line: #393939; --surface: #282828; --accent: #ffffff;
  --experience: #bcbcbc; --research: #bcbcbc; --projects: #bcbcbc; --competitions: #bcbcbc; --reading: #bcbcbc; --photo: grayscale(1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color 220ms ease, color 220ms ease; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
figure, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: .8rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h3 { font-size: 1.0625rem; line-height: 1.5; font-weight: 600; letter-spacing: -.015em; }
.site-shell { width: min(100% - 4rem, 860px); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.3rem 0 1rem; }
.monogram { margin-right: auto; font: 700 1.6rem/1 var(--serif); letter-spacing: -.1em; text-decoration: none; }
.monogram span { color: var(--accent); margin-left: .2em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-header a:not(.monogram) { font-size: .875rem; text-decoration: none; padding-block: .5rem; }
.site-header a:hover { text-decoration: underline; }
.appearance { display: flex; align-items: center; color: var(--muted); }
.mode-buttons { display: flex; align-items: center; gap: 2px; }
.mode-buttons button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color 180ms ease, background-color 180ms ease; }
.mode-buttons button[aria-pressed="true"] { color: var(--ink); background: var(--surface); }
.mode-buttons button:hover { color: var(--ink); background: var(--surface); }
.mode-buttons svg { width: 18px; height: 18px; }
.mode-color-wheel { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#e34b57, #f0a53a, #ead653, #65b967, #3eb6bd, #537cdb, #9761cd, #d65c9c, #e34b57); mask: radial-gradient(circle, transparent 40%, #000 44%); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 3rem; align-items: start; padding: 2.3rem 0 3.5rem; container-type: inline-size; }
.intro-copy { container-type: inline-size; }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.15rem); letter-spacing: -.055em; margin-bottom: 1.2rem; }
.intro-statement { font-size: clamp(.75rem, 4.2cqi, 1.25rem); line-height: 1.5; white-space: nowrap; letter-spacing: -.02em; }
.intro-context a { color: var(--ink); text-decoration-color: var(--accent); }
.intro-context { max-width: 33rem; color: var(--muted); margin-top: 1rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1rem 0 0 -.75rem; }
.contact-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); border-radius: 4px; text-decoration: none; }
.contact-links a:hover { color: var(--accent); background: var(--surface); }
.contact-links svg { display: block; width: 20px; height: 20px; }
.intro-sidebar { min-width: 0; padding-top: .4rem; }
.portrait { width: 140px; max-width: 100%; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; filter: var(--photo); border: 1px solid var(--line); }
.intro-credentials { border-left: 2px solid var(--accent); padding-left: .75rem; margin-top: .9rem; font-size: .75rem; line-height: 1.6; }
.intro-credentials p + p { margin-top: .15rem; }
.intro-school { font-size: .8125rem; font-weight: 600; }
.academic-fields { color: var(--muted); white-space: nowrap; }
.intro-credentials abbr { text-decoration: none; }
.scholar-note { color: var(--accent); }
.intro-location { color: var(--muted); font-size: .75rem; line-height: 1.5; margin-top: .85rem; }
.portfolio-section { --section-color: var(--experience); margin-bottom: 3.5rem; }
.research-section { --section-color: var(--research); }
.projects-section { --section-color: var(--projects); }
.competitions-section { --section-color: var(--competitions); }
.reading-section { --section-color: var(--reading); }
.portfolio-section > h2 { font-size: 1.85rem; letter-spacing: -.04em; padding-bottom: .85rem; border-bottom: 1px solid var(--line); position: relative; }
.portfolio-section > h2::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--section-color); }
.entry { padding: 1.3rem 0 1.4rem 1.3rem; position: relative; border-bottom: 1px solid var(--line); }
.entry::before { content: ''; width: 3px; height: 1.1rem; background: var(--section-color); position: absolute; top: 1.55rem; left: 0; }
.entry:last-child { border-bottom: 0; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-bottom: .2rem; }
.entry-heading h3 { min-width: 0; }
.entry-date { color: var(--muted); font-size: .8125rem; flex-shrink: 0; }
.entry-context { color: var(--section-color); font-size: .875rem; margin-bottom: .4rem; }
.entry > p:not(.entry-context) { color: var(--muted); max-width: 69ch; margin-top: .3rem; }
.entry > p strong { color: var(--ink); font-weight: 600; }
.entry-link { display: inline-block; font-size: .875rem; margin-top: .7rem; }
details > summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.entry-notes { margin-top: .65rem; }
.entry-notes > summary { display: inline-flex; gap: .5rem; align-items: center; font-size: .875rem; color: var(--muted); }
.entry-notes > summary::before { content: '+'; font-size: 1rem; line-height: 1; width: .6rem; }
.entry-notes[open] > summary::before { content: '−'; }
.entry-notes > summary:hover { color: var(--ink); }
.note-content { border-left: 1px solid var(--line); margin-top: 1rem; padding: .1rem 0 .1rem 1.1rem; color: var(--muted); max-width: 70ch; }
.note-content h4 { color: var(--ink); margin: 1.2rem 0 .3rem; font-size: 1rem; font-weight: 600; }
.note-content a { display: inline-block; font-size: .875rem; margin-top: .8rem; }
.tools-line { color: var(--muted); font-size: .875rem; }
.more-projects { border-top: 1px solid var(--line); margin-top: .2rem; }
.more-projects > summary { padding: 1rem 0; font-size: .875rem; font-weight: 600; }
.more-projects > summary::before, .background-details > summary::before { content: '+'; display: inline-block; width: 1.3rem; font-weight: 400; }
.more-projects[open] > summary::before, .background-details[open] > summary::before { content: '−'; }
.more-projects > summary span { font-weight: 400; color: var(--muted); margin-left: .5rem; }
.section-intro { color: var(--muted); margin-top: 1.1rem; }
.reading-list { list-style: none; margin: .6rem 0 0; padding: 0 0 0 1.3rem; border-left: 2px solid var(--section-color); }
.reading-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; }
.reading-list li > div { min-width: 0; }
.reading-list a { font-weight: 600; }
.reading-list li > div > span { display: block; font-size: .875rem; color: var(--muted); }
.reading-list li > span { font-size: .8125rem; color: var(--muted); padding-top: .1rem; }
.reading-invitation { display: inline-block; font-size: .875rem; margin-top: 1.2rem; }
.background-details { border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
.background-details > summary { padding: 1.1rem 0; font-size: .875rem; }
.background-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: .5rem 0 1.5rem; color: var(--muted); }
.background-content h3 { color: var(--ink); margin-bottom: .8rem; }
.background-content a { display: inline-block; margin-top: 1rem; font-size: .875rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 5.7rem 1fr; gap: .7rem; margin-bottom: .8rem; }
.timeline time { font-size: .75rem; padding-top: .15rem; }
.timeline p { font-size: .875rem; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.site-footer a:last-child { margin-left: auto; }
.skip-link { position: fixed; z-index: 10; top: -5rem; left: 1rem; background: var(--ink); color: var(--paper); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.timeline-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.timeline-heading h2 { font-size: 1.85rem; letter-spacing: -.04em; }
.timeline-heading > span { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
/* Each row shares one date scale. Labels stay outside short spans. */
.experience-map { --label-width: 178px; --track-gap: 20px; padding: .15rem 0 .5rem; }
.duration-axis { height: 32px; position: relative; margin-left: calc(var(--label-width) + var(--track-gap)); margin-right: 7px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.duration-axis > span { position: absolute; left: var(--tick); transform: translateX(-50%); white-space: nowrap; }
.duration-axis > span:first-child { transform: none; }
.duration-axis > .axis-present { transform: translateX(-100%); color: var(--ink); font-weight: 600; }
.experience-bookmark { --ribbon: var(--experience); --ribbon-text: var(--ribbon); --ribbon-ink: #fff; position: relative; text-decoration: none; color: var(--ink); }
.experience-bookmark:focus-visible { outline: 2px solid var(--ribbon); outline-offset: 3px; border-radius: 3px; }
.experience-bookmark[aria-expanded="true"] .duration-label strong { color: var(--ribbon-text); }
.research-bookmark { --ribbon: var(--research); }
.building-bookmark { --ribbon: var(--projects); }
.highlight-bookmark { --ribbon: var(--competitions); }
.leadership-bookmark { --ribbon: var(--experience); }
/* Bars echo the adjacent logo. Shared university identities share their maroon. */
[data-brand="isen"], [data-brand="aggiequant"], [data-brand="sinn-center"] { --brand: #500000; }
[data-brand="infolab"] { --brand: #1c7293; }
[data-brand="dekalb"] { --brand: #09265a; }
[data-brand="importintel"] { --brand: #17242f; }
[data-brand="trace"] { --brand: #073d74; }
[data-brand="dive"] { --brand: #009292; --brand-text: #007d7d; }
[data-brand="squarekettle"] { --brand: #111111; }
:root[data-theme="color"] .experience-bookmark[data-brand] { --ribbon: var(--brand); --ribbon-text: var(--brand-text, var(--brand)); }
:root[data-theme="color"] .experience-timeline [data-kind="highlight"] { --ribbon: #86621C; }
:root[data-theme="dark"] .experience-bookmark { --ribbon-ink: #191919; }
.duration-row { display: grid; grid-template-columns: var(--label-width) minmax(0, 1fr); gap: var(--track-gap); align-items: center; min-height: 45px; padding: 4px 7px 4px 0; }
.duration-label { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center; line-height: 1.4; }
.duration-label strong { font-size: .875rem; font-weight: 600; }
.duration-period { grid-column: 2; font-size: .75rem; color: var(--muted); }
.organization-mark { position: relative; display: grid; place-items: center; grid-row: 1 / 3; width: 28px; height: 28px; overflow: hidden; border-radius: 4px; }
.organization-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
@font-face { font-family: 'InfoLab Rajdhani'; src: url('assets/organizations/infolab-wordmark.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
.duration-label--wordmark .organization-mark { grid-column: 1 / -1; grid-row: 1; width: max-content; height: 20px; overflow: visible; border-radius: 0; font: 500 22px/1 'InfoLab Rajdhani', sans-serif; color: #1c7293; }
.duration-label--wordmark strong { display: none; }
.duration-label--wordmark .duration-period { grid-column: 1 / -1; }
:root[data-theme="light"] .organization-mark--infolab,
:root[data-theme="dark"] .organization-mark--infolab { color: var(--ink); }
/* Display the symbol portions of the original wordmarks without redrawing them. */
.organization-mark--dekalb img { position: absolute; width: auto; max-width: none; height: 32px; left: -2px; top: -2px; clip-path: inset(0 79% 0 0); }
.organization-mark--importintel { background: #17242f; }
.organization-mark--importintel img { position: absolute; width: 165px; max-width: none; height: auto; left: -118px; top: -6px; }
.organization-mark--dive { border-radius: 50%; }
.organization-mark--squarekettle { padding: 2px; }
:root:not([data-theme="color"]) .organization-mark { filter: grayscale(1); }
:root[data-theme="dark"] .organization-mark--dekalb img,
:root[data-theme="dark"] .organization-mark--eckman img,
:root[data-theme="dark"] .organization-mark--squarekettle img { filter: brightness(0) invert(1); }
.duration-track { position: relative; display: block; height: 37px; }
.duration-bar { display: block; position: absolute; top: 4px; height: 29px; background: var(--ribbon); color: var(--ribbon-ink); border-radius: 2px 0 0 2px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%); transition: filter 180ms ease, background-color 220ms ease; }
.ongoing .duration-bar { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
.duration-row:hover { color: var(--ribbon-text); }
.duration-row:hover .duration-bar, .duration-row[aria-expanded="true"] .duration-bar { filter: brightness(1.08); }
.duration-reu { position: absolute; inset-block: 0; display: flex; align-items: center; justify-content: center; font-size: .6875rem; font-weight: 600; white-space: nowrap; background: rgb(255 255 255 / .14); }
.timeline-highlights { margin-top: 1rem; }
.timeline-highlights > h3 { font-size: .8125rem; font-weight: 400; color: var(--muted); margin-bottom: .7rem; }
.milestone-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.milestone-bookmark { display: flex; flex-direction: column; padding: .15rem 0 .15rem .8rem; border-left: 2px solid var(--ribbon); line-height: 1.5; }
.milestone-bookmark::before { content: ''; position: absolute; width: 10px; height: 10px; top: .25rem; left: -6px; background: var(--ribbon); clip-path: polygon(50% 0, 62% 36%, 100% 36%, 69% 59%, 81% 100%, 50% 75%, 19% 100%, 31% 59%, 0 36%, 38% 36%); }
.milestone-bookmark strong { font-size: .875rem; font-weight: 600; color: var(--ribbon); }
.milestone-bookmark > span { font-size: .75rem; color: var(--muted); }
.milestone-bookmark > .milestone-date { font-size: .6875rem; margin-bottom: .15rem; }
.milestone-bookmark:hover { color: var(--ribbon); }
.experience-archive { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.experience-archive > summary { padding: 1rem 0; font-size: .875rem; font-weight: 600; }
.experience-archive > summary::before { content: '+'; display: inline-block; width: 1.3rem; font-weight: 400; }
.experience-archive[open] > summary::before { content: '−'; }
.experience-archive > summary > span { color: var(--muted); font-weight: 400; margin-left: .5rem; }
.experience-note { padding: 1rem 0 .2rem; border-top: 1px solid var(--line); scroll-margin-top: 2rem; }
.experience-note .period-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.period-title > span { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.entry-heading h4 { margin: 0; font-size: 1.0625rem; line-height: 1.5; font-weight: 600; letter-spacing: -.015em; }
.experience-note .entry-date { display: none; }
#milestone-spring .entry-date, #milestone-education .entry-date { display: block; color: var(--accent); font-weight: 600; }
.experience-note .note-content h4 { font-size: 1rem; }
.floating-experience { --float-accent: var(--accent); position: fixed; inset: auto; z-index: 100; margin: 0; width: min(330px, calc(100vw - 24px)); max-height: min(440px, calc(100dvh - 24px)); overflow: auto; overscroll-behavior: contain; padding: 1.25rem; background: var(--paper); color: var(--ink); border: 0; border-radius: 10px; box-shadow: 0 8px 28px rgb(0 0 0 / .13); }
.floating-experience::backdrop { background: transparent; pointer-events: none; }
.floating-close { position: absolute; top: .2rem; right: .3rem; border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.floating-close { border-radius: 50%; transition: color 180ms ease, background-color 180ms ease; }
.floating-close:hover { color: var(--ink); background: var(--surface); }
.floating-date { margin: .1rem 2rem .55rem 0; color: var(--muted); font-size: .75rem; }
.floating-category { margin: 0 1rem .5rem 0; color: var(--float-accent); font-size: .75rem; line-height: 1.5; }
.floating-experience > h3 { margin: 0 1.1rem .85rem 0; font: 400 1.35rem/1.25 var(--serif); letter-spacing: -.025em; }
.floating-body .entry { padding: 0; border: 0; }
.floating-body .entry::before { display: none; }
.floating-body .entry-context { color: var(--float-accent); }
.floating-body .entry > p { font-size: .9375rem; line-height: 1.6; }
.floating-body .entry-notes { margin-top: 1rem; }
.floating-body .note-content { padding-left: 0; border: 0; }
.floating-body .note-content h4 { font-size: 1rem; }
.floating-body a, .floating-body p { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .experience-map { --label-width: 156px; --track-gap: 12px; }
  .duration-label strong { font-size: .8125rem; }
  .duration-period { font-size: .6875rem; }
  .duration-axis > span:nth-child(4) { display: none; }
  .duration-reu { font-size: .625rem; }
  .milestone-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
}
@media (max-width: 440px) {
  .experience-map { --label-width: 0px; --track-gap: 0px; }
  .duration-row { grid-template-columns: 1fr; gap: 0; padding-block: 7px; }
  .duration-label { grid-template-columns: 23px minmax(0, 1fr) auto; column-gap: 8px; }
  .duration-label .organization-mark { grid-row: 1; width: 23px; height: 23px; }
  .duration-label .organization-mark--dekalb img { height: 28px; }
  .duration-label .organization-mark--importintel img { width: 141px; left: -102px; top: -5px; }
  .duration-label--wordmark .organization-mark { grid-column: 1 / 3; width: max-content; height: 23px; font-size: 21px; }
  .duration-label--wordmark .duration-period { grid-column: 3; }
  .duration-period { grid-column: 3; white-space: nowrap; }
  .duration-track { height: 29px; }
  .duration-bar { height: 21px; }
  .duration-axis { height: 25px; margin-top: .4rem; }
  .timeline-heading h2 { font-size: 1.65rem; }
  .timeline-heading { align-items: flex-start; }
  .timeline-heading > span { padding-top: .4rem; }
  .experience-archive > summary > span { display: block; margin: .2rem 0 0 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  body, .mode-buttons button, .duration-bar, .floating-close { transition: none; }
}
@media (max-width: 650px) {
  .site-shell { width: calc(100% - 2.5rem); }
  .site-header { gap: 1rem; }
  .site-header nav { gap: 1rem; }
  .intro { grid-template-columns: minmax(0, 1fr) 140px; gap: 1.8rem; padding: 2rem 0 3rem; }
  .entry-heading { flex-wrap: wrap; gap: .15rem 1rem; }
  .entry-date { flex-shrink: 1; }
  .more-projects > summary span { display: block; margin-left: 1.3rem; margin-top: .2rem; }
  .background-content { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 460px) {
  .site-shell { width: calc(100% - 2rem); }
  .site-header { gap: .5rem 1rem; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; gap: .6rem; }
  .intro { grid-template-columns: minmax(0, 1fr) 82px; gap: 1rem; }
  .intro-copy { display: contents; }
  .intro-sidebar { display: contents; }
  .intro h1 { grid-column: 1; margin-bottom: 0; font-size: clamp(2.4rem, 10vw, 3rem); align-self: center; }
  .portrait { grid-column: 2; grid-row: 1; padding: 0; }
  .intro-location { display: none; }
  .intro-credentials { grid-column: 1/-1; grid-row: 4; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 0; }
  .intro-credentials p + p { margin-top: 0; }
  .intro-statement, .intro-context, .contact-links { grid-column: 1/-1; }
  .intro-context, .contact-links { margin-top: 0; }
  .intro-statement { margin-top: .3rem; }
  .portfolio-section { margin-bottom: 2.8rem; }
  .portfolio-section > h2 { font-size: 1.65rem; }
  .entry { padding-left: 1rem; }
  .entry-heading { display: block; }
  .entry-date { display: block; margin-top: .2rem; }
  .reading-list { padding-left: 1rem; }
  .reading-list li { gap: 1rem; }
  .site-footer { gap: .5rem 1rem; }
  .site-footer > span { width: 100%; }
}
.projects-section > h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.8rem; }
.projects-section > h2::after { display: none; }
.project-gallery { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.project-index { display: grid; gap: .35rem; }
.project-choice { display: grid; grid-template-columns: 10px 1fr; gap: .75rem; padding: .85rem .8rem; border-radius: 8px; text-decoration: none; color: var(--muted); line-height: 1.4; }
.project-choice strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.project-choice > span > span { display: block; margin-top: .25rem; font-size: .75rem; }
.project-choice-mark { width: 7px; height: 7px; margin-top: .45rem; border: 1px solid currentColor; border-radius: 50%; }
.project-choice[aria-selected="true"] { color: var(--projects); background: var(--surface); }
.project-choice[aria-selected="true"] .project-choice-mark { background: currentColor; border-color: currentColor; }
.project-choice:hover strong { color: var(--projects); }
.project-stage { min-width: 0; }
.is-interactive .project-stage { display: grid; }
.project-case { margin-bottom: 3rem; scroll-margin-top: 2rem; }
.is-interactive .project-case { grid-area: 1 / 1; margin-bottom: 0; }
/* Invisible panels reserve equal space, while remaining unfocusable and hidden from assistive technology. */
.is-interactive .project-case[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.project-art { color: var(--projects); background: var(--surface); border-radius: 10px; padding: .4rem 1rem .9rem; }
.project-art svg { display: block; width: 100%; max-width: 440px; height: 195px; margin-inline: auto; overflow: visible; }
.project-art text { font: 12px var(--sans); text-anchor: middle; fill: var(--muted); }
.project-art .diagram-emphasis { font-size: 16px; font-weight: 600; fill: var(--ink); }
.project-art .diagram-code { font: 15px Consolas, monospace; fill: var(--ink); }
.diagram-wire { fill: none; stroke: var(--muted); stroke-width: 1; opacity: .45; }
.diagram-node { fill: var(--paper); stroke: currentColor; stroke-opacity: .3; stroke-width: 1; }
.diagram-solid, .diagram-dot { fill: currentColor; }
.diagram-accent-stroke { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.project-art figcaption { text-align: center; color: var(--muted); font-size: .75rem; }
.project-case-copy { padding: 1.3rem .15rem 0; }
.project-stack { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.project-case h3 { font: 400 1.6rem/1.25 var(--serif); letter-spacing: -.025em; margin-bottom: .75rem; }
.project-case-copy > p:not(.project-stack) { margin-top: 0; font-size: .9375rem; line-height: 1.65; color: var(--muted); }
.project-actions { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin-top: 1rem; }
.project-actions a { padding-block: .35rem; font-size: .8125rem; }
.project-actions [data-project-notes-open] { font-weight: 600; text-decoration-color: var(--projects); }
.project-long-notes { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }
.project-long-notes h4 { color: var(--ink); font-size: 1rem; margin: 1.2rem 0 .4rem; }
.project-dialog { width: min(600px, calc(100% - 2rem)); max-height: calc(100dvh - 3rem); margin: auto; padding: 2.5rem; border: 0; border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px rgb(0 0 0 / .15); overscroll-behavior: contain; }
.project-dialog::backdrop { background: rgb(0 0 0 / .24); backdrop-filter: blur(4px); }
.project-dialog h2 { font-size: 1.8rem; margin-right: 1rem; }
.project-dialog-close { position: absolute; right: .45rem; top: .35rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.5rem; }
.project-dialog-close:hover { color: var(--ink); background: var(--surface); }
body:has(.project-dialog[open]) { overflow: hidden; }
@media (max-width: 760px) {
  .project-gallery { grid-template-columns: 205px minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
  .project-gallery { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
  .project-choice { padding: .65rem .5rem; gap: .4rem; }
  .project-choice strong { font-size: .8125rem; }
  .project-choice > span > span { font-size: .6875rem; }
  .project-art { padding-inline: .4rem; }
  .project-art svg { height: auto; max-height: 195px; }
  .project-dialog { padding: 2rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
