@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

:root {
  --ink: #17313d;
  --ink-soft: #52666d;
  --ocean: #123f52;
  --ocean-2: #0d6270;
  --teal: #168b91;
  --foam: #edf5f2;
  --sand: #e8b868;
  --sand-light: #f5ead4;
  --paper: #fbfaf6;
  --white: #fff;
  --line: #d7e1df;
  --shadow: 0 18px 50px rgba(18, 63, 82, .12);
  --radius: 1.25rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: var(--ocean-2); text-underline-offset: .2em; }
a:hover { color: var(--teal); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 1000; transform: translateY(-160%); padding: .65rem 1rem; background: var(--white); color: var(--ocean); border-radius: .5rem; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-soft { background: var(--foam); }
.section-dark { background: var(--ocean); color: var(--white); }
.eyebrow { margin: 0 0 .75rem; color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .eyebrow { color: #8dd6d3; }
h1, h2, h3 { margin: 0 0 .8rem; line-height: 1.08; }
h1, h2 { font-family: "Newsreader", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.04em; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.025em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
.lede { max-width: 780px; font-size: clamp(1.15rem, 2.3vw, 1.5rem); color: var(--ink-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.section-heading > div { max-width: 760px; }
.text-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(.25rem); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 250, 246, .94); border-bottom: 1px solid rgba(215, 225, 223, .85); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; width: 152px; flex: 0 0 auto; }
.brand img { width: 100%; height: 64px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.1rem); }
.site-nav a { position: relative; color: var(--ink); font-size: .93rem; font-weight: 600; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -.45rem; left: 0; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; transition: .2s; }
.menu-toggle::before { transform: translateY(-5px); }
.menu-toggle::after { transform: translateY(5px); }

.hero { position: relative; min-height: min(760px, calc(100vh - 82px)); overflow: hidden; background: var(--ocean); color: var(--white); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 37, 49, .88) 0%, rgba(5, 37, 49, .54) 48%, rgba(5, 37, 49, .15) 100%), linear-gradient(0deg, rgba(5, 37, 49, .48), transparent 55%); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 3; min-height: min(760px, calc(100vh - 82px)); display: flex; align-items: center; padding: 6rem 0 8rem; }
.hero-copy { max-width: 760px; }
.hero .eyebrow { color: #a9e5dd; }
.hero p { max-width: 660px; font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: rgba(255,255,255,.86); }
.hero-controls { position: absolute; z-index: 5; right: max(1rem, calc((100vw - var(--max))/2)); bottom: 2rem; display: flex; align-items: center; gap: .75rem; }
.round-button { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; background: rgba(18,63,82,.45); color: white; cursor: pointer; transition: .2s; }
.round-button:hover { background: var(--white); color: var(--ocean); }
.slide-status { min-width: 4.25rem; font-size: .85rem; text-align: center; }

.intro-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.intro-mark { font-family: "Newsreader", Georgia, serif; font-size: clamp(4rem, 10vw, 8rem); line-height: .75; color: var(--sand); }
.intro-copy h2 { max-width: 780px; }
.about-grid { display: grid; grid-template-columns: minmax(280px, .8fr) 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; right: -8%; bottom: -7%; border-radius: 50%; background: var(--sand); opacity: .75; }
.about-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; border-radius: 48% 48% 1.5rem 1.5rem; box-shadow: var(--shadow); }
.about-meta { margin-bottom: 1.5rem; color: var(--ink-soft); font-weight: 600; }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .15rem 0 1.65rem; }
.profile-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; border: 1px solid rgba(22, 139, 145, .28); border-radius: 99px; background: rgba(255,255,255,.72); color: var(--ocean); font-size: .86rem; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.profile-links a:hover { border-color: var(--teal); background: var(--white); color: var(--ocean-2); transform: translateY(-1px); }
.profile-links .profile-icon-link { flex: 0 0 2.7rem; width: 2.7rem; height: 2.7rem; min-height: 2.7rem; padding: 0; }
.profile-links .profile-icon-link img { display: block; width: 1.35rem; height: 1.35rem; max-width: 1.35rem; max-height: 1.35rem; object-fit: contain; }
.profile-text-link { padding: .55rem .9rem; }
.bio-list { margin: 0 0 1.5rem; padding-left: 1.35rem; color: var(--ink-soft); }
.bio-list li + li { margin-top: .7rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.project-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(18,63,82,.05); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--foam); padding: .45rem; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.35rem; }
.card-body p { color: var(--ink-soft); }
.card-body .text-link { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .85rem; }
.tag { padding: .28rem .62rem; border-radius: 99px; background: var(--foam); color: var(--ocean-2); font-size: .72rem; font-weight: 700; }

