/* ==========================================================
   Hason Raja Archive · Heritage theme
   Classical parchment, ink and antique-gold palette with
   Bengali-first typography (Tiro Bangla + Noto Serif Bengali)
   ========================================================== */

:root {
  --parchment: #f5eddc;
  --parchment-deep: #ecdfc4;
  --paper: #fbf7ee;
  --ink: #2b1d12;
  --ink-soft: #4a3828;
  --muted: #7a6650;
  --maroon: #7b1e1e;
  --maroon-deep: #5a1414;
  --gold: #a9823a;
  --gold-light: #d4b46a;
  --rule: rgba(169, 130, 58, .45);
  --shadow: 0 18px 40px -18px rgba(43, 29, 18, .45);

  --f-display: "Tiro Bangla", "Noto Serif Bengali", serif;
  --f-body: "Noto Serif Bengali", "Tiro Bangla", serif;

  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(169, 130, 58, .10), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Ornaments ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); margin: 0 auto;
}
.ornament::before,
.ornament::after {
  content: ""; height: 1px; width: 72px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 34px; height: 14px; flex: none; }

.eyebrow {
  font-family: var(--f-display);
  color: var(--maroon);
  font-size: 1.05rem;
  margin: 0 0 .6rem;
}

.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .25em; }
.section-head .ornament { margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1;
  padding: 15px 28px 13px;
  border: 1px solid var(--maroon);
  border-radius: 2px;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  cursor: pointer;
}
.btn-solid { background: var(--maroon); color: #fbf3e2; box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 4px rgba(212, 180, 106, .6); }
.btn-solid:hover { background: var(--maroon-deep); color: #fff; border-color: var(--maroon-deep); box-shadow: inset 0 0 0 3px var(--maroon-deep), inset 0 0 0 4px var(--gold-light); }
.btn-ghost { background: transparent; color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fbf3e2; }
.btn-sm { font-size: .95rem; padding: 11px 18px 9px; }

.link-more {
  font-family: var(--f-display);
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--maroon);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.link-more::after { content: "→"; font-family: Georgia, serif; transition: transform .2s ease; }
.link-more:hover::after { transform: translateX(4px); }

/* ---------- Top band ---------- */
.topband {
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--f-display);
  font-size: .92rem;
  text-align: center;
  padding: 7px 16px 6px;
  letter-spacing: .02em;
}
.topband span { opacity: .55; margin: 0 .6em; }

/* ---------- Header / Nav ---------- */
.site-header { position: relative; z-index: 52; }
.masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-top: 22px; padding-bottom: 18px;
}
.mast-side { display: flex; align-items: center; gap: 12px; }
.mast-left { font-family: var(--f-display); color: var(--muted); font-size: 1.05rem; }
.mast-left i { width: 34px; height: 1px; background: var(--gold); display: inline-block; }
.mast-right { justify-content: flex-end; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-align: center; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.45rem; color: var(--maroon);
  background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--rule);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--f-display); font-size: 2.1rem; color: var(--ink); line-height: 1.2; }
.brand-sub { font-size: .82rem; color: var(--muted); white-space: nowrap; }

.nav-row {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 237, 220, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--rule);
}
.nav { display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a,
.nav > li > button {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display);
  font-size: 1.02rem;
  color: var(--ink);
  padding: 10px 12px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav > li > a:hover,
.nav > li > button:hover,
.nav > li.is-current > a { color: var(--maroon); }
.nav > li.is-current > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold);
}
.caret { width: 9px; height: 9px; transition: transform .2s ease; }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translate(-50%, 6px);
  min-width: 230px;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.submenu::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px;
  background: var(--paper); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule);
  transform: translateX(-50%) rotate(45deg);
}
.submenu a {
  display: block; padding: 8px 22px; color: var(--ink-soft); font-size: .98rem;
}
.submenu a:hover { color: var(--maroon); background: rgba(169, 130, 58, .1); }
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.open > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .caret,
.has-sub.open .caret { transform: rotate(180deg); }

