/* 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); }

/* Top bar: larger, darker, easier to read on every screen */
:root { --bar: 76px; }
.bar { min-height: 76px; border-bottom: 1px solid #d3dbd9; box-shadow: 0 1px 8px rgba(18, 37, 43, .06); }
.brand { font-size: clamp(22px, 1.7vw, 28px); }
.bar nav { font-size: clamp(15px, 1.05vw, 17px); gap: clamp(14px, 2vw, 32px); }
.bar nav a { color: var(--ink); font-weight: 500; }
.bar nav a:hover { color: var(--sea); }
.bar nav a.is-active { color: var(--sea); font-weight: 600; }
.bar nav .nav-portfolio { padding: 9px 18px; font-weight: 600; }
@media (max-width: 860px) {
  :root { --bar: 124px; }
  .bar { min-height: 0; }
  .brand { font-size: 22px; }
  .bar nav { font-size: 14px; gap: 8px; }
  .bar nav .nav-portfolio { padding: 5px 12px; }
}

/* Research photos: no new tab; they grow a little when you point at them */
.shot { position: relative; display: block; width: 100%; padding: 5px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .08); transform-origin: right center; transition: transform .3s ease, box-shadow .3s ease; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.shot:hover, .shot:focus-visible { z-index: 5; transform: scale(1.6); box-shadow: 0 8px 20px rgba(0, 0, 0, .18), 0 24px 48px rgba(0, 0, 0, .18); }
.shot:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
@media (max-width: 860px) {
  .shot { width: calc(50% - 5px); padding: 4px; transform-origin: center bottom; }
  .shot:hover, .shot:focus-visible { transform: scale(1.25); }
}
@media (hover: none) { .shot { cursor: default; } }
@media (prefers-reduced-motion: reduce) { .shot { transition: none; } }
