.project-main { max-width: 960px; }
.project-hero { margin-block: 36px 19px; }
.project-hero h1 { max-width: 790px; font-size: clamp(2.45rem, 5.4vw, 4.35rem); }
.project-hero .intro { max-width: 700px; }
.proof-grid, .experiment-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.proof-grid > div, .experiment-metrics > div { min-width: 0; display: flex; flex-direction: column-reverse; gap: 4px; padding: 12px 15px; background: #e7f2eb; }
.proof-grid dd, .experiment-metrics dd { margin: 0; font-size: clamp(1.23rem, 2.8vw, 1.95rem); font-weight: 760; line-height: 1.12; letter-spacing: -.045em; }
.proof-grid dt, .experiment-metrics dt { color: var(--muted); font-size: .78rem; }
.project-choices { margin-top: 19px; }
.project-output { min-width: 0; margin-top: 14px; }
.project-output h3 { max-width: 700px; font-size: 1.28rem; letter-spacing: -.018em; }
.project-output .experiment-metrics { margin: 13px 0; }
.experiment-metrics > div { background: #f2f7f4; }
.experiment-note { margin-top: 12px; color: var(--muted); font-size: .94rem; }
.experiment-tag { margin-top: 12px; }
.project-links { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 710; }

.epoch-chart { display: flex; align-items: end; gap: clamp(6px, 2vw, 19px); height: 120px; padding: 9px 8px 0; border-bottom: 1px solid var(--line); }
.epoch-column { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: 1fr auto; align-items: end; justify-items: center; align-self: stretch; font-size: .7rem; color: var(--muted); }
.epoch-bar { width: min(46px, 72%); height: var(--height); min-height: 2px; border-radius: 4px 4px 0 0; background: #91baa9; }
.epoch-column.selected .epoch-bar { background: var(--teal); }
.epoch-column span { padding-top: 4px; }
.chart-caption { margin-top: 6px; color: var(--muted); font-size: .79rem; }

.trellis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 13px 0; }
.frame { min-width: 0; padding: 8px 5px; text-align: center; border: 1px solid var(--line); border-radius: 7px; background: #f4f8f5; }
.frame.visited { border-color: #82ae9c; background: #e2f0e8; }
.frame strong { display: block; font-size: 1.28rem; }
.frame small { color: var(--muted); font-size: .7rem; }
.path-summary { color: var(--muted); font-size: .92rem; }
.path-summary strong { margin-left: 4px; color: var(--ink); font-size: 1.33rem; }

.frame-timeline { position: relative; height: 45px; margin: 19px 0 12px; background: #edf5f0; border-radius: 6px; }
.frame-timeline::before { content: ""; position: absolute; width: 1px; left: 50%; top: 0; bottom: 0; border-left: 2px dashed #547466; }
.onset-marker { position: absolute; width: 9px; height: 9px; left: var(--onset); top: 50%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 3px #edf5f0; background: var(--warm); }
.timeline-caption { color: var(--muted); font-size: .81rem; }
.case-evidence { margin-block: 10px 0; padding-left: 20px; }
.case-evidence li + li { margin-top: 3px; }

@media (max-width: 580px) {
  .project-hero { margin-top: 24px; }
  .proof-grid, .experiment-metrics { grid-template-columns: 1fr; }
  .proof-grid > div, .experiment-metrics > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 9px; padding: 8px 10px; }
  .proof-grid dd, .experiment-metrics dd { font-size: 1.16rem; }
  .proof-grid dt, .experiment-metrics dt { line-height: 1.25; }
}
