:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b6475;
  --border: rgba(15, 23, 42, 0.12);
  --card: rgba(15, 23, 42, 0.03);
  --accent: #1e3a8a;
  --accent2: #0f172a;
  --shadow: 0 12px 30px rgba(2, 6, 23, 0.10);
  --radius: 16px;
  --radius2: 22px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

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

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.section{padding:64px 0}
.section-muted{background:linear-gradient(180deg, rgba(15,23,42,0.02), rgba(15,23,42,0.01))}
.section-head{margin-bottom:18px}
.muted{color:var(--muted)}
.small{font-size:0.92rem}
.m0{margin:0}

.hero{padding:72px 0 48px}
.kicker{
  display:inline-flex;
  gap:10px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:rgba(15,23,42,0.02);
  font-size:0.92rem;
}
h1{
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height:1.1;
  margin:14px 0 12px;
  letter-spacing:-0.02em;
}
h2{
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height:1.2;
  margin:0 0 10px;
  letter-spacing:-0.015em;
}
h3{
  font-size:1.1rem;
  margin:0 0 10px;
}

.lead{
  font-size:1.12rem;
  color:var(--muted);
  margin:0 0 18px;
  max-width:64ch;
}
.lead2{
  font-size:1.06rem;
  color:var(--muted);
  margin:8px 0 0;
  max-width:70ch;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap:24px;
  align-items:start;
}

.card{
  border:1px solid var(--border);
  background:rgba(255,255,255,0.72);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
}
.pad{padding:22px}

.hero-card{padding:22px}
.card-title{margin:0 0 6px}
.card-list{margin:14px 0 0; display:grid; gap:12px}
.card-list-item{display:flex; gap:10px; align-items:flex-start}
.dot{
  width:10px; height:10px; border-radius:999px;
  background:var(--accent);
  margin-top:7px;
}

.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.meta-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}

.pill{
  display:inline-flex;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(15,23,42,0.02);
  color:var(--muted);
  font-size:0.92rem;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:600;
  text-decoration:none !important;
}
.btn:hover{transform: translateY(-1px)}
.btn-primary{
  background:var(--accent);
  border-color: rgba(30,58,138,0.35);
  color:#fff;
}
.btn-secondary{
  background: rgba(15,23,42,0.03);
}
.btn-link{
  border:none;
  background:transparent;
  padding:11px 6px;
  color:var(--accent);
}

.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:24px;
  align-items:start;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.feature{padding:18px}
.feature p{margin:0; color:var(--muted)}

.callout{padding:18px}
.list{margin:12px 0 0; padding-left:18px; color:var(--muted)}
.list li{margin:8px 0}
.list.numbered{padding-left:18px}

.banner{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:22px;
  align-items:center;
}
.banner-right{display:flex; gap:14px}
.metric{
  border:1px solid var(--border);
  background:rgba(15,23,42,0.02);
  border-radius:16px;
  padding:12px 14px;
  min-width:90px;
  text-align:center;
}
.metric-num{font-size:1.4rem; font-weight:800; line-height:1}
.metric-label{font-size:0.9rem; color:var(--muted)}

.cta{
  padding:22px;
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .banner{flex-direction:column; align-items:flex-start}
  .banner-right{width:100%}
  .metric{flex:1}
}


/* Header nav open state (mobile) */
.nav { display:flex; gap:14px; align-items:center; }
.nav a { padding:8px 10px; border-radius:10px; }
.nav a.active { background: rgba(30,58,138,0.10); color: var(--accent); }

@media (max-width: 980px){
  .nav {
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:12px;
    border:1px solid var(--border);
    border-radius:16px;
    background:#fff;
    box-shadow: var(--shadow);
    margin-top:10px;
  }
  .nav.open { display:flex; }
}

/* Forms */
.form { display:block; }
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
  margin-bottom:14px;
}
.label{
  display:block;
  font-weight:700;
  font-size:0.92rem;
  margin:12px 0 6px;
}
.input{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  font:inherit;
}
.input:focus{
  outline:none;
  border-color: rgba(30,58,138,0.45);
  box-shadow: 0 0 0 4px rgba(30,58,138,0.10);
}
.textarea{ min-height:110px; resize:vertical; }
.form-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }

@media (max-width: 980px){
  .form-grid{ grid-template-columns: 1fr; }
}


