:root{
  color-scheme: light;
  --color-bg: #f6f3ec;
  --color-bg-alt: #efeae0;
  --color-surface: #ffffff;
  --color-surface-2: #f5f1e9;
  --color-ivory: #1c1d20;
  --color-ivory-dim: #33353a;
  --color-ivory-faint: #55575c;
  --color-gold: #a8742a;
  --color-gold-bright: #422a03;
  --color-gold-dim: #8a5a14;
  --color-line: rgba(138,90,20,0.38);
  --color-line-faint: rgba(28,29,32,0.16);
  /* Light theme: the --color-ivory* variables hold the dark text colours, --color-gold-bright the dark gold text */
  /* Frosted-glass panel that sits over the animated carbon weave */
  /* Text panels: white at 84% opacity */
  --panel-bg: rgba(255,255,255,0.84);
  --panel-bg-strong: rgba(255,255,255,0.88);
  --panel-shadow: 0 14px 40px rgba(60,50,30,0.14);

  --font-serif: 'Times New Roman', Times, 'Liberation Serif', 'Nimbus Roman', 'Nimbus Roman No9 L', 'DejaVu Serif', Baskerville, Georgia, serif;
  --font-sans: 'Times New Roman', Times, 'Liberation Serif', 'Nimbus Roman', 'Nimbus Roman No9 L', 'DejaVu Serif', Baskerville, Georgia, serif;

  --max-width: 1200px;
  --nav-height: 96px;

  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body, button, input, textarea, select, optgroup{
  font-family: 'Times New Roman', Times, 'Liberation Serif', 'Nimbus Roman', 'Nimbus Roman No9 L', 'DejaVu Serif', Baskerville, Georgia, serif;
}

body{
  margin:0;
  background: var(--color-bg);
  color: var(--color-ivory-dim);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body > :not(.laminate-background):not(.scroll-progress):not(.site-nav){ position:relative; z-index:1; }

img{ max-width:100%; display:block; }

a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-ivory);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{
  margin: 0 0 1.2em;
  font-size: 1.15rem;
  color: var(--color-ivory-dim);
  font-weight: 400;
  text-align: justify;
  hyphens: auto; -webkit-hyphens: auto;
}

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Carbon-fiber weave texture ---------- */
.texture-carbon{
  background: transparent;
}

/* ---------- Top progress line ---------- */
.scroll-progress{
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--color-gold-dim), var(--color-gold-bright));
  z-index: 900;
  transition: width .1s linear;
}

/* ---------- Nav ---------- */
.site-nav{
  position: fixed; top:0; left:0; right:0;
  height: var(--nav-height);
  display:flex; align-items:center;
  z-index: 800;
  background: rgba(232, 241, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid var(--color-line-faint);
}
.site-nav.is-scrolled{
  background: var(--panel-bg);
  border-bottom: 1px solid var(--color-line);
}
.site-nav .container{
  display:flex; align-items:center; justify-content:space-between;
  width:100%;
}
.brand{
  display:grid; grid-template-columns:58px auto; grid-template-rows:auto auto auto; column-gap:12px; row-gap:1px; line-height:1.15; align-items:center; padding:6px 0;
}
.brand-logo{ width:58px; height:58px; object-fit:contain; grid-row:1 / span 3; align-self:center; }
.brand .brand-mark{
  font-family: var(--font-serif);
  font-size: 1.34rem;
  font-weight: 600;
  color: var(--color-ivory);
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand .brand-tagline{
  font-size: .77rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-ivory-dim);
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand .brand-sub{
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-top: 1px;
}
.nav-links{
  display:flex; align-items:center; gap: 30px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  position:relative;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-ivory-dim);
  padding: 8px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0%; height:2px;
  background: var(--color-gold-bright);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--color-ivory); font-weight: 600; }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }

.nav-toggle{
  display:none;
  flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer;
  padding: 10px;
}
.nav-toggle span{
  width: 24px; height: 2px; background: var(--color-ivory);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-size: .90rem; letter-spacing:.16em; text-transform: uppercase;
  font-weight: 600;
  padding: 16px 36px;
  border: 2px solid var(--color-gold);
  color: var(--color-ivory);
  background: var(--panel-bg);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor:pointer;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before{
  content:'';
  position:absolute; top:0; right:0; bottom:0; left:0;
  background: var(--color-gold);
  transform: translateX(-101%);
  transition: transform .35s var(--ease);
  z-index:-1;
}
.btn:hover{ color:#111; background: var(--color-gold); }
.btn:hover::before{ transform: translateX(0); }
.btn-ghost{ border-color: var(--color-line); background: var(--panel-bg); }
.btn-ghost:hover{ border-color: var(--color-gold); background: var(--color-gold); color: #111; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: calc(var(--nav-height) + 90px);
  overflow:hidden;
}
.hero::after{
  content:'';
  position:absolute; top:0; right:0; bottom:0; left:0;
  background: transparent;
  pointer-events:none;
}
.hero .container{ position: relative; z-index: 2; }
.hero-eyebrow{
  display:flex; align-items:center; gap:16px;
  font-size:.90rem; letter-spacing:.26em; text-transform:uppercase;
  font-weight: 600;
  color: var(--color-gold-bright);
  margin-bottom: 26px;
  opacity:0; transform: translateY(14px);
  animation: rise .9s var(--ease) .1s forwards;
}
.hero-eyebrow .rule{ width:48px; height:2px; background: var(--color-gold); }
.hero h1{
  font-size: 3.6rem;
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--color-ivory);
  max-width: 15ch;
  opacity:0; transform: translateY(20px);
  animation: rise 1s var(--ease) .25s forwards;
}
.hero h1 em{
  font-style: italic; color: var(--color-ivory); font-weight: 600;
}
.hero-lede{
  max-width: 48ch;
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--color-ivory-dim);
  margin-top: 22px;
  text-align: justify;
  opacity:0; transform: translateY(20px);
  animation: rise 1s var(--ease) .4s forwards;
}
.hero-actions{
  display:flex; gap: 20px; margin-top: 42px; flex-wrap:wrap;
  opacity:0; transform: translateY(20px);
  animation: rise 1s var(--ease) .55s forwards;
}
@keyframes rise{ to{ opacity:1; transform:none; } }

