/* Capstone summaries: extends the original paper-white / cobalt visual system. */
.projects-intro { max-width: 740px; margin-bottom: 24px; }
.capstone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-entry { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.project-thumbnail { height: 252px; display: flex; align-items: center; justify-content: center; padding: 14px; background: #f5f6f8; border-bottom: 1px solid var(--line); }
.project-thumbnail img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.project-thumbnail:hover img { transform: scale(1.025); }
.project-entry-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-kicker { margin: 0 0 10px !important; color: var(--accent); font-size: 11px !important; line-height: 1.6; letter-spacing: .05em; }
.project-kicker > span:first-child { font-family: var(--mono); margin-right: 8px; }
.project-entry h3 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.4px; }
.project-entry h3 a { text-decoration: none; overflow-wrap: anywhere; }
.project-entry p { font-size: 14px; line-height: 1.8; margin: 0 0 14px; }
.project-entry .project-full-title { color: var(--muted); font-size: 12.5px; line-height: 1.6; min-height: 3.2em; }
.project-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; margin: 24px 0 0; background: var(--surface); }
.project-metrics > div { padding: 19px 20px; min-width: 0; }
.project-metrics > div + div { border-left: 1px solid var(--line); }
.project-metrics strong { display: block; font-family: var(--mono); font-size: 25px; line-height: 1.35; font-weight: 500; letter-spacing: -1px; color: var(--accent); }
.project-metrics > div > span { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.project-entry .project-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: auto 0 18px; padding-top: 16px; }
.project-entry .project-metrics > div { padding: 0 12px 0 0; }
.project-entry .project-metrics > div + div { padding-left: 16px; }
.project-entry .project-metrics strong { font-size: 22px; }
.project-card-links { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.project-card-links .btn { padding: 8px 12px; font-size: 12px; }
.project-pdf-link { font-size: 12px; color: var(--muted); }
.file-format { font-family: var(--mono); font-size: 10px; opacity: .8; white-space: nowrap; }
.project-page { max-width: 920px; }
.project-name { font-family: var(--mono); font-size: 14px; color: var(--accent); margin: 20px 0 0; }
.project-page .paper-header h1 { margin-top: 10px; max-width: 810px; line-height: 1.4; text-wrap: balance; }
.project-page .tag-group { margin: 20px 0 0; }
.project-toc { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.project-toc a { color: var(--muted); text-decoration: none; }
.project-toc a:hover { color: var(--accent); text-decoration: underline; }
.project-page .tldr { margin-top: 24px; }
.method-list { list-style: none; padding: 0; margin: 0; counter-reset: method; }
.method-list > li { position: relative; padding-left: 44px; counter-increment: method; }
.method-list > li::before { content: '0' counter(method); position: absolute; left: 0; top: 2px; font-family: var(--mono); color: var(--accent); font-size: 13px; }
.method-list h3 { margin: 22px 0 6px; }
.method-list p { font-size: 15px; }
.project-figure figcaption { text-align: left; font-size: 12.5px; }
.project-figure figcaption a { display: block; margin-top: 8px; color: var(--accent); font-size: 12px; }
.project-figure > a { display: block; cursor: zoom-in; }
.project-data tbody th { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 500; }
.project-data tbody td:last-child { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.project-page .table-note p { font-size: 12.5px; margin-bottom: 6px; line-height: 1.7; }
.project-page .table-note a { font-size: 12.5px; color: var(--accent); }
.result-context { margin-top: 24px; padding: 18px 20px; background: #f5f6f8; border-radius: 8px; }
.result-context p { font-size: 14px; }
.project-page .source-links { padding: 0; margin: 20px 0; list-style: none; }
.source-links li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.source-links li > span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.related-projects { margin-top: 40px; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; }
.related-projects h2 { width: 100%; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.related-projects a { font-size: 13px; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 999; padding: 8px 16px; background: white; }
.skip-link:focus { top: 8px; }
@media (max-width: 720px) {
  .capstone-grid { grid-template-columns: minmax(0, 1fr); }
  .project-thumbnail { height: 210px; }
  .project-entry .project-full-title { min-height: 0; }
  .project-metrics > div { padding: 15px 12px; }
  .project-metrics strong { font-size: 22px; }
}
@media (max-width: 430px) {
  .project-entry-body { padding: 20px; }
  .project-page .project-metrics { grid-template-columns: 1fr; }
  .project-page .project-metrics > div { display: flex; align-items: baseline; gap: 14px; }
  .project-page .project-metrics > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .project-page .project-metrics strong { min-width: 110px; }
  .project-page .project-metrics > div > span { margin-top: 0; }
}
@media print {
  .project-toc, .related-projects, .skip-link { display: none; }
  .project-entry, .project-metrics { break-inside: avoid; }
  .capstone-grid { grid-template-columns: 1fr; }
  .project-thumbnail { height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-thumbnail img { transition: none; }
}

/* Current research names follow the task, so acronyms have context. */
.current-projects { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.current-projects .project-card:last-child { grid-column: 1 / -1; }
.project-card .ongoing-method { margin: -3px 0 14px; color: var(--accent); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
@media (max-width: 720px) { .current-projects { grid-template-columns: minmax(0, 1fr); } }

.hero h1 { text-wrap: balance; }
.hero-title-phrase { display: inline-block; }
