:root {
  --paper: #ffffff;
  --white: #ffffff;
  --brand-dark: #2c2d2d;
  --brand-dark-rgb: 44, 45, 45;
  --ink: var(--brand-dark);
  --muted: #59636d;
  --bronze: #8b5935;
  --soft: #f5f6f8;
  --line: #e9ecef;
  --radius: 6px;
  --bs-body-font-family: Arial, Helvetica, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #ffffff; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bronze); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; }
p { color: var(--muted); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.03em; font-weight: 500; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
h1 em, h2 em { color: var(--bronze); font-weight: 400; }
::selection { background: #eee0d3; color: var(--ink); }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }
#main-content:focus { outline: 0; }
.container { width: min(100% - 64px, 1200px); max-width: 1200px; padding: 0; margin-inline: auto; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--bronze); font-size: .75rem; font-weight: 600; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 10px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 8px; }
.institution-bar { padding: 5px 0; background: var(--brand-dark); color: #e6e8df; font-size: .7rem; letter-spacing: .04em; }
.institution-bar .container { display: flex; justify-content: space-between; gap: 20px; }
.site-header { position: sticky; top: 0; z-index: 1020; background: #ffffff; box-shadow: 0 4px 14px rgba(var(--brand-dark-rgb), .14); }
.navbar { min-height: 70px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* The source logo is 876 × 585: keep its real ratio instead of fitting it into a square. */
.brand > img { display: block; width: 45px; height: 30px; object-fit: contain; }
.brand .brand-wordmark { display: block; color: var(--brand-dark); margin: 0; font-size: 40px; font-weight: 800; line-height: 30px; letter-spacing: -.055em; white-space: nowrap; }
.brand-wordmark span { margin-left: 5px; color: var(--bronze); font-weight: 400; }
.navbar-nav { gap: 20px; }
.navbar .nav-link { padding: 8px 0 !important; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.navbar .nav-link { transition: color .18s; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--bronze); }
.navbar .nav-link.active { font-weight: 600; }
.navbar .nav-contact { display: inline-flex; align-items: center; gap: 9px; margin-left: 2px; padding: 7px 12px !important; border: 1px solid #deccbc; border-radius: 4px; color: var(--bronze); }
.navbar .nav-contact:hover { border-color: var(--bronze); }
.navbar-toggler { padding: 10px 4px; border: 0; border-radius: 0; }
.menu-icon { display: block; position: relative; width: 25px; height: 16px; border-block: 2px solid var(--ink); }
.menu-icon:after { content: ''; position: absolute; top: 5px; left: 0; width: 25px; border-top: 2px solid var(--ink); }
.home-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 510px; overflow: hidden; padding-block: 46px; background: var(--brand-dark); }
.hero-backdrop { position: absolute; z-index: -2; inset: 0; display: block; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.home-hero:after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(var(--brand-dark-rgb), .94) 0%, rgba(var(--brand-dark-rgb), .84) 36%, rgba(var(--brand-dark-rgb), .43) 64%, rgba(var(--brand-dark-rgb), .12) 100%); }
.hero-copy { width: min(62%, 660px); }
.home-hero h1 { color: #ffffff; text-wrap: balance; }
.home-hero h1 em, .home-hero .eyebrow, .home-hero .hero-note > span:first-child { color: #ebc6a0; }
.home-hero .hero-description { color: #f0f2f3; }
.home-hero .text-link, .home-hero .hero-note { color: #f0f2f3; }
.home-hero .text-link:hover { color: #ebc6a0; }
.home-hero .button-primary { border-color: #ffffff; background: #ffffff; color: var(--ink); }
.home-hero .button-primary:hover { border-color: #ebc6a0; background: #ebc6a0; color: var(--ink); }
.hero-copy > .eyebrow { margin-bottom: 12px; font-weight: 700; letter-spacing: .12em; }
.hero-copy h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.13; letter-spacing: -.045em; }
.hero-description { max-width: 550px; margin-bottom: 20px; font-size: 1rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.hero-actions .button-primary { padding-inline: 16px; gap: 14px; }
.button-primary, .button-secondary, .button-light { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--ink); border-radius: 4px; transition: background .18s, border-color .18s, color .18s; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.button-primary { border-color: var(--bronze); background: var(--bronze); color: white; }
.button-primary:hover { border-color: #704323; background: #704323; color: white; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--soft); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 4px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.text-link { transition: color .18s; }
.text-link:hover { color: var(--bronze); }
.text-link > span { transition: transform .18s; }
.text-link:hover > span { transform: translate(2px, -1px); }
.hero-note { display: flex; align-items: center; gap: 20px; margin-top: 22px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.hero-note > span:first-child { color: var(--bronze); font-weight: 600; }
.page-section { padding-block: 36px; }
.section-title { margin: 0; font-size: clamp(1.8rem, 2.8vw, 2.3rem); line-height: 1.2; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 22px; }
.section-heading .eyebrow { margin: 0; }
.section-heading .text-link { flex-shrink: 0; }
.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.about-copy p { margin-bottom: 12px; font-size: .95rem; line-height: 1.7; }
.research-section { background: #ffffff; }
.card-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.research-card, .news-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; transition: border-color .2s, box-shadow .2s; }
.research-card:hover, .news-card:hover { border-color: #d4c3b3; box-shadow: 0 6px 20px rgba(var(--brand-dark-rgb), .03); }
.card-trigger { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.media-frame { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; aspect-ratio: 1.52; background: #f5f6f8; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.card-trigger .media-frame { flex-shrink: 0; width: 100%; }
.card-trigger:hover .media-frame img, .gallery-trigger:hover .media-frame img { transform: scale(1.02); }
.research-card .media-frame img { padding: 12px; background: var(--white); object-fit: contain; }
.card-arrow { position: absolute; right: 12px; bottom: 12px; display: grid; place-content: center; width: 30px; height: 30px; border: 1px solid #eadfd6; border-radius: 50%; background: #ffffff; color: var(--bronze); font-size: 1.1rem; }
.card-body { flex: 1; padding: 20px; }
.card-meta { display: block; margin-bottom: 8px; color: var(--bronze); font-size: .75rem; line-height: 1.5; }
.card-body h3 { margin-bottom: 10px; color: var(--ink); font-size: 1.15rem; font-weight: 600; transition: color .18s; }
.card-trigger:hover h3 { color: var(--bronze); }
.card-body p { margin-bottom: 0; font-size: .9rem; line-height: 1.65; }
.card-body .text-link { margin-top: 12px; }
.image-placeholder { padding: 20px; color: var(--bronze); font-size: .8rem; }
.news-card { background: #ffffff; }
.news-card .card-body { padding: 18px 20px; }
.news-card .media-frame { aspect-ratio: 1.6; }
.partners-section { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 30px; padding-block: 28px 36px; }
.partners-section h2 { margin: 0; font-size: 1.8rem; }
.partner-logos { display: flex; align-items: center; justify-content: space-around; gap: 28px; }
.partner-logos a { flex: 1; text-align: center; }
.partner-logos img { width: 100%; max-width: 140px; max-height: 70px; object-fit: contain; }
.page-intro { padding-block: 26px 10px; }
.page-intro h1 { margin: 0; font-size: clamp(2.2rem, 3.4vw, 2.9rem); }
.filter-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-block: 12px; margin-bottom: 8px; }
.filter-nav a { padding-block: 6px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.filter-nav a:hover { color: var(--bronze); }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.person-card { min-width: 0; }
.person-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.person-card .media-frame { aspect-ratio: 4 / 4.5; border-radius: var(--radius); }
.person-trigger:hover .person-name { color: var(--bronze); }
.person-card .media-frame img { object-position: 50% 25%; }
.person-details, .person-name, .person-role, .person-summary, .gallery-caption, .gallery-title { display: block; }
.person-details { padding-block: 14px 0; }
.person-name { margin-bottom: 4px; font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.person-role { margin-bottom: 6px; color: var(--bronze); font-size: .875rem; line-height: 1.5; }
.person-summary { margin-block: 8px; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.person-details .text-link { margin-top: 4px; }
.people-grid .person-card:only-child { max-width: 260px; }
.page-people .page-section, .page-publications .page-section { padding-block: 24px; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.project-authors { margin-bottom: 12px !important; color: var(--bronze) !important; font-size: .875rem !important; }
.project-description p { margin-bottom: 12px; }
.collaborator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collaborator-card { display: flex; align-items: center; gap: 24px; }
.collaborator-card > img { width: 80px; height: 75px; object-fit: contain; }
.collaborator-card h3 { font-size: 1.1rem; }
.collaborator-card p { margin: 0; }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-item { display: flex; gap: 20px; padding-block: 18px; }
.publication-number { flex-shrink: 0; min-width: 30px; color: var(--bronze); font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; }
.publication-content { min-width: 0; overflow-wrap: anywhere; }
.publication-content h3 { margin-bottom: 10px; font-family: Georgia, serif; font-size: 1.35rem; }
.publication-content p { margin-bottom: 10px; font-size: .95rem; line-height: 1.7; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.gallery-item { min-width: 0; }
.gallery-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.gallery-item .media-frame { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery-trigger:hover .gallery-title { color: var(--bronze); }
.gallery-caption { position: relative; padding-top: 12px; padding-right: 22px; }
.gallery-caption .eyebrow { margin-bottom: 6px; }
.gallery-title { font-size: 1.1rem; line-height: 1.4; }
.gallery-open { position: absolute; top: 17px; right: 0; font-size: 1.3rem; }
.gallery-full-image { width: 100%; max-height: 70vh; object-fit: contain; }
.gallery-description { margin-top: 16px; }
.gallery-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; font-size: .875rem; }
.gallery-upload { margin-top: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.surface-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.surface-card h2 { margin-bottom: 16px; font-size: 1.8rem; }
.surface-card p { font-size: .95rem; }
.contact-opportunities p { margin-block: 16px; }
.contact-details dt { margin-top: 18px; margin-bottom: 6px; color: var(--bronze); font-size: .875rem; font-weight: 600; }
.contact-details dd { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.contact-map { margin-top: 24px; overflow: hidden; filter: grayscale(.8); }
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.empty-state { grid-column: 1 / -1; padding: 24px; color: var(--muted); font-size: .95rem; }
.empty-state h3 { color: var(--ink); }
.modal-backdrop { --bs-backdrop-bg: var(--brand-dark); }
.modal-content { border: 0; border-radius: 2px; background: var(--white); box-shadow: 0 20px 80px rgba(var(--brand-dark-rgb), .2); }
.modal-header { align-items: flex-start; gap: 20px; padding: 22px 26px; }
.modal-title { font-size: 1.6rem; }
.modal-body { padding: 22px 26px; font-size: .95rem; overflow-wrap: anywhere; }
.modal-body img { max-width: 100%; height: auto; }
.modal-feature-image { width: 100%; max-height: 480px; margin-bottom: 22px; object-fit: contain; }
.profile-modal-image { width: 160px; height: 160px !important; margin-bottom: 18px; object-fit: cover; object-position: top; }
.profile-modal-heading { display: flex; align-items: center; gap: 24px; }
.profile-modal-heading h2 { font-size: 1.9rem; }
.profile-bio { margin-top: 12px; }
.profile-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.modal-body a:not(.button-primary) { text-decoration: underline; text-underline-offset: 3px; }
.modal-footer { padding: 16px 26px; }
.site-footer { padding-block: 4px 18px; background: var(--brand-dark); color: #f0f0e7; }
.footer-details { display: grid; grid-template-columns: 1.2fr 1.5fr .7fr; gap: 30px; padding-block: 26px; }
.footer-details p { margin: 10px 0; color: #b5bdb2; font-size: .875rem; line-height: 1.65; }
.footer-wordmark { font-size: 1.7rem; font-weight: 700; letter-spacing: -.05em; }
.footer-wordmark span { color: #c8a57e; font-weight: 400; }
.footer-label { display: block; margin-bottom: 10px; color: #d0b28b; font-size: .8rem; font-weight: 600; }
.footer-details > div > a:not(.footer-wordmark) { display: block; color: #e1e5da; font-size: .875rem; line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 8px; color: #b5bdb2; font-size: .8rem; }
.footer-bottom div { display: flex; gap: 18px; }
.site-footer .footer-details a:hover, .site-footer .footer-bottom a:hover { color: #d0b28b; }
.message-region { padding-top: 18px; }
.account-section { max-width: 680px; padding-block: 32px 48px; }
.account-section.wide { max-width: 950px; }
.account-section h1 { margin-bottom: 22px; font-size: 2.5rem; }
.account-section form { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.form-control, .form-select { min-height: 44px; border-radius: 2px; border-color: #cccec3; background: var(--white); }
.form-control:focus, .form-select:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px #94683e18; }
.btn { padding: 10px 18px; border-radius: 2px; font-size: .875rem; }
.btn-primary { --bs-btn-bg: var(--bronze); --bs-btn-border-color: var(--bronze); --bs-btn-hover-bg: #704323; --bs-btn-hover-border-color: #704323; --bs-btn-active-bg: #704323; --bs-btn-active-border-color: #704323; }
.avatar { width: 140px; height: 140px; margin-block: 12px; border-radius: 2px; object-fit: cover; }
.r-img-in-sm { max-width: 200px; max-height: 160px; margin: 12px; object-fit: contain; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 22px; }
.help-block, .form-text, .text-muted { font-size: .875rem; }
.alert { border-radius: 2px; }

@media (max-width: 1199px) {
  .navbar-nav { gap: 14px; }
  .brand .brand-wordmark { font-size: 36px; line-height: 26px; }
  .brand > img { width: 39px; height: 26px; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .navbar { min-height: 64px; }
  .navbar-collapse { padding-block: 10px 2px; }
  .navbar-nav { gap: 0; }
  .navbar .nav-link { padding: 10px 0 !important; }
  .home-hero { min-height: 500px; padding-block: 36px; }
  .hero-copy { width: 76%; max-width: 620px; }
  .hero-copy h1 { font-size: 2.5rem; }
  .hero-description { font-size: .95rem; }
  .hero-actions { gap: 12px 18px; }
  .card-grid, .news-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners-section { grid-template-columns: 1fr; gap: 22px; }
  .partner-logos { max-width: 600px; }
}
@media (max-width: 639px) {
  .container { width: calc(100% - 36px); }
  .institution-bar { font-size: .7rem; }
  .institution-bar span:last-child { display: none; }
  .navbar { min-height: 62px; padding-block: 12px; }
  .brand { gap: 9px; }
  .home-hero { min-height: 530px; padding-block: 36px; }
  .hero-copy { width: 100%; }
  .hero-backdrop img { object-position: 80% center; }
  .home-hero:after { background: linear-gradient(90deg, rgba(var(--brand-dark-rgb), .9), rgba(var(--brand-dark-rgb), .74)); }
  .hero-copy h1 { font-size: clamp(2rem, 8.7vw, 2.7rem); margin-bottom: 14px; }
  .hero-description { margin-bottom: 18px; }
  .hero-note { margin-top: 18px; font-size: .75rem; }
  .page-section { padding-block: 26px; }
  .section-heading { margin-bottom: 18px; gap: 10px; }
  .section-title { font-size: 1.85rem; }
  .about-section { grid-template-columns: 1fr; gap: 14px; }
  .card-grid, .news-grid, .project-grid, .collaborator-grid, .gallery-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid, .news-grid { gap: 22px; }
  .card-body { padding: 18px; }
  .partners-section { padding-block: 22px 28px; gap: 20px; }
  .partner-logos { gap: 24px; }
  .partner-logos img { max-height: 60px; }
  .partners-section h2 { font-size: 1.75rem; }
  .page-intro { padding-block: 22px 6px; }
  .page-intro h1 { font-size: 2.4rem; }
  .filter-nav { gap: 2px 18px; }
  .filter-nav a { font-size: .875rem; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .person-name { font-size: 1rem; }
  .person-role, .person-summary, .person-details .text-link { font-size: .8rem; }
  .surface-card { padding: 20px; }
  .publication-item { gap: 14px; padding-block: 14px; }
  .publication-content h3 { font-size: 1.2rem; }
  .collaborator-card { gap: 18px; }
  .collaborator-card > img { width: 70px; height: 70px; }
  .profile-modal-heading { flex-direction: column; align-items: flex-start; gap: 0; }
  .modal-header, .modal-body { padding: 20px; }
  .modal-dialog { margin: 12px; }
  .modal-footer { padding: 14px 20px; }
  .contact-map iframe { height: 270px; }
  .footer-details { grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 22px; }
  .footer-details > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .account-section { padding-block: 26px 36px; }
  .account-section h1 { font-size: 2.2rem; }
  .account-section form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
