:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #17191d;
  --muted: #68717d;
  --soft: #a3abb5;
  --line: #e4e7eb;
  --accent: #2457d6;
  --dark: #151a22;
  --dark-muted: #aeb7c3;
  --radius: 18px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,248,250,.9); border-bottom: 1px solid rgba(228,231,235,.8); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: baseline; font-size: 22px; font-weight: 800; letter-spacing: -.08em; }
.brand span, .hero h1 span, h2 span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; color: #4f5965; }
.nav a { transition: color .2s ease; }
.nav a:hover, .text-link:hover, .project-link:hover, .contact-links a:hover { color: var(--accent); }
.nav .nav-contact { color: var(--ink); }
.nav-contact span { color: var(--accent); margin-left: 4px; }
.menu-toggle { display: none; }

.section { padding: 112px 0; }
.section-border { border-top: 1px solid var(--line); }
.hero { min-height: min(760px, calc(100svh - 76px)); padding: 120px 0 28px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .7fr); gap: 90px; align-items: center; }
.eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .14em; line-height: 1.4; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: #32a879; box-shadow: 0 0 0 4px rgba(50,168,121,.1); }
.hero h1 { margin: 0; font-size: clamp(50px, 7.2vw, 88px); line-height: 1.04; letter-spacing: -.075em; font-weight: 740; }
.hero-lede { max-width: 660px; margin: 28px 0 30px; color: #5d6672; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 0 19px; border-radius: 8px; font-size: 13px; font-weight: 650; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover { background: var(--accent); }
.text-link { font-size: 13px; font-weight: 650; transition: color .2s ease; }
.text-link span { margin-left: 5px; }
.hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 64px; color: #87909a; font-size: 11px; }
.meta-divider { height: 14px; width: 1px; background: #cbd0d7; }
.hero-aside { align-self: center; max-width: 285px; padding-top: 12px; }
.monogram { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 35px; border-radius: 22px; background: #e9edf4; color: #222c3c; font-size: 26px; font-weight: 800; letter-spacing: -.09em; }
.monogram span { color: var(--accent); }
.aside-label { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.aside-copy { margin: 0; color: #505a67; font-size: 14px; }
.aside-link { display: inline-block; margin-top: 18px; color: var(--ink); font-size: 12px; font-weight: 700; }
.aside-link span { color: var(--accent); }
.hero-bottom { display: flex; justify-content: space-between; margin-top: 95px; padding-top: 17px; border-top: 1px solid var(--line); color: #9199a3; font-size: 10px; font-weight: 700; letter-spacing: .12em; }

.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
h2 { margin: 0; font-size: clamp(35px, 4.4vw, 54px); line-height: 1.13; letter-spacing: -.065em; }
.section-body { max-width: 650px; color: #626c78; font-size: 14px; }
.section-body p { margin: 0 0 18px; }
.body-lede { color: var(--ink); font-size: 19px; line-height: 1.55; letter-spacing: -.025em; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.about-facts div { display: flex; flex-direction: column; gap: 5px; }
.fact-label { color: #929ba6; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.about-facts strong { color: #313943; font-size: 12px; font-weight: 650; }

.section-top { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 55px; }
.section-top .eyebrow { margin-bottom: 18px; }
.section-intro { max-width: 360px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.featured-projects { border-top: 1px solid var(--line); }
.project-card { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 220px; gap: 28px; align-items: center; min-height: 270px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.project-index { align-self: start; padding-top: 4px; color: #9ba4ae; font-size: 12px; font-weight: 700; }
.project-main { max-width: 700px; }
.project-kicker { margin-bottom: 9px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.project-main h3, .small-project h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -.045em; }
.project-main p, .small-project p { max-width: 680px; margin: 0 0 17px; color: #66717d; font-size: 13px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0 18px; }
.tag-list span { display: inline-flex; padding: 4px 9px; border: 1px solid #e1e5ea; border-radius: 5px; color: #697481; font-size: 10px; font-weight: 600; line-height: 1.4; }
.project-link { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); font-size: 12px; font-weight: 750; transition: color .2s ease; }
.project-link span { color: var(--accent); }
.project-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 200px; height: 156px; justify-self: end; border: 1px solid #e5e8ed; border-radius: 14px; background: #f0f2f6; color: #6d7888; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.project-mark strong { color: #283448; font-size: 37px; letter-spacing: -.07em; }
.project-mark i { color: var(--accent); font-size: 20px; font-style: normal; }
.mark-ai { background: #eef0f7; }
.mark-ai strong { color: var(--accent); }
.mark-link { flex-direction: row; gap: 11px; background: #eef2f3; }
.mark-link b { color: var(--accent); font-size: 27px; }
.mark-hostel { background: #eff2ed; }
.mark-hostel strong { color: #465f47; }
.other-projects-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 60px 0 20px; }
.other-projects-heading h3 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.other-projects-heading span { color: #9aa2ad; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.small-project { position: relative; min-height: 255px; padding: 25px 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease; }
.small-project:hover { background: rgba(255,255,255,.7); }
.small-project-top { display: flex; justify-content: space-between; margin-bottom: 26px; color: #929ba6; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.small-project h3 { font-size: 19px; }
.small-project p { min-height: 62px; font-size: 12px; }
.small-project .tag-list { margin-bottom: 0; }
.whole-card-link { position: absolute; inset: 0; }
.small-project:focus-within, .small-project:focus-within h3 { outline: 2px solid var(--accent); outline-offset: -2px; }

.contribution { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contribution-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.contribution-label { color: #27865e; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.contribution-date { color: #9ba3ad; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.contribution h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.04em; }
.contribution p { margin: 0 0 13px; color: #66717d; font-size: 13px; }
.contribution .contribution-result { color: #343d48; font-size: 12px; font-weight: 700; }
.secondary-contribution { margin-top: 16px; border-style: dashed; background: transparent; }
.secondary-contribution .contribution-label { color: var(--accent); }

.skills-layout { border-top: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.skill-number { color: #9ca5af; font-size: 11px; font-weight: 700; }
.skill-group h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.025em; }
.skill-group p { margin: 0; color: #5f6975; font-size: 13px; }
.skill-group small { display: block; margin-top: 4px; color: #929ba5; font-size: 11px; }
.interest-content { max-width: 650px; }
.interest-list { margin: 30px 0; border-top: 1px solid var(--line); }
.interest-list div { display: flex; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.interest-list span { color: var(--accent); font-size: 10px; font-weight: 750; }
.interest-list strong { font-size: 13px; font-weight: 650; }
.interest-note { color: var(--muted); font-size: 12px; }

.contact-section { padding: 105px 0 96px; background: var(--dark); color: #fff; }
.contact-inner { max-width: var(--container); }
.contact-section .eyebrow { color: var(--dark-muted); }
.contact-section h2 { font-size: clamp(48px, 7vw, 82px); }
.contact-section h2 span { color: #9db7ff; }
.contact-section .contact-inner > p:not(.eyebrow) { max-width: 470px; margin: 22px 0 28px; color: var(--dark-muted); font-size: 14px; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #dfe7ff; }
.contact-links { display: flex; gap: 23px; margin-top: 38px; }
.contact-links a { color: #c0c9d5; font-size: 12px; font-weight: 650; transition: color .2s ease; }
.contact-links span { color: #9db7ff; }
.site-footer { background: #10151c; color: #87919e; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; font-size: 10px; }
.footer-inner .brand { color: #fff; }

.reveal { opacity: 0; transform: translateY(15px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .section { padding: 85px 0; }
  .hero { padding-top: 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-aside { display: grid; grid-template-columns: 70px 1fr; column-gap: 20px; max-width: 560px; align-items: center; }
  .monogram { grid-row: span 3; width: 70px; height: 70px; margin: 0; border-radius: 17px; }
  .aside-label { align-self: end; }
  .aside-copy { align-self: start; }
  .aside-link { margin-top: 8px; }
  .two-column { grid-template-columns: 1fr; gap: 38px; }
  .section-top { align-items: start; flex-direction: column; gap: 18px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .hero { min-height: auto; padding: 85px 0 22px; }
  .hero h1 { font-size: clamp(48px, 12vw, 68px); }
  .hero-lede { margin-top: 22px; font-size: 16px; }
  .hero-meta { gap: 8px; margin-top: 45px; }
  .hero-meta span:last-child { flex-basis: 100%; }
  .meta-divider { display: none; }
  .hero-bottom { margin-top: 65px; font-size: 8px; }
  .section { padding: 72px 0; }
  h2 { font-size: 39px; }
  .about-facts { grid-template-columns: 1fr; gap: 16px; }
  .project-card { grid-template-columns: 30px minmax(0,1fr); gap: 14px; padding: 30px 0; }
  .project-mark { display: none; }
  .project-main h3 { font-size: 23px; }
  .project-grid { grid-template-columns: 1fr; }
  .small-project { min-height: auto; padding: 22px; }
  .small-project p { min-height: 0; }
  .other-projects-heading { align-items: start; flex-direction: column; gap: 5px; margin-top: 45px; }
  .contribution { padding: 21px; }
  .skill-group { grid-template-columns: 34px 1fr; gap: 12px; }
  .contact-section { padding: 78px 0 70px; }
  .contact-section h2 { font-size: 54px; }
  .footer-inner { min-height: 92px; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-block: 19px; }
  .footer-inner span:nth-child(2) { order: 3; flex-basis: 100%; }
}

/* Keeps the supplementary experiments visually quieter than featured work. */
.project-grid-extra .small-project { background: rgba(255,255,255,.38); }
.project-grid-extra .small-project:hover { background: rgba(255,255,255,.82); }


/* Portfolio update: personal portrait, education, project notes and SIH certificate. */
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: clamp(42px, 7vw, 90px); }
.hero-aside { width: 100%; max-width: 380px; padding: 0; justify-self: end; }
.portrait-frame { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 5; border: 1px solid #e1e5eb; border-radius: 18px; background: #eef0f3; box-shadow: 0 18px 55px rgba(20,30,48,.08); }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-frame figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; background: linear-gradient(transparent, rgba(12,16,23,.72)); color: #fff; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.portrait-note { max-width: 330px; margin: 14px 0 0; color: #788391; font-size: 11px; text-align: right; }
.hero-role { margin: 20px 0 0; color: #3e4b5c; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.hero-role span { color: var(--accent); padding-inline: 3px; }
.hero-tagline { margin: -10px 0 0; color: var(--accent); font-size: 13px; font-weight: 700; }
.education-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.education-card h3 { margin: 0 0 7px; font-size: 22px; line-height: 1.25; letter-spacing: -.04em; }
.education-card p { margin: 0 0 8px; color: #65707d; font-size: 13px; }
.education-card .education-degree { color: var(--ink); font-size: 15px; font-weight: 700; }
.education-note { margin-top: 18px !important; font-size: 12px; }
.feature-list { margin: -2px 0 16px; padding-left: 19px; color: #66717d; font-size: 12px; }
.feature-list li { padding: 3px 0; }
.project-optional { background: rgba(255,255,255,.38); }
.project-optional .small-project-top span:nth-child(2) { color: var(--accent); }
.project-optional .project-link { position: relative; z-index: 1; margin-top: 12px; }
.hackathon-card { margin-top: 16px; }
.certificate-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: center; margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.certificate-copy h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.04em; }
.certificate-copy p:not(.project-kicker) { margin: 0 0 17px; color: #66717d; font-size: 12px; }
.certificate-preview { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f2f5fa; }
.certificate-preview img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.certificate-preview:hover img { transform: scale(1.025); }
.certificate-preview span { position: absolute; right: 10px; bottom: 10px; padding: 7px 9px; border-radius: 5px; background: rgba(21,26,34,.9); color: white; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.career-note { margin-top: 28px; padding: 22px; border-left: 3px solid var(--accent); background: #eef2fa; }
.career-note p:last-child { margin: 8px 0 0; color: #596574; font-size: 13px; }
.interest-tags { margin-top: 22px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { justify-self: start; max-width: min(100%, 390px); }
  .portrait-note { text-align: left; }
}
@media (max-width: 640px) {
  .hero-aside { max-width: 100%; }
  .portrait-frame { max-width: 360px; }
  .hero-role { max-width: 420px; line-height: 1.7; }
  .certificate-card { grid-template-columns: 1fr; padding: 19px; }
  .certificate-preview { order: -1; }
}