.nav-cta { flex: none; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--rule); background: var(--paper);
  border-radius: 2px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s ease, background .25s;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 110px; position: relative; overflow: hidden; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--rule);
  outline: 1px solid rgba(169, 130, 58, .28); outline-offset: 16px;
  background: radial-gradient(circle, rgba(255,255,255,.65), rgba(255,255,255,0) 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; position: relative;
}
.hero-title {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .15em;
}
.hero-title .honorific {
  display: block; font-size: .36em; color: var(--maroon); margin-bottom: .2em; line-height: 1.3;
}
.hero-role {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.rotator { display: inline-grid; vertical-align: bottom; color: var(--maroon); }
.rotator > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(.35em);
  transition: opacity .7s ease, transform .7s ease;
  white-space: nowrap;
}
.rotator > span.on { opacity: 1; transform: none; }
.hero-dates {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-size: 1.15rem; color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero-dates i { width: 38px; height: 1px; background: var(--gold); display: inline-block; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait {
  position: relative; margin: 0 auto; max-width: 380px; width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #c9a75c, #8a6a2c 45%, #d8bd78 70%, #8e6d2e);
  box-shadow: 0 30px 60px -25px rgba(43, 29, 18, .7), 0 0 0 1px rgba(43, 29, 18, .3);
}
.portrait::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255, 240, 200, .55); pointer-events: none;
}
.portrait-inner { position: relative; background: var(--ink); padding: 10px; }
.portrait-inner img { width: 100%; aspect-ratio: 688 / 924; object-fit: cover; filter: sepia(.25) contrast(1.04); }
.portrait-inner::after {
  content: ""; position: absolute; inset: 10px; box-shadow: inset 0 0 60px rgba(30, 18, 8, .55); pointer-events: none;
}
.portrait-plate {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--rule), 0 10px 20px -10px rgba(0,0,0,.4);
  padding: 8px 26px 6px; white-space: nowrap; text-align: center;
  font-family: var(--f-display); font-size: 1.05rem; color: var(--ink);
}
.portrait-plate small { display: block; font-size: .78rem; color: var(--muted); }
.corner { position: absolute; width: 46px; height: 46px; color: var(--gold); }
.corner svg { width: 100%; height: 100%; }
.corner.tl { top: -26px; left: -26px; }
.corner.tr { top: -26px; right: -26px; transform: scaleX(-1); }
.corner.bl { bottom: -26px; left: -26px; transform: scaleY(-1); }
.corner.br { bottom: -26px; right: -26px; transform: scale(-1, -1); }

/* ---------- At a glance ---------- */
.glance { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.glance-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.glance-text { font-size: 1.1rem; color: var(--ink-soft); }

.glance-text p:last-child { margin-bottom: 0; }
.facts {
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule); outline-offset: 5px;
  background: var(--parchment);
  padding: 30px 30px 14px;
  margin: 6px;
}
.facts h3 { font-size: 1.45rem; text-align: center; margin-bottom: .3em; }
.facts .ornament { margin-bottom: 18px; }
.facts dl { margin: 0; }
.facts dt { font-family: var(--f-display); color: var(--maroon); font-size: .95rem; }
.facts dd { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule); color: var(--ink); line-height: 1.6; }
.facts dd:last-child { border-bottom: 0; }

/* ---------- Verse band ---------- */
.verse {
  background: var(--maroon-deep);
  background-image:
    radial-gradient(ellipse at center, rgba(255, 220, 160, .12), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 4l4 16 16 4-16 4-4 16-4-16-16-4 16-4z' fill='none' stroke='%23d4b46a' stroke-opacity='.12'/%3E%3C/svg%3E");
  color: #f6e8c8;
  text-align: center;
  padding: 88px 0;
}
.verse blockquote { margin: 0 auto; max-width: 760px; }
.verse p {
  font-family: var(--f-display);
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  line-height: 1.7;
  margin: 0;
}
.verse cite { display: block; margin-top: 22px; font-style: normal; color: var(--gold-light); font-family: var(--f-display); }
.verse .ornament { color: var(--gold-light); margin-bottom: 26px; }
.verse .ornament::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.verse .ornament::after { background: linear-gradient(90deg, var(--gold-light), transparent); }

/* ---------- Plaques (quick links) ---------- */
.plaques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plaque {
  position: relative; text-align: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 44px 30px 34px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.plaque::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--rule); pointer-events: none; }
