:root {
  --bg: #081016;
  --bg-soft: #101c24;
  --card: rgba(255,255,255,.055);
  --card-strong: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.13);
  --text: #eef7f5;
  --muted: #9fb2b0;
  --accent: #7de2d1;
  --accent-2: #ffc857;
  --accent-3: #ff7a59;
  --shadow: 0 16px 46px rgba(0,0,0,.28);
  --radius: 22px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125,226,209,.18), transparent 36rem),
    radial-gradient(circle at 85% 10%, rgba(255,200,87,.11), transparent 30rem),
    linear-gradient(180deg, #071014, #0b121b 44%, #070b11);
  font: 16px/1.68 "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8,16,22,.78);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: "Space Grotesk", "IBM Plex Sans", sans-serif; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: #071014; background: var(--accent); }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a { padding: .5rem .7rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-family: "Space Grotesk", "IBM Plex Sans", sans-serif; font-size: .9rem; font-weight: 700; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(255,255,255,.08); }
.nav-toggle { display: none; color: var(--text); border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .45rem .75rem; }
main, .site-footer { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: clamp(2.35rem, 5vw, 4.25rem) 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(300px, .82fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.hero { min-height: auto; padding-top: clamp(2.7rem, 5vw, 4rem); }
.eyebrow { margin: 0 0 .7rem; color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
h1, h2, h3 { font-family: "Space Grotesk", "IBM Plex Sans", sans-serif; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.35rem, 4.3vw, 3.95rem); max-width: 760px; }
h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.65rem); }
h3 { margin: 0 0 .65rem; font-size: 1.08rem; }
.lead { max-width: 690px; color: #d7e7e4; font-size: clamp(1rem, 1.15vw, 1.08rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.7rem; padding: .68rem 1rem; border: 1px solid rgba(125,226,209,.3); border-radius: 999px; text-decoration: none; font-family: "Space Grotesk", "IBM Plex Sans", sans-serif; font-weight: 900; color: var(--text); background: rgba(255,255,255,.065); box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .16s, border-color .16s, background .16s, color .16s; }
.button::after { content: "→"; font-weight: 900; opacity: .85; }
.button:hover { transform: translateY(-2px); border-color: rgba(125,226,209,.75); background: rgba(125,226,209,.12); }
.button.primary { background: var(--accent); color: #071014; border-color: transparent; }
.button.ghost { color: var(--accent); }
.glass-card, .project-card, .info-card, .pub-card, .timeline-item, .writing-card, .contact-card, .cv-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(1.25rem, 2.4vw, 1.7rem); overflow: hidden; }
.hero-card h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); max-width: 13ch; margin-bottom: 1.1rem; }
.orbit { height: 145px; position: relative; display: grid; place-items: center; margin-bottom: .75rem; }
.orbit::before { content: ""; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 70px rgba(125,226,209,.45); }
.orbit span { position: absolute; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; animation: spin 14s linear infinite; }
.orbit span:nth-child(1) { width: 145px; height: 58px; transform: rotate(20deg); }
.orbit span:nth-child(2) { width: 130px; height: 78px; transform: rotate(-42deg); animation-duration: 18s; }
.orbit span:nth-child(3) { width: 108px; height: 108px; opacity: .45; animation-duration: 22s; }
@keyframes spin { to { rotate: 360deg; } }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; color: var(--muted); }
.coordinate-list { display: grid; gap: .65rem; }
.coordinate-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .15rem .75rem;
  padding: .82rem;
  border: 1px solid rgba(125,226,209,.18);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.035);
  transition: transform .16s, border-color .16s, background .16s;
}
.coordinate-item:hover { transform: translateY(-2px); border-color: rgba(125,226,209,.55); background: rgba(125,226,209,.09); }
.coordinate-item span {
  grid-row: span 2;
  color: var(--accent-2);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.coordinate-item strong { line-height: 1.1; }
.coordinate-item em { color: var(--muted); font-style: normal; font-size: .88rem; line-height: 1.35; }
.coordinate-item::after {
  content: "Open →";
  grid-column: 2;
  width: fit-content;
  margin-top: .15rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(125,226,209,.6);
  font-size: .78rem;
  font-weight: 900;
}
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.8rem; }
.section-head h2 { max-width: 780px; }
.card-grid { display: grid; gap: 1rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.project-card, .info-card, .pub-card, .writing-card, .contact-card, .cv-block { padding: 1.2rem; text-decoration: none; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; }
.project-card[href], .info-card[href], .writing-card[href], .contact-card[href], .pf-card[href] { position: relative; border-color: rgba(125,226,209,.22); }
.project-card[href]::after, .info-card[href]::after, .pf-card[href]::after {
  content: "Open →";
  display: inline-flex;
  width: fit-content;
  margin-top: .95rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(125,226,209,.65);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.writing-card[href] h3::after, .contact-card[href] h3::after {
  content: " ↗";
  color: var(--accent);
  font-size: .9em;
}
.project-card:hover, .info-card:hover, .writing-card:hover, .contact-card:hover, .pf-card:hover { transform: translateY(-3px); border-color: rgba(125,226,209,.65); background: var(--card-strong); box-shadow: 0 18px 54px rgba(0,0,0,.34); }
.project-card p, .info-card p, .pub-card p, .writing-card p, .contact-card p, .cv-block p { color: var(--muted); margin: 0; }
.tag { display: inline-flex; width: fit-content; padding: .22rem .6rem; margin-bottom: 1rem; border: 1px solid rgba(125,226,209,.3); color: var(--accent); border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.split-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; padding: 2rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); background: linear-gradient(135deg, rgba(125,226,209,.09), rgba(255,255,255,.04)); }
.prose { color: #d8e8e5; }
.prose a, .lead a, .site-footer a { color: var(--accent); font-weight: 850; text-decoration: underline; text-decoration-color: rgba(125,226,209,.55); }
.prose a:hover, .lead a:hover, .site-footer a:hover { text-decoration-color: var(--accent-2); color: var(--accent-2); }
.prose p:first-child { margin-top: 0; }
.page-hero { padding: clamp(3rem, 5vw, 4.2rem) 0 1.5rem; }
.page-hero h1 { font-size: clamp(2.15rem, 4.1vw, 3.45rem); max-width: 760px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.03rem; }
.timeline { display: grid; gap: 1rem; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1.25rem; }
.timeline-year { color: var(--accent-2); font-weight: 900; }
.pub-card { display: grid; gap: .75rem; margin-bottom: 1rem; }
.pub-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.pub-links a { color: #071014; background: var(--accent); border-radius: 999px; padding: .35rem .68rem; text-decoration: none; font-weight: 900; transition: transform .16s, background .16s; }
.pub-links a::after { content: " ↗"; }
.pub-links a:hover { transform: translateY(-2px); background: var(--accent-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .9rem; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.skill-grid ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.writing-list { display: grid; gap: .85rem; }
.writing-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.lang-pill { color: #071014; background: var(--accent-2); border-radius: 999px; padding: .2rem .55rem; font-weight: 900; font-size: .75rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer a { color: var(--accent); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 64px; left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(8,16,22,.96); }
  .site-nav.open { display: flex; }
  .section-grid, .split-panel, .timeline-item, .contact-grid { grid-template-columns: 1fr; }
  .card-grid.three, .skill-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .site-footer { flex-direction: column; }
  .hero { padding-top: 2.25rem; }
  h1 { font-size: clamp(2rem, 10vw, 2.85rem); }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
}
@media (min-width: 1400px) {
  h1 { font-size: 3.85rem; }
  .page-hero h1 { font-size: 3.35rem; }
  .hero { padding-top: 3.75rem; }
}
/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* Now strip */
.now-strip { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 1.4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: .88rem; margin-top: 2rem; width: fit-content; }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

/* Poem cards */
.poem-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.poem-card { padding: 1.75rem; }
.poem-lang-pill { display: inline-flex; padding: .22rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.lang-hindi { background: rgba(255,200,87,.15); color: var(--accent-2); }
.lang-marathi { background: rgba(255,122,89,.15); color: var(--accent-3); }
.lang-english { background: rgba(125,226,209,.15); color: var(--accent); }
.poem-card h3 { font-size: 1.1rem; margin: 0 0 1rem; }
.devanagari { font-family: "Noto Serif Devanagari", serif; }
.title-translation { font-family: inherit; font-weight: 400; color: var(--muted); font-size: .85rem; }
.essay-translation { font-size: .88rem; }
.poem-body-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; color: var(--muted); font-style: italic; font-size: .95rem; line-height: 1.7; }
.poem-body-lines.devanagari { font-style: normal; }
.poem-stanza + .poem-stanza { margin-top: .85rem; }
.poem-meaning-note { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }

/* Filter row */
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.filter-btn:hover, .filter-btn.active { background: rgba(125,226,209,.15); color: var(--accent); border-color: rgba(125,226,209,.4); }

/* Project feature grid */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.pf-card { display: block; padding: 1.75rem; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .18s, border-color .18s, background .18s; }
.pf-card:hover { transform: translateY(-4px); border-color: rgba(125,226,209,.45); background: var(--card-strong); }
.pf-card p { color: var(--muted); margin: .5rem 0 0; }
.pf-url { font-size: .8rem; color: var(--muted); margin-top: .6rem; display: block; }
.action-row { margin-top: 1.5rem; }
.inline-code { background: rgba(255,255,255,.08); padding: .1rem .4rem; border-radius: 4px; font-size: .9em; }

/* CV education & awards */
.cv-edu { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.cv-edu-item { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cv-year { color: var(--accent-2); font-weight: 900; font-size: .9rem; padding-top: .2rem; }
.cv-edu-item h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.cv-edu-item p { color: var(--muted); margin: 0; font-size: .9rem; }
.award-list { display: grid; gap: .75rem; }
.award-item { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; color: var(--muted); padding: .75rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); align-items: start; }
.award-item strong { color: var(--text); font-size: .95rem; display: block; margin-bottom: .2rem; }

/* Contact grid — 3-col on wider screens */
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── ELEVATION PASS ──────────────────────────────────────────────── */

/* 1 · Hero headline gradient — text reads white fading to teal */
.hero-copy h1 {
  background: linear-gradient(148deg, #f0faf8 15%, #7de2d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 2 · Hero card: top-edge shimmer — simulates a glass surface catching light */
.hero-card {
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(125,226,209,.65) 50%, transparent 95%);
  pointer-events: none;
}

/* 3 · Interactive cards: accent ring + depth glow on hover */
.project-card:hover,
.info-card:hover,
.contact-card:hover {
  box-shadow: 0 0 0 1px rgba(125,226,209,.38),
              0 22px 60px rgba(0,0,0,.45),
              0 0 32px rgba(125,226,209,.07) !important;
}

/* 4 · Timeline: left accent + horizontal slide on hover */
.timeline-item {
  border-left: 2px solid rgba(125,226,209,.22) !important;
  transition: border-left-color .2s, transform .2s, background .2s !important;
}
.timeline-item:hover {
  border-left-color: rgba(125,226,209,.7) !important;
  transform: translateX(4px) !important;
  background: rgba(125,226,209,.04) !important;
}

/* 5 · Publication card: teal left accent for editorial weight */
.pub-card {
  border-left-width: 2px !important;
  border-left-color: rgba(125,226,209,.55) !important;
  padding-left: 1.5rem;
  transition: border-left-color .2s, box-shadow .2s;
}
.pub-card:hover { border-left-color: var(--accent) !important; }

/* 6 · Section head: thin separator anchors the title */
.section-head {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 2rem;
}

/* 7 · Split-panel: top accent stripe */
.split-panel {
  border-top: 2px solid rgba(125,226,209,.3);
}

/* 8 · Footer: gradient rule instead of solid line */
.site-footer {
  border-top: none;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(125,226,209,.45) 35%,
    rgba(255,200,87,.3) 65%,
    transparent);
}

/* 9 · Staggered fade-in for card-grid children when parent reveals */
.reveal .card-grid > *,
.reveal .pf-grid > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s, transform .5s;
}
.reveal.visible .card-grid > *,
.reveal.visible .pf-grid > * { opacity: 1; transform: none; }
.reveal.visible .card-grid > *:nth-child(1),
.reveal.visible .pf-grid > *:nth-child(1) { transition-delay: 0s; }
.reveal.visible .card-grid > *:nth-child(2),
.reveal.visible .pf-grid > *:nth-child(2) { transition-delay: .08s; }
.reveal.visible .card-grid > *:nth-child(3),
.reveal.visible .pf-grid > *:nth-child(3) { transition-delay: .16s; }
.reveal.visible .card-grid > *:nth-child(4),
.reveal.visible .pf-grid > *:nth-child(4) { transition-delay: .24s; }
.reveal.visible .card-grid > *:nth-child(5),
.reveal.visible .pf-grid > *:nth-child(5) { transition-delay: .32s; }

/* 10 · Now-strip: subtle ambient glow */
.now-strip { box-shadow: 0 0 24px rgba(125,226,209,.07); }

/* 11 · Page-hero bottom rule — visual anchor before content */
.page-hero { border-bottom: 1px solid rgba(255,255,255,.05); margin-bottom: .5rem; }

/* ─── PROFILE PHOTO ──────────────────────────────────────────────── */
.hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.profile-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(125,226,209,.5);
  box-shadow: 0 0 0 4px rgba(125,226,209,.1), 0 8px 24px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.profile-meta { display: flex; flex-direction: column; gap: .2rem; }
.profile-meta strong { font-size: .95rem; color: var(--text); line-height: 1.2; }
.profile-meta span { font-size: .8rem; color: var(--muted); }

/* Contact page: large photo alongside hero text */
.contact-hero-profile { display: flex; align-items: flex-start; gap: 2.5rem; }
.contact-profile-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(125,226,209,.3);
  box-shadow: 0 0 0 6px rgba(125,226,209,.07), var(--shadow);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .contact-hero-profile { flex-direction: column; align-items: center; text-align: center; }
  .contact-profile-photo { width: 120px; height: 120px; }
}