.hero-scroll{
  position:fixed; bottom: 32px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  font-size:.78rem; letter-spacing:.2em; text-transform:uppercase;
  font-weight: 600;
  color: var(--color-ivory-dim);
  z-index:2;
  opacity:1; transition: opacity .4s var(--ease);
  pointer-events:none;
}
.hero-scroll.is-hidden{ opacity:0; }
@media (max-height: 900px){ .hero-scroll{ display:none; } }
.hero-scroll .line{ width:2px; height:44px; background: linear-gradient(var(--color-gold), transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity:.4; } 50%{ opacity:1; } }

/* ---------- Animated composite-weave photo background ---------- */
.laminate-background{
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #f6f3ec;
}
.laminate-background canvas{
  position: absolute; top:0; right:0; bottom:0; left:0;
  display: block;
  width: 100vw !important;
  height: 100vh !important;
}
.photo-bg .photo-bg-gl, .photo-bg .photo-bg-still{ opacity: 0; transition: opacity 1.6s var(--ease); }
.photo-bg.is-ready .photo-bg-gl, .photo-bg.is-ready .photo-bg-still{ opacity: 1; }
/* CSS fallback when WebGL is unavailable: slow Ken Burns drift of the real photo */
.photo-bg-still{
  position: absolute; top:-6%; right:-6%; bottom:-6%; left:-6%;
  background: url('../background.jpg') 60% 60% / cover no-repeat;
  animation: weaveDrift 38s ease-in-out infinite alternate;
}
@keyframes weaveDrift{
  from{ transform: scale(1.02) translate3d(0,0,0); }
  to{ transform: scale(1.12) translate3d(-2.5%, 1.5%, 0); }
}
@media (prefers-reduced-motion: reduce){ .photo-bg-still{ animation: none; } }

