:root{--grad-start:#5fcfff;--grad-end:#0b6cae}

:root{
  --bg:#f8fafc;
  --panel:#ffffff;
  --ink:#1e293b;
  --muted:#64748b;
  --accent:#2563eb;
  --accent-2:#1d4ed8;
  --card:#ffffff;
  --shadow:0 6px 20px rgba(0,0,0,.08);
}

body{
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color:var(--ink);
  line-height:1.6;
}
.site-header{
  background:rgba(255,255,255,.9);
  border-bottom:1px solid rgba(0,0,0,.08);
}
.nav a{color:var(--ink)}
.nav a:hover{color:var(--accent)}
.hero{background:linear-gradient(180deg, #f9fafb, #f1f5f9)}
.hero-card, .info-card{background:var(--card);}
.section.alt{background:#f9fafb}
.contact-form{background:#f9fafb}


:root{
  --bg:#0b1020;
  --panel:#0f1730;
  --ink:#e6eefc;
  --muted:#9fb0d0;
  --accent:#67e8f9;
  --accent-2:#22d3ee;
  --card:#111b38;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #0c1326);
  color:var(--ink);
  line-height:1.6;
}

.container{width:min(1120px, 92vw); margin:0 auto;}

.site-header{
  position:sticky; top:0; z-index:10;
  background:rgba(11,16,32,.75); backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; padding:14px 0;
}
.brand{display:flex; gap:12px; align-items:center}
.brand h1{
  font-size:1.75rem; margin:0;
  background: linear-gradient(90deg, var(--ink), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.subtitle{margin:2px 0 0; color:var(--muted); font-weight:500}
.avatar{
  width:42px;height:42px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(180deg, var(--accent), var(--accent-2)); color:white; font-weight:800;
  box-shadow: var(--shadow);
}

.nav a{
  color:var(--ink); text-decoration:none; margin-left:18px; font-weight:600; opacity:.9
}
.nav a:hover{color:var(--accent)}

.hero{
  padding:64px 0; position:relative;
  background: radial-gradient(1000px 400px at 20% -10%, rgba(103,232,249,.15), transparent),
              radial-gradient(700px 300px at 90% 0%, rgba(34,211,238,.12), transparent);
}
.hero .container{display:grid; grid-template-columns: 1.2fr .8fr; gap:28px}
.hero h2{font-size:2.2rem; line-height:1.25; margin:0 0 10px}
.hero p{color:var(--muted); margin:0 0 18px; font-size:1.05rem}
.hero-card{
  background:var(--card); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:18px;
  box-shadow: var(--shadow);
}
.hero-card ul{padding:0; margin:0; list-style:none}
.hero-card li{display:grid; grid-template-columns: 90px 1fr; gap:12px; padding:10px 6px; border-bottom:1px dashed rgba(255,255,255,.08)}
.hero-card li:last-child{border-bottom:none}
.hero-card span{color:var(--muted); font-weight:600}
.hero-card a{color:var(--ink); text-decoration: none}
.hero-card a:hover{color:var(--accent)}

.btn{
  display:inline-block; padding:12px 16px; border-radius:12px;
  background:linear-gradient(180deg, var(--accent), var(--accent-2)); color:#06101a; font-weight:800;
  text-decoration:none; border:none; cursor:pointer; box-shadow: var(--shadow);
}
.btn.secondary{background:#111b38; color:var(--ink); border:1px solid rgba(255,255,255,.12)}

.section{padding:56px 0}
.section.alt{background:rgba(255,255,255,.02)}
.section h3{font-size:1.6rem; margin:0 0 12px}
.section p{margin:0 0 10px}

.timeline{display:grid; gap:18px}
.item{display:grid; grid-template-columns: 180px 1fr; gap:18px; padding:18px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:#0e1833}
.item.current{border-color: rgba(14,165,233,.45); box-shadow: var(--shadow)}
.when{color:var(--muted); font-weight:600}
.what h4{margin:0 0 4px}
.org{margin:0 0 6px; color:var(--muted)}
.what ul{margin:0; padding-left:18px}

.cards{display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:16px}
.card{background:#0e1833; border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:16px}
.card h4{margin:0 0 6px}
.muted{color:var(--muted)}
.small{font-size:.92rem}

.pubs{margin:0; padding-left:18px}
.tag{background:rgba(103,232,249,.15); border:1px solid rgba(103,232,249,.35); padding:2px 8px; border-radius:999px; margin-left:6px; font-size:.85rem}

.list{margin:0; padding-left:18px}
.list li{margin:6px 0}

.contact-grid{display:grid; grid-template-columns: 1fr 1fr; gap:20px}
.contact-form{background:#0e1833; border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:16px}
.contact-form label{display:block; font-weight:600; margin:8px 0 6px}
.contact-form input, .contact-form textarea{
  width:100%; padding:10px 12px; border-radius:10px; border:1px solid rgba(2,8,23,.12); background:#0e1833; color:var(--ink)
}
.contact-form button{margin-top:10px}

.site-footer{padding:24px 0; border-top:1px solid rgba(255,255,255,.08); color:var(--muted); text-align:center}

@media (max-width: 860px){
  .hero .container{grid-template-columns: 1fr}
  .item{grid-template-columns: 1fr}
  .contact-grid{grid-template-columns: 1fr}
}

.brand h1::after{
  content:""; display:block; width:64px; height:3px; margin-top:6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:6px; opacity:.85;
}

.hero-photo{
  display:grid; place-items:center; width:100%; height:220px; border-radius:18px;
  background: radial-gradient(500px 200px at 60% 0%, rgba(103,232,249,.12), transparent), #0e1833;
  border:1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
}
.hero-photo .circle{
  width:120px; height:120px; border-radius:50%;
  background:linear-gradient(180deg, var(--accent), var(--accent-2));
  display:grid; place-items:center; color:#04121c; font-weight:900; font-size:2.1rem;
  box-shadow: var(--shadow);
}

.info-card{
  background:var(--card); border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:14px 16px;
  box-shadow: var(--shadow);
}
.info-grid{display:grid; grid-template-columns: 140px 1fr; gap:10px 14px; align-items:start}
.info-grid dt{color:var(--muted); font-weight:700}
.info-grid dd{margin:0; font-weight:700}
.info-grid .sub{display:block; color:var(--muted); font-weight:600; margin-top:2px}
.info-grid .org{font-style:italic; font-weight:600; color:var(--ink); opacity:.85}
.row-sep{grid-column:1 / -1; height:1px; background:linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.0)); margin:2px 0 4px}

.hero-head{display:grid; grid-template-columns: 68px 1fr; gap:12px; align-items:center; margin-bottom:8px}
.avatar-img{width:72px; height:72px; border-radius:50%; object-fit:cover; width:72px; height:72px; border-radius:50%; object-fit:cover; border:2px solid rgba(14,165,233,.35)}

.hero-photo{display:flex; justify-content:center; margin-bottom:12px;}
.profile-img{width:120px; height:120px; border-radius:50%; object-fit:cover; border:3px solid var(--accent); box-shadow:var(--shadow);}

.hero-card img{max-width:100%; height:auto}

.small-avatar{width:72px !important; height:72px !important; border-radius:50%; object-fit:cover;}

.hero-card img{max-width:72px; height:72px; border-radius:50%; object-fit:cover;}

html{scroll-padding-top:80px}

/* Prevent sections from sliding under the sticky header */
section{scroll-margin-top: 86px;}
[id]{scroll-margin-top: 86px;}


/* --- Mobile polish --- */
@media (max-width: 640px){
  .site-header .container{flex-wrap:wrap; padding:10px 0}
  .brand h1{font-size:1.35rem}
  .subtitle{font-size:.9rem}
  .nav{width:100%; overflow-x:auto; white-space:nowrap; padding:8px 0 4px}
  .nav a{display:inline-block; margin:0 14px 0 0; font-weight:700}
  .hero{padding:36px 0}
  .hero .container{grid-template-columns: 1fr; gap:16px}
  .hero h2{font-size:1.7rem; line-height:1.25}
  .hero p{font-size:1rem}
  .hero-card{padding:14px}
  .hero-head{grid-template-columns:56px 1fr}
  .avatar-img{width:56px; height:56px}
  .item{padding:14px; grid-template-columns:1fr}
  .section{padding:36px 0}
  section{scroll-margin-top: 78px;}
  [id]{scroll-margin-top: 78px;}
}


/* --- Header/menu polish for desktop & mid-widths --- */
.site-header .container{flex-wrap:nowrap}

@media (max-width: 1100px){
  .nav{overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling: touch; padding-bottom:4px}
  .nav a{margin:0 14px 0 0; font-size:.98rem}
}


/* --- Strong fix: keep nav in one row and align right --- */
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; column-gap:16px;
}
.nav{
  flex:1 1 auto; display:flex; justify-content:flex-end; align-items:center;
  gap:18px; flex-wrap:nowrap; overflow-x:auto; white-space:nowrap; scrollbar-width:none;
}
@media (max-width: 1280px){
  .nav a{font-size:.95rem}
  .brand h1{font-size:1.55rem}
}


/* --- Nav visibility baseline --- */
.nav{flex-wrap:nowrap; overflow:visible; white-space:normal}


@media (max-width: 1200px){
  .site-header .container{flex-wrap:wrap}
  .nav{width:100%; justify-content:flex-start; gap:14px 18px; flex-wrap:wrap; overflow:visible; white-space:normal; padding-top:6px}
  .nav a{margin:0; display:inline-block}
}


/* --- Mobile-first navigation + spacing improvements --- */
@media (max-width: 640px){
  .container{width:min(100%, 92vw)}
  .menu-toggle{
    display:block; background:#0e1833; color:var(--ink); border:1px solid rgba(255,255,255,.18);
    padding:8px 10px; border-radius:10px;
  }
  .nav{
    display:none; width:100%; flex-direction:column; align-items:flex-start; gap:10px;
    background:#0e1833; border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:10px; margin-top:10px
  }
  .nav.open{display:flex}
  .nav a{margin:0}
  .site-header .container{align-items:flex-start}
  .brand h1{font-size:1.35rem}
  .subtitle{font-size:.92rem}
  .hero{padding:28px 0}
  .hero .container{grid-template-columns:1fr; gap:14px}
  .hero h2{font-size:1.6rem; line-height:1.25; letter-spacing:.1px}
  .hero p{font-size:.98rem}
  .cta{display:grid; grid-template-columns: 1fr; gap:10px}
  .btn, .btn.secondary{width:100%; text-align:center}
  .hero-card{padding:14px}
  .hero-head{grid-template-columns:52px 1fr}
  .avatar-img{width:52px; height:52px}
  .section{padding:32px 0}
  section{scroll-margin-top:88px}
}


/* Hamburger button */
.menu-toggle{
  display:none; background:transparent; border:0; width:42px; height:42px; border-radius:10px;
  margin-right:8px;
}
.menu-toggle span{display:block; height:2px; margin:7px 6px; background:var(--ink); border-radius:2px}

/* Better base typography spacing */
body{line-height:1.7}
.hero p{max-width:68ch}

/* Mobile layout */
@media (max-width: 720px){
  .menu-toggle{display:block}
  .nav{display:none; width:100%; padding:10px 0 0; gap:10px}
  .nav a{display:block; margin:0; padding:10px 0; border-top:1px solid rgba(255,255,255,.08)}
  .nav a:first-child{border-top:none}
  .nav.open{display:block}
  .brand h1{font-size:1.25rem}
  .subtitle{font-size:.9rem}
  .hero{padding:28px 0}
  .hero h2{font-size:1.5rem}
  .hero p{font-size:1rem}
  .hero .container{grid-template-columns:1fr; gap:14px}
  .cta{display:grid; grid-template-columns:1fr; gap:10px}
  .btn{width:100%; text-align:center}
  .item{padding:12px}
  .section{padding:28px 0}
  section{scroll-margin-top: 84px;}
  [id]{scroll-margin-top: 84px;}
}


/* --- Mobile menu collapse default --- */
@media (max-width: 720px){
  .nav{display:none; flex-direction:column; background:var(--panel); border-radius:10px; margin-top:6px;
       box-shadow:0 8px 20px rgba(0,0,0,.3); animation:slideDown .25s ease forwards}
  .nav.open{display:flex}
  .nav a{padding:12px; border-top:1px solid rgba(255,255,255,.08)}
  .nav a:first-child{border-top:none}
}

@keyframes slideDown{
  from{opacity:0; transform:translateY(-5px)}
  to{opacity:1; transform:translateY(0)}
}


/* --- Strict mobile collapse --- */
@media (max-width: 720px){
  .site-header{position:sticky; top:0}
  .site-header .container{position:relative}
  .menu-toggle{display:block; position:absolute; right:8px; top:8px; z-index:11}
  /* Hide nav by default on phones */
  .nav{display:none !important; background:rgba(11,16,32,.98); padding:8px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.08)}
  .nav.open{display:block !important}
  .nav a{display:block; padding:10px 0; margin:0; border-top:1px solid rgba(255,255,255,.08)}
  .nav a:first-child{border-top:none}
}


/* --- Compact mode utilities --- */



.collapsed{display:none}

@media (max-width: 720px){
  .compact-truncated{display:block; max-height:4.8em; overflow:hidden; position:relative}
  .compact-truncated::after{
    content:''; position:absolute; left:0; right:0; bottom:0; height:2.4em;
    background:linear-gradient(180deg, rgba(11,16,32,0), rgba(11,16,32,1));
  }
}


/* --- Cleaner mobile presentation --- */
@media (max-width: 720px){
  /* Use line-clamp (no dark overlay) */
  .compact-truncated{
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
    overflow:hidden;
  }

  /* Lighter 'Read more' link style */
  
  

  /* Buttons smaller & simpler */
  .btn{padding:11px 14px; border-radius:12px; font-weight:800}
  .btn.secondary{display:none} /* hide secondary CTA in hero on phones */

  /* Spacing tweaks */
  .hero{padding:22px 0 12px}
  .hero h2{font-size:1.45rem; margin-bottom:6px}
  .hero p{font-size:.98rem}
  .hero-card{padding:12px; border-radius:14px}
  .hero-head{margin-bottom:6px}
  .item{padding:12px; border-radius:12px}
  .section{padding:26px 0}
}


/* --- Trimmed mobile hero: show only the info card --- */
@media (max-width: 720px){
  .hero .container{grid-template-columns:1fr}
  .hero-text{display:none !important}
  .hero-card{margin-top:8px}
}


@media (max-width: 720px){
  .avatar-img{width:84px; height:84px}
  .hero-head{grid-template-columns:84px 1fr}
}


/* === Cross-browser header/nav fix (Chrome/Safari/Firefox) === */
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap;
}
.brand{display:flex; gap:12px; align-items:center; flex:0 1 auto; min-width:0}
.nav{
  display:flex; align-items:center; justify-content:flex-end;
  gap:18px; flex:1 1 auto; min-width:0; white-space:nowrap; flex-wrap:nowrap;
}
.nav a{flex:0 0 auto}

/* Wrap the nav to its own row only on mid widths */
@media (max-width: 1100px){
  .site-header .container{flex-wrap:wrap}
  .nav{order:2; width:100%; justify-content:flex-start; flex-wrap:wrap; white-space:normal; gap:10px 18px; padding-top:6px}
}


/* === Header grid layout for robust right-aligned nav (Chrome/Safari/Firefox) === */
.site-header .container{
  display:grid; grid-template-columns: 1fr auto; align-items:center; column-gap:16px;
}
.brand{min-width:0}
.nav{justify-self:end; display:flex; align-items:center; gap:18px; flex-wrap:nowrap; white-space:nowrap}
.nav a{flex:0 0 auto}

/* Mid widths: let nav drop below brand as full-width row */
@media (max-width: 1100px){
  .site-header .container{grid-template-columns:1fr}
  .nav{justify-self:start; flex-wrap:wrap; white-space:normal; gap:10px 18px; padding-top:6px}
}


/* === Force standard color for phone/email links === */
a[href^="mailto:"],
a[href^="mailto:"]:visited,
a[href^="tel:"],
a[href^="tel:"]:visited{
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 700;
}
a[href^="mailto:"]:hover,
a[href^="tel:"]:hover{ text-decoration: underline; }


/* === Mobile hamburger: bigger, clickable; nav collapsed by default === */
.site-header .container{ position:relative; }
@media (max-width: 720px){
  .menu-toggle{
    display:flex; align-items:center; justify-content:center;
    position:absolute; right:12px; top:10px; z-index:3000;
    width:56px; height:56px; border-radius:14px;
    background:transparent !important; border:0 !important; box-shadow:none !important;
    -webkit-tap-highlight-color: transparent; cursor:pointer;
  }
  .menu-toggle span{ display:block; width:26px; height:3.5px; background:var(--ink); border-radius:3px; }
  .menu-toggle span + span{ margin-top:6px; }
  .nav{ display:none !important; width:100%; background:rgba(11,16,32,.98); padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.08); }
  .nav.open{ display:block !important; }
}
@media (min-width: 721px){
  .menu-toggle{ display:none !important; }
}


/* ========== Mobile header: bigger hamburger, bulletproof ========== */
.site-header { position: relative; z-index: 100; }
.site-header .container { position: relative; }

@media (max-width: 720px){
  .menu-toggle{
    display:flex; align-items:center; justify-content:center;
    position:absolute; right:12px; top:10px;
    width:64px; height:64px; border-radius:14px;
    background:transparent !important; border:0 !important; box-shadow:none !important;
    -webkit-tap-highlight-color: transparent; cursor:pointer; z-index: 3000;
    pointer-events: auto;
  }
  .menu-toggle span{
    display:block; width:30px; height:4px; background:var(--ink); border-radius:3px;
  }
  .menu-toggle span + span{ margin-top:7px; }

  .nav{
    display:none !important;
    position:absolute; left:12px; right:12px; top:72px;
    background:rgba(11,16,32,.98);
    padding:14px; border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 2500;
  }
  .nav.open{ display:block !important; }
}
@media (min-width: 721px){
  .menu-toggle{ display:none !important; }
}

/* ========== Contact links: standard neutral color (no browser blue) ========== */
a[href^="mailto:"],
a[href^="mailto:"]:visited,
a[href^="tel:"],
a[href^="tel:"]:visited{
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 700;
}
a[href^="mailto:"]:hover,
a[href^="tel:"]:hover{ text-decoration: underline; }

/* ========== Mobile heading scale ========== */
@media (max-width: 720px){
  h2{ font-size:1.45rem; line-height:1.25; }
  h3{ font-size:1.20rem; line-height:1.3; }
}


/* ===== Mobile drawer nav (rock-solid) ===== */
.site-header{position:relative; z-index:50}
@media (max-width: 720px){
  .menu-toggle{
    display:flex; align-items:center; justify-content:center;
    position:absolute; right:12px; top:10px;
    width:64px; height:64px; border-radius:14px;
    background:transparent !important; border:0 !important; box-shadow:none !important;
    -webkit-tap-highlight-color: transparent; cursor:pointer; z-index:1002;
  }
  .menu-toggle span{display:block; width:30px; height:4px; background:var(--ink); border-radius:3px}
  .menu-toggle span + span{margin-top:7px}

  /* Slide-out drawer */
  #site-nav{
    position:fixed; top:0; right:-82%; width:82%; height:100vh;
    background:rgba(11,16,32,.98); padding:20px 18px 24px;
    border-left:1px solid rgba(255,255,255,.08);
    box-shadow: -8px 0 28px rgba(0,0,0,.35);
    display:flex; flex-direction:column; gap:14px;
    transition:right .28s ease-out; z-index:1001;
  }
  #site-nav a{font-size:1.05rem; padding:10px 6px}
  #site-nav.open{ right:0 }
  /* Backdrop */
  .backdrop{
    position:fixed; inset:0; background:rgba(0,0,0,.35); backdrop-filter:saturate(140%) blur(1px);
    z-index:1000;
  }
}
@media (min-width: 721px){
  .menu-toggle{display:none !important}
  .backdrop{display:none !important}
}

/* ===== Contact links: standard neutral color ===== */
a[href^="mailto:"], a[href^="mailto:"]:visited,
a[href^="tel:"],    a[href^="tel:"]:visited{
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 700;
}
a[href^="mailto:"]:hover, a[href^="tel:"]:hover{ text-decoration: underline }


/* ===== v2 HARD OVERRIDES (mobile) ===== */
@media (max-width: 720px){
  .site-header{ padding-top: env(safe-area-inset-top) !important; }
  .site-header .container{
    display:flex !important; align-items:center !important; justify-content:space-between !important;
    min-height:40px !important; padding:4px 12px !important; gap:8px !important;
  }
  .brand{ display:flex; align-items:center; gap:10px; }

  .menu-toggle{
    position:static !important; transform:none !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    width:40px !important; height:40px !important; border:0 !important; background:transparent !important; box-shadow:none !important;
    margin-left:auto !important; z-index:3000 !important; cursor:pointer;
  }
  .menu-toggle span{ width:22px !important; height:3px !important; background:var(--ink) !important; border-radius:2px !important }
  .menu-toggle span + span{ margin-top:5px !important }

  #site-nav{
    position:absolute !important; left:12px !important; right:12px !important; top: calc(100% + 6px) !important;
    display:none !important; background:rgba(11,16,32,.98) !important;
    padding:12px !important; border-radius:12px !important; border:1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.22) !important; z-index:2500 !important;
  }
  #site-nav.open{ display:block !important }
}
@media (min-width: 721px){
  .menu-toggle{ display:none !important; }
}

/* Subtle light-to-transparent glow at very top */
body::before{
  content:""; display:block; height:4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.00) 100%);
}

