:root {
  --slate-900: #1c1f22;
  --slate-800: #2b2f33;
  --slate-700: #42474d;
  --slate-100: #e8e9eb;
  --clay-600: #a9531f;
  --clay-500: #c06a33;
  --clay-100: #f6e6d9;
  --paper: #faf7f1;
  --paper-alt: #f2ede3;
  --ink: #1f2226;
  --muted: #63676c;
  --line: #ddd6c8;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --deva: "Noto Sans Devanagari", var(--sans);

  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 31, 34, .06), 0 10px 30px -12px rgba(28, 31, 34, .18);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--clay-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slate-700); }
h1, h2, h3 { font-family: var(--serif); color: var(--slate-800); margin: 0; line-height: 1.2; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--clay-500); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slate-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(28, 31, 34, .4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate-800); }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--slate-800); color: var(--clay-100);
  font: 600 .85rem/1 var(--serif); letter-spacing: .04em;
}
.brand-name { font: 600 1.05rem/1 var(--serif); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--clay-600); }
.nav-links .nav-cta { background: var(--slate-800); color: #fff; margin-left: 6px; padding: 8px 16px; }
.nav-links .nav-cta:hover { background: var(--slate-700); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--slate-800); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .25s, opacity .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 46%; height: 100%;
  background: linear-gradient(160deg, var(--slate-100), transparent 70%);
  border-bottom-left-radius: 220px; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-600); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
.hindi-name { font: 500 1.35rem/1.4 var(--deva); color: var(--clay-600); margin: 8px 0 22px; }
.role { font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; line-height: 1.5; }
.role strong { color: var(--slate-800); }
.role-secondary { color: var(--muted); }
.lede {
  font: 400 1.15rem/1.6 var(--serif); color: var(--slate-700);
  border-left: 3px solid var(--clay-500); padding-left: 16px; margin: 26px 0 30px; max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--slate-800); color: #fff; }