/* Hero areas sit directly on the pale photograph: dark type over a soft white wash */
.hero, .page-hero{ --hero-ink: #1c1d20; --hero-ink-dim: #1c1d20; --hero-accent: #422a03; }
.hero::before, .page-hero::before{
  content:''; position:absolute; top:0; right:0; bottom:0; left:0; pointer-events:none;
  background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.82) 50%, rgba(255,255,255,0) 80%);
}
.hero h1, .hero h1 em, header.page-hero h1{ color: var(--hero-ink); }
.hero .hero-lede, .page-hero .hero-lede, .page-hero p{ color: var(--hero-ink-dim); }
.hero .hero-eyebrow, .page-hero .hero-eyebrow, .page-hero .breadcrumb{ color: var(--hero-accent); }
.hero .hero-eyebrow .rule, .page-hero .hero-eyebrow .rule{ background: var(--hero-accent); }
.page-hero .breadcrumb a{ color: var(--hero-ink); }
.page-hero .container{ position: relative; z-index: 2; }
.hero .btn, .page-hero .btn{ color: #fff; border-color: #422a03; background: #422a03; }
.hero .btn:hover, .page-hero .btn:hover{ color: #111; border-color: var(--color-gold); background: var(--color-gold); }
.hero .btn-ghost, .page-hero .btn-ghost{ color: var(--hero-ink); background: rgba(255,255,255,.85); border-color: rgba(28,29,32,.5); }
.hero-scroll{ color: #1c1d20; }
.hero-scroll .line{ background: linear-gradient(#8a5a14, transparent); }

/* ---------- Section basics ---------- */
section{ position:relative; padding: 130px 0; }
.section-tight{ padding: 90px 0; }
.section-label{
  display:flex; align-items:center; gap:16px;
  font-size:.88rem; letter-spacing:.26em; text-transform:uppercase;
  font-weight: 600;
  color: var(--color-gold-bright);
  margin-bottom: 20px;
}
.section-label .rule{ width:42px; height:2px; background: var(--color-gold); }
.section-heading{
  font-size: 2.5rem;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 600;
  color: var(--color-ivory);
  max-width: 20ch;
}
.section-intro{
  max-width: 64ch;
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--color-ivory-dim);
  text-align: justify;
}
.section-head{ margin-bottom: 60px; }
.section-head.center{ text-align:center; margin-left:auto; margin-right:auto; }
.section-head.center .section-label{ justify-content:center; }
.section-head.center .section-intro{ margin-left:auto; margin-right:auto; text-align-last:center; }

.alt-bg{ background: transparent; }
.divider{
  height:1px; width:100%;
  background: linear-gradient(90deg, transparent, var(--color-line), transparent);
  margin: 0;
}

/* ---------- Reveal on scroll ---------- */
/* Only hidden when the scripts that reveal it can run, so content is never lost */
html.js-anim .reveal{ opacity:0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js-anim .reveal.is-visible{ opacity:1; transform:none; }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; }

/* ---------- Stats strip ---------- */
.stats{
  display:grid; grid-template-columns: repeat(4,1fr);
  gap: 40px;
  border-top: 2px solid var(--color-line-faint);
  border-bottom: 2px solid var(--color-line-faint);
  padding: 46px 0;
  background: var(--panel-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat{ text-align:center; }
.stat .num{
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 600; color: var(--color-ivory);
}
.stat .label{
  font-size:.84rem; font-weight: 600; letter-spacing:.16em; text-transform:uppercase; color: var(--color-ivory-dim);
  margin-top: 6px;
}
@media (max-width: 760px){ .stats{ grid-template-columns: repeat(2,1fr); row-gap: 30px; } }

/* ---------- Video embeds ---------- */
.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(60,50,30,0.14);
  overflow: hidden;
}
.video-frame iframe{
  position: absolute; top:0; right:0; bottom:0; left:0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Cards ---------- */
.grid{ display:grid; gap: 34px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px){ .grid-3, .grid-2, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-line);
  box-shadow: 0 8px 24px rgba(60,50,30,0.14);
  padding: 40px 34px;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
}
.card:hover{
  border-color: var(--color-gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(60,50,30,0.14);
}
.card .num-mark{
  font-family: var(--font-serif); font-style: italic;
  color: var(--color-gold-bright); font-size: 1.32rem; font-weight: 600; margin-bottom: 18px; display:block;
}
.card h3{ font-size: 1.42rem; font-weight: 600; color: var(--color-ivory); margin-bottom: 14px; }
.card p{ font-size: 1.10rem; font-weight: 400; color: var(--color-ivory-dim); margin-bottom: 0; line-height: 1.7; }

.icon-frame{
  width:54px; height:54px;
  border: 2px solid var(--color-gold);
  background: rgba(227,184,115,0.1);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
  color: var(--color-gold-bright);
}
.icon-frame svg{ width:26px; height:26px; }

/* ---------- Quote / PI intro ---------- */
.pi-block{
  display:grid; grid-template-columns: minmax(336px, 368px) 1fr; gap: 60px; align-items:center;
  background: var(--panel-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 44px;
  border: 1px solid var(--color-line);
  box-shadow: 0 12px 36px rgba(60,50,30,0.14);
}
@media (max-width: 860px){ .pi-block{ grid-template-columns: 1fr; gap: 40px; padding: 24px; } }
.pi-portrait{
  aspect-ratio: 1/1;
  width:100%;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.pi-portrait img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.pi-portrait .initials{
  font-family: var(--font-serif); font-size: 5rem; color: var(--color-ivory);
  letter-spacing: .05em;
}
.pi-details{ display:grid; gap:12px; margin:22px 0 28px; color:var(--color-ivory-dim); font-size:1.02rem; line-height:1.6; }
.pi-details span{ display:block; }
.pi-details strong{ color:var(--color-ivory); font-weight:600; }
.pi-quote{
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.58rem; color: var(--color-ivory);
  font-weight: 500;
  line-height: 1.5;
  border-left: 3px solid var(--color-gold);
  padding-left: 28px;
  margin-bottom: 22px;
}

/* ---------- Timeline (research / education) ---------- */
.timeline{ border-left: 2px solid var(--color-line); margin-left: 6px; }
.timeline-item{ position: relative; padding: 0 0 44px 34px; }
.timeline-item::before{
  content:''; position:absolute; left:-7px; top:4px;
  width:12px; height:12px; border-radius:50%;
  background: var(--color-bg); border: 2px solid var(--color-gold);
}
.timeline-item .t-year{
  font-size:.86rem; font-weight: 600; letter-spacing:.16em; text-transform:uppercase; color: var(--color-gold-bright);
  margin-bottom: 6px;
}
.timeline-item h4{ font-size: 1.25rem; font-weight: 600; color: var(--color-ivory); margin-bottom: 6px; }
.timeline-item p{ font-size:1.10rem; color: var(--color-ivory-dim); margin-bottom:0; }

/* ---------- Publications ---------- */
.pub-filter{
  display:flex; flex-wrap:wrap; gap: 12px; margin-bottom: 46px;
}
.pub-filter button{
  font-size:.86rem; font-weight: 600; letter-spacing:.12em; text-transform:uppercase;
  padding: 11px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--color-line);
  color: var(--color-ivory-dim); cursor:pointer;
  transition: all .3s var(--ease);
}
.pub-filter button:hover, .pub-filter button.active{
  border-color: var(--color-gold); background: var(--color-gold); color: #111;
}
.pub-list{ display:flex; flex-direction:column; }
.pub-item{
  display:grid; grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-line-faint);
}
.pub-item .pub-year{
  font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--color-ivory);
}
.pub-item h4{ font-size: 1.22rem; margin-bottom: 8px; font-weight:600; color: var(--color-ivory); }
.pub-item .pub-meta{ font-size:1.02rem; color: var(--color-ivory-dim); font-style: italic; font-weight: 400; }
.pub-item .pub-tags{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }
.pub-tag{
  font-size:.76rem; font-weight: 600; letter-spacing:.1em; text-transform:uppercase;
  color: var(--color-gold-bright); border:1px solid var(--color-gold); background: rgba(227,184,115,0.1); padding: 4px 12px;
}
.note-box{
  border: 1px solid var(--color-line);
  background: var(--panel-bg);
  padding: 22px 26px;
  font-size:1.04rem; color: var(--color-ivory-dim);
  margin-bottom: 40px;
}
.note-box strong{ color: var(--color-ivory); font-weight: 600; }
.scopus-publications{ display:grid; grid-template-columns: minmax(0, 1fr); gap:54px; }
.publication-category{ border-top:2px solid var(--color-line); padding-top:28px; }
.publication-category h3{ font-size:1.75rem; font-weight: 600; color:var(--color-ivory); margin-bottom:22px; }
.publication-category h3 span{ color:var(--color-gold-bright); font-family:var(--font-sans); font-size:.82rem; font-weight: 600; letter-spacing:.14em; text-transform:uppercase; margin-left:10px; }
.publication-category-list{ display:flex; flex-direction:column; gap:14px; }
.scopus-publication{ display:grid; grid-template-columns:48px 1fr; gap:22px; padding:18px 22px; background: var(--panel-bg); border:1px solid var(--color-line-faint); border-radius:6px; }
.scopus-publication--plain{ display:block; }
.scopus-publication-number{ color:var(--color-gold-bright); font-family:var(--font-serif); font-size:1.36rem; font-weight: 600; }
.scopus-publication-title{ color:var(--color-ivory); font-family:var(--font-serif); font-size:1.32rem; font-weight: 600; line-height:1.4; }
.scopus-publication-meta{ color:var(--color-ivory-dim); font-size:.92rem; font-weight: 400; letter-spacing:.04em; margin-top:5px; }
.book-publication-content{ display:flex; align-items:center; gap:20px; }
.book-publication-content img{ width:90px; height:115px; object-fit:contain; flex-shrink:0; }
@media (max-width:680px){ .scopus-publication{ grid-template-columns:34px 1fr; gap:12px; } .scopus-publication-title{ font-size:1.18rem; } }

/* ---------- Team ---------- */
.bio-panel{ background: var(--panel-bg); border:1px solid var(--color-line-faint); border-radius:6px; padding:32px; }
.person-card{ text-align:left; background: var(--panel-bg); border:1px solid var(--color-line-faint); border-radius:6px; padding:20px; }
.person-photo{
  aspect-ratio: 1/1;
  background: var(--panel-bg);
  border: 1px solid var(--color-line);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  position:relative;
}
.person-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; }
.person-photo .initials{ font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; color: var(--color-ivory); }
.person-card h4{ font-size: 1.20rem; font-weight: 600; color: var(--color-ivory); margin-bottom: 4px; }
.person-role{ font-size:.88rem; font-weight: 600; letter-spacing:.1em; text-transform:uppercase; color: var(--color-gold-bright); margin-bottom: 10px; }
.person-card p{ font-size:1.06rem; color: var(--color-ivory-dim); margin-bottom:0; }
.person-details{ font-size:1.06rem; color: var(--color-ivory-dim); margin-bottom:0; }
.person-details span{ display:block; }
.person-details span:not(:last-child){ margin-bottom:2px; }

.alumni-list{ columns: 2; column-gap: 60px; }
@media (max-width: 680px){ .alumni-list{ columns: 1; } }
.alumni-list li{ break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--color-line-faint); list-style:none; font-size:1.10rem; color: var(--color-ivory); font-weight: 500; }
.alumni-list li span{ display:block; font-size:.92rem; color: var(--color-ivory-dim); font-weight: 400; margin-top:2px; }

.scholar-roster{ border-top:2px solid var(--color-line); background:var(--panel-bg-strong); border-radius:6px; padding:0 28px; box-shadow: var(--panel-shadow); }
.scholar-roster-head, .scholar-row{ display:grid; grid-template-columns:70px minmax(210px, 1.15fr) 110px minmax(240px, 1.4fr); gap:20px; align-items:start; padding:18px 0; border-bottom:1px solid var(--color-line-faint); }
.scholar-roster-head{ color:var(--color-ivory); font-size:.82rem; font-weight: 600; letter-spacing:.14em; text-transform:uppercase; padding:14px 0; }
.current-scholar-head{ grid-template-columns:minmax(210px, 1.15fr) 110px minmax(240px, 1.4fr); }
.roster-subhead{ grid-column:1 / -1; color:var(--color-ivory); font-family:var(--font-serif); font-size:1.4rem; font-weight: 600; padding:28px 0 10px; border-bottom:1px solid var(--color-line); }
.scholar-row{ color:var(--color-ivory-dim); font-size:1.04rem; line-height:1.5; font-weight: 400; }
.scholar-row > span:first-child{ color:var(--color-gold-bright); font-family:var(--font-serif); font-size:1.26rem; font-weight: 600; }
.scholar-row strong{ color:var(--color-ivory); font-family:var(--font-serif); font-size:1.28rem; font-weight:600; }
.scholar-row strong small{ display:block; color:var(--color-ivory-dim); font-family:var(--font-sans); font-size:.88rem; font-weight:400; margin-top:3px; }
.current-scholar-row{ grid-template-columns:minmax(210px, 1.15fr) 110px minmax(240px, 1.4fr); }
@media (max-width:900px){ .scholar-roster-head{ display:none; } .scholar-row{ grid-template-columns:42px 1fr; gap:6px 14px; } .scholar-row > span:nth-child(3){ grid-column:2; color:var(--color-ivory); font-size:.88rem; } .scholar-row > span:nth-child(4){ grid-column:2; } .current-scholar-row{ grid-template-columns:1fr; gap:6px 0; } .current-scholar-row > span{ grid-column:1; } }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 70px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; gap: 50px; } }
.info-row{ display:flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--color-line-faint); }
.info-row .icon-frame{ margin-bottom:0; flex-shrink:0; width:48px; height:48px; }
.info-row h4{ font-size:1.06rem; font-weight: 600; color: var(--color-ivory); margin-bottom: 4px; }
.info-row p{ font-size:1.08rem; color: var(--color-ivory-dim); margin-bottom:0; }