/* Neutral color for phone/email */
a[href^="mailto:"], a[href^="mailto:"]:visited,
a[href^="tel:"],    a[href^="tel:"]:visited{
  color: var(--ink) !important; text-decoration: none !important; font-weight:700;
}
a[href^="mailto:"]:hover, a[href^="tel:"]:hover{ text-decoration: underline !important }


/* ==== v8_6 fixes (mobile-first) ==== */
@media (max-width: 720px){
  header.site-header .subtitle{ display:none }
  header.site-header { padding-bottom: 4px; }
  .mobile-nav{ display:flex; gap:8px; padding:8px 14px 10px; overflow-x:auto; border-top:1px solid rgba(255,255,255,.08); }
  .mobile-nav a{
    font-size:12.5px; font-weight:600; padding:6px 10px; border-radius:10px;
    border:1px solid rgba(255,255,255,.26); background:rgba(255,255,255,.04); color:#F4F7FF; text-decoration:none;
  }
  .mobile-nav a:active{ transform:translateY(1px) }
  .nav{ display:none } /* hide desktop nav on mobile */
}

/* Gradient headings only for section h2s with class */
h2.grad-heading{
  background:linear-gradient(90deg, #6dd5fa, #2980b9);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; color:transparent;
  font-weight:800;
}

/* Sticky header anchor offset */
.anchor-spacer{ display:block; position:relative; top:-88px; height:0; visibility:hidden }

/* Anchor offset for sticky header */
section { scroll-margin-top: 96px; }
@media (max-width: 720px){ section { scroll-margin-top: 84px; } }

.mobile-nav{display:none}


/* === v10: Gradient headings for sections (match top name) === */
:root{
  --brand-grad: linear-gradient(90deg, #A6F3FF 0%, #7DE8F5 20%, #4DD9F0 55%, #2AC6E3 100%);
}

#about h2, #experience h2, #education h2, #publications h2, #leadership h2, #contact h2 {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* keep hero H1 solid */
.hero h1 { 
  -webkit-text-fill-color: initial;
  color: var(--text-strong, #dbe7f3);
  background: none !important;
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* ensure pill links stay unchanged on desktop */
@media (min-width: 769px) {
  .pills, .pills a { 
    background: initial;
    -webkit-text-fill-color: initial;
    color: inherit; 
  }
}

/* === Unified gradient headings — slightly darker === */
.section-title{
  font-weight:800;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  letter-spacing:.2px; line-height:1.15;
}

/* In case some pages use plain heading tags without class in sections */
section h2.section-title, section h3.section-title{}

/* Footer gradient (matches headings) */
.site-footer p, .footer-gradient{
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  font-weight:700;
}
