/* ============ TOKENS ============ */
:root{
  --navy-950:#0A1628;
  --navy-800:#13294B;
  --navy-700:#1B3A66;
  --blue-accent:#3E7BFA;
  --blue-soft:#E7EFFD;
  --paper:#FBFCFE;
  --alt-bg:#F2F6FC;
  --ink:#141C2B;
  --muted:#5B6B7E;
  --line:#DCE4F0;

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --edge: clamp(1.25rem, 5vw, 6rem);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; font-size:19px;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
@media (max-width: 600px){
  html{ font-size:17px; }
}
.mono{font-family:var(--font-mono); letter-spacing:0.02em;}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  margin:0 0 0.5em;
  color:var(--navy-950);
}
p{margin:0 0 1em; color:var(--ink);}
a{color:inherit;}
ul{margin:0; padding:0; list-style:none;}
strong{color:var(--navy-800); font-weight:600;}
em{color:var(--muted); font-style:italic;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}

/* ============ HERO CANVAS (signature element) ============ */
#hero-graph{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100vh;
  display:block;
  background:var(--navy-950);
}

/* ============ NAV ============ */
#site-nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.25rem var(--edge);
  mix-blend-mode:normal;
}
.nav-mark{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.1rem;
  color:#fff;
  text-decoration:none;
  border:1.5px solid rgba(255,255,255,0.35);
  width:2.4rem; height:2.4rem;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
}
#nav-links{
  display:flex;
  gap:2.25rem;
  transition:transform 0.3s ease;
}
#nav-links a{
  color:#fff;
  text-decoration:none;
  font-size:0.92rem;
  font-weight:500;
  opacity:0.85;
  position:relative;
  padding-bottom:2px;
}
#nav-links a:hover{opacity:1;}
#nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:-3px;
  width:0; height:1px;
  background:var(--blue-accent);
  transition:width 0.25s ease;
}
#nav-links a:hover::after{width:100%;}
#nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none; border:none; cursor:pointer;
  padding:0.4rem;
}
#nav-toggle span{
  width:22px; height:2px; background:#fff; display:block;
}

body.scrolled #site-nav{
  background:rgba(10,22,40,0.85);
  backdrop-filter:blur(10px);
  box-shadow:0 1px 0 rgba(255,255,255,0.06);
}

/* ============ HERO ============ */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:0 var(--edge);
  color:#fff;
  overflow:hidden;
}
.hero-inner{ max-width:760px; position:relative; z-index:2; }
.eyebrow{
  color:var(--blue-accent);
  font-size:0.85rem;
  text-transform:uppercase;
  margin-bottom:1.25rem;
  display:inline-block;
}
.hero-title{
  font-size:clamp(3rem, 9vw, 6rem);
  color:#fff;
  margin-bottom:1.25rem;
  letter-spacing:-0.01em;
}
.hero-sub{
  font-size:clamp(1.05rem, 1.6vw, 1.25rem);
  color:rgba(255,255,255,0.78);
  max-width:560px;
  margin-bottom:2.25rem;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:3.5rem; }