.field{ margin-bottom: 26px; }
.field label{
  display:block; font-size:.86rem; font-weight: 600; letter-spacing:.14em; text-transform:uppercase;
  color: var(--color-ivory); margin-bottom: 10px;
}
.field input, .field textarea, .field select{
  width:100%;
  background: var(--panel-bg);
  border: none;
  border-bottom: 2px solid var(--color-line);
  color: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 450;
  padding: 12px 6px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field select option{ background: var(--color-surface); color: var(--color-ivory); }
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none; border-color: var(--color-gold); background: #fff;
}
.field textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size:.96rem; color: var(--color-ivory-dim); margin-top: 10px; }

.map-frame{
  border: 1px solid var(--color-line);
  background: transparent;
  width:100%; height: 320px;
}

/* ---------- CTA band ---------- */
.cta-band{
  padding: 100px 0;
  text-align:center;
  position: relative;
  background: var(--panel-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cta-band h2{ font-size: 2.6rem; font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 600; max-width: 20ch; margin: 0 auto 24px; color: var(--color-ivory); }
.cta-band .section-intro{ margin: 0 auto 36px; color: var(--color-ivory-dim); text-align-last: center; }

/* ---------- Footer ---------- */
.site-footer{ padding: 70px 0 34px; border-top: 2px solid var(--color-line-faint); background: var(--panel-bg); }
.footer-top{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px;
  margin-bottom: 60px;
}
@media (max-width: 860px){ .footer-top{ grid-template-columns: 1fr 1fr; row-gap: 40px; } }
.footer-top h5{
  font-size:.76rem; font-weight: 600; letter-spacing:.18em; text-transform:uppercase; color: var(--color-ivory);
  margin-bottom: 20px;
}
.footer-top ul{ list-style:none; margin:0; padding:0; }
.footer-top li{ margin-bottom: 12px; font-size:1.04rem; color: var(--color-ivory-dim); }
.footer-top a{ color: var(--color-ivory-dim); transition: color .3s ease; }
.footer-top a:hover{ color: var(--color-ivory); font-weight: 500; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap: 16px;
  font-size:.92rem; font-weight: 400; color: var(--color-ivory-dim);
  padding-top: 30px; border-top: 1px solid var(--color-line-faint);
}
.footer-credit{
  font-size: .82rem; font-style: italic; color: var(--color-ivory-dim);
  text-align: center; flex-basis: 100%; order: 1;
}
.footer-credit a{ color: var(--color-gold-bright); text-decoration: none; transition: color .3s var(--ease); }
.footer-credit a:hover{ color: #1c1d20; }
.footer-credit .credit-mail{ display: inline-flex; vertical-align: -3px; margin-left: 2px; }
.socials{ display:flex; align-items:center; gap: 8px; }
.socials a{
  display:flex; align-items:center; justify-content:center;
  color: var(--color-ivory);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  opacity: .85;
}
.socials a:hover{ transform: translateY(-2px); opacity: 1; }
.socials svg{ width:16px; height:16px; }
.socials img{ width:30px; height:30px; object-fit:contain; display:block; }

.pi-details .id-icon{
  height:14px; width:auto; max-width:20px; object-fit:contain;
  vertical-align:-2px; margin-right:3px; display:inline-block;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: calc(var(--nav-height) + 90px) 0 90px;
  position: relative;
}
.page-hero h1{ font-size: 3rem; font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 600; color: var(--color-ivory); max-width: 18ch; }
.breadcrumb{
  font-size:.88rem; font-weight: 600; letter-spacing:.14em; text-transform:uppercase; color: var(--color-gold-bright);
  margin-bottom: 22px;
}
.breadcrumb a{ color: var(--color-ivory); }

/* ---------- Facilities list ---------- */
.facility-category{ margin-bottom: 54px; }
.facility-category:last-child{ margin-bottom: 0; }
.facility-category-title{
  font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600;
  color: var(--color-gold-bright); margin-bottom: 6px;
  padding-bottom: 16px; border-bottom: 2px solid var(--color-line);
}
.facility-list{ display:flex; flex-direction:column; }
.facility-row{
  display:grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding: 34px 0; border-bottom: 1px solid var(--color-line-faint);
  align-items: start;
}
.facility-list .facility-row:last-child{ border-bottom: none; }
@media (max-width: 700px){ .facility-row{ grid-template-columns: 1fr; gap: 12px; } }
.facility-row h4{ font-size: 1.25rem; font-weight: 600; color: var(--color-ivory); }
.facility-row p{ font-size: 1.10rem; color: var(--color-ivory-dim); }
.facility-desc{
  background: var(--panel-bg); border:1px solid var(--color-line-faint);
  border-radius:6px; padding:22px 26px;
}
.facility-desc h4{ margin-bottom:10px; }
.facility-desc p{ margin-bottom:0; }
.facility-row .tag-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px; }

.facility-media{ display:flex; flex-direction:column; gap:14px; }
.facility-photo{
  display:block; width:100%; aspect-ratio:4/3; object-fit:contain;
  border-radius:6px;
  background: var(--panel-bg);
}
.facility-slider{
  position:relative; width:100%; aspect-ratio:4/3; overflow:hidden;
  border-radius:6px;
  background: var(--panel-bg);
}
.facility-slider img{
  position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; object-fit:contain;
  opacity:0; transition: opacity .5s var(--ease);
  pointer-events:none;
}
.facility-slider img.active{ opacity:1; }
.slider-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(15,23,42,0.78); color:#fff; border:none;
  font-size:1rem; line-height:1; cursor:pointer;
  transition: background .3s var(--ease);
  z-index:2;
}
.slider-nav:hover{ background: rgba(15,23,42,0.92); }
.slider-nav.prev{ left:10px; }
.slider-nav.next{ right:10px; }
.slider-dots{
  position:absolute; left:0; right:0; bottom:10px;
  display:flex; justify-content:center; gap:7px; z-index:2;
}
.slider-dots button{
  width:8px; height:8px; border-radius:50%; padding:0; border:none;
  background: rgba(28,29,32,0.35); cursor:pointer;
}
.slider-dots button.active{ background:#8a5a14; }

/* ---------- Sponsored projects ---------- */
.project-list{ display:flex; flex-direction:column; gap:20px; border-top:2px solid var(--color-line); padding-top:20px; }
.project-card{ display:grid; grid-template-columns:78px 1fr; gap:28px; padding:32px 28px; background: var(--panel-bg); border:1px solid var(--color-line-faint); border-radius:6px; }
.project-index{ color:var(--color-gold-bright); font-family:var(--font-serif); font-size:2.2rem; font-weight: 600; }
.project-sponsor{ color:var(--color-gold-bright); font-size:.86rem; font-weight: 600; letter-spacing:.14em; text-transform:uppercase; margin-bottom:10px; }
.project-card h3{ max-width:850px; font-size:1.75rem; font-weight: 600; color: var(--color-ivory); line-height:1.25; margin-bottom:12px; }
.project-card p{ max-width:760px; color:var(--color-ivory-dim); font-size:1.12rem; line-height: 1.65; }
.project-meta{ display:flex; flex-wrap:wrap; gap:10px 26px; margin-top:22px; color:var(--color-ivory-dim); font-size:.96rem; }
.project-meta span{ max-width:360px; }
.project-meta strong{ display:block; color:var(--color-ivory); font-weight:600; margin-bottom:3px; }
@media (max-width:680px){ .project-card{ grid-template-columns:42px 1fr; gap:14px; } .project-card h3{ font-size:1.4rem; } .project-meta{ display:block; } .project-meta span{ display:block; margin-top:12px; } }

/* ---------- Patents and book imagery ---------- */
.patent-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:34px; }
.patent-card{ border:none; background:transparent; overflow:hidden; }
.patent-card img{ width:100%; aspect-ratio:4/3; object-fit:contain; background:transparent; }
.patent-caption{ padding:18px 22px 20px; border-top:none; background: var(--panel-bg); border-radius:0 0 6px 6px; }
.patent-caption span{ display:block; color:var(--color-gold-bright); font-size:.84rem; font-weight: 600; letter-spacing:.16em; text-transform:uppercase; margin-bottom:5px; }
.patent-caption strong{ font-family:var(--font-serif); color:var(--color-ivory); font-size:1.28rem; font-weight:600; line-height: 1.35; display:block; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.pub-book-content{ display:flex; align-items:center; gap:24px; }
.pub-book-content img{ width:120px; height:150px; object-fit:contain; flex-shrink:0; }
@media (max-width:680px){ .patent-grid{ grid-template-columns:1fr; } .pub-book-content{ align-items:flex-start; gap:16px; } .pub-book-content img{ width:90px; height:115px; } }

/* ---------- Utility ---------- */
.text-gold{ color: var(--color-gold-bright); }
.mt-0{ margin-top:0; }
.mb-0{ margin-bottom:0; }

/* ---------- Transparent glass nav (desktop) ---------- */
.site-nav .container{ gap: 48px; gap: clamp(32px, 4vw, 72px); }
.brand{ flex-shrink: 0; }
.site-nav, .site-nav.is-scrolled{
  background: var(--panel-bg);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(28,29,32,.14);
}
.site-nav.is-scrolled{ background: var(--panel-bg); }
.brand .brand-mark{ color: #1c1d20; }
.brand .brand-tagline{ color: #33353a; }
.brand .brand-sub{ color: #422a03; }
.brand-logo{ background: rgba(255,255,255,.92); border-radius: 50%; padding: 3px; }
.nav-toggle span{ background: #1c1d20; }
@media (min-width: 1181px){
  .nav-links a{ color: #33353a; }
  .nav-links a:hover, .nav-links a.active{ color: #1c1d20; }
  .nav-links a::after{ background: #8a5a14; }
}
@media (max-width: 1360px) and (min-width: 1181px){ .nav-links{ gap: 20px; } .nav-links a{ font-size: .86rem; letter-spacing: .08em; } }

/* ---------- Text sits on white panels; empty space shows the animated background ---------- */
/* Section headings sit directly on the animated weave; a soft shadow keeps them legible */
.section-head{ width: fit-content; max-width: 100%; background: var(--panel-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: none; padding: 26px 30px; }
.section-head .section-label, .section-head .section-heading, .section-head .section-intro{
  text-shadow: 0 0 6px rgba(255,255,255,.55);
}
.section-head .section-intro{ color: #1c1d20; }
.section-head .section-intro:last-child, .section-head p:last-child{ margin-bottom: 0; }
.section-head.center{ margin-left: auto; margin-right: auto; }
.stats{ background: var(--panel-bg); border: 1px solid var(--color-line); }
.cta-band{ background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cta-band .container{
  max-width: 980px;
  background: var(--panel-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-line);
  padding: 60px 40px;
}
.facility-category, .publication-category, .contact-grid > div, .note-box{
  background: var(--panel-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-line);
  padding: 30px 34px;
}
.publication-category{ border-top: 2px solid var(--color-gold); }
.site-footer{ background: var(--panel-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 680px){
  .facility-category, .publication-category, .contact-grid > div, .note-box{ padding: 22px 20px; }
  .cta-band .container{ padding: 40px 20px; margin: 0 16px; width: auto; }
}



/* ---------- Mobile nav ---------- */
@media (max-width: 1180px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position: fixed; top: var(--nav-height); left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-line);
    box-shadow: 0 16px 32px rgba(60,50,30,0.14);
    max-height: 0; overflow:hidden;
    z-index: 850;
    transition: max-height .4s var(--ease);
  }
  .nav-links.open{ max-height: 80vh; overflow-y:auto; }
  .nav-links li{ width:100%; }
  .nav-links a{ display:block; width:100%; padding: 18px 32px; font-weight: 600; color: var(--color-ivory); background: transparent; }
  .nav-links a::after{ display:none; }
}



/* Manual line break in the long patent title ("...hybrid (carbon/basalt/"). That first line
   needs ~441px, so the break is only kept where the caption is wide enough to hold it. */
@media (min-width: 681px) and (max-width: 1079px), (max-width: 559px){ br.br-wide{ display: none; } }

/* ---------- Older browsers (iOS Safari < 15 etc.) without aspect-ratio ---------- */
@supports not (aspect-ratio: 1 / 1){
  .video-frame{ height: 0; padding-top: 56.25%; }          /* 16:9 */
  .facility-slider{ height: 0; padding-top: 75%; }        /* 4:3  */
  .pi-portrait, .person-photo{ position: relative; height: 0; padding-top: 100%; }
  .pi-portrait > img, .person-photo > img{ position: absolute; top:0; left:0; width:100%; height:100%; }
}

/* ---------- Small phones: compact brand so the menu button always stays on screen ---------- */
.nav-toggle{ flex-shrink: 0; }
.brand{ min-width: 0; }
@media (max-width: 560px){
  .site-nav .container{ gap: 10px; padding: 0 14px; }
  .brand{ grid-template-columns: 42px minmax(0, auto); column-gap: 10px; }
  .brand-logo{ width: 42px; height: 42px; }
  .brand .brand-mark{ font-size: 1.06rem; }
  .brand .brand-tagline{ font-size: .69rem; white-space: normal; }
  .brand .brand-sub{ font-size: .69rem; letter-spacing: .08em; }
  .nav-toggle{ padding: 13px 8px; margin-right: -4px; }
}
@media (max-width: 360px){
  .brand .brand-tagline{ display: none; }
}

/* ---------- Narrow phones: never let long emails / words / grid columns push the page wider ---------- */
body{ overflow-wrap: break-word; word-wrap: break-word; }
.grid > *, .contact-grid > *, .footer-top > *, .scopus-publication > *,
.project-card > *, .facility-row > *, .pi-block > *{ min-width: 0; }
.footer-top a, .info-row a, .pi-details a{ overflow-wrap: anywhere; }
@media (max-width: 860px){ .footer-top{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 28px; } }
@media (max-width: 520px){
  .footer-top{ grid-template-columns: minmax(0,1fr); }
  .container{ padding: 0 18px; }
}

/* Phone drop-down menu covers the page, so it is kept nearly opaque for legible links */
@media (max-width: 1180px){
  .nav-links{ background: rgba(255,255,255,0.98); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .nav-links a{ border-bottom: 1px solid var(--color-line-faint); }
  .nav-links li:last-child a{ border-bottom: none; }
}

/* ---------- Text sitting directly on the background photos: keep it legible over bright fibre ---------- */
.hero h1, .hero h1 em, header.page-hero h1, .hero-lede, .hero-eyebrow, .breadcrumb, .hero-scroll,
.section-label, .section-heading, .section-intro, .section-head p{
  text-shadow: 0 0 6px rgba(255,255,255,.55);
}
.section-label, .hero-eyebrow, .breadcrumb{
  text-shadow: 0 0 5px rgba(255,255,255,.7);
}

/* Header text is wider than the fade on the Home hero and on tablets/phones: extend the white wash */
.hero::before{ background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.82) 65%, rgba(255,255,255,0) 90%); }
@media (max-width: 1180px){ .hero::before, .page-hero::before{ background: rgba(255,255,255,.84); } }

/* ---------- Very small screens (watches, small and old phones) ---------- */
.footer-credit .credit-mail{ padding: 8px; margin: -8px -8px -8px -6px; }
.scopus-publication-title, .scopus-publication-meta, .scholar-row strong{ overflow-wrap: anywhere; }
@media (max-width: 340px){
  .site-nav .container{ padding: 0 8px; gap: 6px; }
  .brand{ grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; flex-shrink: 1; }
  .brand-logo{ width: 30px; height: 30px; }
  .brand .brand-mark{ font-size: .88rem; white-space: normal; letter-spacing: 0; }
  .brand .brand-sub{ font-size: .69rem; letter-spacing: .02em; }
  .container{ padding: 0 10px; }
  .stats{ grid-template-columns: 1fr; gap: 20px; padding: 26px 8px; }
  .stat .label, .breadcrumb, .section-label, .hero-eyebrow{ letter-spacing: .06em; }
  .hero-eyebrow .rule, .section-label .rule{ width: 18px; flex-shrink: 0; }
  .section-head{ padding: 18px 12px; }
  .facility-category, .publication-category, .contact-grid > div, .note-box{ padding: 16px 10px; }
  .scopus-publication{ padding: 12px 10px; }
  .pi-block, .bio-panel, .card{ padding: 16px 10px; }
  .scholar-roster{ padding: 0 10px; }
  .btn{ padding: 13px 16px; letter-spacing: .06em; }
}

/* ---------- Browsers that cannot run the site scripts: show the menu as a plain list of links ---------- */
@media (max-width: 1180px){
  html:not(.js-anim) .site-nav{ position: static; height: auto; padding: 8px 0; }
  html:not(.js-anim) .site-nav .container{ flex-wrap: wrap; }
  html:not(.js-anim) .nav-toggle{ display: none; }
  html:not(.js-anim) .nav-links{ position: static; max-height: none; flex-direction: row; flex-wrap: wrap; box-shadow: none; border-top: none; background: transparent; }
  html:not(.js-anim) .nav-links li{ width: auto; }
  html:not(.js-anim) .nav-links a{ padding: 10px 12px; border-bottom: none; }
  html:not(.js-anim) .page-hero, html:not(.js-anim) .hero{ padding-top: 40px; }
}

/* Menu button: a comfortable finger target at every size */
.nav-toggle{ min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
/* The home hero is a flex row: let its text wrap instead of pushing past narrow screens */
.hero .container{ width: 100%; min-width: 0; }

/* Bio-sketch on the Team page */
.pi-sketch{ gap: 4px; margin-bottom: 18px; }
.pi-sketch span:first-child{ font-weight: 600; color: var(--color-ivory); }
.bio-subhead{ font-size: 1.3rem; margin: 30px 0 14px; }
.bio-list{ margin: 0 0 18px; padding-left: 1.6em; color: var(--color-ivory-dim); font-size: 1.08rem; line-height: 1.7; }
.bio-list li{ margin-bottom: 4px; overflow-wrap: anywhere; }
.bio-summary{ margin-bottom: 0; font-weight: 600; color: var(--color-ivory); }

/* Professor's name on Home and Team: always one line, sized to the width of its column */
.pi-name{ max-width: none; }
@supports (font-size: 1cqi){
  .pi-block > div:last-child{ container-type: inline-size; }
  .pi-name{ white-space: nowrap; font-size: min(2.2rem, 5.9cqi); }
}
/* Small laptops and landscape tablets: a narrower photo leaves the name room to stay large */
@media (min-width: 860.02px) and (max-width: 1100px){ .pi-block{ grid-template-columns: minmax(220px, 270px) 1fr; gap: 34px; } }