.plaque:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plaque-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--maroon);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--rule);
}
.plaque-icon svg { width: 28px; height: 28px; }
.plaque h3 { font-size: 1.5rem; margin-bottom: .35em; }
.plaque p { color: var(--muted); margin-bottom: 1.4em; }

/* ---------- Chapters (identity & family) ---------- */
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chapter {
  padding: 40px 30px 36px; position: relative; display: flex; flex-direction: column;
  transition: background .3s ease;
}
.chapter + .chapter { border-left: 1px solid var(--rule); }
.chapter:hover { background: rgba(251, 247, 238, .7); }
.chapter-num {
  font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--gold);
  opacity: .8; margin-bottom: 14px;
}
.chapter h3 { font-size: 1.55rem; margin-bottom: .45em; }
.chapter p { color: var(--ink-soft); font-size: 1rem; flex: 1; }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--parchment-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; }
.philo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.cameo {
  position: relative; max-width: 420px; margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 50% / 46%;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 10px var(--parchment-deep), 0 0 0 11px var(--rule), var(--shadow);
  overflow: hidden;
  display: grid; place-items: center;
}
.cameo img { width: 118%; max-width: none; mix-blend-mode: multiply; transform: translateY(4%); }
.philo-list { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: philo; }
.philo-list li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.philo-list li:last-child { border-bottom: 1px solid var(--rule); }
.philo-num {
  width: 52px; height: 52px; border: 1px solid var(--gold); transform: rotate(45deg);
  display: grid; place-items: center; margin: 4px 0 0 3px; background: var(--paper);
}
.philo-num span { transform: rotate(-45deg); font-family: var(--f-display); font-size: 1.35rem; color: var(--maroon); }
.philo-list h3 { font-size: 1.45rem; margin-bottom: .25em; }
.philo-list h3 a { color: var(--ink); }
.philo-list h3 a:hover { color: var(--maroon); }
.philo-list p { margin: 0; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}
.gallery figure {
  margin: 0; position: relative; overflow: hidden; cursor: zoom-in;
  background: var(--ink);
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 1px var(--rule), 0 14px 28px -18px rgba(43, 29, 18, .6);
}
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(6), .gallery figure:nth-child(7) { grid-column: span 2; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.55) saturate(.8) contrast(1.02);
  transition: filter .5s ease, transform .8s ease;
}
.gallery figure:hover img { filter: none; transform: scale(1.04); }
.gallery-foot { text-align: center; margin-top: 44px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(24, 15, 8, .92);
  align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox.show { display: flex; }
.lightbox img { max-height: 86vh; max-width: min(1100px, 92vw); border: 8px solid var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button {
  position: absolute; background: none; border: 1px solid rgba(212, 180, 106, .5); color: var(--gold-light);
  width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; font-family: Georgia, serif;
}
.lightbox button:hover { background: rgba(212, 180, 106, .15); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 232, 200, .72);
  padding: 80px 0 0;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 20px);
  opacity: .5;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .brand-name { color: #f6e8c8; font-size: 2rem; }
.footer-brand p { margin-top: 12px; font-size: .95rem; max-width: 22em; }
.site-footer h4 { color: var(--gold-light); font-size: 1.2rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: rgba(246, 232, 200, .78); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 64px; border-top: 1px solid rgba(212, 180, 106, .2);
  padding: 22px 0; font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--paper); color: var(--maroon);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav > li > a, .nav > li > button { padding: 10px 8px; font-size: .98rem; }
}

@media (max-width: 991px) {
  .menu-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 60;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    padding: 90px 28px 32px;
    transform: translateX(100%); transition: transform .35s ease;
    overflow-y: auto;
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
  }
  .nav-open .nav-panel { transform: none; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(24, 15, 8, .45); z-index: 55;
    opacity: 0; visibility: hidden; transition: opacity .3s ease;
  }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > li { border-bottom: 1px solid var(--rule); }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.12rem; }
  .nav > li.is-current > a::after { display: none; }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 10px 12px; display: none; min-width: 0;
  }
  .submenu::before { display: none; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { transform: none; }
  .has-sub.open > .submenu { display: block; transform: none; }
  .submenu a { padding: 7px 8px; }
  .nav-panel .nav-cta { display: flex; margin-top: 24px; }
  .nav-panel .nav-cta .btn { width: 100%; }
  .mast-right .nav-cta, .mast-left { display: none; }
  .menu-toggle { position: relative; z-index: 70; }
  .nav-row { position: static; border: 0; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header {
    position: sticky; top: 0; background: rgba(245, 237, 220, .96);
    border-bottom: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--rule);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .masthead { grid-template-columns: 1fr auto; padding-top: 12px; padding-bottom: 12px; }
  .brand { flex-direction: row; text-align: left; gap: 12px; }
  .brand-name { font-size: 1.6rem; }
  .hero-visual::before { width: 420px; height: 420px; }

  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; text-align: center; }
  .hero-text { order: 2; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .portrait { max-width: 340px; }

  .glance-grid, .philo-grid { grid-template-columns: 1fr; gap: 48px; }
  .cameo { max-width: 320px; }
  .plaques { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .chapter:nth-child(3) { border-left: 0; }
  .chapter:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery figure:nth-child(6), .gallery figure:nth-child(7) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
  .nav-panel { display: flex; align-items: center; justify-content: center; }
  .menu-toggle { display: none; }
  .nav-panel .nav-cta { display: none; }
  .nav-scrim { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .topband { font-size: .82rem; }
  .brand-sub { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.2rem; }
  .brand-name { font-size: 1.45rem; }
  .hero-visual::before { width: 340px; height: 340px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .portrait { max-width: 290px; padding: 14px; }
  .corner { width: 34px; height: 34px; }
  .corner.tl, .corner.tr { top: -18px; } .corner.bl, .corner.br { bottom: -18px; }
  .corner.tl, .corner.bl { left: -18px; } .corner.tr, .corner.br { right: -18px; }
  .chapters { grid-template-columns: 1fr; }
  .chapter + .chapter { border-left: 0; border-top: 1px solid var(--rule); }
  .chapter { padding: 32px 4px; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .gallery figure { border-width: 4px; }
  .facts { padding: 24px 20px 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

@media (max-width: 991px) {
  .nav-open .site-header { z-index: 65; }
}

@media (min-width: 992px) {
  .hero-dates { display: none; }
}

/* ==========================================================
   Inner pages
   ========================================================== */

/* ---------- Page banner ---------- */
.page-banner {
  position: relative; text-align: center;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .6), transparent 65%),
    var(--parchment-deep);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.page-banner::before,
.page-banner::after {
  content: ""; position: absolute; top: 50%; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid var(--rule); outline: 1px solid rgba(169, 130, 58, .22); outline-offset: 14px;
  transform: translateY(-50%); pointer-events: none;
}
.page-banner::before { left: -250px; }
.page-banner::after { right: -250px; }
.page-banner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .2em; }
.page-banner .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 40em; margin: 14px auto 0; }
.page-banner .meta { color: var(--muted); font-size: .98rem; margin-top: 16px; display: flex; gap: 10px 18px; justify-content: center; flex-wrap: wrap; }
.page-banner .meta span + span::before { content: "◆"; color: var(--gold); font-size: .6em; margin-right: 18px; vertical-align: middle; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--maroon); }
.crumbs i { font-style: normal; color: var(--gold); margin: 0 .55em; }

/* ---------- Reading progress ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--maroon), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Article layout ---------- */
.article-wrap { padding: 72px 0 40px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: center; gap: 64px; }
.article-grid.has-toc { grid-template-columns: 250px minmax(0, 740px); }
.article-grid:not(.has-toc) .prose { max-width: 760px; margin: 0 auto; width: 100%; }

.toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; }
.toc h2 { font-size: 1.15rem; color: var(--maroon); margin-bottom: .6em; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.toc a:hover { color: var(--maroon); }
.toc a.active { color: var(--maroon); border-left-color: var(--maroon); }

.prose { font-size: 1.12rem; line-height: 2; color: var(--ink); }
.prose > p { margin: 0 0 1.25em; text-align: justify; hyphens: none; }
.prose > p:first-child::first-line { font-weight: 500; }
.prose h2 {
  font-size: 1.65rem; margin: 2.1em 0 .8em; padding-bottom: .35em; scroll-margin-top: 90px;
  border-bottom: 1px solid var(--rule); position: relative;
}
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--gold); }
.prose .verse-block {
  margin: 1.6em 0; padding: 22px 28px; position: relative;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  font-family: var(--f-display); font-size: 1.15rem; line-height: 2; color: var(--ink-soft);
  box-shadow: 0 10px 24px -20px rgba(43, 29, 18, .5);
}
.prose .info-list {
  margin: 0 0 2em; padding: 26px 30px; background: var(--paper);
  border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 5px;
  display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 1.02rem; line-height: 1.7;
}
.prose .info-list dt { font-family: var(--f-display); color: var(--maroon); }
.prose .info-list dd { margin: 0; }
.prose .info-list dt:not(:first-of-type),
.prose .info-list dt:not(:first-of-type) + dd { border-top: 1px dashed var(--rule); padding-top: 10px; }
.prose figure.feature { margin: 0 0 2.2em; padding: 12px; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.prose figure.feature img { width: 100%; }
.prose a { border-bottom: 1px solid var(--rule); }
.prose[lang="en"] { font-family: Georgia, "Times New Roman", var(--f-body); font-size: 1.1rem; line-height: 1.85; }
.prose[lang="en"] > p { text-align: left; }
.prose[lang="en"] .verse-block { font-family: Georgia, serif; font-style: italic; }

.article-end { text-align: center; margin: 56px 0 0; color: var(--gold); }

/* ---------- Chapter navigation ---------- */
.chapter-nav { padding: 24px 0 96px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.pager a {
  display: block; padding: 22px 26px; background: var(--paper); border: 1px solid var(--rule);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; color: var(--ink);
}
.pager a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.pager small { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.pager strong { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--maroon); }
.pager .next { text-align: right; grid-column: 2; }
.siblings { max-width: 1000px; margin: 40px auto 0; text-align: center; }
.siblings h2 { font-size: 1.35rem; margin-bottom: .2em; }
.siblings .ornament { margin-bottom: 18px; }
.siblings ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.siblings a { display: inline-block; padding: 8px 18px 7px; border: 1px solid var(--rule); color: var(--ink-soft); background: var(--paper); font-size: .98rem; }
.siblings a:hover { border-color: var(--maroon); color: var(--maroon); }
.siblings a[aria-current] { background: var(--maroon); border-color: var(--maroon); color: #fbf3e2; }

/* ---------- Captioned gallery (museum / photos) ---------- */
.exhibit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.exhibit figure { margin: 0; cursor: zoom-in; }
.exhibit .frame {
  background: var(--paper); padding: 10px; border: 1px solid var(--rule);
  box-shadow: 0 16px 30px -22px rgba(43, 29, 18, .7); overflow: hidden;
}
.exhibit img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: sepia(.45) saturate(.85); transition: filter .5s ease, transform .8s ease;
}
.exhibit figure:hover img, .exhibit figure:focus img { filter: none; transform: scale(1.03); }
.exhibit figure:focus { outline: 2px solid var(--gold); outline-offset: 4px; }
.exhibit figcaption { text-align: center; padding: 16px 8px 0; }
.exhibit figcaption small { display: block; font-size: .82rem; color: var(--gold); margin-bottom: 2px; font-family: var(--f-display); }
.exhibit figcaption span { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); line-height: 1.5; }
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0;
  color: #f6e8c8; font-family: var(--f-display); font-size: 1.15rem; padding: 0 80px;
}

/* ---------- Essays list ---------- */
.essays { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.essay {
  display: grid; grid-template-columns: 180px 1fr; background: var(--paper); border: 1px solid var(--rule);
  transition: transform .25s ease, box-shadow .25s ease;
}
.essay:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.essay-img { display: block; overflow: hidden; background: var(--ink); }
.essay-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35); transition: filter .4s ease; }
.essay:hover .essay-img img { filter: none; }
.essay-body { padding: 24px 26px; display: flex; flex-direction: column; }
.essay-cat { font-family: var(--f-display); font-size: .88rem; color: var(--gold); }
.essay h2 { font-size: 1.35rem; margin: .2em 0 .5em; line-height: 1.45; }
.essay h2 a { color: var(--ink); }
.essay h2 a:hover { color: var(--maroon); }
.essay p { color: var(--ink-soft); font-size: .98rem; line-height: 1.8; flex: 1; }
.essay-author { font-family: var(--f-display); color: var(--muted); font-size: .95rem; border-top: 1px dashed var(--rule); padding-top: 12px; margin-top: 4px; }

