/* Shared presentation refinements. */
:root { --surface: #fafbf9; --muted: #56636b; --rule: #d6dce0; }
html body { background: var(--surface); }
html .site-header { min-height: 100px; padding: 23px 4.5%; gap: 28px; }
html .has-hero .site-header { background: #090d11ed; }
html .site-brand { font-size: .94rem; line-height: 1.04; }
html .primary-nav { gap: 23px; font-size: .875rem; letter-spacing: .035em; }
html .primary-nav summary { display: flex; gap: 9px; align-items: center; }
html .primary-nav .nav-parent-link { flex: 1; }
.nav-indicator { color: #aab6bd; font-size: 1rem; font-weight: 400; line-height: 1; }
html .primary-nav .nav-join { padding: 13px 17px; }
html .primary-nav [aria-current="location"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 9px; }
html .nav-dropdown { top: calc(100% + 20px); min-width: 228px; padding: 22px; gap: 18px; }
html .nav-dropdown a { font-size: .88rem; }
html .hero { min-height: 286px; padding: 154px max(48px,calc((100% - 1144px)/2)) 52px; }
html .hero-copy h1 { font-size: clamp(2.2rem,4.1vw,3.7rem); letter-spacing: -.045em; }
html .hero-image { opacity: .6; filter: saturate(.65) contrast(1.08); }
html .hero:after { background: linear-gradient(90deg,#090d11e8 0%,#090d11a8 55%,#090d113d 100%); }
html .page-content { max-width: 1240px; padding: 64px 48px 80px; }
html .page-projects .page-content,html .page-team .page-content { max-width: 1200px; padding: 76px 48px 92px; }
/* Give Research descriptions more space beside smaller illustrations. */
@media (min-width:641px) {
  html .page-projects .sqs-row > .sqs-col-6:first-child { width: 40%; }
  html .page-projects .sqs-row > .sqs-col-6:last-child { width: 60%; }
}
html .page-projects #block-research-spark-logo .sqs-block-image-figure { max-width: 260px !important; }
html .page-projects .video-embed iframe { height: auto; aspect-ratio: 16/9; }
html .page-content p { line-height: 1.65; }
html .page-lead { max-width: 48ch; font-size: clamp(1.45rem,2.4vw,2rem); line-height: 1.36; font-weight: 600; letter-spacing: -.025em; margin: 0 0 30px; }
html .prose-measure { max-width: 72ch; }
html .prose-measure p:not(.page-lead) { max-width: 72ch; }
html .page-what-we-do main h2,html .page-r-sapienza main h2,html .page-contact main h2 { margin-top: 36px; margin-bottom: 20px; }
html .page-r-sapienza main h2:first-child,html .page-contact main h2:first-child { margin-top: 0; }
html .page-what-we-do .spacer-block,html .page-r-sapienza .spacer-block { height: 12px; }
html .page-take-action main { max-width: 1240px; padding-top: 70px; padding-bottom: 86px; }
html .join-intro { margin: 0; }
html .button-primary,html .hero-copy a.button-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 15px 23px; border: 1px solid var(--accent); background: var(--accent); color: #090d11; font: 700 .9rem/1.35 var(--sans); letter-spacing: .01em; text-decoration: none; border-radius: 0; }
html .button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #090d11; }
html .button-secondary,html .hero-copy a.button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 15px 23px; background: transparent; border: 1px solid #a1aeb866; color: #fff; font: 650 .9rem/1.35 var(--sans); letter-spacing: .01em; text-decoration: none; border-radius: 0; }
html .hero-copy a.button-secondary:hover { border-color: #fff; background: #ffffff0b; color: #fff; }
html .contact-email { font-size: 1rem; margin-top: 16px; }

/* The homepage establishes the lab, then offers two clear ways in. */
html .page-home .hero-home,html .page-home-alias .hero-home { min-height: 660px; padding: 150px max(48px,calc((100% - 1144px)/2)) 65px; }
html .page-home .hero-copy,html .page-home-alias .hero-copy { max-width: 1240px; }
html .hero-copy>p.hero-affiliation { max-width: none; display: flex; flex-wrap: wrap; gap: 7px; font: 600 .875rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #d6e0e5; margin: 0 0 21px; }
html .hero-home .hero-copy h1 { font-size: clamp(2.2rem,7.4vw,6.5rem); line-height: .96; letter-spacing: -.055em; margin: 0 0 27px; }
html .hero-copy .hero-description { max-width: 53ch; font-size: 1.15rem; line-height: 1.55; color: #d9e1e5; letter-spacing: 0; margin: 0 0 28px; }
html .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html .hero-actions a { margin: 0; }
.home-intro { display: block; padding: 0 0 58px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); }
.section-eyebrow { display: block; font: 700 .875rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 17px; }
html .home-intro h2 { font: 700 clamp(1.85rem,3vw,2.65rem)/1.13 var(--sans); letter-spacing: -.035em; text-transform: none; margin: 0 0 22px; }
.home-intro-copy p { max-width: 84ch; margin-bottom: 0; }
.home-topic-links { padding-top: 1px; }
.home-topic-links ul { list-style: none; padding: 0; margin: 0; }
.home-topic-links li { border-top: 1px solid var(--rule); }
.home-topic-links li:last-child { border-bottom: 1px solid var(--rule); }
.home-topic-links a { display: block; padding: 15px 0; font-weight: 600; font-size: 1.04rem; text-decoration: none; }
.home-topic-links a:hover { color: var(--ink); }
.preview-home-features { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.preview-home-feature { min-width: 0; display: flex; flex-direction: column; }
.preview-feature-media { position: relative; display: block; aspect-ratio: 16/9; background: var(--navy); overflow: hidden; margin: 0 0 25px; }
.preview-feature-media img,.preview-feature-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
html .preview-home-feature h2 { font: 700 1.55rem/1.25 var(--sans); text-transform: none; letter-spacing: -.025em; margin: 0 0 15px; }
.preview-home-feature p { max-width: 53ch; margin: 0 0 23px; }
.preview-home-feature .text-link { margin-top: auto; font-size: 1rem; font-weight: 600; }

/* Consistent event frames, with original artwork fully visible when necessary. */
.outreach-intro { max-width: 70ch; margin: 0 0 48px; }
html .outreach-intro h2 { font: 700 clamp(1.8rem,3vw,2.6rem)/1.16 var(--sans); letter-spacing: -.035em; text-transform: none; margin: 0 0 18px; }
.outreach-intro p { color: var(--muted); font-size: 1.08rem; }
.outreach-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 46px 30px; }
.event-card { min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); padding-bottom: 26px; }
.event-media { aspect-ratio: 16/10; background: #edf0f0; overflow: hidden; margin: 0 0 22px; display: block; }
.event-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-media a,.event-media figure { display: block; width: 100%; height: 100%; }
.event-media--contain img { object-fit: contain; }
.event-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.event-body { flex: 1; display: flex; flex-direction: column; }
html .event-body h2,html .event-body h3 { font: 700 1.23rem/1.3 var(--sans); letter-spacing: -.02em; text-transform: none; margin: 0 0 13px; }
.event-body p,.event-body .image-caption,.event-body .image-caption p { font-size: 1rem; line-height: 1.6; color: #46535b; margin: 0 0 17px; }
.event-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.event-actions a { font-size: .94rem; font-weight: 600; }

html .folder-nav { margin: 0 0 38px; border-bottom: 1px solid var(--rule); }
html .folder-nav ul { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
html .folder-nav li { font: 600 .94rem/1.5 var(--sans); margin: 0; padding: 0 0 17px; }
html .folder-nav .nav-section-label { text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-right: 10px; }
html .folder-nav a { text-decoration: none; }
html .folder-nav .active-link { border-bottom: 3px solid var(--accent); }
html .folder-nav .active-link a { color: var(--ink); }

/* A compact footer keeps contact information easy to find. */
html .site-footer { padding: 44px 5.5% 42px; text-align: left; border-top-width: 3px; }
.footer-inner { max-width: 1144px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px 50px; align-items: start; }
html .site-footer .footer-brand { font-size: 1rem; letter-spacing: -.01em; color: #f7fafb; text-decoration: none; }
html .site-footer .footer-affiliation { margin: 8px 0 0; color: #b4c1c9; font-size: .94rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: .94rem; }
html .footer-nav a { text-decoration: none; }
html .footer-email { grid-column: 2; font-size: .94rem; color: #fff; text-underline-offset: 5px; }

@media (max-width:1200px) {
  html .site-header { min-height: 100px; align-items: center; padding: 23px 5.5%; }
  html .primary-nav { top: 100px; gap: 22px; padding: 23px 5.5% 30px; font-size: .875rem; }
  html .primary-nav summary { justify-content: space-between; }
  html .nav-dropdown { margin-top: 18px; padding: 2px 0 2px 18px; }
  html .page-content { padding-left: 36px; padding-right: 36px; }
  html .hero,html .page-home .hero-home,html .page-home-alias .hero-home { padding-left: 36px; padding-right: 36px; }
  .home-intro { gap: 42px; }
}
@media (max-width:900px) {
  .outreach-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px 26px; }
  .home-intro { grid-template-columns: 1fr; gap: 30px; }
  .home-topic-links { max-width: 680px; }
  .preview-home-features { gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  html .footer-email { grid-column: 1; }
}
@media (max-width:640px) {
  html .site-header { padding: 22px; min-height: 96px; }
  html .site-brand { font-size: .84rem; }
  html .primary-nav { top: 96px; padding-left: 22px; padding-right: 22px; max-height: calc(100dvh - 96px); }
  html .hero { min-height: 255px; padding: 142px 22px 44px; }
  html .hero-copy h1 { font-size: clamp(1.9rem,7.5vw,2.6rem); }
  html .page-home .hero-home,html .page-home-alias .hero-home { min-height: 0; padding: 136px 22px 43px; }
  html .hero-copy>p.hero-affiliation { display: block; font-size: .875rem; max-width: 29ch; margin-bottom: 23px; letter-spacing: .04em; }
  html .hero-affiliation span { display: block; }
  html .hero-affiliation .affiliation-divider { display: none; }
  html .hero-home .hero-copy h1 { font-size: clamp(1.6rem,9vw,3.5rem); line-height: 1.02; margin: 0 0 23px; }
  html .hero-copy .hero-description { font-size: 1rem; line-height: 1.6; max-width: 36ch; margin-bottom: 24px; }
  html .hero-actions { gap: 12px; }
  html .hero-actions a.button-primary,html .hero-actions a.button-secondary { min-height: 48px; padding: 13px 16px; font-size: .875rem; }
  html .hero-actions a.button-secondary { border: 0; padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 6px; }
  html .page-content { padding: 42px 22px 56px; }
  html .page-projects .page-content,html .page-team .page-content { padding: 42px 22px 60px; }
  html .page-lead { font-size: 1.45rem; line-height: 1.4; margin-bottom: 25px; }
  .home-intro { padding-bottom: 35px; margin-bottom: 35px; gap: 30px; }
  html .home-intro h2 { font-size: 1.9rem; }
  .home-intro-copy p { font-size: 1rem; }
  .home-topic-links a { padding: 13px 0; font-size: 1rem; }
  .preview-home-features { grid-template-columns: 1fr; gap: 40px; }
  .preview-feature-media { margin-bottom: 20px; }
  html .preview-home-feature h2 { font-size: 1.4rem; }
  .outreach-intro { margin-bottom: 32px; }
  html .outreach-intro h2 { font-size: 1.9rem; }
  .outreach-grid { grid-template-columns: 1fr; gap: 34px; }
  .event-card { padding-bottom: 26px; }
  .event-media { margin-bottom: 20px; }
  html .site-footer { padding: 34px 22px; }
  .footer-nav { gap: 23px; }
  html .page-take-action main { padding: 44px 22px 58px; }
}