/* People list (Fellows) */
.people-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.person{
  display:block;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(15,23,42,0.02);
  text-decoration:none !important;
}
.person:hover{ transform: translateY(-1px); box-shadow: var(--shadow); background:#fff; }
.person-name{ font-weight:800; letter-spacing:-0.01em; }
.person-meta{ color: var(--muted); margin-top:4px; font-size:0.95rem; }
.person-sub{ color: var(--muted); margin-top:6px; font-size:0.9rem; }

@media (max-width: 980px){
  .people-grid{ grid-template-columns: 1fr; }
}

/* Header nav wrapping for many links */
@media (min-width: 981px){
  .nav{ flex-wrap: wrap; justify-content: flex-end; }
}


/* =========================================================
   Ivy + Modern Engineering Theme Patch (B: gold sparingly)
   Paste at END of styles.css
========================================================= */

/* 1) Theme variables override */
:root{
  --bg: #F8FAFC;         /* soft white */
  --text: #111827;       /* charcoal */
  --muted: #6B7280;
  --border: rgba(15, 23, 42, 0.12);
  --card: rgba(15, 23, 42, 0.03);

  --accent: #0F172A;     /* primary = deep navy (was blue) */
  --accent2: #0B1220;    /* deeper navy */
  --gold: #C6A75E;       /* muted gold accent */
  --shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}

/* 2) Body background + text safety */
body{ background: var(--bg); color: var(--text); }
.lead, .lead2, .feature p, .list{ color: var(--muted); }
.muted{ color: var(--muted) !important; }

/* 3) Header stays white + more “academic” */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
}

/* Ensure brand looks crisp */
.brand-text{
  color: var(--accent);
  font-weight: 650;
  letter-spacing:-0.02em;
}

/* Nav: keep it neutral; gold only for active underline */
.nav a{
  color: var(--accent);
  font-weight: 560;
}
.nav a:hover{
  color: var(--accent);
  opacity: .82;
  text-decoration: none;
}

/* Replace blue “pill” active state with subtle underline */
.nav a.active{
  background: transparent;
  color: var(--accent);
  position: relative;
}
.nav a.active::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:-6px;
  height:2px;
  background: var(--gold);
  border-radius: 999px;
}

/* 4) Section heading accent line (gold, subtle) */
.section-head h2::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  background: var(--gold);
  margin-top:10px;
  border-radius:999px;
  opacity:.9;
}

/* 5) Cards: cleaner + less “SaaS landing page” */
.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* 6) Buttons: primary navy, secondary gold outline (sparingly) */
.btn-primary{
  background: var(--accent);
  border-color: rgba(15,23,42,0.35);
  color:#fff;
}
.btn-primary:hover{ background: #0b1220; }

.btn-secondary{
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--accent);
}
.btn-secondary:hover{
  background: rgba(198,167,94,0.12);
}

/* Keep link button as navy text */
.btn-link{ color: var(--accent); }

/* 7) Accent dots should be gold (small, tasteful) */
.dot{ background: var(--gold); }

/* 8) Forms: focus ring should be navy (not blue) */
.input:focus{
  outline:none;
  border-color: rgba(15,23,42,0.45);
  box-shadow: 0 0 0 4px rgba(15,23,42,0.10);
}

/* 9) Footer: deep navy anchor */
.site-footer{
  background: var(--accent);
  color: #E5E7EB;
  padding: 60px 0 30px;
}
.site-footer::before{
  content:"";
  display:block;
  height:4px;
  background: var(--gold); /* tiny prestige stripe */
}
.site-footer h3{ color:#fff; }
.site-footer a{
  color:#CBD5E1;
  text-decoration:none;
}
.site-footer a:hover{ color:#fff; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.92rem;
}

/* =========================================================
   Institute Footer Refinement
========================================================= */

.site-footer{
  background: var(--accent); /* deep navy */
  color: #E5E7EB;
  padding: 48px 0 28px;
  font-size: 0.95rem;
}

/* Prestige gold line at top */
.site-footer::before{
  content:"";
  display:block;
  height:3px;
  background: var(--gold);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
}

.footer-left strong{
  display:block;
  font-size:1rem;
  letter-spacing:-0.01em;
  color:#fff;
}

.footer-left strong{
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.footer-left .small{
  margin-top:6px;
  color: rgba(255,255,255,0.65);
}

.footer-right{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.footer-right a{
  color: rgba(255,255,255,0.75);
  text-decoration:none;
  font-weight:500;
}

.footer-right a:hover{
  color:#fff;
}

.footer-right .small{
  color: rgba(255,255,255,0.55);
}

/* Hide hamburger on desktop */
.nav-toggle{
  display: none;
}

/* Mobile behavior */
@media (max-width: 980px){
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
  }

  .nav{
    display: none;
  }

  .nav.open{
    display: flex;
  }
}