.btn{
  padding:0.85rem 1.6rem;
  border-radius:2px;
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  transition:all 0.2s ease;
  display:inline-block;
}
.btn-primary{ background:var(--blue-accent); color:#fff; }
.btn-primary:hover{ background:#5b8fff; transform:translateY(-1px); }
.btn-ghost{ border:1px solid rgba(255,255,255,0.3); color:#fff; }
.btn-ghost:hover{ border-color:#fff; background:rgba(255,255,255,0.06); }

.hero-stats{
  display:flex;
  gap:clamp(1.5rem, 4vw, 3rem);
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:1.5rem;
}
.hero-stats > div{ display:flex; flex-direction:column; gap:0.3rem; }
.stat-num{ color:var(--blue-accent); font-size:1.1rem; font-weight:600; }
.stat-label{ color:rgba(255,255,255,0.6); font-size:0.78rem; }

.scroll-cue{
  position:absolute; bottom:2rem; left:var(--edge);
  color:rgba(255,255,255,0.55);
  font-size:0.8rem;
  z-index:2;
  display:flex; gap:0.4rem; align-items:center;
}
.scroll-cue span{ animation:bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(4px);} }

/* ============ SECTIONS ============ */
.section{
  padding:var(--section-pad) var(--edge);
  position:relative;
}
.section.alt{ background:var(--alt-bg); }
.section-head{ max-width:780px; margin-bottom:3rem; }
.section-head h2{ font-size:clamp(1.7rem, 3.4vw, 2.6rem); }
.section-head .eyebrow{ color:var(--blue-accent); }

/* ============ ABOUT ============ */
.about-grid{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:3.5rem;
  align-items:start;
}
.photo-frame{
  aspect-ratio:1;
  background:var(--navy-950);
  border-radius:4px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.avatar-graph{ width:70%; height:70%; }
.avatar-graph .node{ fill:#fff; opacity:0.85; }
.avatar-graph .node-accent{ fill:var(--blue-accent); opacity:1; }
.avatar-graph .edge{ stroke:rgba(255,255,255,0.35); stroke-width:1.5; }
.photo-caption{
  text-align:center; color:var(--muted); font-size:0.75rem; margin-top:0.75rem;
}
.about-text p{ color:var(--ink); max-width:620px; }
.edu-list{ margin-top:2rem; border-top:1px solid var(--line); padding-top:1.5rem; }
.edu-row{
  display:flex; gap:1.25rem; padding:0.6rem 0;
  border-bottom:1px solid var(--line);
  font-size:0.95rem;
}
.edu-row:last-child{ border-bottom:none; }
.edu-year{ color:var(--blue-accent); flex:0 0 70px; font-size:0.85rem; }

/* ============ RESEARCH ============ */
.tag{
  display:inline-block;
  background:var(--navy-950);
  color:#fff;
  padding:0.3rem 0.75rem;
  border-radius:2px;
  font-size:0.72rem;
  text-transform:uppercase;
  margin-bottom:1rem;
}
.research-current{ max-width:780px; margin-bottom:3rem; }
.research-current p{ font-size:1.05rem; }
.thesis-block{
  border-top:1px solid var(--line);
  padding-top:2rem;
}
.thesis-block h3{ font-size:1.3rem; margin-bottom:1.5rem; }
.thesis-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2.5rem;
}
.thesis-col h4{
  font-family:var(--font-body);
  font-size:0.95rem;
  font-weight:700;
  color:var(--blue-accent);
  margin-bottom:0.5rem;
}
.thesis-col p{ font-size:0.95rem; color:var(--muted); }

/* ============ RECORD ============ */
.record-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
}
.record-col h3{ font-size:0.9rem; text-transform:uppercase; color:var(--blue-accent); margin-bottom:1.25rem; font-weight:600;}
.timeline li{
  display:flex; gap:1rem;
  padding:0.7rem 0;
  border-bottom:1px solid var(--line);
  font-size:0.95rem;
}
.timeline li span.mono{ flex:0 0 55px; color:var(--muted); font-size:0.82rem; }
.note{ margin-top:1.25rem; font-size:0.85rem; color:var(--muted); font-style:italic; }

/* ============ ACHIEVEMENTS ============ */
.ach-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.75rem;
}
.ach-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:4px;
  padding:1.75rem;
}
.ach-card h3{
  font-size:0.85rem; text-transform:uppercase; color:var(--blue-accent);
  font-weight:700; margin-bottom:1.1rem;
}
.ach-card li{
  font-size:0.9rem;
  padding:0.55rem 0;
  border-bottom:1px solid var(--line);
}
.ach-card li:last-child{ border-bottom:none; }

/* ============ CREATIVE ============ */
.creative-section{ background:var(--navy-950); color:#fff; }
.creative-section h2, .creative-section .eyebrow{ color:#fff; }
.creative-section .eyebrow{ color:var(--blue-accent); }
.creative-intro{ color:rgba(255,255,255,0.7); max-width:560px; }
.creative-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.5rem;
}
.creative-card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:4px;
  padding:1.75rem;
  transition:border-color 0.2s ease, transform 0.2s ease;
}
.creative-card:hover{
  border-color:var(--blue-accent);
  transform:translateY(-3px);
}
.creative-card h3{ color:#fff; font-size:1.15rem; }
.creative-card p{ color:rgba(255,255,255,0.65); font-size:0.9rem; margin-bottom:0; }
.creative-card .tag{ background:var(--blue-accent); }

/* ============ CONTACT ============ */
.contact-section{ text-align:left; }
.contact-links{
  display:flex; flex-direction:column;
  max-width:560px;
  border-top:1px solid var(--line);
}
.contact-link{
  display:flex; justify-content:space-between; align-items:center;
  padding:1.25rem 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  font-size:1rem;
  transition:padding-left 0.2s ease;
}
.contact-link:hover{ padding-left:0.5rem; color:var(--blue-accent); }
.contact-link span:first-child{ color:var(--blue-accent); font-size:0.8rem; }
.contact-disabled{ color:var(--muted); cursor:default; }
.contact-disabled:hover{ padding-left:0; color:var(--muted); }

footer{
  text-align:center;
  padding:2rem var(--edge);
  color:var(--muted);
  font-size:0.78rem;
  border-top:1px solid var(--line);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px){
  .about-grid{ grid-template-columns:1fr; }
  .photo-frame{ max-width:220px; }
  .thesis-cols{ grid-template-columns:1fr; }
  .record-grid{ grid-template-columns:1fr; }
  .ach-grid{ grid-template-columns:1fr; }
  .creative-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px){
  .creative-grid{ grid-template-columns:1fr; }
  #nav-links{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width:min(70vw, 280px);
    background:var(--navy-950);
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:1.75rem;
    padding:2rem;
    transform:translateX(100%);
    z-index:99;
  }
  #nav-links.open{ transform:translateX(0); }
  #nav-toggle{ display:flex; }
  .hero-stats{ flex-wrap:wrap; row-gap:1.25rem; }
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--blue-accent);
  outline-offset:3px;
}

