
/* Animated research overview */
.research-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.research-card { display:flex; flex-direction:column; min-width:0; background:#f6f8f5; border:1px solid #cbd5cd; border-radius:7px; padding:16px; }
main .research-card h3 { color:#354d40; font:600 15px/1.4 "Noto Sans",sans-serif; margin:0 0 14px; min-height:42px; }
.research-animation { overflow:hidden; border-radius:4px; background:#e7eee7; margin-bottom:14px; }
.research-animation canvas { display:block; width:100%; height:180px; }
.research-card p { font-size:13px; line-height:1.65; margin:0 0 18px; }
.research-explore { font-weight:600; font-size:13px; margin-top:auto; align-self:flex-start; }
.research-explore:hover { text-decoration:underline; }
.animation-note { color:#66786a; font-size:10px; text-align:right; margin:6px 0 0; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
main h2[id] { scroll-margin-top:24px; }
main h2[id]:target { background:#dce7df; border-left:3px solid #708f7d; padding:8px 12px; }
a:focus-visible,button:focus-visible { outline:2px solid #386f64; outline-offset:4px; }
@media screen and (max-width:1100px) and (min-width:761px) { .research-cards { grid-template-columns:1fr; } main .research-card h3 { min-height:0; } }
@media screen and (max-width:760px) { .research-cards { grid-template-columns:1fr; } main .research-card h3 { min-height:0; } .wrapper { margin:0; } }

/* Personal photos: preserve the complete images, including portrait compositions. */
.about-photo-grid { display:grid; width:100%; max-width:480px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 18px; margin:1.2rem 0 2rem; }
.about-photo-grid figure { min-width:0; margin:0; }
.about-photo-frame { aspect-ratio:4 / 3; overflow:hidden; background:#dce4df; border:1px solid #c7d0ca; border-radius:5px; }
.about-photo-frame img { display:block; width:100%; height:100%; object-fit:contain; }
.about-photo-frame--giraffe img { object-fit:cover; object-position:50% 10%; }
.about-photo-grid figcaption { margin-top:7px; color:#506159; font-size:12px; line-height:1.5; }
@media screen and (max-width:480px) { .about-photo-grid { gap:16px 10px; } .about-photo-grid figcaption { font-size:11px; } }

/* A single research row on laptop and desktop screens. */
@media screen and (min-width:900px) {
  body { margin:0; padding:0; background:linear-gradient(to right,#dce4df 0,#dce4df 228px,#edf1ee 228px,#edf1ee 100%); }
  body .wrapper { box-sizing:border-box; width:100%; max-width:1400px; margin:0; padding:32px 24px; grid-template-columns:180px minmax(0,1fr); gap:36px; }
  body .wrapper > header { left:24px; top:32px; bottom:32px; width:180px; }
  .research-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
  .research-card { padding:14px; }
  main .research-card h3 { min-height:42px; font-size:15px; }
}

/* Each complete research card is one keyboard-accessible navigation link. */
a.research-card,
a.research-card:visited { color:inherit; text-decoration:none; font-weight:400; }
a.research-card:hover { color:inherit; font-weight:400; text-decoration:none; border-color:#91a899; background:#f0f5ef; }
a.research-card:focus-visible { outline:2px solid #386f64; outline-offset:4px; }
.research-card .research-explore { color:#267cb9; }
.research-card:hover .research-explore,
.research-card:focus-visible .research-explore { text-decoration:underline; }
