/* ==========================================================
   Md. Mahedi Tanjir — site styles
   Calm analogous palette: slate blue -> blue-grey -> muted teal
   ========================================================== */
:root {
  /* Analogous "stage" palette: petrol blue -> teal -> sage */
  --stage-deep: #0f2a31;     /* darkest: footer, hero edges */
  --stage: #163c44;          /* header, hero */
  --stage-mid: #23545d;      /* spotlight glow */
  --ivory: #f3efe6;          /* text on dark */
  --sage-light: #a9cdc3;     /* eyebrow text on dark */
  --bg: #eaf1ef;             /* page background (pale sage) */
  --band: #d2e3de;           /* alternate section band */
  --surface: #f9fbfa;
  --ink: #142f36;
  --muted: #4f6a6f;
  --line: #c9dbd7;
  --primary: #23606a;
  --primary-dark: #163c44;
  --accent: #3d7f78;
  --soft: #e1ece9;
  --soft-teal: #d6e8e3;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 49, .08), 0 8px 24px rgba(15, 42, 49, .10);
  /* Fonts — other pairings to try: "Plus Jakarta Sans"+"Inter", "Lora"+"Open Sans", "Montserrat"+"Merriweather"
     (also update the Google Fonts link in the .html files) */
  --serif: "Playfair Display", "Tiro Bangla", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, "Tiro Bangla", sans-serif;
  --bn: "Tiro Bangla", "Nirmala UI", serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.bn { font-family: var(--bn); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow {
  font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 244, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; padding: 8px 11px; border-radius: 6px;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--primary-dark); background: var(--soft); font-weight: 600; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- sections ---------- */
main { min-height: 60vh; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: 56px 0 28px; background: linear-gradient(180deg, var(--soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.page-head p { max-width: 720px; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--soft); color: var(--primary-dark); }
.link-more { font-weight: 600; text-decoration: none; }
.link-more::after { content: " \2192"; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; background: linear-gradient(135deg, #eef3f5 0%, var(--bg) 55%, var(--soft-teal) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.hero .name-bn { font-family: var(--bn); color: var(--muted); font-size: 1.15rem; margin: -.2em 0 .6em; }
.hero .tagline { font-size: 1.05rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 1em; }
.hero .intro { color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.portrait {
  position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 1 / 1; background: var(--soft);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); border-radius: 14px; }
.affil { margin-top: 14px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .portrait { max-width: 360px; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 22px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 2rem/1.1 var(--serif); color: var(--primary); }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s;
}
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card .thumb { aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb.empty {
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(135deg, var(--soft) 0%, var(--soft-teal) 100%);
  font: 600 1.4rem/1.25 var(--serif); color: var(--primary-dark);
}
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .meta { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card .sub { font-size: .92rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag { font-size: .78rem; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--primary-dark); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 600 .9rem/1 var(--sans); padding: 9px 15px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.filters button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- production detail ---------- */
.crumbs { font-size: .9rem; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; }
.facts dl { margin: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.facts dd { margin: 2px 0 0; }
.lead-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: var(--soft); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 16px; }
.gallery button { padding: 0; border: 0; background: var(--soft); border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail .facts { order: -1; } }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .src { color: var(--muted); font-style: italic; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--accent); font-weight: 600; font-size: .95rem; }
.timeline .what b { display: block; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border-radius: 99px; background: var(--soft-teal); color: #2a5c58; font-size: .92rem; }

/* ---------- bio ---------- */
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.bio-grid .portrait { position: sticky; top: 96px; }
.bio-text p { font-size: 1.05rem; }
@media (max-width: 820px) { .bio-grid { grid-template-columns: 1fr; } .bio-grid .portrait { position: static; max-width: 300px; } }

/* ---------- books ---------- */
.book { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: 0; }
.book img { border-radius: 4px; box-shadow: 0 6px 18px rgba(29,41,51,.18); }
.book h3 { font-size: 1.3rem; }
.book .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 560px) { .book { grid-template-columns: 110px 1fr; gap: 18px; } .book h3 { font-size: 1.1rem; } }
.book-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.book-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; }
.book-card img { border-radius: 3px; box-shadow: 0 4px 12px rgba(29,41,51,.15); }
.book-card h3 { font-size: 1rem; margin-bottom: 4px; }

/* ---------- news ---------- */
.press { columns: 3 260px; column-gap: 20px; }
.press figure { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.press button { display: block; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; }
.press figcaption { padding: 12px 14px; font-size: .92rem; }
.press figcaption b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.press figcaption span { color: var(--muted); font-size: .85rem; }

/* ---------- engagements ---------- */
.engage { display: grid; grid-template-columns: 300px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.engage:last-child { border-bottom: 0; }
.engage .pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.engage .pics button:first-child { grid-column: 1 / -1; }
.engage .pics button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--soft); }
.engage .pics img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .engage { grid-template-columns: 1fr; } }
.engage.no-pics { grid-template-columns: 1fr; padding-left: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card .eyebrow { margin-bottom: .4rem; }
.contact-card a { font-size: 1.05rem; word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { background: #1f2f3a; color: #c9d4da; margin-top: 0; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #e3ebef; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #93a4ae; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15, 22, 28, .92); display: none; z-index: 200; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #d5dee3; font-size: .9rem; padding: 0 60px; }

/* ==========================================================
   THEME: coloured "stage" backgrounds (analogous petrol-teal-sage)
   ========================================================== */
body { font-size: 16.5px; letter-spacing: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
.card h3 { font-size: 1.15rem; }
.book-card h3 { font-size: 1.02rem; }
.press figcaption b { font-size: 1rem; }
.brand { font-size: 1.3rem !important; }
.eyebrow { font-weight: 700; letter-spacing: .18em; }

/* header: dark stage bar */
.site-header { background: rgba(22, 60, 68, .97); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { color: var(--ivory); font-size: 1.5rem; }
.nav a { color: #c5d9d4; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(169, 205, 195, .18); }
.menu-btn { color: var(--ivory); border-color: rgba(255,255,255,.25); }
@media (max-width: 900px) { .nav { background: var(--stage); border-bottom-color: rgba(255,255,255,.08); } }

/* hero & page heads: spotlight on a dark stage */
.hero, .page-head {
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(169, 205, 195, .22) 0%, rgba(169, 205, 195, 0) 60%),
    radial-gradient(ellipse 80% 90% at 70% 20%, var(--stage-mid) 0%, var(--stage) 55%, var(--stage-deep) 100%);
  color: var(--ivory);
  border-bottom: 0;
}
.hero { padding: 80px 0 72px; }
.hero h1, .page-head h1 { color: var(--ivory); }
.hero .eyebrow, .page-head .eyebrow { color: var(--sage-light); }
.hero .name-bn, .hero .intro, .hero .affil, .page-head p { color: #cfdcd8; }
.hero .tagline { color: #e6dfcf; font-weight: 600; }
.hero .btn { background: var(--ivory); border-color: var(--ivory); color: var(--stage); }
.hero .btn:hover { background: #fff; color: var(--stage-deep); }
.hero .btn.ghost { background: transparent; color: var(--ivory); border-color: rgba(243, 239, 230, .6); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero .portrait { box-shadow: 0 18px 50px rgba(0,0,0,.45); outline: 1px solid rgba(243,239,230,.25); outline-offset: 10px; }
.page-head { padding: 64px 0 40px; }
.page-head .crumbs a { color: var(--sage-light); }
.page-head .crumbs { color: #cfdcd8; }

/* sections: alternate pale sage and a deeper band */
main > .section:nth-of-type(even) { background: var(--band); }
.section + .section { border-top: 0; }
.section h2 { position: relative; padding-bottom: .35em; }
.section h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 2px; background: var(--accent); }
.section-head h2::after { bottom: -2px; }

/* surfaces */
.card, .panel, .facts, .contact-card, .book-card, .press figure, .stats { background: var(--surface); border-color: var(--line); }
.stat b { color: var(--primary); font-size: 2.4rem; }
.tag { background: var(--soft-teal); color: var(--primary-dark); }
.chip { background: var(--stage); color: var(--ivory); text-decoration: none; }
a.chip:hover { background: var(--primary); color: #fff; }
.card .thumb.empty { background: radial-gradient(ellipse at 70% 25%, var(--stage-mid), var(--stage) 60%, var(--stage-deep)); color: var(--ivory); }
.filters button[aria-pressed="true"] { background: var(--stage); border-color: var(--stage); }

/* ==========================================================
   SUFI TONE — no figures: whirling-circle motif, paper grain texture,
   and a soft saffron-gold accent on the teal stage palette
   ========================================================== */
:root {
  --gold: #c2a062;
  --gold-soft: rgba(194, 160, 98, .55);
  /* faint paper grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.18 0 0 0 0 0.2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* concentric "whirl" rings (sama-like turning, abstract) */
  --rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23c2a062'%3E%3Ccircle cx='200' cy='200' r='196' stroke-width='1' stroke-dasharray='2 10'/%3E%3Ccircle cx='200' cy='200' r='170' stroke-width='.8' opacity='.7'/%3E%3Ccircle cx='200' cy='200' r='146' stroke-width='1' stroke-dasharray='40 14' opacity='.55'/%3E%3Ccircle cx='200' cy='200' r='122' stroke-width='.6' opacity='.45'/%3E%3Ccircle cx='200' cy='200' r='98' stroke-width='1' stroke-dasharray='1 7' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  /* ripple arcs for dark bands */
  --ripples: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23a9cdc3' stroke-width='1' opacity='.5'%3E%3Ccircle cx='600' cy='0' r='120'/%3E%3Ccircle cx='600' cy='0' r='190'/%3E%3Ccircle cx='600' cy='0' r='260'/%3E%3Ccircle cx='600' cy='0' r='330'/%3E%3Ccircle cx='600' cy='0' r='400'/%3E%3Ccircle cx='600' cy='0' r='470'/%3E%3C/g%3E%3C/svg%3E");
}

/* texture on light areas */
body { background-image: var(--grain); background-size: 180px; }
main > .section:nth-of-type(even), .comment-section { background-image: var(--grain); background-size: 180px; }

/* dark heads: ripple motif drifting from the corner + a warm glow */
.hero, .page-head { position: relative; isolation: isolate; overflow: hidden; }
.hero::after, .page-head::after {
  content: ""; position: absolute; top: -10%; right: -8%; width: min(70vw, 760px); aspect-ratio: 1; z-index: -1;
  background: var(--ripples) no-repeat right top / contain; opacity: .22; pointer-events: none;
}
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 80% 35%, rgba(194, 160, 98, .16), rgba(194, 160, 98, 0) 70%);
}
.hero .eyebrow, .page-head .eyebrow, .mosaic-head .eyebrow { color: var(--gold); }
.hero .tagline { color: #e8d6ad; }

/* turning rings behind the photo frame */
.frame-wrap { position: relative; }
.frame-wrap .whirl {
  position: absolute; inset: -9%; z-index: 0; pointer-events: none;
  background: var(--rings) center / contain no-repeat; opacity: .55;
  animation: whirl 90s linear infinite;
}
@keyframes whirl { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .frame-wrap .whirl { animation: none; } }

/* photo frame: 10-second crossfade */
.frame-slides { position: relative; z-index: 1; }
.frame-slides .frame-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.frame-slides .frame-slide.on { opacity: 1; }
.hero .portrait { outline-color: var(--gold-soft); }

/* headings: teal-to-saffron rule with a small turning-circle dot */
.section h2::after { width: 64px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.section h2::before {
  content: ""; position: absolute; left: 70px; bottom: -4px; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: transparent;
}
.mosaic-head h2::before { display: none; }

/* dark bands: ripple texture */
.mosaic-band, .site-footer { position: relative; isolation: isolate; }
.mosaic-band::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12;
  background: var(--ripples) no-repeat right top / 520px, var(--grain);
}
.site-footer h4 { color: #e8d6ad; }

/* small accents */
.stat b { background: linear-gradient(180deg, var(--primary), #2f7d74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat::after { content: ""; display: block; width: 6px; height: 6px; margin: 10px auto 0; border-radius: 50%; border: 1px solid var(--gold); }
.chip { box-shadow: inset 0 0 0 1px rgba(194, 160, 98, .35); }
.tag { box-shadow: inset 0 0 0 1px rgba(194, 160, 98, .25); }
.btn:not(.ghost) { box-shadow: 0 0 0 1px rgba(194, 160, 98, .25); }

/* ---------- home: full-width photo mosaic ---------- */
.mosaic-band { background: var(--stage-deep); padding: 56px 0 8px; }
.mosaic-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.mosaic-head h2 { color: var(--ivory); margin: 0; }
.mosaic-head h2::after { display: none; }
.mosaic-head .eyebrow { color: var(--sage-light); }
.mosaic-head .link-more { color: var(--sage-light); }
.mosaic {
  display: grid; gap: 6px; padding: 0 6px 6px;
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: 14vw;
}
.mosaic .tile { position: relative; overflow: hidden; display: block; background: #0b1f24; grid-column: var(--c); grid-row: var(--r); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .6s ease; filter: saturate(.92); }
.mosaic .tile:hover img { transform: scale(1.06); filter: saturate(1.05); }
.mosaic .tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: var(--ivory);
  font: 600 1rem/1.2 var(--serif); background: linear-gradient(0deg, rgba(15,42,49,.85), rgba(15,42,49,0));
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.mosaic .tile:hover span, .mosaic .tile:focus span { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .mosaic .tile { grid-column: auto; grid-row: auto; }
  .mosaic .tile:nth-child(6n+1) { grid-column: span 2; }
  .mosaic .tile span { opacity: 1; transform: none; }
}

/* ---------- home: wide feature photo ---------- */
.feature-band {
  display: flex; align-items: flex-end; min-height: 62vh; text-decoration: none;
  background-size: cover; background-position: center; background-attachment: fixed; position: relative;
}
.feature-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,42,49,.85), rgba(15,42,49,.05) 55%); }
.feature-band .wrap { position: relative; width: 100%; padding-bottom: 28px; }
.feature-cap { color: var(--ivory); font: italic 500 1.25rem/1.4 var(--serif); }
@media (max-width: 820px), (hover: none) { .feature-band { background-attachment: scroll; min-height: 48vh; } }

/* ---------- comment / message form ---------- */
.comment-section { background: var(--band); }
.wrap.narrow { max-width: 760px; }
.comment-form { display: grid; gap: 16px; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.comment-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--primary-dark); }
.comment-form input, .comment-form textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.comment-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form .btn { justify-self: start; }
.comment-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; color: var(--primary); font-weight: 600; }
@media (max-width: 600px) { .comment-form .field-row { grid-template-columns: 1fr; } }

/* footer: deepest stage tone */
.site-footer { background: var(--stage-deep); color: #b9ccc7; }
.site-footer h4 { font-size: 1.35rem; }

/* ==========================================================
   SUFI PALETTE (stronger): manuscript parchment, Konya turquoise,
   saffron-gold; whirling-circle motifs. Overrides the values above.
   ========================================================== */
:root {
  --bg: #f3ece0;
  --band: #eadfcb;
  --surface: #fbf8f1;
  --ink: #1d2a2c;
  --muted: #5b6661;
  --line: #dccdb2;
  --primary: #1c6a6c;
  --primary-dark: #124649;
  --accent: #23807c;
  --soft: #ede3d1;
  --soft-teal: #d9e9e4;
  --stage-deep: #0c2629;
  --stage: #113b3f;
  --stage-mid: #1d5759;
  --ivory: #f6efe1;
  --sage-light: #9fd0c7;
  --gold: #c69c4c;
  --gold-soft: rgba(198, 156, 76, .6);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .16 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background-color: var(--bg); background-size: 200px; }
.site-header { background: rgba(17, 59, 63, .97); }
.site-header .brand { color: var(--ivory); }

/* ---------- home: full-width cover photos ---------- */
.cover { position: relative; height: min(88vh, 760px); min-height: 460px; overflow: hidden; background: var(--stage-deep); isolation: isolate; }
.cover-slides { position: absolute; inset: 0; z-index: -2; }
.cover-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 35%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 6.5s ease-out;
}
.cover-slide.on { opacity: 1; transform: scale(1); }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 38, 41, .92) 0%, rgba(12, 38, 41, .55) 26%, rgba(12, 38, 41, 0) 52%),
              linear-gradient(180deg, rgba(12, 38, 41, .45) 0%, rgba(12, 38, 41, 0) 18%);
}
.cover-id { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; align-items: flex-end; gap: 26px; }
.cover-text { color: var(--ivory); padding-bottom: 6px; }
.cover-text h1 { color: var(--ivory); margin: 0 0 .15em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.cover-text .eyebrow { color: var(--gold); margin-bottom: .5rem; }
.cover-text .name-bn { font-family: var(--bn); color: #e7dcc6; font-size: 1.2rem; }
.cover-text .tagline { color: #ecd9ae; font-weight: 600; margin-top: .4em; }
.avatar { position: relative; flex: 0 0 auto; width: 168px; height: 168px; }
.avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--ivory); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.avatar .whirl {
  position: absolute; inset: -22px; z-index: 0; pointer-events: none;
  background: var(--rings) center / contain no-repeat; opacity: .95; animation: whirl 60s linear infinite;
}
.cover-cap {
  position: absolute; right: 24px; bottom: 40px; z-index: 2; color: var(--ivory); text-decoration: none;
  font: italic 500 1rem/1.2 var(--serif); padding: 6px 12px 6px 14px; border-left: 2px solid var(--gold);
  background: rgba(12, 38, 41, .45); backdrop-filter: blur(4px);
}
.cover-cap:hover { color: #fff; background: rgba(12, 38, 41, .7); }
.cover-dots { position: absolute; right: 24px; bottom: 16px; display: flex; gap: 6px; z-index: 2; }
.cover-dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--gold); transition: background .4s; }
.cover-dots i.on { background: var(--gold); }
@media (max-width: 760px) {
  .cover { height: 78vh; min-height: 420px; }
  .cover-id { flex-direction: column; align-items: flex-start; gap: 14px; bottom: 56px; }
  .avatar { width: 108px; height: 108px; }
  .avatar .whirl { inset: -14px; }
  .cover-cap { right: 16px; bottom: 16px; font-size: .85rem; }
  .cover-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cover-slide { transition: opacity .8s; transform: none; } .avatar .whirl { animation: none; } }

/* intro under the cover */
.intro-band { padding: 40px 0 8px; }
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.intro-band .intro { font: italic 500 1.25rem/1.6 var(--serif); color: var(--primary-dark); margin: 0; }
.intro-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.intro-band .affil { margin-top: 12px; color: var(--muted); font-size: .92rem; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; gap: 20px; } }

/* whirling divider: gold rule with turning circles in the middle */
.sufi-divider { display: flex; align-items: center; gap: 18px; max-width: 520px; margin: 28px auto 0; padding: 0 20px; }
.sufi-divider::before, .sufi-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sufi-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.sufi-divider span { width: 46px; height: 46px; background: var(--rings) center / contain no-repeat; animation: whirl 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sufi-divider span { animation: none; } }

/* stronger gold accents across pages */
.section h2::after { height: 2px; width: 72px; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.section h2::before { border-color: var(--gold); width: 9px; height: 9px; left: 78px; bottom: -4px; }
.page-head { border-bottom: 3px solid var(--gold); }
.page-head::after { opacity: .3; }
.card { border-top: 3px solid transparent; }
a.card:hover { border-top-color: var(--gold); }
.panel, .facts, .contact-card, .book-card, .comment-form { box-shadow: 0 1px 0 rgba(198,156,76,.25); }
.site-footer { border-top: 3px solid var(--gold); }

/* ==========================================================
   REFERENCE-STYLE LAYOUT (structure inspired by sydurlipon.info;
   colours remain the owner's turquoise / parchment / gold)
   ========================================================== */
:root { --serif: "Space Grotesk", "Tiro Bangla", system-ui, sans-serif; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }

/* light header with a dark Contact button */
.site-header { background: rgba(251, 248, 241, .97); border-bottom: 1px solid var(--line); }
.site-header .brand, .brand { color: var(--ink) !important; font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem !important; }
.nav a { color: var(--ink); font-weight: 600; font-size: .9rem; }
.nav a:hover { background: var(--soft); color: var(--primary-dark); }
.nav a[aria-current="page"] { background: transparent; color: var(--primary); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav a[href="contact.html"] { background: var(--stage); color: var(--ivory); border-radius: 4px; padding: 9px 16px; margin-left: 6px; box-shadow: none; }
.nav a[href="contact.html"]:hover { background: var(--primary); color: #fff; }
.menu-btn { color: var(--ink); border-color: var(--line); }
@media (max-width: 900px) { .nav { background: var(--surface); } .nav a[href="contact.html"] { margin: 6px 0 0; text-align: center; } }

/* cover: whole photo (no cropping) on an analogous turquoise background */
.cover {
  background:
    radial-gradient(ellipse 60% 80% at 72% 50%, rgba(159, 208, 199, .22), rgba(159, 208, 199, 0) 70%),
    linear-gradient(115deg, var(--stage-deep) 0%, var(--stage) 45%, var(--stage-mid) 100%);
}
.cover-slide { background: none !important; transform: none !important; display: flex; justify-content: flex-end; align-items: center; padding: 0 0 0 47vw; overflow: hidden; }
/* photos are pre-edited so their surroundings are pure black (or pure white) — they sit on a plain black cover */
.cover-slide img { flex: none; display: block; object-fit: fill; position: relative; }
.cover-slide.on img { animation: coverIn 1.4s ease both; }
@keyframes coverIn { from { transform: scale(.97); } to { transform: none; } }
/* plain black cover; white while the black-and-white photo is shown */
.cover::before { display: none; }
.cover { background: #000 !important; transition: background-color 1.2s ease; }
.cover.light { background: #fff !important; }
.cover-text h1, .cover-text .tagline { transition: color 1.2s ease; }
.cover.light .cover-text h1 { color: #111; text-shadow: none; }
.cover.light .cover-text .tagline { color: #333; }
/* name + affiliation: left side, vertically centred */
.cover-id { top: 50%; bottom: auto !important; transform: translateY(-50%); }
.cover-affil { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--gold); color: #d6d6d6; font-size: .98rem; line-height: 1.6; transition: color 1.2s ease; }
.cover-affil b { color: #fff; font-weight: 600; transition: color 1.2s ease; }
.cover.light .cover-affil { color: #444; }
.cover.light .cover-affil b { color: #111; }
@media (max-width: 760px) {
  .cover-id { top: auto; bottom: 28px !important; transform: none; }
  .cover-affil { font-size: .88rem; margin-top: 14px; }
}
.cover.light .cover-dots i { border-color: #999; }
.cover.light .cover-dots i.on { background: #555; }
@media (max-width: 760px) {
  .cover-slide { padding: 0 0 170px; justify-content: center; align-items: flex-start; }
}

/* cover: name at lower left like the reference */
.cover-id { bottom: 64px; }
.cover-text h1 { font-size: clamp(2.2rem, 4.3vw, 3.6rem); }
.cover-text { max-width: 44vw; }
@media (max-width: 760px) { .cover-text { max-width: none; } }
.cover-text .tagline { font-family: var(--serif); letter-spacing: .02em; }

/* about band */
.about-band { padding: 84px 0; background: var(--surface); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 20px 50px rgba(12,38,41,.25); }
.about-photo .whirl { position: absolute; width: 60%; aspect-ratio: 1; right: -16%; bottom: -12%; background: var(--rings) center / contain no-repeat; opacity: .8; animation: whirl 80s linear infinite; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.about-text h2::after, .about-text h2::before { display: none; }
.about-text .name-bn { font-family: var(--bn); color: var(--muted); font-size: 1.15rem; margin-bottom: 1em; }
.about-text p { font-size: 1.05rem; color: var(--muted); max-width: 560px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } .about-band { padding: 56px 0; } }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1.5px solid var(--ink);
  color: var(--ink); text-decoration: none; font: 700 .8rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase;
}
.btn-outline::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

/* bands */
.band { padding: 84px 0; }
.band-light { background: var(--band) var(--grain); background-size: 200px; }
.band-dark { background: var(--stage-deep); color: #c9d8d3; position: relative; isolation: isolate; }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: var(--ripples) no-repeat right top / 560px; }
.two-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.two-head span { display: block; font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif); color: var(--muted); }
.two-head h2 { margin: .1em 0 0 .7em; font-size: clamp(2rem, 4vw, 3.1rem); }
.two-head h2::after, .two-head h2::before { display: none; }
.band-dark .two-head span { color: var(--sage-light); }
.band-dark .two-head h2 { color: var(--ivory); }
.band-dark .btn-outline { color: var(--ivory); border-color: var(--ivory); }
.band-dark .btn-outline:hover { background: var(--ivory); color: var(--stage-deep); }

/* research cards (horizontal scroll) */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.r-card { scroll-snap-align: start; background: var(--surface); border-top: 3px solid var(--gold); padding: 24px 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: transform .25s, box-shadow .25s; }
.r-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12,38,41,.12); color: var(--ink); }
.r-num { font: 700 2rem/1 var(--serif); color: var(--accent); }
.r-kick { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.r-card h3 { font-size: 1.08rem; line-height: 1.35; margin: 0; }

/* theatrical works rows */
.works { border-top: 1px solid rgba(201,216,211,.18); }
.work-row { display: grid; grid-template-columns: 180px 1fr 120px 130px; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(201,216,211,.18); text-decoration: none; color: #c9d8d3; transition: background .25s; }
.work-row:hover { background: rgba(255,255,255,.04); color: #fff; }
.work-row img { width: 180px; height: 112px; object-fit: cover; }
.work-main h3 { color: var(--ivory); font-size: 1.35rem; margin: 0 0 6px; }
.work-main h3 .bn { font-family: var(--bn); font-weight: 400; font-size: .85em; color: var(--sage-light); }
.work-main div { font-size: .88rem; line-height: 1.5; }
.work-year { font-weight: 600; color: var(--gold); }
.work-more { font: 700 .78rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; text-align: right; }
@media (max-width: 760px) {
  .work-row { grid-template-columns: 110px 1fr; gap: 16px; }
  .work-row img { width: 110px; height: 80px; }
  .work-year { grid-column: 2; margin-top: -8px; }
  .work-more { display: none; }
}

/* recent books */
.books-row { display: flex; gap: 40px; flex-wrap: wrap; }
.book-tile { width: 200px; text-decoration: none; color: var(--ink); text-align: center; }
.book-tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 14px 30px rgba(12,38,41,.22); transition: transform .3s; }
.book-tile:hover img { transform: translateY(-6px); }
.book-tile h3 { font-size: 1rem; margin: 16px 0 4px; }
.book-tile span { color: var(--muted); font-size: .85rem; }

/* recent insights */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.insight { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.insight .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.insight .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.insight:hover .thumb img { transform: scale(1.04); }
.insight h3 { font-size: 1.02rem; line-height: 1.35; margin: 16px 18px 8px; }
.insight .when { margin: 0 18px 18px; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .insights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .insights { grid-template-columns: 1fr; } }

/* ---------- cover refinements: name further left, short affiliation, stacked on phones ---------- */
/* name starts under the "d" of the header's "MD." (header content edge + 16px) */
.cover .cover-id { max-width: none !important; margin: 0 !important; padding: 0 0 0 13vw !important; }
.cover-text { max-width: 40vw; }
/* keep the photo clear of the name on wide screens */
@media (min-width: 761px) { .cover-slide { padding-left: max(47vw, calc(13vw + 520px)) !important; } }
.cover-affil { margin-top: 14px; padding-left: 12px; font-size: .8rem; line-height: 1.5; max-width: 30em; letter-spacing: .01em; }
@media (max-width: 760px) {
  .cover { height: auto !important; min-height: 0 !important; display: flex; flex-direction: column; }
  .cover-slides { position: relative; inset: auto; height: 54vh; max-height: 520px; min-height: 300px; z-index: 0; }
  .cover-slide { padding: 14px 16px 0 !important; justify-content: center !important; align-items: center !important; }
  .cover .cover-id { position: relative; top: auto; bottom: auto !important; transform: none !important; padding: 20px 16px 30px !important; }
  .cover-text { max-width: none; padding-bottom: 0; }
  .cover-text h1 { font-size: 1.9rem; text-shadow: none; }
  .cover-text .tagline { font-size: .9rem; }
  .cover-affil { font-size: .8rem; margin-top: 12px; }
}

/* research cards: book covers */
.r-card .r-cover { display: block; width: 92px; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(12, 38, 41, .22); }