/* ============ SUBTLE NEON GRAPH WATERMARK (behind light sections) ============ */
.graph-watermark{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:0.5;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(62,123,250,0.16) 0, transparent 2.5px),
    radial-gradient(circle at 22% 62%, rgba(62,123,250,0.14) 0, transparent 2.5px),
    radial-gradient(circle at 38% 30%, rgba(62,123,250,0.13) 0, transparent 2.5px),
    radial-gradient(circle at 55% 78%, rgba(62,123,250,0.15) 0, transparent 2.5px),
    radial-gradient(circle at 72% 22%, rgba(62,123,250,0.13) 0, transparent 2.5px),
    radial-gradient(circle at 88% 55%, rgba(62,123,250,0.16) 0, transparent 2.5px),
    radial-gradient(circle at 92% 88%, rgba(62,123,250,0.13) 0, transparent 2.5px),
    linear-gradient(112deg, transparent 49.6%, rgba(62,123,250,0.09) 49.7%, rgba(62,123,250,0.09) 49.9%, transparent 50%),
    linear-gradient(66deg, transparent 29.6%, rgba(62,123,250,0.08) 29.7%, rgba(62,123,250,0.08) 29.9%, transparent 30%),
    linear-gradient(150deg, transparent 69.6%, rgba(62,123,250,0.08) 69.7%, rgba(62,123,250,0.08) 69.9%, transparent 70%);
  background-repeat:no-repeat;
  background-size:100% 100%;
}

/* ============ HERO QUOTE ============ */
.hero-quote{
  margin:0;
  padding-left:1.25rem;
  border-left:2px solid var(--blue-accent);
  max-width:520px;
}
.hero-quote .devanagari{
  font-family:'Noto Serif Devanagari', serif;
  font-size:1.15rem;
  color:rgba(255,255,255,0.88);
  line-height:1.9;
  margin:0 0 0.6rem;
}
.hero-quote cite{
  color:var(--blue-accent);
  font-size:0.8rem;
  font-style:normal;
}

/* ============ ABOUT PHOTO (real image) ============ */
.photo-frame img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

