:root {
  --ink: #102a2e;
  --muted: #617276;
  --paper: #f7faf8;
  --white: #ffffff;
  --green: #0e6b5a;
  --green-dark: #084b40;
  --mint: #dff3ec;
  --gold: #d1a54b;
  --line: #dce7e3;
  --shadow: 0 18px 55px rgba(14, 65, 57, .10);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; left: 20px; top: 20px; z-index: 9999; padding: 10px 14px; background: white; color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 250, 248, .9); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(220, 231, 227, .8); }
.admin-bar .site-header { top: 32px; }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--green-dark), var(--green)); box-shadow: 0 10px 24px rgba(14, 107, 90, .22); font-size: .88rem; }
.brand-logo, .brand-logo .custom-logo-link { display: block; }
.brand-logo .custom-logo { width: 42px; height: 42px; object-fit: cover; border-radius: 14px; }
.primary-nav ul { display: flex; align-items: center; list-style: none; gap: 26px; margin: 0; padding: 0; font-size: .91rem; font-weight: 650; }
.primary-nav a { color: #3e5559; }
.primary-nav a:hover, .primary-nav a.active, .primary-nav .current-menu-item > a { color: var(--green); }
.primary-nav a.active, .primary-nav .current-menu-item > a { position: relative; }
.primary-nav a.active::after, .primary-nav .current-menu-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--gold); }
.menu-button { display: none; border: 0; background: transparent; font-size: 1.35rem; color: var(--ink); cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: 92px 0 70px; background: radial-gradient(circle at 78% 26%, rgba(209,165,75,.19), transparent 18%), radial-gradient(circle at 75% 30%, rgba(14,107,90,.12), transparent 33%); }
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(14, 107, 90, .12); border-radius: 50%; width: 420px; height: 420px; right: -120px; top: -140px; }
.hero::after { width: 260px; height: 260px; right: 80px; top: 120px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.eyebrow { color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 15px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.75rem); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.hero h1 span { color: var(--green); display: block; }
.hero-copy { max-width: 680px; color: #506569; font-size: 1.11rem; }
.hero-meta { margin: 24px 0 30px; display: grid; gap: 8px; color: #334c50; font-weight: 600; }
.hero-meta span::before { content: "•"; color: var(--gold); margin-right: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 750; font-size: .92rem; transition: .2s ease; }
.button.primary { background: var(--green); color: white; box-shadow: 0 12px 28px rgba(14,107,90,.22); }
.button.secondary { background: white; border: 1px solid var(--line); }
.button:hover { transform: translateY(-2px); }

.portrait-card { position: relative; min-height: 440px; border-radius: 44% 44% 24px 24px; background: linear-gradient(155deg, #e6f5ef, #b8ded2); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; border: 8px solid rgba(255,255,255,.7); }
.portrait-card.has-photo { background: #d9eee7; }
.portrait-card .profile-photo { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: center top; }
.portrait-initials { display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; color: white; font-family: Georgia, serif; font-size: 3.4rem; letter-spacing: -.08em; background: linear-gradient(145deg, var(--green-dark), var(--green)); box-shadow: 0 28px 60px rgba(8,75,64,.25); }
.portrait-note { position: absolute; bottom: 22px; left: 22px; right: 22px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.84); backdrop-filter: blur(10px); color: #4d6265; font-size: .82rem; text-align: center; }
.portrait-card.has-photo .portrait-note { background: rgba(255,255,255,.88); }

.metrics { margin-top: 66px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.76); box-shadow: var(--shadow); }
.metric { padding: 24px 28px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: Georgia, serif; color: var(--green-dark); font-size: 2rem; font-weight: 500; }
.metric span { color: var(--muted); font-size: .86rem; }

.home-section { padding: 92px 0; }
.white-section { background: var(--white); }
.section-head { display: grid; grid-template-columns: .6fr 1fr; gap: 40px; align-items: end; margin-bottom: 42px; }
.section-head h2 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.65rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }

.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.research-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .22s ease; }
.research-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bfd9d0; }
.card-no { color: var(--gold); font-family: Georgia, serif; font-size: 1.15rem; }
.research-card h3 { margin: 28px 0 10px; font-size: 1.2rem; }
.research-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag { padding: 6px 10px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .72rem; font-weight: 750; }

.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 76px; align-items: start; }
.quote-card { padding: 38px; color: white; border-radius: var(--radius); background: linear-gradient(145deg, var(--green-dark), var(--green)); box-shadow: var(--shadow); }
.quote-card blockquote { margin: 0; font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.35; }
.quote-card small { display: block; margin-top: 30px; color: #ccebe1; }
.about-copy h2 { margin: 0 0 22px; font-family: Georgia, serif; font-size: 3rem; font-weight: 500; line-height: 1.08; }
.about-copy p { color: var(--muted); }
.focus-list { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.focus-item { padding: 15px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: .86rem; font-weight: 700; }
.focus-item::before { content: "✓"; color: var(--green); margin-right: 8px; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project { min-height: 270px; padding: 32px; border-radius: var(--radius); background: #0c4f44; color: white; position: relative; overflow: hidden; }
.project:nth-child(2) { background: #203f46; }
.project:nth-child(3) { background: #6d5730; }
.project:nth-child(4) { background: #295b50; }
.project::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); right: -40px; bottom: -50px; }
.project-type { color: #bee7db; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.project h3 { max-width: 430px; margin: 36px 0 10px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; line-height: 1.2; }
.project p { max-width: 470px; color: rgba(255,255,255,.72); font-size: .9rem; }

.publication-list { display: grid; gap: 12px; }
.publication { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); background: white; border-radius: 18px; }
.pub-year { color: var(--green); font-family: Georgia, serif; font-size: 1.45rem; }
.publication h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.45; }
.publication p { margin: 0; color: var(--muted); font-size: .84rem; }
.pub-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 900; }

.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.career-column h3 { margin: 0 0 28px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.timeline { position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 9px; bottom: 9px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-left: 34px; }
.timeline-item::before { content: ""; position: absolute; left: 1px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--mint); }
.timeline-item .date { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.timeline-item h4 { margin: 4px 0 3px; font-size: 1rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .86rem; }

.recognition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.recognition { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: white; }
.recognition strong { display: block; margin-bottom: 6px; }
.recognition span { color: var(--muted); font-size: .86rem; }

.contact-shell { border-radius: 30px; padding: 58px; color: white; background: linear-gradient(135deg, #093e37, #0f735f); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; box-shadow: var(--shadow); }
.contact-shell h2 { margin: 10px 0 16px; font-family: Georgia, serif; font-size: 3.2rem; font-weight: 500; line-height: 1; }
.contact-shell p { color: #cce4dd; }
.contact-links { display: grid; gap: 11px; align-content: center; }
.contact-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07); }
.contact-link span { color: #cce4dd; font-size: .79rem; }

.gallery-hero { padding: 92px 0 70px; background: radial-gradient(circle at 83% 25%, rgba(209,165,75,.20), transparent 17%), radial-gradient(circle at 75% 35%, rgba(14,107,90,.12), transparent 34%); }
.gallery-hero h1 { margin: 16px 0 22px; max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.gallery-lead { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.filter-button { border: 1px solid var(--line); color: #365055; background: white; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 750; font-size: .84rem; }
.filter-button:hover, .filter-button.active { color: white; background: var(--green); border-color: var(--green); }
.gallery-section { padding: 28px 0 92px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 17px; }
.gallery-item { grid-column: span 4; border-radius: var(--radius); overflow: hidden; background: white; border: 1px solid var(--line); box-shadow: 0 10px 35px rgba(14,65,57,.06); transition: .24s ease; }
.gallery-item.wide { grid-column: span 8; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery-photo { position: relative; min-height: 325px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.gallery-item.tall .gallery-photo { min-height: 520px; }
.gallery-photo.has-image { background: #d9eee7; }
.gallery-photo.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-photo::before, .gallery-photo::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.gallery-photo::before { width: 240px; height: 240px; right: -70px; top: -80px; background: rgba(255,255,255,.17); }
.gallery-photo::after { width: 150px; height: 150px; left: -44px; bottom: -50px; border: 1px solid rgba(255,255,255,.24); }
.photo-1 { background: linear-gradient(145deg, #0a5648, #2c8b74); }
.photo-2 { background: linear-gradient(145deg, #1d3d44, #57747b); }
.photo-3 { background: linear-gradient(145deg, #b78a3f, #e0c176); }
.photo-4 { background: linear-gradient(145deg, #bcded4, #74ad9e); }
.photo-5 { background: linear-gradient(145deg, #354f58, #152e35); }
.photo-6 { background: linear-gradient(145deg, #9f7141, #d0a36b); }
.photo-7 { background: linear-gradient(145deg, #7bb8a8, #2e7665); }
.photo-8 { background: linear-gradient(145deg, #5f6a70, #aab7b6); }
.photo-placeholder { width: 82%; max-width: 390px; padding: 30px 24px; color: white; border-radius: 22px; text-align: center; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(5px); }
.photo-icon { display: block; margin-bottom: 16px; font-size: 2.6rem; }
.photo-placeholder strong { display: block; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.photo-placeholder span { display: block; margin-top: 7px; font-size: .78rem; color: rgba(255,255,255,.72); }
.gallery-caption { padding: 19px 21px 22px; }
.gallery-category { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.gallery-caption h2 { margin: 5px 0 2px; font-size: 1rem; }
.gallery-caption p { margin: 0; color: var(--muted); font-size: .83rem; }
.gallery-note { margin-top: 42px; padding: 25px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-radius: 18px; background: var(--mint); border: 1px solid #c7e5dc; }
.gallery-note strong { display: block; margin-bottom: 3px; }
.gallery-note p { margin: 0; color: #48645f; font-size: .88rem; }
.gallery-note a { white-space: nowrap; padding: 11px 17px; color: white; background: var(--green); border-radius: 999px; font-weight: 750; font-size: .83rem; }

.content-shell { min-height: 65vh; padding: 80px 0; }
.content-shell article { max-width: 850px; margin: 0 auto; padding: 40px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.content-shell h1 { margin-top: 0; font-family: Georgia, serif; font-weight: 500; font-size: 3rem; }
.content-shell a { color: var(--green); text-decoration: underline; }

.site-footer { padding: 34px 0 46px; color: var(--muted); font-size: .82rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }

@media (max-width: 920px) {
  .admin-bar .site-header { top: 46px; }
  .primary-nav ul { display: none; position: absolute; top: 78px; left: 20px; right: 20px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
  .primary-nav ul.open { display: flex; }
  .primary-nav a.active::after, .primary-nav .current-menu-item > a::after { display: none; }
  .menu-button { display: block; }
  .hero-grid, .about-grid, .section-head, .contact-shell { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .portrait-card { min-height: 340px; max-width: 520px; width: 100%; }
  .portrait-card .profile-photo { min-height: 340px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 38px; }
  .gallery-item, .gallery-item.wide { grid-column: span 6; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: 3.15rem; }
  .home-section { padding: 68px 0; }
  .metrics, .research-grid, .projects, .career-grid, .recognition-grid, .focus-list { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .publication { grid-template-columns: 68px 1fr; }
  .pub-link { display: none; }
  .contact-shell { padding: 34px 24px; }
  .contact-shell h2 { font-size: 2.5rem; }
  .gallery-hero { padding: 65px 0 50px; }
  .gallery-hero h1 { font-size: 3.4rem; }
  .gallery-grid { display: block; }
  .gallery-item { margin-bottom: 16px; }
  .gallery-item.tall .gallery-photo, .gallery-photo { min-height: 320px; }
  .gallery-note, .footer-row { align-items: flex-start; flex-direction: column; }
}
