:root {
  --ink: #07111f;
  --navy: #06111f;
  --navy-2: #0a1d31;
  --paper: #f4f7f7;
  --white: #fff;
  --cyan: #55d9e8;
  --cyan-soft: #b6edf2;
  --amber: #f4b860;
  --muted: #596673;
  --line: rgba(7, 17, 31, .14);
  --max: 1240px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 1rem; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 84px; padding: 0 clamp(1.25rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.16); transition: background .3s, height .3s; }
.site-header.scrolled { height: 70px; background: rgba(6,17,31,.93); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; line-height: 1; letter-spacing: .02em; }
.brand > span:last-child { display: flex; gap: .22rem; align-items: baseline; }
.brand strong { font: 700 1.1rem/1 "Manrope", sans-serif; letter-spacing: .12em; }
.brand small { font: 600 .65rem/1 "Manrope", sans-serif; color: var(--cyan); letter-spacing: .16em; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; position: relative; transform: rotate(30deg); }
.brand-mark i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgba(85,217,232,.55); }
.brand-mark i:nth-child(1) { transform: translateY(-10px); }
.brand-mark i:nth-child(2) { transform: translate(-9px,6px); }
.brand-mark i:nth-child(3) { transform: translate(9px,6px); }
.brand-mark::before, .brand-mark::after { content:""; position: absolute; width: 19px; height: 1px; background: rgba(255,255,255,.65); transform-origin: left center; }
.brand-mark::before { transform: rotate(60deg) translateX(-1px); }
.brand-mark::after { transform: rotate(-60deg) translateX(-1px); }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.8rem); }
.site-nav a { position: relative; color: rgba(255,255,255,.72); text-decoration: none; font-size: .875rem; font-weight: 600; letter-spacing: .03em; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--white); }
.site-nav a::after { content:""; position: absolute; left: 0; right: 100%; bottom: -.55rem; height: 1px; background: var(--cyan); transition: right .25s; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-button span:not(.sr-only) { display: block; height: 1px; background: var(--white); margin: 6px 0; transition: transform .2s; }

.hero { min-height: 760px; height: 100vh; position: relative; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.92) contrast(1.08) brightness(.62); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,16,29,.97) 0%, rgba(5,16,29,.8) 36%, rgba(5,16,29,.28) 70%, rgba(5,16,29,.36) 100%), linear-gradient(0deg, rgba(5,16,29,.76), transparent 42%); }
.hero-content { position: relative; z-index: 2; width: min(920px, 82vw); margin-left: max(1.25rem, calc((100vw - var(--max)) / 2)); padding-top: 2rem; }
.hero-lab-wordmark { margin: 0 0 .55rem; color: var(--white); font: 700 clamp(4.5rem, 9.5vw, 8.7rem)/.86 "Manrope", sans-serif; letter-spacing: -.075em; }
.eyebrow, .section-kicker { margin: 0 0 1.8rem; font-size: .75rem; line-height: 1.2; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: #2a6973; }
.eyebrow { color: var(--cyan-soft); display: flex; align-items: center; gap: .8rem; font-size: clamp(1.15rem, 2.1vw, 1.75rem); line-height: 1.25; letter-spacing: .1em; }
.eyebrow span { width: 28px; height: 1px; background: var(--cyan); }
.hero h1, .section-heading h2, .manifesto h2, .contact h2 { font-family: "Manrope", sans-serif; letter-spacing: -.055em; }
.hero h1 { margin: 0; font-size: clamp(3rem, 6.2vw, 6rem); font-weight: 600; line-height: .94; }
.hero h1 em, .contact h2 em { color: var(--cyan); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 590px; margin: 2rem 0 2.4rem; color: rgba(255,255,255,.76); font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.55; }
.button { min-height: 54px; padding: .8rem 1.25rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid transparent; text-decoration: none; font-size: .9rem; font-weight: 600; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--cyan); color: var(--navy); min-width: 218px; }

