:root {
  color-scheme: light;
  --ink: #18212c;
  --muted: #58636f;
  --accent: #d95d0f;
  --green: #135c4c;
  --paper: #fffdfa;
  --line: rgba(24, 33, 44, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans Devanagari", "Hind", sans-serif;
  background: linear-gradient(180deg, #fff9f3, #f7f1e8);
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: rgba(255, 253, 250, .9); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.brand { color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.brand small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
nav a { color: var(--muted); font-weight: 600; }
main { min-height: 65vh; padding: 56px 0 72px; }
.page-heading { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.2; }
.lead { max-width: 70ch; margin: 0 0 32px; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.panel { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 16px 42px rgba(24, 33, 44, .07); }
.panel h2 { margin: 28px 0 10px; font-size: 1.35rem; }
.panel h2:first-child { margin-top: 0; }
.panel p, .panel li { color: var(--muted); line-height: 1.9; }
.panel ul { padding-left: 22px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 32px rgba(24, 33, 44, .06); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #eee; }
.card-content { padding: 20px; }
.card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0 0 14px; color: var(--muted); line-height: 1.8; }
.card-link { font-weight: 700; }
.link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.link-list a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-list strong { display: block; margin-bottom: 4px; color: var(--ink); }
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer-inner p { margin: 0; }
@media (max-width: 700px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { gap: 10px 16px; }
  main { padding: 38px 0 52px; }
  .card-grid, .link-list { grid-template-columns: 1fr; }
}
.brand-with-logo { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 3px 14px rgba(212, 84, 15, .12); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.profile-content { padding: 0 0 64px; }
.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 218, 173, .65), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(252, 242, 43, .22), transparent 24%),
    linear-gradient(135deg, #fff7ef, #fff4e4 48%, #f8fbf4);
}
.profile-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 36px; }
.profile-kicker { display: inline-flex; margin: 0 0 16px; padding: 8px 14px; border-radius: 999px; background: rgba(213, 0, 50, .08); color: #9e1730; font-size: .9rem; font-weight: 800; }
.profile-title { margin: 0 0 16px; color: #101828; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.04em; line-height: 1.15; }
.profile-subtitle { margin: 0 0 18px; color: var(--green); font-size: 1.1rem; font-weight: 700; }
.profile-intro { max-width: 62ch; margin: 0 0 24px; color: #4c5a68; font-size: 1.08rem; line-height: 1.9; }
.profile-hero-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 21px; border-radius: 999px; background: linear-gradient(135deg, #d4540f, #ff7f24); box-shadow: 0 14px 28px rgba(212, 84, 15, .2); color: #fff; font-weight: 800; }
.profile-hero-link:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.profile-visual { position: relative; overflow: hidden; min-height: 360px; border: 1px solid rgba(16, 24, 40, .08); border-radius: 30px; background: linear-gradient(145deg, #fff, #f3eadc); box-shadow: 0 24px 54px rgba(16, 24, 40, .13); }
.profile-visual img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); }
.profile-portrait { min-height: 420px; margin: 0; }
.profile-portrait img { min-height: 420px; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
.profile-visual-caption { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 15px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 18px; background: rgba(255, 255, 255, .84); color: #344054; font-weight: 700; backdrop-filter: blur(12px); }
.profile-section { padding: 54px 0; scroll-margin-top: 24px; }
.profile-section-alt { background: linear-gradient(180deg, rgba(255, 248, 241, .45), #fff8f1); }
.profile-section-heading { margin: 0 0 28px; color: #101828; font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.03em; line-height: 1.2; }
.profile-section-intro { max-width: 70ch; margin: -14px 0 26px; color: var(--muted); line-height: 1.8; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.profile-stat, .profile-card { border: 1px solid rgba(16, 24, 40, .08); border-radius: 20px; background: rgba(255, 255, 255, .88); box-shadow: 0 12px 28px rgba(24, 33, 44, .06); }
.profile-stat { min-height: 130px; padding: 20px; }
.profile-stat strong { display: block; margin-bottom: 8px; color: #d4540f; font-size: 1.05rem; }
.profile-stat span { color: var(--muted); line-height: 1.65; }
.profile-timeline { display: grid; gap: 0; margin: 0 0 0 10px; padding: 0; border-left: 2px solid rgba(217, 93, 15, .25); list-style: none; }
.profile-timeline-item { position: relative; display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 18px; padding: 0 0 28px 24px; }
.profile-timeline-item:last-child { padding-bottom: 0; }
.profile-timeline-item::before { position: absolute; top: 5px; left: -7px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #d95d0f; box-shadow: 0 0 0 2px rgba(217, 93, 15, .2); content: ""; }
.profile-timeline-item time { color: #a7460c; font-weight: 800; }
.profile-timeline-item h3 { margin: 0 0 6px; color: #18212c; font-size: 1.05rem; }
.profile-timeline-item p { margin: 0; color: var(--muted); line-height: 1.75; }
.profile-family { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: stretch; }
.profile-family-card, .profile-note { padding: 26px; border-radius: 22px; }
.profile-family-card { background: linear-gradient(135deg, #fff, #fff2e4); box-shadow: 0 16px 36px rgba(24, 33, 44, .07); }
.profile-family-card h3 { margin: 0 0 8px; color: #a7460c; font-size: 1.3rem; }
.profile-family-card p, .profile-note { color: var(--muted); line-height: 1.85; }
.profile-family-card p { margin: 0; }
.profile-note { border: 1px solid var(--line); background: rgba(255, 255, 255, .72); }
.profile-achievements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-card { padding: 24px; }
.profile-card h3 { margin: 0 0 10px; color: #18212c; font-size: 1.15rem; }
.profile-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.profile-sources { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.profile-sources a { display: block; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; }
.profile-sources small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; line-height: 1.6; }
.profile-footer { position: relative; border-top: 0; background: linear-gradient(135deg, #fff7ef, #fff3e0); }
.profile-footer::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, #ff9933, #138808, #000080); content: ""; }
@media (max-width: 900px) {
  .profile-hero-grid { grid-template-columns: 1fr; }
  .profile-visual { min-height: 320px; }
  .profile-visual img { min-height: 320px; max-height: 480px; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .profile-hero { padding: 42px 0; }
  .profile-hero-grid { gap: 24px; }
  .profile-visual, .profile-visual img { min-height: 260px; }
  .profile-section { padding: 40px 0; }
  .profile-stats, .profile-achievements, .profile-family { grid-template-columns: 1fr; }
  .profile-timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .profile-family-card, .profile-note { padding: 21px; }
}