.btn-primary:hover { background: var(--slate-700); color: #fff; }
.btn-ghost { border: 1.5px solid var(--slate-800); color: var(--slate-800); }
.btn-ghost:hover { background: var(--slate-800); color: #fff; }
.btn-link { color: var(--slate-700); padding-left: 8px; padding-right: 8px; }
.btn-link svg { color: #7a9a3a; }

.hero-portrait { position: relative; display: grid; place-items: center; }
.wheel {
  position: absolute; width: 118%; max-width: 560px; aspect-ratio: 1;
  fill: none; stroke: var(--clay-500); stroke-width: 1.2; opacity: .35;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-frame {
  position: relative; margin: 0; width: min(100%, 380px);
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid var(--white);
  background: var(--slate-100);
}
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }

/* Stats */
.stats { background: var(--slate-800); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.stats-grid li { padding: 30px 12px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .1); }
.stats-grid li:last-child { border-right: 0; }
.num { display: block; font: 600 2.4rem/1 var(--serif); color: var(--clay-100); }
.lbl { display: block; margin-top: 8px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-600); margin-bottom: 12px; }
.section-head { margin-bottom: 40px; }
.section-head p.muted { margin-top: 12px; }
.two-col { display: grid; grid-template-columns: 320px 1fr; gap: 56px; }
.two-col .section-head { margin-bottom: 0; position: sticky; top: 100px; align-self: start; }

.prose p { font-size: 1.07rem; color: #33373b; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts li { font-weight: 500; color: var(--slate-800); }
.facts span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

/* Timeline */
.timeline { position: relative; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 34px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper-alt); border: 2.5px solid var(--clay-500);
}
.timeline li:first-child::before { background: var(--clay-500); }
.when { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--clay-600); margin-bottom: 4px; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline p { margin: 0; color: #3a3e43; }

/* Research */
.research-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: 12px; line-height: 1.35; }
.card p:last-child { margin-bottom: 0; }
.card-tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-600); margin-bottom: 14px; }
.card-feature { background: var(--slate-800); border-color: var(--slate-800); color: rgba(255, 255, 255, .85); position: relative; overflow: hidden; }
.card-feature::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%;
  border: 1.5px solid rgba(240, 200, 170, .25); box-shadow: 0 0 0 22px rgba(240, 200, 170, .06), 0 0 0 44px rgba(240, 200, 170, .04);
}
.card-feature h3 { color: #fff; font-size: 1.3rem; }
.card-feature .card-tag { color: #f0b48a; }
.meta { margin: 22px 0 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.meta div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 10px; font-size: .92rem; }
.meta dt { color: rgba(255, 255, 255, .6); }
.meta dd { margin: 0; color: #fff; font-weight: 500; text-align: right; }

.sub { margin: 56px 0 18px; font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: .92rem; font-weight: 500; color: var(--slate-800);
}
.chips-sm { gap: 8px; margin-bottom: 8px; }
.chips-sm li { padding: 6px 12px; font-size: .82rem; background: var(--paper); }

/* Publications */
.pubs { counter-reset: pub; }
.pubs li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pubs li:first-child { padding-top: 0; }
.pubs p { margin: 0; color: #33373b; }
.pub-year { font: 600 1.1rem/1.5 var(--serif); color: var(--clay-600); }
.note { margin-top: 26px; padding: 16px 20px; background: var(--white); border-radius: 10px; border: 1px dashed var(--line); font-size: .95rem; color: var(--muted); }

/* Teaching & service */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 1.1rem; margin-bottom: 14px; }
.panel h3:not(:first-child) { margin-top: 28px; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: .95rem; color: #33373b; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--clay-500); }
.awards li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.awards li:first-child { padding-top: 0; }
.awards strong { display: block; color: var(--slate-800); font-weight: 600; }
.awards span { font-size: .86rem; color: var(--muted); }

/* Education */
.edu li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.edu li:first-child { padding-top: 0; }
.edu .when { margin: 3px 0 0; }
.edu h3 { font-size: 1.1rem; margin-bottom: 2px; }
.edu p { margin: 0; color: var(--muted); font-size: .95rem; }
.grade { font: 500 .78rem/1 var(--sans); color: var(--slate-700); background: var(--slate-100); padding: 4px 8px; border-radius: 6px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.tests { margin-top: 32px; background: var(--white); border-radius: var(--radius); padding: 24px 28px; border-left: 4px solid var(--clay-500); }
.tests h3 { margin-bottom: 12px; }
.tests li { padding: 5px 0; color: #33373b; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.gallery li { display: flex; flex-direction: column; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-item {
  display: block; flex: 1; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden;
  background: var(--slate-100); min-height: 220px;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-tall .g-item img { object-position: center 30%; }
.cap { font-size: .88rem; color: var(--muted); margin: 10px 2px 0; line-height: 1.5; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(18, 20, 22, .88); }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lb-cap { color: #eceef0; text-align: center; margin: 14px auto 0; max-width: 60ch; font-size: .95rem; }
.lb-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .26); }

/* Contact */
.contact { background: var(--slate-900); color: rgba(255, 255, 255, .82); }
.contact h2 { color: #fff; margin-bottom: 18px; }
.kicker-light { color: #f0b48a; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 4px; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-list li:first-child { padding-top: 0; }
.c-lbl { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 600; margin-bottom: 4px; }
.contact-list a { color: #fff; font-size: 1.08rem; font-weight: 500; text-decoration-color: rgba(240, 180, 138, .6); word-break: break-word; }
.contact-list a:hover { color: #f0b48a; }

/* Footer */
.site-footer { background: var(--slate-900); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }
.site-footer .muted { color: rgba(255, 255, 255, .4); }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1040px) {
  .research-grid { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: span 2; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .three-col .panel:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 16px 30px -20px rgba(28, 31, 34, .4);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .nav-cta { margin: 12px 0 0; text-align: center; border-radius: 999px; border: 0; }

  .hero { padding: 32px 0 56px; }
  .hero::before { width: 100%; height: 48%; border-bottom-left-radius: 0; inset: auto 0 0 0; background: linear-gradient(0deg, var(--slate-100), transparent); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; }
  .portrait-frame { width: min(70%, 300px); }
  .wheel { width: min(108%, 440px); }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid li:nth-child(3) { border-right: 0; }
  .stats-grid li:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, .1); }

  .section { padding: 72px 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col .section-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .research-grid, .three-col { grid-template-columns: 1fr; }
  .card-feature, .three-col .panel:last-child { grid-column: auto; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .gallery { grid-template-columns: 1fr; }
  .g-wide { grid-column: auto; }
  .g-tall { grid-row: auto; }
  .g-tall .g-item { aspect-ratio: 4 / 5; flex: none; }
  .num { font-size: 2rem; }
  .pubs li { grid-template-columns: 1fr; gap: 4px; }
  .edu li { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 6px; }
  .card, .panel { padding: 22px; }
  .meta div { flex-direction: column; gap: 2px; }
  .meta dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .g-item img, .btn { transition: none; }
}

@media print {
  .site-header, .hero-actions, .wheel, #gallery, .lightbox, .nav-toggle { display: none !important; }
  .section, .hero { padding: 24px 0; }
  .stats, .contact, .site-footer, .card-feature { background: #fff !important; color: #000 !important; }
  .num, .contact h2, .contact-list a, .card-feature h3, .meta dd { color: #000 !important; }
}
