/* Shared visual language and project layouts. Loaded after the template styles. */
:root { --lab-navy: #102d4c; --lab-blue: #176799; }
html { scroll-padding-top: 130px; }
p { text-align: left; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.025em; font-weight: 600; text-transform: none; }
h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); }
h2 { border: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
a, button, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid #b85e00; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
header.background { padding: 22px max(24px, calc((100% - 1240px) / 2)); gap: 24px; box-shadow: none; border-bottom: 1px solid #dce6ef; }
header .institution-link { flex: 0 0 auto; padding-right: 24px; border-right: 1px solid #dce6ef; }
header .logo { height: 32px; }
header .home { flex-basis: auto; }
header .title { display: block; }
header .title > :first-child { display: block; font-size: 1.05rem; font-weight: 600; }
header .title > :last-child:not(:first-child) { display: none; }
header nav { gap: 16px; text-transform: none; font-size: .87rem; }
header nav a { padding: 9px 0; }
header nav a[aria-current="page"] { color: var(--lab-blue); text-decoration: underline; text-underline-offset: 7px; }
.nav-toggle:after { content: "☰"; font-family: sans-serif; font-size: 24px; }
.nav-toggle:checked:after { content: "×"; }
main > section { padding: 76px max(28px, calc((100% - 1160px) / 2)); }
.eyebrow { margin: 0 0 18px; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #37617d; line-height: 1.6; }
.lab-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; text-align: left; }
.lab-hero h1 { margin: 0; font-size: clamp(2.7rem, 4.7vw, 4.4rem); line-height: 1.08; letter-spacing: -.05em; }
.lab-hero h1 span { color: var(--lab-blue); }
.hero-description { max-width: 540px; font-size: 1.08rem; margin: 26px 0; }
.hero-visual { padding: 30px; border: 1px solid #dce6ef; border-radius: 22px; background: white; box-shadow: 0 20px 50px #102d4c0c; }
.hero-visual img { width: 100%; height: auto; }
.hero-visual > p:last-child { border-top: 1px solid #dce6ef; padding-top: 20px; font-size: .76rem; margin-bottom: 0; }
.hero-visual > p span { padding: 0 4px; color: var(--lab-blue); }
.lab-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.lab-button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; padding: 15px 21px; border-radius: 7px; background: var(--lab-navy); color: white; text-decoration: none; font-size: .85rem; font-weight: 600; line-height: 1.5; }
.lab-button:hover { background: var(--lab-blue); color: white; }
.lab-text-link { color: var(--lab-blue); font-size: .87rem; font-weight: 600; text-underline-offset: 5px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; text-align: left; }
.section-intro h2 { margin: 0; }
.section-intro > p { max-width: 440px; margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { background: white; border: 1px solid #dce6ef; border-radius: 14px; overflow: hidden; text-align: left; }
.project-card-image { display: block; height: 220px; padding: 20px; background: #fff; border-bottom: 1px solid #e7edf3; }
.project-card-image img { width: 100%; height: 100%; object-fit: contain; }
.project-card-content { padding: 26px; }
.project-card .eyebrow { font-size: .65rem; margin-bottom: 12px; }
.project-card h3 { font-size: 1.45rem; margin: 0 0 16px; }
.project-card h3 a { color: var(--lab-navy); text-decoration: none; }
.project-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-card p:not(.eyebrow) { font-size: .9rem; margin: 0; }
.project-card-arrow { display: block; color: var(--lab-blue); font-size: 1.5rem; margin-top: 24px; }
.team-callout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; text-align: left; }
.team-callout > img { width: 100%; height: 350px; object-fit: cover; object-position: center 45%; border-radius: 16px; }
.team-callout h2 { margin: 0; }
.projects-intro { max-width: 850px; text-align: left; }
.projects-intro h1 { margin: 0 0 25px; }
.projects-intro > p:not(.eyebrow) { max-width: 720px; font-size: 1.15rem; }
.project-jump-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; }
.project-jump-links a { font-size: .85rem; text-underline-offset: 5px; }
.project-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; text-align: left; scroll-margin-top: 130px; }
.project-detail h2 { margin: 0 0 22px; }
.project-summary { font-size: 1.15rem; }
.project-detail-copy > p:not(.eyebrow):not(.project-summary) { font-size: .94rem; }
.project-resources { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; }
.project-figure { margin: 0; min-width: 0; }
.project-figure > a { display: block; background: white; padding: 22px; border: 1px solid #dce6ef; border-radius: 14px; }
.project-figure img { width: 100%; height: auto; }
.project-figure figcaption { font-size: .76rem; line-height: 1.65; margin-top: 16px; color: #496079; }
.project-closing { text-align: left; }
.project-closing h2 { margin-top: 0; }
footer.background { border-top: 1px solid #dce6ef; background: #eef4f9; padding: 42px 28px; box-shadow: none; }
.footer-identity { display: flex; flex-direction: column; gap: 8px; }
.footer-identity strong { font-size: 1.1rem; }
.footer-identity span { font-size: .8rem; }
@media (max-width: 1000px) {
  header.background { gap: 16px; }
  header .institution-link { padding-right: 16px; }
  header .logo { height: 25px; }
  header nav { gap: 12px; }
  .lab-hero, .team-callout, .project-detail { gap: 32px; }
  .project-grid { gap: 16px; }
  .project-card-content { padding: 20px; }
  .project-card-image { height: 180px; }
}
@media (max-width: 760px) {
  main > section { padding: 48px 24px; }
  .lab-hero, .team-callout, .project-detail { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 20px; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-card-image { height: 240px; }
  .project-card-content { padding: 26px; }
  .team-callout > img { height: 340px; }
}
@media (max-width: 700px) {
  header.background { padding: 16px 20px; gap: 14px; }
  header .institution-link { border: 0; padding: 0; }
  header .logo { height: 23px; }
  header .title > :first-child { font-size: .86rem; }
  header > .home:not(.institution-link) { flex: 1; }
  header nav { align-items: stretch !important; gap: 4px; }
  header nav a { padding: 10px; text-align: left; }
}
@media (max-width: 420px) {
  header .institution-link { width: 80px; }
  header .logo { height: auto; }
  header .logo img { width: 80px; height: auto; }
  .hero-visual { padding: 20px; }
  .lab-actions { gap: 20px; }
}
