@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ------ Reset / base ------ */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:17px;
  line-height:1.65;
  color:#1a2332;
  background:#fafaf7;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:"Fraunces","Georgia",serif;
  font-weight:600;
  line-height:1.2;
  color:#093434;
  letter-spacing:-0.01em;
  margin-top:0;
  text-wrap:balance;
}
h1{font-size:clamp(2rem, 4vw, 3.2rem); font-weight:700}
h2{font-size:clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom:0.6rem}
h3{font-size:1.2rem; font-weight:600; margin-bottom:0.4rem}
p{margin:0 0 1rem}
a{color:#093434; text-decoration:none; border-bottom:1px solid rgba(9,52,52,0.25); transition:all .15s ease}
a:hover{color:#c8741f; border-bottom-color:#c8741f}

/* ------ Layout ------ */
.container{max-width:1120px; margin:0 auto; padding:0 1.5rem}
.narrow{max-width:820px; margin:0 auto; padding:0 1.5rem}

/* ------ Header / Nav ------ */
.site-header{
  background:#fff;
  border-bottom:1px solid #e7e3d8;
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(120%) blur(8px);
}
.nav-wrap{
  display:flex; justify-content:space-between; align-items:center;
  padding:0.9rem 1.5rem;
  max-width:1280px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:.65rem;
  font-family:"Fraunces",serif; font-weight:600; font-size:1.15rem;
  color:#093434; border:none;
}
.brand-logo{width:42px; height:42px; flex:none}
.brand-text{display:flex; flex-direction:column; line-height:1.15}
.brand small{display:block; font-family:"Inter",sans-serif; font-weight:400; font-size:0.78rem; color:#5a6573; letter-spacing:.02em}
.nav-links{display:flex; gap:1.6rem; align-items:center}
.nav-links a{
  font-size:.95rem; font-weight:500; color:#3a4a5e; border:none; padding-bottom:2px;
  border-bottom:2px solid transparent;
}
.nav-links a:hover, .nav-links a.active{color:#093434; border-bottom-color:#c8741f}

/* ------ Dropdown ------ */
.nav-dropdown{position:relative; display:inline-flex; align-items:center}
.nav-dropdown > a,
.nav-dropdown > .nav-dropdown-label{display:inline-flex; align-items:center}
.nav-dropdown > .nav-dropdown-label{
  font-size:.95rem; font-weight:500; color:#3a4a5e;
  padding-bottom:2px; border-bottom:2px solid transparent;
  cursor:default; user-select:none;
}
.nav-dropdown > a:after,
.nav-dropdown > .nav-dropdown-label:after{
  content:""; display:inline-block;
  width:0; height:0; margin-left:.4rem;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:4px solid currentColor;
  opacity:.55;
  transform:translateY(1px);
}
.nav-dropdown-menu{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(4px);
  background:#fff; border:1px solid #e7e3d8; border-radius:8px;
  box-shadow:0 12px 30px -10px rgba(15,29,51,.2);
  padding:.5rem 0; min-width:170px;
  display:flex; flex-direction:column; gap:0;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .15s ease, transform .15s ease, visibility .15s;
  z-index:60;
}
/* Desktop-only hover reveal. (hover: hover) AND (pointer: fine) keeps
   this from firing on touch devices and on hybrid devices that report
   hover but use touch as the primary input. */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu{
    opacity:1; visibility:visible; pointer-events:auto;
    transform:translateX(-50%) translateY(0);
  }
}
.nav-dropdown-menu a{
  padding:.55rem 1.1rem; border-bottom:none; border-radius:0;
  font-size:.92rem; color:#3a4a5e; white-space:nowrap;
}
.nav-dropdown-menu a:hover{background:#f4ede0; color:#093434; border-bottom-color:transparent}
/* Nested research-area links shown indented under "Research Overview" */
.nav-dropdown-menu a.nav-nested{
  margin-left:1.15rem; padding-left:1rem;
  border-left:2px solid #e4dfce;
  font-size:.86rem; color:#5a6573;
  position:relative;
}
.nav-dropdown-menu a.nav-nested::before{
  content:"\203A"; position:absolute; left:.4rem;
  color:#c8741f; font-weight:700;
}
.nav-dropdown-menu a.nav-nested:hover,
.nav-dropdown-menu a.nav-nested.active{color:#093434}
/* bridge over the gap so menu doesn't close on travel */
.nav-dropdown:before{
  content:""; position:absolute; top:100%; left:0; right:0; height:10px;
}

/* ------ Mobile nav toggle (hamburger) ------ */
.nav-toggle-btn{
  display:none;
  width:42px; height:42px;
  cursor:pointer;
  flex-direction:column; justify-content:center; align-items:center;
  gap:5px;
  border:1px solid #e7e3d8; border-radius:6px;
  background:#fff;
  padding:0;
  transition:border-color .15s ease;
}
.nav-toggle-btn:hover{border-color:#c8741f}
.nav-toggle-btn span{
  display:block; width:20px; height:2px; background:#093434; border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle-btn:focus-visible{outline:2px solid #093434; outline-offset:2px}

/* Per-dropdown sub-menu toggle button (only shown on mobile). */
.nav-sub-toggle-btn{display:none}

@media(max-width:760px){
  .nav-wrap{flex-wrap:wrap; padding:0.7rem 1.2rem}
  .brand{font-size:1.02rem; flex:1; min-width:0; line-height:1.25}
  .brand-logo{width:34px; height:34px}
  .brand small{font-size:0.72rem}
  .nav-toggle-btn{display:flex}

  .nav-links{
    display:none;
    flex-basis:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin-top:.7rem;
    padding-top:.4rem;
    border-top:1px solid #ece8db;
  }
  .nav-links.open{display:flex}

  /* Plain top-level links */
  .nav-links > a{
    padding:.85rem .2rem;
    border-bottom:1px solid #f1ede1;
    border-top:none;
    font-size:1rem;
    color:#3a4a5e;
    width:100%;
  }
  .nav-links > a:hover, .nav-links > a.active{
    color:#c8741f; border-bottom-color:#f1ede1;
  }

  /* Dropdown parent row: link + plus button on the same line */
  .nav-dropdown{
    position:static;
    display:flex; flex-wrap:wrap; align-items:center;
    width:100%;
    border-bottom:1px solid #f1ede1;
  }
  .nav-dropdown > a,
  .nav-dropdown > .nav-dropdown-label{
    flex:1;
    padding:.85rem .2rem;
    border:none;
    font-size:1rem;
    color:#3a4a5e;
  }
  .nav-dropdown > a:hover, .nav-dropdown > a.active{color:#c8741f}
  .nav-dropdown > a:after,
  .nav-dropdown > .nav-dropdown-label:after{display:none}

  /* The "+" button that opens/closes the sub-menu */
  .nav-sub-toggle-btn{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px;
    margin-left:.4rem;
    cursor:pointer;
    color:#5a6573;
    font-size:1.5rem; font-weight:300; line-height:1;
    user-select:none;
    border:1px solid #e7e3d8; border-radius:6px;
    background:#fff;
    padding:0;
  }
  .nav-sub-toggle-btn:before{content:"+"; display:block; transform:translateY(-1px)}
  .nav-sub-toggle-btn[aria-expanded="true"]{color:#c8741f; border-color:#c8741f}
  .nav-sub-toggle-btn[aria-expanded="true"]:before{content:"\2013"} /* en-dash when open */
  .nav-sub-toggle-btn:focus-visible{outline:2px solid #093434; outline-offset:2px}

  /* Sub-menu hidden by default on mobile; shown only when its dropdown is .open.
     We do NOT re-define any hover rules here — the desktop hover reveal is
     gated behind @media (hover: hover) so it cannot fire on touch devices. */
  .nav-dropdown-menu{
    flex-basis:100%;
    display:none;
    position:static; transform:none;
    opacity:1; visibility:visible; pointer-events:auto;
    box-shadow:none; border:none; border-radius:0;
    padding:.1rem 0 .3rem 0; background:transparent;
    transition:none;
  }
  .nav-dropdown.open .nav-dropdown-menu{
    display:flex; flex-direction:column;
  }
  .nav-dropdown-menu a{
    padding:.6rem .2rem .6rem 1.5rem;
    border-bottom:1px solid #f1ede1;
    border-radius:0;
    font-size:.95rem; color:#5a6573;
    white-space:normal;
  }
  .nav-dropdown-menu a:last-child{border-bottom:none}
  .nav-dropdown-menu a.nav-nested{margin-left:1.6rem; padding-left:1rem; font-size:.9rem}
  .nav-dropdown:before{display:none}

  /* Animate hamburger into an X when open */
  .nav-toggle-btn[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle-btn[aria-expanded="true"] span:nth-child(2){opacity:0}
  .nav-toggle-btn[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}

/* ------ Hero ------ */
.hero{
  padding:5rem 0 3.5rem;
  background:linear-gradient(180deg,#fff 0%,#fafaf7 100%);
  border-bottom:1px solid #ece8db;
}
.hero-flex{display:grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap:3rem; align-items:center}
@media(max-width:780px){.hero-flex{grid-template-columns:1fr}}
.eyebrow{
  display:inline-block; font-size:.78rem; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:#c8741f; margin-bottom:1rem;
}
.hero p.lede{font-size:1.18rem; color:#3a4a5e; max-width:580px}
.hero-affil{
  margin-top:1.3rem; font-size:1.05rem; color:#3a4a5e; line-height:1.5; max-width:620px;
}
.hero-portrait{
  aspect-ratio:4/5; border-radius:10px; overflow:hidden;
  background:linear-gradient(135deg,#093434 0%,#1a6363 60%,#c8741f 100%);
  display:flex; align-items:center; justify-content:center;
  font-family:"Fraunces",serif; color:#fff; font-size:5rem; font-weight:700;
  letter-spacing:-.04em; box-shadow:0 20px 50px -20px rgba(15,29,51,.4);
  position:relative;
}
.hero-portrait img{
  width:100%; height:100%; object-fit:cover; object-position:center 30%;
  display:block;
}

/* ------ Sections ------ */
section.block{padding:4.5rem 0; border-bottom:1px solid #ece8db}
section.block:last-of-type{border-bottom:none}
.section-head{margin-bottom:2.5rem; max-width:720px}
.section-head .eyebrow{margin-bottom:.6rem}
.section-head h2{margin-bottom:.5rem}
.section-head p{color:#5a6573; font-size:1.05rem; margin:0}

/* ------ Featured grid ------ */
.feature-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1.4rem;
}
/* When you have an even number that you don't want to auto-fit awkwardly,
   force 2 columns at desktop widths so 4 cards lay out 2×2 */
.feature-grid.cols-2{grid-template-columns:repeat(2, 1fr); gap:1.6rem}
@media(max-width:640px){.feature-grid.cols-2{grid-template-columns:1fr}}
.feature-grid.cols-3{grid-template-columns:repeat(3, 1fr); gap:1.4rem}
@media(max-width:880px){.feature-grid.cols-3{grid-template-columns:1fr}}
.feature-card{
  background:#fff; border:1px solid #e7e3d8; border-radius:10px;
  padding:1.6rem 1.5rem 1.5rem;
  display:flex; flex-direction:column; gap:.6rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover{transform:translateY(-3px); box-shadow:0 10px 28px -16px rgba(15,29,51,.25); border-color:#d4cdb7}
.feature-card .tag{
  display:inline-block; align-self:flex-start;
  background:#f4ede0; color:#7a5e2d;
  font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:.32rem .65rem; border-radius:999px;
}
.feature-card h3{font-size:1.18rem; margin-bottom:.2rem; line-height:1.3}
.feature-card p{color:#4a5563; font-size:.96rem; margin:0; flex-grow:1}
.feature-card a.cta{
  border:none; font-weight:600; font-size:.92rem; color:#093434;
  margin-top:.5rem; align-self:flex-start;
}
.feature-card a.cta:after{content:" \2192"; transition:transform .15s ease; display:inline-block}
.feature-card a.cta:hover:after{transform:translateX(3px)}

/* ------ Highlights / stats ------ */
.stats{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:1rem;
  background:#093434; color:#fff;
  padding:2.2rem 2rem; border-radius:12px;
  margin:0;
}
.stat{text-align:left}
.stat .num{
  display:block; font-family:"Fraunces",serif; font-weight:700;
  font-size:2.1rem; color:#f4c87b; line-height:1.1;
}
.stat .label{font-size:.85rem; color:#c2cad6; line-height:1.35; margin-top:.2rem; display:block}

/* ------ List style for pubs/grants/etc ------ */
.entry-list{list-style:none; padding:0; margin:0}
.entry-list li{
  padding:1rem 0; border-bottom:1px solid #ece8db;
  display:grid; grid-template-columns: 90px 1fr; gap:1.2rem;
}
.entry-list li:last-child{border-bottom:none}
.entry-list .year{font-family:"Fraunces",serif; font-weight:600; color:#c8741f; font-size:1rem}
.entry-list .body{font-size:.96rem; line-height:1.55}
.entry-list .body .role{color:#7a5e2d; font-weight:600; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; display:block; margin-bottom:.15em}
.entry-list .body em{color:#5a6573; font-style:normal; font-size:.88rem; display:block; margin-top:.1em}

/* ------ Two-column ------ */
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:2.5rem}
@media(max-width:780px){.two-col{grid-template-columns:1fr; gap:1.5rem}}

/* ------ Subsection ------ */
.subhead{
  font-family:"Fraunces",serif; font-weight:600; color:#093434;
  font-size:1.05rem; text-transform:none; letter-spacing:0;
  margin:2rem 0 .8rem; padding-bottom:.4rem;
  border-bottom:2px solid #c8741f; display:inline-block;
}

/* ------ Pull quote / Philosophy ------ */
.pullquote{
  background:#fff; border-left:4px solid #c8741f;
  padding:1.5rem 1.8rem; margin:1.5rem 0;
  font-family:"Fraunces",serif; font-size:1.15rem; font-style:italic;
  color:#2d3a4f; border-radius:0 8px 8px 0;
}

/* ------ Pill tag list ------ */
.pills{display:flex; flex-wrap:wrap; gap:.45rem; margin:.6rem 0 1rem}
.pill{
  background:#e6efeb; color:#093434; font-size:.82rem; font-weight:500;
  padding:.35rem .8rem; border-radius:999px; border:none;
}

/* ------ Programs of research strip (home page) ------ */
.prog-strip{
  background:#fff; border:1px solid #e7e3d8; border-radius:12px;
  overflow:hidden;
}
.prog-row{
  display:grid; grid-template-columns: 110px 1fr 280px;
  gap:1.6rem; padding:1.7rem 1.9rem; align-items:center;
  border-bottom:1px solid #ece8db;
}
.prog-row:last-child{border-bottom:none}
@media(max-width:880px){
  .prog-row{grid-template-columns:1fr; gap:.7rem; padding:1.4rem 1.4rem}
  .prog-row .prog-keys{justify-content:flex-start}
  .prog-row .label{display:flex; align-items:baseline; gap:.55rem}
  .prog-row .label .big{display:inline; font-size:1.5rem; margin-top:0}
}
.prog-row .label{
  font-family:"Fraunces",serif; color:#c8741f; font-weight:600;
  text-transform:uppercase; letter-spacing:.08em; font-size:.78rem;
}
.prog-row .label .big{
  display:block; font-size:2.3rem; line-height:1; color:#093434;
  font-weight:700; margin-top:.15rem; text-transform:none; letter-spacing:-.02em;
}
.prog-row .body h3{
  font-family:"Fraunces",serif; color:#093434; font-weight:600;
  font-size:1.18rem; margin:0 0 .35rem; line-height:1.3;
}
.prog-row .body p{margin:0; font-size:.96rem; color:#4a5563; line-height:1.55}
.prog-row .body a.cta{
  font-size:.9rem; font-weight:600; color:#093434; border:none;
  display:inline-block; margin-top:.55rem;
}
.prog-row .body a.cta:after{content:" \2192"; transition:transform .15s ease; display:inline-block}
.prog-row .body a.cta:hover{color:#c8741f}
.prog-row .body a.cta:hover:after{transform:translateX(3px)}
.prog-keys{display:flex; flex-wrap:wrap; gap:.4rem; justify-content:flex-end}
.prog-keys span{
  background:#e6efeb; color:#093434; font-size:.78rem; font-weight:500;
  padding:.28rem .7rem; border-radius:999px;
}

/* ------ Media list compact ------ */
.media-list{list-style:none; padding:0; margin:0}
.media-list li{padding:.6rem 0; border-bottom:1px dotted #d4cdb7; font-size:.93rem; line-height:1.5}
.media-list li:last-child{border-bottom:none}
.media-list .outlet{font-weight:600; color:#093434}

/* ------ Footer ------ */
.site-footer{
  background:#093434; color:#c2cad6;
  padding:3rem 0 2rem;
  margin-top:0;
}
.site-footer .container{display:grid; grid-template-columns:1fr auto; gap:2rem; align-items:start}
@media(max-width:780px){.site-footer .container{grid-template-columns:1fr; gap:1.5rem}}
.site-footer h4{color:#fff; font-size:1.05rem; margin-bottom:.6rem; font-family:"Fraunces",serif}
.site-footer a{color:#c2cad6; border:none}
.site-footer a:hover{color:#f4c87b}
.site-footer p{font-size:.9rem; margin:.2rem 0}
/* Explore list lays out in three right-aligned columns */
.footer-explore h4{margin-bottom:.8rem}
.footer-cols{display:grid; grid-template-columns:repeat(3,max-content); column-gap:2.5rem; row-gap:0; justify-content:end}
.footer-col p{margin:.2rem 0}
@media(max-width:780px){.footer-cols{grid-template-columns:repeat(2,max-content); justify-content:start}}
@media(max-width:480px){.footer-cols{grid-template-columns:1fr}}
.fine{font-size:.82rem; color:#7d8a9c; margin-top:2rem; padding-top:1.5rem; border-top:1px solid #1a4a4a; text-align:center}

/* ------ Buttons ------ */
.btn{
  display:inline-block; padding:.7rem 1.3rem; border-radius:6px;
  background:#093434; color:#fff; font-weight:600; font-size:.95rem;
  border:none; margin-top:.5rem; margin-right:.5rem;
}
.btn:hover{background:#c8741f; color:#fff}
.btn.outline{background:transparent; color:#093434; border:1px solid #093434}
.btn.outline:hover{background:#093434; color:#fff}

/* ------ Page intro ------ */
.page-intro{padding:3.5rem 0 2rem; background:#fff; border-bottom:1px solid #ece8db}
.page-intro h1{margin-bottom:.6rem}
.page-intro p.lede{font-size:1.1rem; color:#3a4a5e; max-width:720px; margin:0}

/* ------ Explorer layout: chart + filters side-by-side, list below ------ */
.explorer-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.explorer-layout .explorer-chart{
  min-width:0;
  background:#fff; border:1px solid #e7e3d8; border-radius:10px;
  padding:1.2rem;
  display:flex; flex-direction:column;
}
.explorer-layout .explorer-chart h3{
  margin:0 0 .15rem; font-family:"Fraunces",serif; font-weight:600; font-size:1.02rem; color:#093434;
}
.explorer-layout .explorer-chart .chart-sub{
  font-size:.84rem; color:#5a6573; margin:0 0 .8rem;
}
.explorer-layout .explorer-chart .canvas-box{
  position:relative; flex:1 1 auto; min-height:280px;
}
.explorer-layout .explorer-filters{
  background:#fff; border:1px solid #e7e3d8; border-radius:10px;
  padding:1.1rem 1.2rem; display:flex; flex-direction:column; gap:1.1rem;
}
.explorer-layout .explorer-filters .filter-block{
  display:flex; flex-direction:column; gap:.45rem;
}
.explorer-layout .explorer-filters .filter-block .filter-label{
  font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:#5a6573; margin:0;
}
.explorer-layout .explorer-filters .filter-block .filter-buttons{
  display:flex; flex-wrap:wrap; gap:.35rem;
}
.explorer-layout .explorer-filters .filter-block .filter-buttons button{
  background:#fff; border:1px solid #d4cdb7; color:#3a4a5e;
  font:inherit; font-size:.84rem; font-weight:500;
  padding:.4rem .75rem; border-radius:999px; cursor:pointer;
  transition:all .15s ease;
}
.explorer-layout .explorer-filters .filter-block .filter-buttons button:hover{border-color:#093434; color:#093434}
.explorer-layout .explorer-filters .filter-block .filter-buttons button.active{background:#093434; color:#fff; border-color:#093434}
.explorer-layout .explorer-filters .filter-block .filter-buttons button .count{font-size:.74rem; color:#7a8696; margin-left:.3rem}
.explorer-layout .explorer-filters .filter-block .filter-buttons button.active .count{color:#a3c2c2}
.explorer-layout .explorer-filters .filter-block input[type="search"]{
  width:100%; padding:.55rem .8rem;
  border:1px solid #d4cdb7; border-radius:6px;
  font:inherit; font-size:.92rem;
}
.explorer-layout .explorer-filters .clear-filters{
  align-self:flex-start; background:none; border:none; padding:0;
  color:#c8741f; font-weight:600; font-size:.82rem; cursor:pointer;
  text-transform:uppercase; letter-spacing:.06em;
}
.explorer-layout .explorer-filters .clear-filters:hover{color:#093434; text-decoration:underline}
@media(max-width:940px){
  .explorer-layout{grid-template-columns: 1fr;}
  .explorer-layout .explorer-chart .canvas-box{min-height:240px}
}