/* ---------- Songs ---------- */
.songs {
  max-width: 1000px; margin: 0 auto; padding: 40px 48px; background: var(--paper);
  border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 6px;
  columns: 2; column-gap: 56px; column-rule: 1px solid var(--rule);
  list-style: none; counter-reset: song;
}
.songs li {
  counter-increment: song; break-inside: avoid;
  display: grid; grid-template-columns: 46px 1fr; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--rule);
  font-family: var(--f-display); font-size: 1.12rem; line-height: 1.55; color: var(--ink);
}
.songs li::before { content: counter(song, bengali) "."; color: var(--gold); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: stretch; }
.contact-card { background: var(--paper); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 6px; padding: 36px 34px; }
.contact-card h2 { font-size: 1.6rem; margin-bottom: .2em; }
.contact-card .ornament { justify-content: flex-start; margin-bottom: 24px; }
.contact-item { display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 18px 0; border-top: 1px dashed var(--rule); }
.contact-item .plaque-icon { width: 46px; height: 46px; margin: 0; }
.contact-item .plaque-icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: 1.15rem; color: var(--maroon); margin: 0 0 .2em; }
.contact-item address, .contact-item p { font-style: normal; margin: 0; color: var(--ink-soft); word-break: break-word; }
.map-frame { padding: 12px; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); min-height: 420px; display: flex; }
.map-frame iframe { width: 100%; min-height: 420px; border: 0; filter: sepia(.35) saturate(.9); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-family: var(--f-display); font-size: clamp(5rem, 16vw, 9rem); color: var(--gold); line-height: 1; margin-bottom: 10px; }