.news-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.news-window { border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.news-track { display: grid; }
.news-item { min-height: 170px; display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.news-date { color: #94d9d5; font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.news-item h3 { color: var(--white); }
.news-item p { color: rgba(255,255,255,.7); }
.news-item a { color: var(--white); text-decoration-color: rgba(255,255,255,.35); }
.news-note { color: rgba(255,255,255,.68); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick-card { min-height: 220px; padding: 2rem; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.quick-card:hover { background: var(--sand-light); color: var(--ink); }
.quick-card span { display: block; margin-top: 2.25rem; color: var(--teal); font-size: 1.6rem; }

.page-hero { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem); background: var(--ocean); color: var(--white); }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.74); font-size: 1.2rem; }
.simple-page-heading { margin-bottom: 2.5rem; }
.simple-page-heading h1 { color: var(--ocean); font-size: clamp(3rem, 7vw, 5rem); }
.simple-page-heading .people-page-title { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.page-tag { font-size: 1.05rem; letter-spacing: .16em; margin-bottom: 1.5rem; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.person-card img { width: 100%; aspect-ratio: 1 / .92; object-fit: cover; object-position: center 24%; }
.person-card .card-body { display: block; flex: 1; }
.person-position { margin-bottom: .15rem; color: var(--teal); font-weight: 700; }
.person-affiliation { margin-bottom: 1rem; color: var(--ink-soft); font-size: .9rem; }
.person-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1rem; }
.person-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; border: 1px solid rgba(22, 139, 145, .28); border-radius: 99px; background: rgba(237, 245, 242, .72); color: var(--ocean); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.person-links a:hover { border-color: var(--teal); background: var(--white); transform: translateY(-1px); }
.person-icon-link { width: 2.25rem; padding: 0; }
.person-icon-link img { width: 1.1rem; height: 1.1rem; max-width: 1.1rem; max-height: 1.1rem; object-fit: contain; }
.person-text-link { padding: .45rem .75rem; }
.pi-card { display: grid; grid-template-columns: minmax(280px, .85fr) 1.25fr; overflow: hidden; margin-bottom: 5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pi-card img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.pi-card .card-body { padding: clamp(2rem, 5vw, 4rem); justify-content: center; }

.filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.filter-button { padding: .6rem .95rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); cursor: pointer; font-weight: 700; }
.filter-button:hover, .filter-button.is-active { border-color: var(--ocean); background: var(--ocean); color: var(--white); }
.projects-grid { grid-template-columns: repeat(3, 1fr); }

.search-wrap { position: relative; max-width: 620px; margin-bottom: 2.5rem; }
.search-input { width: 100%; padding: 1rem 1.1rem 1rem 3.1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); color: var(--ink); }
.search-wrap::before { content: "⌕"; position: absolute; top: .36rem; left: 1rem; color: var(--teal); font-size: 1.75rem; }
.pub-year { margin: 3rem 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--sand); font-family: "Newsreader", Georgia, serif; font-size: 2rem; }
.publication { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.publication h3 { margin-bottom: .35rem; }
.pub-meta { color: var(--ink-soft); }
.pub-links { display: flex; align-items: start; flex-wrap: wrap; gap: .5rem; }
.pub-links a { padding: .3rem .55rem; border: 1px solid var(--line); border-radius: .4rem; font-size: .75rem; font-weight: 700; text-decoration: none; }
.empty-state { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }

.resources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.resource-card { display: grid; grid-template-columns: 68px 1fr; gap: 1.25rem; padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.resource-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--sand-light); color: var(--ocean); font-family: "Newsreader", Georgia, serif; font-size: 1.65rem; }

.site-footer { padding: 4rem 0 2rem; background: #092d3a; color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 3rem; }
.footer-logo { width: 180px; margin-bottom: 1.2rem; opacity: .96; }
.footer-title { color: var(--white); font-weight: 700; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-address { margin-bottom: 1rem; color: rgba(255,255,255,.76); font-style: normal; line-height: 1.55; }
.footer-button { display: inline-flex; align-items: center; justify-content: center; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; background: rgba(255,255,255,.08); color: var(--white); font-size: .88rem; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.footer-button:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.15); color: var(--white); transform: translateY(-1px); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; }

@media (max-width: 980px) {
  .menu-toggle { display: grid; }
  .site-nav { position: absolute; top: 82px; right: 0; left: 0; display: none; padding: 1.25rem 1rem 1.75rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: .45rem 0; }
  .card-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .news-layout { grid-template-columns: 1fr; }
  .intro-mark { line-height: 1; }
}

@media (max-width: 720px) {
  .section { padding: 4.25rem 0; }
  .hero, .hero-content { min-height: 660px; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(5,37,49,.92), rgba(5,37,49,.35)); }
  .hero-content { align-items: end; padding-bottom: 8rem; }
  .hero-controls { right: 1rem; left: 1rem; justify-content: flex-end; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 1rem; }
  .about-grid, .pi-card { grid-template-columns: 1fr; }
  .pi-card img { min-height: 0; aspect-ratio: 1; }
  .card-grid, .projects-grid, .people-grid, .quick-grid, .resources-grid, .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: .35rem; }
  .publication { grid-template-columns: 1fr; }
  .quick-grid { border-left: 0; }
  .quick-card { border-left: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
