/* Version 3: same look as Version 2, made compact so the whole page
   reads quickly. Less empty space, smaller headings, and content
   placed side by side on wider screens. Loaded after v2.css. */

body { font-size: 16px; line-height: 1.65; }

/* Intro video: still big, but leaves a hint of the page below */
.hero { height: clamp(320px, 46svh, 460px); min-height: 0; }
.scroll-cue { display: none; }

/* Sections: tighter spacing, smaller headings */
.block { padding: clamp(40px, 5vw, 64px) 0; }
.wrap { max-width: 1120px; }
.eyebrow { margin-bottom: 2px; font-size: 12px; }
h2 { margin-bottom: 22px; font-size: clamp(26px, 2.6vw, 34px); }
h3 { font-size: 18px; }

/* About: words on the left, email and interests on the right */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.intro { margin: 0 0 12px; font-size: 17px; line-height: 1.7; }
.about-text .intro:last-child { margin-bottom: 0; }
.reach-out { margin: 0 0 16px; padding: 14px 16px; font-size: 15.5px; }

/* Projects: two cards side by side */
.cards { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.card { padding: 22px 24px; }
.meta { margin-bottom: 6px; font-size: 12.5px; }
.badge { margin-top: 10px; padding: 4px 11px; font-size: 12.5px; }
.body { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.people { margin-top: 14px; padding-top: 10px; font-size: 13.5px; }
.orgs { font-size: 12.5px; }
.abstract { margin-top: 12px; }
.abstract summary { font-size: 14px; }
.note { font-size: 14.5px; line-height: 1.7; padding: 14px 16px; }

/* Research timeline: words on the left, photos stacked beside them */
.stop { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: start; padding-bottom: 32px; }
.points { margin-top: 10px; font-size: 15.5px; }
.points li { margin-top: 5px; }
.org { font-size: 15px; }
.shots { flex-direction: column; gap: 10px; margin-top: 4px; }
.shots a { width: 100%; }

/* Education on the left, skills on the right */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.schools { grid-template-columns: 1fr; gap: 12px; }
.school { padding: 16px 20px; }
.school .org { font-size: 15px; }
.sub { margin: 0 0 12px; font-size: 18px; }
.chips { gap: 8px; }
.chips li { padding: 5px 12px; font-size: 13.5px; }

/* Activities */
.two-cards { gap: 16px; }
.two-cards .card { padding: 18px 22px; }
.two-cards .points { font-size: 15px; }

/* Footer */
.foot { padding: 40px 0 24px; }
.foot h2 { margin-bottom: 14px; }
.copy { margin-top: 24px; }

@media (max-width: 860px) {
  .about-grid, .cards, .edu-grid { grid-template-columns: 1fr; }
  .stop { grid-template-columns: 1fr; gap: 14px; }
  .shots { flex-direction: row; }
  .shots a { width: calc(50% - 5px); }
}
@media (max-width: 680px) {
  .block { padding: 36px 0; }
  .hero { height: clamp(250px, 38svh, 330px); }
}

/* Interests: an even grid, two per row, last one centered */
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }
.interest-grid li { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; border-radius: 12px; text-align: center; line-height: 1.3; }
.interest-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }

/* Solid top bar so page text never shows through while scrolling */
.bar { background: var(--paper); }