@media (max-width: 991px) {
  .article-grid.has-toc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; background: var(--paper); border: 1px solid var(--rule); padding: 20px 22px; }
  .exhibit { grid-template-columns: repeat(2, 1fr); }
  .essays { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-banner::before, .page-banner::after { display: none; }
}

@media (max-width: 600px) {
  .page-banner { padding: 48px 0 44px; }
  .article-wrap { padding: 48px 0 24px; }
  .prose { font-size: 1.05rem; line-height: 1.95; }
  .prose > p { text-align: left; }
  .prose .verse-block { padding: 18px 18px; font-size: 1.05rem; }
  .prose .info-list { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .prose .info-list dt:not(:first-of-type) + dd { border-top: 0; padding-top: 0; }
  .prose .info-list dd { margin-bottom: 8px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .exhibit { grid-template-columns: 1fr; }
  .essay { grid-template-columns: 1fr; }
  .essay-img { aspect-ratio: 16 / 9; }
  .songs { columns: 1; padding: 24px 20px; }
  .contact-card { padding: 26px 20px; }
  .map-frame, .map-frame iframe { min-height: 320px; }
  .lb-caption { padding: 0 16px; bottom: 84px; }
}

.prose .pending-note {
  text-align: center; padding: 48px 24px; background: var(--paper);
  border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 6px;
  font-family: var(--f-display); font-size: 1.35rem; color: var(--muted);
}
.prose .pending-note svg { display: block; margin: 0 auto 14px; color: var(--gold); }
.prose .pending-note + .article-end { display: none; }
.prose .info-list dt.full {
  grid-column: 1 / -1; text-align: center; color: var(--ink); font-size: 1.2rem;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 4px;
}
.prose .info-list dt.full + dt { border-top: 0 !important; padding-top: 0 !important; }
.prose .info-list dt.full + dt + dd { border-top: 0 !important; padding-top: 0 !important; }
.exhibit { display: flex; flex-wrap: wrap; justify-content: center; }
.exhibit figure { flex: 0 1 calc((100% - 56px) / 3); }
.contact-grid { grid-template-columns: 1.15fr 1.4fr; }
.contact-item p a { font-size: .95rem; overflow-wrap: anywhere; }
@media (max-width: 991px) { .exhibit figure { flex-basis: calc((100% - 28px) / 2); } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .exhibit figure { flex-basis: 100%; } }
