:root {
  --paper: #f3eee4;
  --paper-deep: #e7dfd1;
  --cream: #fbf8f2;
  --ink: #1a1714;
  --ink-soft: #5e564c;
  --ink-faint: #8a8176;
  --rose: #6f3940;
  --rose-hover: #5c2f35;
  --line: #d9d0c2;
  --line-strong: #c6baa8;
  --shadow-paper: 0 1px 0 rgba(26, 23, 20, 0.04), 0 18px 40px -28px rgba(26, 23, 20, 0.28);
  --shadow-soft: 0 0 0 1px rgba(26, 23, 20, 0.06), 0 12px 30px -20px rgba(26, 23, 20, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Cormorant Garamond", "Noto Serif Bengali", Georgia, serif;
  --body: "Figtree", "Noto Sans Bengali", ui-sans-serif, system-ui, sans-serif;
  --bn-display: "Noto Serif Bengali", "Cormorant Garamond", serif;
  --bn-body: "Noto Sans Bengali", "Figtree", ui-sans-serif, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.55; }
html[lang="bn"] body { font-family: var(--bn-body); }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { font-family: var(--bn-display); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { text-wrap: pretty; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
button { font-family: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sr-only:focus { position: absolute; width: auto; height: auto; clip: auto; margin: 0; padding: 0.5rem 0.75rem; background: var(--cream); z-index: 50; top: 0.75rem; left: 0.75rem; }
.paper-grain {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 23, 20, 0.035) 0.6px, transparent 0.6px), linear-gradient(180deg, rgba(255, 253, 248, 0.55), transparent 28%);
  background-size: 3px 3px, 100% 100%;
  min-height: 100vh;
}
.ornament { display: flex; align-items: center; gap: 0.85rem; color: var(--rose); }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.ornament-diamond { width: 6px; height: 6px; transform: rotate(45deg); background: var(--rose); flex: none; }
.portrait-frame { position: relative; background: var(--cream); box-shadow: var(--shadow-paper); }
.portrait-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in oklab, var(--rose) 35%, transparent); pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 40; transition: background-color 200ms, box-shadow 200ms, backdrop-filter 200ms; }
.site-header.is-solid { background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.header-row { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; }
@media (min-width: 768px) { .header-row { padding-left: 2rem; padding-right: 2rem; } }
.brand { min-width: 0; font-family: var(--display); font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle { display: inline-flex; align-items: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--cream) 80%, transparent); border-radius: 999px; padding: 0.2rem; font-size: 0.875rem; }
.lang-toggle button { min-height: 2.25rem; border: 0; background: transparent; border-radius: 999px; padding: 0 0.9rem; font-weight: 500; color: var(--ink-soft); }
.lang-toggle button.is-on { background: var(--ink); color: var(--cream); }
.btn-rose { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1rem; border-radius: 0.5rem; background: var(--rose); color: var(--cream); text-decoration: none; font-size: 0.875rem; font-weight: 500; border: 0; }
.btn-rose:hover { background: var(--rose-hover); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1rem; border-radius: 0.5rem; background: transparent; color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--line-strong); }
.btn-outline:hover { background: var(--cream); }
.icon { width: 1rem; height: 1rem; flex: none; }
.subnav { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.subnav-row { max-width: 72rem; margin: 0 auto; display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.35rem 1rem; }
@media (min-width: 768px) { .subnav-row { padding-left: 2rem; padding-right: 2rem; } }
.subnav a { flex: none; border-radius: 999px; padding: 0.5rem 0.75rem; font-size: 0.875rem; text-decoration: none; color: var(--ink-soft); }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { background: var(--ink); color: var(--cream); }
.hero { max-width: 72rem; margin: 0 auto; display: grid; gap: 3rem; align-items: end; padding: 2.5rem 1rem 5rem; }
@media (min-width: 768px) { .hero { grid-template-columns: 1.05fr 0.95fr; padding: 4rem 2rem 7rem; } }
.kicker { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--rose); }
.hero h1 { margin-top: 1rem; font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.95; font-weight: 500; }
.hero .ornament { margin: 1.75rem 0; max-width: 20rem; }
.tagline { max-width: 28rem; font-size: 1.125rem; color: var(--ink-soft); }
.intro { margin-top: 1.5rem; max-width: 36rem; color: var(--ink-soft); line-height: 1.7; }
.chips { margin: 2rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--cream) 80%, transparent); padding: 0.35rem 0.9rem; font-size: 0.875rem; color: var(--ink-soft); }
.hero-photo { justify-self: center; }
@media (min-width: 768px) { .hero-photo { justify-self: end; } }
.portrait-frame { width: min(100%, 22rem); border-radius: 0.75rem; padding: 0.75rem; }
@media (min-width: 768px) { .portrait-frame { width: 24rem; } }
.portrait-frame img { aspect-ratio: 3/4; width: 100%; border-radius: 0.4rem; object-fit: cover; }
.section { max-width: 72rem; margin: 0 auto; padding: 4rem 1rem; }
@media (min-width: 768px) { .section { padding: 6rem 2rem; } }
.section.alt { background: color-mix(in srgb, var(--cream) 55%, transparent); }
.sec-head { margin-bottom: 2.5rem; max-width: 40rem; }
.sec-num { font-family: var(--display); font-size: 0.875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); }
.sec-head h2 { margin-top: 0.5rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.sec-head p { margin: 0.75rem 0 0; color: var(--ink-soft); }
.facts { margin: 0; }
.fact { display: grid; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .fact { grid-template-columns: minmax(0, 11rem) 1fr; gap: 2rem; } }
.fact dt { font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.fact dd { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { border-radius: 0.5rem; background: var(--cream); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.card .rel { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); }
.card h3 { margin-top: 0.5rem; font-size: 1.5rem; font-weight: 500; }
.card .occ { margin: 0.25rem 0 0; color: var(--ink-soft); }
.card .notes { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink-soft); }
.timeline { position: relative; margin: 0; padding: 0 0 0 2rem; list-style: none; border-left: 1px solid var(--line); }
.timeline li { position: relative; margin-bottom: 2rem; }
.timeline .dot { position: absolute; top: 0.4rem; left: -2.45rem; width: 0.75rem; height: 0.75rem; transform: rotate(45deg); background: var(--rose); }
.timeline .year { font-size: 0.875rem; color: var(--rose); }
.timeline h3 { margin-top: 0.25rem; font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 500; }
.timeline .inst { margin: 0.25rem 0 0; color: var(--ink-soft); }
.meta-row { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.875rem; color: var(--ink-soft); }
.desc { margin: 0.75rem 0 0; max-width: 40rem; font-size: 0.875rem; line-height: 1.65; color: var(--ink-soft); }
.jobs { display: grid; gap: 2rem; }
.job { display: grid; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .job { grid-template-columns: 8.5rem 1fr; } }
.job .when { font-size: 0.875rem; color: var(--rose); }
.job h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 500; }
.job .org { margin: 0.25rem 0 0; color: var(--ink-soft); }
.job .loc { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--ink-faint); }
.job .desc { margin-top: 1rem; max-width: 40rem; font-size: 1rem; color: var(--ink-soft); }
.hobbies { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .hobbies { grid-template-columns: 1fr 1fr; } }
.hobby { display: flex; gap: 1rem; border-radius: 0.5rem; background: var(--cream); padding: 1.25rem; box-shadow: var(--shadow-soft); }
.hobby-ico { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--paper-deep); color: var(--rose); }
.hobby-ico svg { width: 1.25rem; height: 1.25rem; }
.hobby h3 { font-size: 1.25rem; font-weight: 500; }
.hobby p { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink-soft); }
.contacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; align-items: center; gap: 1rem; border-radius: 0.5rem; background: var(--cream); padding: 1.25rem; box-shadow: var(--shadow-soft); text-decoration: none; }
a.contact-item:hover { background: color-mix(in srgb, var(--paper-deep) 50%, var(--cream)); }
.contact-ico { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 999px; background: var(--paper-deep); color: var(--rose); }
.contact-item .lbl { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.contact-item .val { display: block; margin-top: 0.25rem; font-family: var(--display); font-size: 1.25rem; }
.gallery { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery button { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border: 0; padding: 0; border-radius: 0.4rem; background: var(--paper-deep); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery .cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(to top, rgba(26,23,20,0.7), transparent); padding: 0.75rem; text-align: left; font-size: 0.875rem; color: var(--cream); opacity: 0; transition: opacity 200ms; }
.gallery button:hover .cap { opacity: 1; }
.custom-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .custom-grid { grid-template-columns: 1.2fr 0.8fr; } }
.custom-body { max-width: 40rem; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.35; }
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1rem; text-align: center; }
.site-footer .name { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.site-footer p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--ink-faint); }
.section { scroll-margin-top: 7.5rem; }
.reveal { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; filter: none; transition: none; } }
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ink) 88%, transparent); padding: 1rem; }
.lb-btn { position: absolute; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--cream) 10%, transparent); color: var(--cream); }
.lb-btn:hover { background: color-mix(in srgb, var(--cream) 20%, transparent); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }
.lightbox figure { max-width: min(92vw, 1100px); max-height: 88vh; margin: 0; }
.lightbox img { max-height: 78vh; width: 100%; object-fit: contain; }
.lightbox figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.875rem; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.print-root { min-height: 100vh; background: var(--paper-deep); }
.preview-bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(10px); }
.preview-inner { max-width: 64rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; }
.preview-inner .title { font-family: var(--display); font-size: 1.125rem; margin-right: auto; }
.preview-docs { padding: 2rem 1rem 4rem; }
.err { color: #8f2d2d; font-size: 0.875rem; }
.a4-sheet { width: 210mm; height: 297mm; min-height: 297mm; max-height: 297mm; background: #fffdf8; color: #1a1714; box-shadow: 0 24px 60px -32px rgba(26, 23, 20, 0.45); margin: 0 auto; overflow: hidden; padding: 12mm 15mm; display: flex; flex-direction: column; }
.a4-sheet + .a4-sheet { margin-top: 2rem; }
.a4-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.a4-kicker { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: #6f3940; margin: 0; }
.a4-sheet h1 { margin-top: 0.5rem; font-size: 32px; font-weight: 500; line-height: 1.15; }
.a4-tag { margin-top: 0.5rem; max-width: 22rem; font-size: 12px; color: #5e564c; }
.a4-photo { flex: none; border: 1px solid #d9d0c2; background: #f3eee4; padding: 6px; }
.a4-photo img { width: 36mm; height: 46mm; object-fit: cover; }
.rule { margin: 0.75rem 0; display: flex; align-items: center; gap: 0.75rem; }
.rule span:first-child, .rule span:last-child { height: 1px; flex: 1; background: #d9d0c2; }
.rule i { width: 6px; height: 6px; transform: rotate(45deg); background: #6f3940; display: block; }
.a4-intro { margin: 0 0 1.25rem; max-width: 150mm; font-size: 12.5px; line-height: 1.65; color: #3c352d; }
.a4-sec { margin-bottom: 0.85rem; }
.a4-sec h2 { font-size: 16px; font-weight: 500; color: #6f3940; }
.a4-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.a4-table td { padding: 0.28rem 0; border-bottom: 1px solid #eadfce; vertical-align: top; }
.a4-table td:first-child { width: 34%; padding-right: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: #6f3940; }
.a4-fam { margin: 0; padding: 0; list-style: none; }
.a4-fam li { font-size: 12px; margin-bottom: 0.5rem; }
.a4-fam .rel { letter-spacing: 0.04em; text-transform: uppercase; color: #6f3940; }
.a4-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-top: 1px solid #eadfce; padding-top: 0.85rem; }
.a4-foot p { margin: 0; font-size: 10px; line-height: 1.5; color: #5e564c; }
.a4-url { margin-top: 0.25rem; word-break: break-all; }
.qr { width: 22mm; height: 22mm; }
.qr img, .qr canvas, .qr table { width: 22mm !important; height: 22mm !important; }
.a4-edu { margin: 0; padding: 0; list-style: none; }
.a4-edu li { font-size: 12px; padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid #eadfce; }
.a4-edu .row { display: flex; justify-content: space-between; gap: 1rem; }
.a4-edu .when { flex: none; color: #6f3940; }
.a4-muted { color: #5e564c; margin: 0.15rem 0 0; }
.a4-hobbies { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.a4-hobbies li { display: flex; gap: 0.5rem; font-size: 12px; }
.a4-hobbies svg { width: 14px; height: 14px; color: #6f3940; margin-top: 2px; flex: none; }
.a4-namebar { margin: 0 0 1rem; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #6f3940; }
.a4-end { margin-top: 2rem; font-size: 10px; color: #8a8176; }
.busy { opacity: 0.7; pointer-events: none; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }
.show-sm { display: inline; }
@media (min-width: 640px) { .show-sm { display: none; } }
@media print {
  body { background: white !important; }
  .no-print { display: none !important; }
  .print-root { background: white !important; padding: 0 !important; }
  .preview-docs { padding: 0 !important; }
  .a4-sheet { box-shadow: none !important; width: 210mm; height: 297mm; min-height: 297mm; max-height: 297mm; page-break-after: always; break-after: page; margin: 0 !important; }
  @page { size: A4; margin: 0; }
}