.section-shell { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
.manifesto { display: grid; grid-template-columns: .75fr 2fr 1fr; gap: 3.5rem; padding-top: clamp(6rem, 10vw, 10rem); padding-bottom: clamp(6rem, 10vw, 10rem); border-bottom: 1px solid var(--line); }
.manifesto h2 { margin: -.25rem 0 0; max-width: 780px; font-size: clamp(2.2rem, 4.8vw, 4.8rem); line-height: 1.08; font-weight: 500; }
.manifesto h2 span { color: #178b9c; }
.manifesto-note { align-self: end; color: var(--muted); }
.manifesto-note p { margin: 0 0 1.5rem; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .35rem; }

.research, .group, .publications { padding-block: clamp(6rem, 10vw, 9rem); scroll-margin-top: 64px; }
.section-heading { display: grid; grid-template-columns: 1.6fr .7fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.section-heading .section-kicker { margin-bottom: 1rem; }
.section-heading h2 { margin: 0; max-width: 790px; font-size: clamp(2.5rem, 5vw, 5.2rem); font-weight: 500; line-height: 1.02; }
.section-heading > p { margin: 0; color: var(--muted); }
.research-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-auto-rows: minmax(350px, auto); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.research-card { min-height: 360px; position: relative; overflow: hidden; display: flex; align-items: end; padding: clamp(1.5rem, 3vw, 3rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.42); }
.research-card-feature { grid-row: span 2; min-height: 720px; color: var(--white); background: #0b3341; }
.research-card-dark { color: var(--white); background: var(--navy-2); }
.research-card-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; filter: saturate(.88) contrast(1.08) brightness(.55); }
.card-content { position: relative; z-index: 2; }
.card-label { margin: 0 0 .75rem; color: #2495a5; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.research-card h3, .pi-card h3, .join-strip h3 { margin: 0 0 1rem; font: 600 clamp(1.75rem, 3vw, 3rem)/1.1 "Manrope", sans-serif; letter-spacing: -.035em; }
.research-card p:not(.card-label) { max-width: 570px; margin: 0; color: var(--muted); }
.research-card-feature p:not(.card-label), .research-card-dark p:not(.card-label) { color: rgba(255,255,255,.68); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.tag-row span { border: 1px solid rgba(7,17,31,.2); border-radius: 999px; padding: .35rem .65rem; font-size: .72rem; }
.research-card-feature .tag-row span, .research-card-dark .tag-row span { border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.76); }
.research-card-feature::before { content:""; position:absolute; z-index: 1; inset:0; background: linear-gradient(0deg, rgba(5,16,29,.94) 0%, rgba(5,16,29,.58) 48%, rgba(5,16,29,.16) 100%), radial-gradient(circle at 70% 23%, rgba(85,217,232,.18), transparent 28%); }
.research-gallery-heading { margin: clamp(4rem, 7vw, 6rem) 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.research-gallery-heading .section-kicker { margin: 0; }
.research-gallery-heading > p:last-child { max-width: 620px; margin: 0; color: var(--muted); }
.research-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.research-figure { margin: 0; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.42); }
.research-image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #fff; }
.research-figure-tall .research-image { aspect-ratio: 1 / 1; }
.research-image.dark-image { background: #07111f; }
.research-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.research-figure-lithium .research-image { aspect-ratio: auto; display: block; overflow: visible; padding: 1rem 1rem 1.75rem; }
.research-figure-lithium .research-image img { height: auto; }
.research-figure figcaption { min-height: 92px; padding: 1.25rem 1.4rem 1.4rem; color: var(--ink); font: 600 1.05rem/1.35 "Manrope", sans-serif; }
.research-figure figcaption span { display: block; margin-bottom: .35rem; color: #2495a5; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.section-kicker.light { color: var(--cyan); }

.group { border-bottom: 1px solid var(--line); }
.pi-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--white); }
.pi-portrait { align-self: start; }
.pi-portrait img { width: 100%; height: auto; display: block; }
.pi-copy { padding: clamp(2rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; }
.pi-copy h3 { font-size: clamp(2.4rem, 4vw, 4.4rem); }
.pi-role { color: #247b88; font-weight: 600; }
.pi-copy > p:not(.card-label):not(.pi-role) { color: var(--muted); max-width: 650px; }
.career-path { margin-top: 1.5rem; display: grid; gap: .55rem; }
.career-path span { padding-top: .55rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.career-path b { color: var(--ink); margin-right: .4rem; }
.profile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1.8rem; background: var(--line); }
.profile-metrics span { min-height: 90px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; background: var(--paper); color: var(--muted); font-size: .78rem; }
.profile-metrics b { color: var(--ink); font: 600 1.45rem/1.1 "Manrope", sans-serif; }
.join-strip { margin-top: 1px; padding: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 3rem; background: #dceff0; }
.join-strip .section-kicker { margin-bottom: .7rem; }
.join-strip h3 { max-width: 520px; margin: 0; font-size: clamp(1.6rem, 2.5vw, 2.6rem); }
.join-strip > p { color: var(--muted); }
.circle-link { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); text-decoration: none; font-size: 1.35rem; transition: transform .2s; }
.circle-link:hover { transform: rotate(-12deg); }

.publications { background: var(--paper); }
.publication-list { border-top: 1px solid var(--line); }
.publication-item { display: grid; grid-template-columns: 160px 1fr 110px; align-items: center; gap: 2rem; min-height: 185px; padding: 2rem 1rem 2rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s, padding .2s; }
.publication-item:hover { padding-left: 1rem; background: rgba(255,255,255,.58); }
.publication-year { color: #2b7a86; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.publication-item p { margin: 0 0 .45rem; color: #2b7a86; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.publication-item h3 { margin: 0 0 .65rem; font: 600 clamp(1.45rem, 2.5vw, 2.35rem)/1.15 "Manrope", sans-serif; letter-spacing: -.03em; }
.publication-item span { color: var(--muted); }
.publication-mark { justify-self: end; width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #198797; font: 600 1.1rem/1 "Manrope", sans-serif; }
.publication-note { color: var(--muted); margin: 1.5rem 0 0; font-size: .88rem; }
.publication-note a { color: var(--ink); font-weight: 700; text-underline-offset: .25rem; }

.contact { padding-top: clamp(6rem, 10vw, 9rem); color: var(--white); background: #0a2837; scroll-margin-top: 64px; }
.contact-inner { padding-bottom: clamp(6rem, 10vw, 9rem); }
.contact h2 { margin: 0; font-size: clamp(2.25rem, 4.4vw, 4.5rem); font-weight: 500; line-height: 1.08; }
.contact-inner > p:not(.section-kicker) { max-width: 570px; margin: 2rem 0; color: rgba(255,255,255,.64); font-size: 1.1rem; }
.light-button { background: var(--cyan-soft) !important; }
.site-footer { min-height: 100px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.48); font-size: .78rem; }
.site-footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { height: 70px; }
  .menu-button { display: block; position: relative; z-index: 3; }
  .site-nav { position: fixed; inset: 0; padding: 7rem 2rem 3rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.4rem; background: rgba(6,17,31,.98); transform: translateX(100%); transition: transform .3s; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font: 500 clamp(2.2rem, 9vw, 4rem)/1.1 "Manrope", sans-serif; }
  .hero { min-height: 700px; }
  .hero-image { object-position: 58% center; }
  .hero-content { width: calc(100% - 2.5rem); margin: 0 1.25rem; }
  .hero-lab-wordmark { font-size: clamp(4.2rem, 15vw, 7rem); }
  .hero h1 { font-size: clamp(2.9rem, 12vw, 4.8rem); }
  .manifesto { grid-template-columns: 1fr; gap: 1.6rem; }
  .manifesto-note { max-width: 560px; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading > p { max-width: 620px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card-feature { grid-row: auto; min-height: 560px; }
  .research-gallery-heading { grid-template-columns: 1fr; gap: 1rem; }
  .pi-card { grid-template-columns: 1fr; }
  .profile-metrics { grid-template-columns: 1fr; }
  .join-strip { grid-template-columns: 1fr auto; }
  .join-strip > p { grid-column: 1 / -1; grid-row: 2; }
  .circle-link { grid-column: 2; grid-row: 1; }
  .publication-item { grid-template-columns: 110px 1fr; }
  .publication-mark { display: none; }
}

@media (max-width: 620px) {
  .section-shell { width: min(calc(100% - 2rem), var(--max)); }
  .hero-content { margin: 0 1rem; width: calc(100% - 2rem); }
  .hero-lab-wordmark { font-size: clamp(3.7rem, 18vw, 5.4rem); }
  .eyebrow { font-size: .92rem; }
  .research-grid { margin-inline: -.2rem; }
  .research-gallery { grid-template-columns: 1fr; }
  .join-strip { grid-template-columns: 1fr; gap: 1.5rem; }
  .join-strip > p, .circle-link { grid-column: 1; grid-row: auto; }
  .publication-item { grid-template-columns: 1fr; gap: .7rem; padding: 1.7rem 0; }
  .site-footer { grid-template-columns: 1fr; padding-block: 2rem; gap: .8rem; }
  .site-footer p { margin: 0; }
  .site-footer p:last-child { text-align: left; }
}

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