/* ============ SECTION PHOTOS ============ */
.research-photo, .record-photo, .ach-photo{
  margin-top:3rem;
  max-width:640px;
}
.research-photo img, .record-photo img, .ach-photo img{
  width:100%;
  border-radius:4px;
  display:block;
  border:1px solid var(--line);
}
.photo-caption{
  color:var(--muted);
  font-size:0.78rem;
  margin-top:0.6rem;
}

/* ============ CREATIVE SECTION PHOTOS ============ */
.creative-photo{
  max-width:900px;
  margin:0 auto 3rem;
  border-radius:4px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
}
.creative-photo img{ width:100%; display:block; }

.creative-photo-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem;
  margin-top:2.5rem;
}
.creative-photo-row img{
  width:100%;
  border-radius:4px;
  border:1px solid rgba(255,255,255,0.12);
  display:block;
}

.creative-card-link{
  text-decoration:none;
  display:block;
  background:rgba(62,123,250,0.1) !important;
  border-color:rgba(62,123,250,0.35) !important;
}
.creative-card-link h3{ color:#fff; }

.creative-card-image{ padding:0; overflow:hidden; }
.creative-card-image img{ width:100%; height:140px; object-fit:cover; display:block; }
.creative-card-image .creative-card-body{ padding:1.25rem 1.5rem 1.5rem; }
.creative-card-image p{ margin-bottom:0; }

/* ============ POETRY PAGE ============ */
.poetry-page{ background:var(--paper); }
.poetry-nav{ background:var(--navy-950); }
.poetry-hero{
  background:var(--navy-950);
  color:#fff;
  padding-top:8rem;
  padding-bottom:3.5rem;
}
.poetry-hero .eyebrow{ color:var(--blue-accent); }
.hero-title-sm{
  font-size:clamp(2.2rem, 5vw, 3.2rem);
  color:#fff;
}
.poetry-hero .hero-sub{ color:rgba(255,255,255,0.7); max-width:520px; }

.poem-list{ max-width:760px; margin:0 auto; }
.poem-card{
  border-bottom:1px solid var(--line);
  padding:2rem 0;
}
.poem-card:first-child{ padding-top:0; }
.poem-card h2{ font-size:1.4rem; margin-bottom:0.5rem; }
.poem-excerpt{ color:var(--muted); font-style:italic; }

@media (max-width: 700px){
  .creative-photo-row{ grid-template-columns:1fr; }
}

/* ============ HERO SPLIT (photo + copy) ============ */
.hero-inner-split{
  display:flex;
  align-items:center;
  gap:clamp(2rem, 5vw, 5rem);
  max-width:1100px;
}
.hero-copy{ flex:1 1 560px; max-width:640px; }
.hero-photo{ flex:0 0 auto; position:relative; z-index:2; }
.hero-photo-ring{
  width:clamp(160px, 22vw, 260px);
  height:clamp(160px, 22vw, 260px);
  border-radius:50%;
  overflow:hidden;
  border:3px solid var(--blue-accent);
  box-shadow:0 0 0 8px rgba(62,123,250,0.12), 0 0 40px rgba(255,107,107,0.15);
}
.hero-photo-ring img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
@media (max-width: 780px){
  .hero-inner-split{ flex-direction:column-reverse; align-items:flex-start; }
}

/* ============ TEACHING ============ */
.teaching-card{
  max-width:700px;
  background:var(--alt-bg);
  border:1px solid var(--line);
  border-radius:4px;
  padding:2rem;
}
.teaching-card p{ margin-bottom:0; font-size:1.05rem; }

/* ============ DECORATIVE DOODLES ============ */
.doodle-layer{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
}
.doodle{
  position:absolute;
  opacity:0.16;
}
.doodle-crane{ width:90px; top:12%; left:6%; }
.doodle-cube{ width:70px; top:65%; left:10%; }
.doodle-flute{ width:130px; top:22%; right:8%; transform:rotate(-15deg); }
.doodle-guitar{ width:70px; top:55%; right:6%; }
.doodle-mic{ width:55px; bottom:8%; left:20%; }
.doodle-cube2{ width:60px; bottom:15%; right:20%; }

@media (max-width: 780px){
  .doodle{ opacity:0.1; }
  .doodle-flute, .doodle-guitar{ display:none; }
}
