/* =========================================================
   CHOTO SONA MOSQUE — Heritage Digital Archive
   Design System v1.0
   Palette: Sandstone, Deep Olive, Muted Gold, Charcoal
   ========================================================= */

:root {
  /* Core Heritage Palette */
  --sandstone: #E8DCC4;
  --sandstone-light: #F4ECD8;
  --sandstone-dark: #D4C4A0;
  --olive: #3D4A2A;
  --olive-deep: #2A331C;
  --olive-soft: #5C6B45;
  --gold: #B8956A;
  --gold-bright: #D4B17C;
  --gold-deep: #8E6D45;
  --charcoal: #1F1F1F;
  --charcoal-soft: #3A3A38;
  --paper: #FBF8F1;
  --line: rgba(31, 31, 31, 0.12);
  --line-strong: rgba(31, 31, 31, 0.22);

  /* Type */
  --serif: "Cormorant Garamond", "Tinos", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --bn: "Noto Serif Bengali", "Hind Siliguri", "SolaimanLipi", serif;

  /* Spacing */
  --r-sm: 12px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;

  --shadow-soft: 0 10px 40px -20px rgba(31, 31, 31, 0.25);
  --shadow-card: 0 30px 60px -30px rgba(42, 51, 28, 0.35);
  --shadow-hover: 0 40px 80px -30px rgba(42, 51, 28, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--paper);
  overflow-x: hidden;
}

body[data-lang="bn"] {
  font-family: var(--bn);
}

body[data-lang="bn"] h1,
body[data-lang="bn"] h2,
body[data-lang="bn"] h3,
body[data-lang="bn"] h4,
body[data-lang="bn"] h5,
body[data-lang="bn"] .display {
  font-family: var(--bn);
  letter-spacing: 0;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold-deep); }

/* =====================  TYPOGRAPHY  ===================== */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-xl {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* When eyebrow is inside a centered container, add a matching line on the right */
.cust-head .eyebrow::after,
.eyebrow.eyebrow-centered::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.55;
  color: var(--charcoal-soft);
  text-align: left;
}

p { font-size: 1.02rem; line-height: 1.8; color: var(--charcoal-soft); text-align: left; }

.t-mute { color: var(--charcoal-soft); }
.t-gold { color: var(--gold-deep); }
.t-olive { color: var(--olive); }

/* =====================  LAYOUT  ===================== */
.shell { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 32px; }
.shell-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
.shell-wide { max-width: 1600px; margin: 0 auto; padding: 0 32px; }

section { padding: clamp(70px, 10vw, 140px) 0; position: relative; }

.grid { display: grid; gap: 32px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* =====================  NAVIGATION  ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(251, 248, 241, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold-deep));
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive); font-family: var(--sans); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.nav-links a:hover { color: var(--olive); background: var(--sandstone-light); }
.nav-links a.active { color: var(--paper); background: var(--olive); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--sandstone);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--line);
}

.lang-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.lang-btn.is-active {
  background: var(--charcoal);
  color: var(--paper);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s var(--ease);
}

.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }

.menu-btn.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    background: var(--paper);
    padding: 30px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
    align-items: flex-start;
    gap: 0;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 18px; font-size: 1rem; }
}

/* =====================  HERO PATTERNS  ===================== */
.arch-pattern {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
}

.dome-deco {
  width: 100%;
  height: 80px;
  background-image:
    radial-gradient(circle 40px at 50% 80px, transparent 38px, var(--gold) 38px, var(--gold) 39.5px, transparent 39.5px);
  background-size: 80px 80px;
  background-repeat: repeat-x;
  opacity: 0.4;
}

/* =====================  BUTTONS  ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--paper);
}
.btn-primary:hover { background: var(--olive); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--paper);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================  CARDS / TILES  ===================== */
.tile {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}

.tile-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

.tile h3 { font-size: 1.35rem; margin-bottom: 14px; text-align: left; }
.tile p { font-size: 0.95rem; line-height: 1.75; text-align: left; }

/* Image-anchored tile */
.fig {
  position: relative;
  background: var(--sandstone-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 24px;
}

.fig img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
}

.fig-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(31, 31, 31, 0.78);
  backdrop-filter: blur(8px);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* =====================  CHAPTER STYLE  ===================== */
.chapter-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-deep);
  margin-bottom: 28px;
}

.chapter-mark::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* =====================  PAGE HEADER  ===================== */
.page-head {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--sandstone-light) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: 60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-bright) 0%, transparent 60%);
  opacity: 0.18;
  border-radius: 50%;
  pointer-events: none;
}

.page-head-inner { position: relative; z-index: 2; text-align: left; }
.page-head-inner .display-xl { text-align: left; }
.page-head-inner .lede { text-align: left; }

.crumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
}
.crumb a { color: var(--olive); }
.crumb span { margin: 0 10px; color: var(--gold); }

/* =====================  FOOTER  ===================== */
.foot {
  background: var(--charcoal);
  color: var(--sandstone);
  padding: 90px 0 30px;
  position: relative;
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.foot h5 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-bottom: 20px;
}

.foot p, .foot a, .foot li {
  color: rgba(232, 220, 196, 0.7);
  font-size: 0.92rem;
  line-height: 1.9;
}

.foot a:hover { color: var(--gold-bright); }
.foot ul { list-style: none; }

.foot-base {
  border-top: 1px solid rgba(232, 220, 196, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(232, 220, 196, 0.55);
}

.creaa-credit {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
}
.creaa-credit a { color: var(--gold-bright); border-bottom: 1px dotted var(--gold-bright); }

/* =====================  UTILITY  ===================== */
.lang-en, .lang-bn { display: none; }
body[data-lang="en"] .lang-en { display: revert; }
body[data-lang="bn"] .lang-bn { display: revert; }

body[data-lang="en"] h1.lang-en,
body[data-lang="en"] h2.lang-en,
body[data-lang="en"] h3.lang-en,
body[data-lang="en"] span.lang-en,
body[data-lang="en"] li.lang-en,
body[data-lang="en"] em.lang-en,
body[data-lang="en"] small.lang-en { display: revert; }

body[data-lang="bn"] h1.lang-bn,
body[data-lang="bn"] h2.lang-bn,
body[data-lang="bn"] h3.lang-bn,
body[data-lang="bn"] span.lang-bn,
body[data-lang="bn"] li.lang-bn,
body[data-lang="bn"] em.lang-bn,
body[data-lang="bn"] small.lang-bn { display: revert; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider-mark {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* =====================  REVEAL ANIMATION  ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-l { transform: translateX(-30px); }
.reveal-l.is-in { transform: translateX(0); }
.reveal-r { transform: translateX(30px); }
.reveal-r.is-in { transform: translateX(0); }

/* =====================  HERO (Home)  ===================== */
.hero {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 177, 124, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--sandstone-light) 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-meta {
  display: flex;
  gap: 32px;
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-meta div { flex: 1; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--olive); font-weight: 500; line-height: 1.1; }
.hero-meta small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--charcoal-soft); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-img {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--sandstone);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.hero-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-stamp {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--sandstone);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 6px solid var(--paper);
}

.hero-floating {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  opacity: 0.18;
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 300;
  bottom: -3vw;
  right: -2vw;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.04em;
}

/* =====================  FEATURE GRID (Home Pillars)  ===================== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar {
  padding: 50px 32px;
  border-right: 1px solid var(--line);
  text-align: left;
  transition: background 0.4s var(--ease);
}

.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--sandstone-light); }

.pillar-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.pillar h3 { font-size: 1.4rem; margin-bottom: 14px; }
.pillar p { font-size: 0.92rem; }

@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar { border-bottom: 1px solid var(--line); }
  .pillar:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
}

/* =====================  TIMELINE  ===================== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
}

.tl-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 60px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.18);
}

.tl-year {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 8px;
}

.tl-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.tl-item p { font-size: 0.95rem; }

/* =====================  STATS BAR  ===================== */
.stats {
  background: var(--olive-deep);
  color: var(--sandstone);
  padding: 60px 0;
  border-radius: var(--r-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 800px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--gold-bright);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 220, 196, 0.75);
  margin-top: 12px;
}

/* =====================  FACT TABLE  ===================== */
.facts {
  border-top: 1px solid var(--line);
}

.facts-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.facts-row dt {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.facts-row dd { font-size: 1rem; color: var(--charcoal); }

@media (max-width: 700px) { .facts-row { grid-template-columns: 1fr; gap: 6px; } }

/* =====================  IMAGE FRAME (architectural)  ===================== */
.frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--sandstone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-shadow: var(--shadow-card);
  min-height: 480px;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  border-radius: calc(var(--r-xl) - 12px);
  pointer-events: none;
  opacity: 0.4;
}

.frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  position: relative;
  z-index: 1;
}

.frame-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  padding: 6px 14px;
  background: var(--charcoal);
  color: var(--gold-bright);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* =====================  CALLOUT QUOTE  ===================== */
.callout {
  background: var(--olive);
  color: var(--paper);
  padding: 60px 50px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "“";
  position: absolute;
  font-family: var(--serif);
  font-size: 18rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.18;
  top: -40px;
  left: 20px;
}

.callout p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.55;
  color: var(--paper);
  position: relative;
  z-index: 2;
  text-align: left;
}

.callout cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-align: left;
}

/* =====================  GALLERY GRID  ===================== */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}

.gal-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sandstone);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s var(--ease);
  padding: 14px;
}

.gal-item:hover { transform: scale(1.015); box-shadow: var(--shadow-card); }

.gal-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.gi-1 { grid-column: span 8; grid-row: span 2; }
.gi-2 { grid-column: span 4; grid-row: span 1; }
.gi-3 { grid-column: span 4; grid-row: span 1; }
.gi-4 { grid-column: span 6; grid-row: span 2; }
.gi-5 { grid-column: span 6; grid-row: span 2; }
.gi-6 { grid-column: span 4; grid-row: span 2; }
.gi-7 { grid-column: span 4; grid-row: span 2; }
.gi-8 { grid-column: span 4; grid-row: span 2; }

@media (max-width: 900px) {
  .gal-grid { grid-template-columns: repeat(6, 1fr); }
  .gi-1, .gi-4, .gi-5 { grid-column: span 6; }
  .gi-2, .gi-3, .gi-6, .gi-7, .gi-8 { grid-column: span 3; }
}
@media (max-width: 560px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gal-grid > * { grid-column: span 1 !important; }
}

/* =====================  TWO-COL STORY  ===================== */
.story {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.story.flip { grid-template-columns: 1.05fr 1fr; }
.story.flip .story-text { order: 2; }

@media (max-width: 900px) {
  .story, .story.flip { grid-template-columns: 1fr; gap: 40px; }
  .story.flip .story-text { order: unset; }
}

.story h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 24px; text-align: left; }
.story p { margin-bottom: 18px; text-align: left; line-height: 1.8; }
.story-text { text-align: left; }

/* =====================  ASYMMETRIC SECTION  ===================== */
.asym {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .asym { grid-template-columns: 1fr 1fr; }
  .asym > *:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 700px) {
  .asym { grid-template-columns: 1fr; }
  .asym > *:nth-child(3) { grid-column: span 1; }
}

.asym-block {
  background: var(--sandstone-light);
  padding: 40px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.asym-block h3 { text-align: left; }
.asym-block p { text-align: left; line-height: 1.8; }

.asym-block.dark {
  background: var(--charcoal);
  color: var(--sandstone);
}
.asym-block.dark h3 { color: var(--paper); }
.asym-block.dark p { color: rgba(232, 220, 196, 0.75); }

.asym-block.gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--paper);
}
.asym-block.gold h3 { color: var(--paper); }
.asym-block.gold p { color: rgba(255, 255, 255, 0.85); }

/* =====================  ARABIC INSCRIPTION CARD  ===================== */
.inscription {
  background: linear-gradient(135deg, var(--olive-deep), var(--olive));
  color: var(--sandstone);
  padding: 60px 50px;
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inscription::before, .inscription::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.2;
}

.inscription::before { top: -100px; left: -100px; }
.inscription::after { bottom: -100px; right: -100px; }

.arabic {
  font-family: "Amiri", "Scheherazade New", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.8;
  color: var(--gold-bright);
  direction: rtl;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.inscription .translation {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--paper);
}

/* =====================  PAGE-NEXT NAV  ===================== */
.next-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.next-chapter a {
  padding: 50px 40px;
  display: block;
  transition: all 0.4s var(--ease);
}

.next-chapter a:first-child { border-right: 1px solid var(--line); }
.next-chapter a:hover { background: var(--sandstone-light); color: var(--olive); }

.nc-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  display: block;
}

.nc-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
}

.next-chapter a.next { text-align: right; }

@media (max-width: 700px) {
  .next-chapter { grid-template-columns: 1fr; }
  .next-chapter a:first-child { border-right: none; border-bottom: 1px solid var(--line); }
}

/* =====================  TOOLTIPS / HINTS  ===================== */
.hint {
  display: inline-block;
  padding: 4px 10px;
  background: var(--sandstone);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}

/* =====================  PRINT-LIKE LIST  ===================== */
.spec-list {
  list-style: none;
  padding: 0;
}

.spec-list li {
  padding: 16px 0;
  border-bottom: 1px dotted var(--line-strong);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}

.spec-list li::before {
  content: counter(spec-counter, decimal-leading-zero);
  counter-increment: spec-counter;
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1rem;
  line-height: 1.5;
  padding-top: 1px;
  grid-column: 1;
  grid-row: 1;
}

.spec-list li > strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  grid-column: 2;
}

.spec-list li > span {
  grid-column: 2;
}

.spec-list li > strong ~ span {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  line-height: 1.65;
  display: inline;
}

/* Override display:revert for language spans inside spec-list to prevent grid placement issues */
.spec-list li .lang-en,
.spec-list li .lang-bn {
  display: none;
}
body[data-lang="en"] .spec-list li .lang-en {
  display: inline;
}
body[data-lang="bn"] .spec-list li .lang-bn {
  display: inline;
}

.asym-block.dark .spec-list li > strong { color: var(--paper); }
.asym-block.dark .spec-list li > strong ~ span { color: rgba(232, 220, 196, 0.78); }
.asym-block.dark .spec-list li::before { color: var(--gold-bright); }
.asym-block.dark .spec-list li { border-bottom-color: rgba(232, 220, 196, 0.18); }

.asym-block.gold .spec-list li > strong { color: var(--paper); }
.asym-block.gold .spec-list li > strong ~ span { color: rgba(255, 255, 255, 0.85); }
.asym-block.gold .spec-list li::before { color: var(--paper); opacity: 0.9; }
.asym-block.gold .spec-list li { border-bottom-color: rgba(255, 255, 255, 0.2); }

.spec-list { counter-reset: spec-counter; }

@media (max-width: 480px) {
  .spec-list li { grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; }
  .spec-list li > strong { font-size: 0.95rem; }
  .spec-list li > strong ~ span { font-size: 0.88rem; }
}

/* =====================  BACK TO TOP  ===================== */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  z-index: 50;
}

.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--olive); transform: translateY(-4px); }

/* =====================  ARCHITECTURAL DIAGRAM (CSS-only)  ===================== */
.dome-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 40px 0;
  position: relative;
}

.dome {
  aspect-ratio: 1;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-deep) 100%);
  position: relative;
  box-shadow: inset -8px -8px 18px rgba(0,0,0,0.18), 0 12px 30px -10px rgba(184,149,106,0.5);
}

.dome::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 14%;
  background: var(--olive-deep);
  border-radius: 2px;
}

@media (max-width: 700px) {
  .dome-row { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}

/* =====================  TEXT GRID 2COL  ===================== */
.col2 {
  column-count: 2;
  column-gap: 60px;
}

.col2 p { margin-bottom: 18px; break-inside: avoid; }

/* Inside a 2-column grid, .col2 has only ~50% width — drop sub-columns earlier
   so text stays comfortably readable on tablets (901–1280px). */
.grid.g-2 > .col2 { column-count: 1; }

@media (min-width: 1280px) {
  .grid.g-2 > .col2 { column-count: 2; }
}

@media (max-width: 800px) { .col2 { column-count: 1; } }

/* =====================  TAGS  ===================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag {
  padding: 6px 14px;
  background: var(--sandstone);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--olive);
  border: 1px solid var(--line);
}

/* =========================================================
   MANAGEMENT + PROFILE MODAL
   Two custodian "tablets" with cusped-arch (mihrab) photo niches.
   Modal: editorial paper-toned dialog, hash-deeplinkable.
   ========================================================= */

.management {
  position: relative;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(212, 177, 124, 0.14), transparent 55%),
    var(--paper);
}

.cust-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
}

.cust-head .lede {
  text-align: center;
}

.cust-head .display {
  text-align: center;
}

.cust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.cust-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 32px 36px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cust-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid transparent;
  border-radius: calc(var(--r-xl) - 10px);
  pointer-events: none;
  transition: border-color 0.5s var(--ease);
}

.cust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}

.cust-card:hover::before { border-color: rgba(184, 149, 106, 0.35); }

.cust-tab {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  margin-bottom: 22px;
  background: var(--sandstone);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  border: 1px solid var(--line);
}

.cust-tab::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Cusped pointed-arch niche — references the mosque's mihrabs */
.cust-niche {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--sandstone-light);
  border-radius: 200px 200px 18px 18px / 280px 280px 18px 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px var(--gold),
    inset 0 0 0 8px var(--paper),
    inset 0 0 0 9px rgba(184, 149, 106, 0.4);
  cursor: pointer;
  transition: transform 0.6s var(--ease);
}

.cust-niche::before {
  /* subtle inner cusp — a thinner second arch, evoking a multi-cusped mihrab */
  content: "";
  position: absolute;
  inset: 18px 18px 18px 18px;
  border: 1px solid rgba(184, 149, 106, 0.45);
  border-radius: 180px 180px 10px 10px / 260px 260px 10px 10px;
  pointer-events: none;
  z-index: 2;
}

.cust-niche::after {
  /* tiny hanging-lamp dot at the apex, like the lamp motif inside real mihrabs */
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.18);
  z-index: 3;
}

.cust-card:hover .cust-niche { transform: translateY(-2px); }

.cust-photo {
  position: relative;
  z-index: 1;
  max-width: 88%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.cust-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cust-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 14px;
  cursor: pointer;
  display: inline-block;
  background-image: linear-gradient(to right, var(--gold-deep), var(--gold-deep));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease);
}

.cust-name:hover { color: var(--gold-deep); background-size: 100% 1px; }

.cust-name button {
  all: unset;
  cursor: pointer;
}

.cust-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 14px 0 16px;
}

.cust-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--charcoal-soft);
  margin: 0 0 10px;
  text-align: left;
}

.cust-role-sub {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin: 4px 0 0;
  text-align: left;
}

.cust-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.3s var(--ease);
}

.cust-cta .arrow { transition: transform 0.3s var(--ease); }
.cust-cta:hover { color: var(--gold-deep); }
.cust-cta:hover .arrow { transform: translateX(5px); }

/* Mirror the second card so the pair feels paired, not repeated */
.cust-card:nth-child(2) { background: linear-gradient(180deg, var(--paper) 0%, var(--sandstone-light) 100%); }
.cust-card:nth-child(2) .cust-tab { background: var(--paper); }

@media (max-width: 900px) {
  .cust-grid { grid-template-columns: 1fr; gap: 32px; }
  .cust-niche { aspect-ratio: 3 / 4; }
}

@media (max-width: 480px) {
  .cust-card { padding: 24px 22px 28px; }
  .cust-niche { border-radius: 140px 140px 14px 14px / 200px 200px 14px 14px; }
  .cust-niche::before { border-radius: 124px 124px 8px 8px / 184px 184px 8px 8px; inset: 14px; }
}

/* ---------- Profile Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 31, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  pointer-events: none;
}

.modal[hidden] { display: none; }

.modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 80px);
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.modal-backdrop.is-open ~ .modal .modal-dialog,
.modal.is-open .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

/* Close button — sticky, prominent, always accessible */
.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin-right: 16px;
  margin-top: 16px;
  margin-bottom: -58px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--charcoal);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.modal-close:hover {
  background: var(--charcoal);
  color: var(--paper);
  border-color: var(--charcoal);
  transform: rotate(90deg);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* Smooth scrolling inside modal */
.modal-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Custom thin scrollbar for modal */
.modal-scroll::-webkit-scrollbar { width: 6px; }
.modal-scroll::-webkit-scrollbar-track { background: transparent; }
.modal-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ---- Modal Header ---- */
.modal-header {
  padding: 52px 56px 32px;
  background: linear-gradient(180deg, var(--sandstone-light) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 56px;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.modal-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.modal-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* Name — bold, large, prominent */
.modal-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--charcoal);
}

/* Primary role — italic serif */
.modal-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--olive);
  margin: 0;
  font-weight: 500;
}

/* Sub-roles — structured with pill-like separators */
.modal-role-sub {
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--charcoal-soft);
  margin: 12px 0 0;
}

.modal-role-sub em {
  font-style: normal;
  color: var(--olive-soft);
}

/* ---- Modal Body ---- */
.modal-body {
  padding: 40px 56px 56px;
}

/* Section blocks with clear visual separation */
.modal-section {
  margin-bottom: 40px;
  padding-bottom: 8px;
}

.modal-section:last-child { margin-bottom: 0; padding-bottom: 0; }

/* Section headings — clear visual anchor */
.modal-section-h {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-section-h::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Body paragraphs — readable line-height and spacing */
.modal-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal-soft);
  margin-bottom: 16px;
  text-align: left;
}

.modal-body p:last-child { margin-bottom: 0; }

/* Bold highlights inside paragraphs */
.modal-body p strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* Tags inside modal */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tags .tag { font-size: 0.78rem; }

/* Domain grid — card-like cells */
.modal-domains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-domains > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
  background: var(--sandstone-light);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.modal-domains > div:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(184,149,106,0.12);
}

.modal-domains > div strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 6px;
}

/* Contact card */
.modal-contact {
  background: var(--charcoal);
  color: var(--sandstone);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  margin-top: 8px;
}

.modal-contact .modal-section-h {
  color: var(--gold-bright);
  border-bottom-color: rgba(212, 177, 124, 0.25);
}

.modal-contact .modal-section-h::before { background: var(--gold-bright); }

.modal-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  font-size: 0.92rem;
  line-height: 1.8;
}

.modal-contact-grid div { color: rgba(232, 220, 196, 0.85); }
.modal-contact-grid strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.modal-contact-grid a { color: var(--paper); }
.modal-contact-grid a:hover { color: var(--gold-bright); }

@media (max-width: 700px) {
  .modal { padding: 12px; }
  .modal-dialog { max-height: calc(100vh - 24px); border-radius: 24px; }
  .modal-close { margin-right: 10px; margin-top: 10px; margin-bottom: -52px; width: 42px; height: 42px; }
  .modal-header { padding: 44px 24px 24px; }
  .modal-header::after { left: 24px; }
  .modal-body { padding: 28px 24px 36px; }
  .modal-section { margin-bottom: 32px; }
  .modal-section-h { font-size: 0.68rem; margin-bottom: 16px; padding-bottom: 10px; }
  .modal-body p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }
  .modal-domains { grid-template-columns: 1fr; }
  .modal-domains > div { padding: 14px 16px; }
  .modal-contact { padding: 24px 22px; }
  .modal-contact-grid { grid-template-columns: 1fr; }
  .modal-name { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .modal-role { font-size: 1rem; }
  .modal-role-sub { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-dialog { transition: opacity 0.2s linear; transform: none; }
  .modal-backdrop { transition: opacity 0.2s linear; }
  .modal-close:hover { transform: none; }
}

@media print {
  .modal-backdrop, .modal { display: none !important; }
}

/* =========================================================
   TYPOGRAPHIC & RESPONSIVE POLISH
   Cross-page audit fixes:
   · Bengali doesn't case — strip uppercase + tighten tracking
     anywhere uppercase + wide letter-spacing is applied.
   · Display sizes scale down for narrow phones.
   · Hero meta wraps gracefully <560px.
   · Page-head top padding reduced on mobile.
   · Button reset for .cust-name (native button defaults).
   · Visible focus rings on all custom triggers.
   · Long-form text gets safe overflow-wrap.
   · Frame / hero / pillars / tiles / callouts get mobile padding.
   ========================================================= */

/* ---- Bengali text never wants ALL-CAPS or 0.2em+ tracking ---- */
body[data-lang="bn"] .eyebrow,
body[data-lang="bn"] .modal-eyebrow,
body[data-lang="bn"] .nc-label,
body[data-lang="bn"] .crumb,
body[data-lang="bn"] .modal-section-h,
body[data-lang="bn"] .stat-label,
body[data-lang="bn"] .frame-tag,
body[data-lang="bn"] .hint,
body[data-lang="bn"] .pillar-num,
body[data-lang="bn"] .foot h5,
body[data-lang="bn"] .facts-row dt,
body[data-lang="bn"] .modal-contact-grid strong,
body[data-lang="bn"] .modal-domains > div strong,
body[data-lang="bn"] .cust-tab,
body[data-lang="bn"] .cust-role-sub,
body[data-lang="bn"] .modal-role-sub,
body[data-lang="bn"] .btn,
body[data-lang="bn"] .cust-cta,
body[data-lang="bn"] .lang-btn,
body[data-lang="bn"] .tag,
body[data-lang="bn"] .nav-links a,
body[data-lang="bn"] .foot-base,
body[data-lang="bn"] .gal-item .fig-caption {
  text-transform: none;
  letter-spacing: 0.02em;
}
body[data-lang="bn"] .eyebrow,
body[data-lang="bn"] .modal-eyebrow {
  letter-spacing: 0.04em;
}
body[data-lang="bn"] .modal-section-h,
body[data-lang="bn"] .stat-label,
body[data-lang="bn"] .foot h5,
body[data-lang="bn"] .facts-row dt {
  letter-spacing: 0.06em;
}

/* ---- Long-form text: never let a single word break the layout ---- */
.modal-body, .story-text, .col2, .timeline, .facts {
  overflow-wrap: anywhere;
  word-break: normal;
}
.modal-domains > div { overflow-wrap: anywhere; line-height: 1.7; }
.spec-list li > strong ~ span { overflow-wrap: anywhere; }
.arabic { overflow-wrap: anywhere; word-break: keep-all; }

/* ---- .cust-name button reset (native button defaults removed) ---- */
.cust-name {
  border: none;
  background-color: transparent;
  padding: 0;
  text-align: left;
}

/* ---- Focus rings for keyboard users ---- */
.cust-name:focus-visible,
.cust-cta:focus-visible,
.modal-close:focus-visible,
.lang-btn:focus-visible,
.menu-btn:focus-visible,
.to-top:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
  border-radius: 6px;
}
.nav-links a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---- Crumb spans never break mid-link ---- */
.crumb { line-height: 1.8; }
.crumb a, .crumb span { white-space: nowrap; }

/* ---- Cust role text wrap ---- */
.cust-meta .cust-role { word-break: normal; overflow-wrap: anywhere; }

/* =========================================================
   RESPONSIVE BREAKPOINTS — small / medium device polish
   ========================================================= */

/* ≤ 700 px — page header padding & section rhythm */
@media (max-width: 700px) {
  section { padding: 64px 0; }
  .page-head { padding: 120px 0 50px; }
  .page-head::before { width: 240px; height: 240px; right: -60px; top: 30px; }

  .frame { min-height: 320px; padding: 18px; }
  .frame::before { inset: 10px; }
  .fig { min-height: 280px; padding: 16px; }

  .hero-img { aspect-ratio: 5 / 6; }

  .next-chapter a { padding: 36px 26px; }
  .next-chapter a.next { text-align: left; }

  .modal-tags .tag { font-size: 0.74rem; }
}

/* ≤ 600 px — pillar grid */
@media (max-width: 600px) {
  .pillar { padding: 36px 24px; }
  .pillar h3 { font-size: 1.25rem; }
}

/* ≤ 560 px — hero meta wraps; tile/callout/asym/footer paddings */
@media (max-width: 560px) {
  .hero { padding-top: 110px; padding-bottom: 60px; }
  .hero-meta {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .hero-meta div { flex: 1 1 calc(50% - 12px); min-width: 130px; }
  .hero-meta strong { font-size: 1.4rem; }
  .hero-stamp {
    width: 120px; height: 120px;
    font-size: 0.78rem; padding: 18px;
    bottom: -22px; left: -14px;
    border-width: 4px;
  }
  .hero-floating { font-size: clamp(5rem, 22vw, 8rem); }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 14px 24px; font-size: 0.78rem; }

  .tile { padding: 28px 24px; }
  .tile h3 { font-size: 1.2rem; }

  .callout { padding: 40px 28px; }
  .callout::before { font-size: 12rem; left: 12px; top: -24px; }
  .callout p { font-size: 1.1rem; }

  .asym-block { padding: 28px 22px; }
  .inscription { padding: 40px 26px; }
  .arabic { font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1.7; }

  .stats { padding: 40px 24px; border-radius: var(--r-lg); }
  .stats-grid { gap: 28px; }

  .foot { padding: 60px 0 24px; }
  .foot-grid { gap: 32px; margin-bottom: 36px; }
  .foot-base { font-size: 0.78rem; flex-direction: column; align-items: flex-start; }

  .story, .story.flip { gap: 28px; }
  .story h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }

  .timeline::before { left: 16px; }
  .tl-item { padding-left: 56px; padding-bottom: 44px; }
  .tl-item::before { left: 9px; width: 14px; height: 14px; }

  .shell, .shell-narrow, .shell-wide { padding: 0 22px; }
  .nav { padding: 12px 0; }
  .brand-mark { width: 38px; height: 38px; font-size: 0.85rem; }
  .brand { font-size: 1rem; gap: 10px; }
  .brand-text small { font-size: 0.6rem; }
}

/* ≤ 480 px — final type-size tightening for narrowest screens */
@media (max-width: 480px) {
  .display-xl { font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; }
  .display { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
  .lede { font-size: 1.02rem; line-height: 1.6; }

  body { font-size: 15.5px; }
  p { font-size: 0.98rem; }

  .pillar-num { font-size: 0.78rem; }

  .crumb { font-size: 0.7rem; letter-spacing: 0.16em; }

  .modal-name { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .modal-role { font-size: 1rem; }
  .modal-role-sub { font-size: 0.78rem; }
  .modal-section-h { font-size: 0.68rem; letter-spacing: 0.18em; }

  .cust-name { font-size: clamp(1.5rem, 6.2vw, 1.9rem); }
  .cust-role { font-size: 0.98rem; }
  .cust-role-sub { font-size: 0.78rem; }
  .cust-tab { padding: 5px 12px; font-size: 0.65rem; letter-spacing: 0.18em; }

  .nav-links a { padding: 8px 12px; font-size: 0.82rem; }
  .nav .lang-btn { padding: 5px 10px; font-size: 0.72rem; }
}

/* ≤ 380 px — emergency clamp so headlines never overflow */
@media (max-width: 380px) {
  .display-xl { font-size: 1.95rem; }
  .display { font-size: 1.55rem; }
  .shell, .shell-narrow, .shell-wide { padding: 0 18px; }
  .modal-header { padding: 44px 20px 22px; }
  .modal-header::after { left: 20px; }
  .modal-body { padding: 24px 20px 32px; }
  .modal-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .cust-card { padding: 22px 20px 26px; }
}

/* =========================================================
   ABOUT-PAGE PARAGRAPH ALIGNMENT POLISH
   Ensures text, paragraphs, and headings look consistent
   at every viewport — centered sections stay centered,
   content sections stay left-aligned, line-heights breathe.
   ========================================================= */

/* --- Centered section blocks: Names heading + Management heading --- */
.cust-head .eyebrow { justify-content: center; }

/* --- Paragraph spacing consistency across all viewports --- */
.story-text p + p { margin-top: 0; }
.asym-block p + p { margin-top: 12px; }
.tile p + p { margin-top: 10px; }

/* --- Ensure chapter-mark pill aligns with surrounding left-aligned text --- */
.chapter-mark { display: inline-flex; text-align: left; }

/* --- Story sections on tablet: tighten paragraph gap slightly --- */
@media (max-width: 900px) {
  .story p { margin-bottom: 16px; }
  .story h2 { margin-bottom: 20px; }
  .asym-block { padding: 32px 28px; }
  .asym-block h3 { font-size: 1.4rem; }
}

/* --- Mobile: all centered headings/ledes get proper center alignment --- */
@media (max-width: 560px) {
  .cust-head .display { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .cust-head .lede { font-size: 0.98rem; line-height: 1.65; }

  /* Tile paragraphs breathe on small screens */
  .tile p { font-size: 0.92rem; line-height: 1.7; }

  /* Story section paragraphs */
  .story p { font-size: 0.96rem; line-height: 1.75; }

  /* Asym blocks */
  .asym-block p { font-size: 0.94rem; line-height: 1.75; }
  .asym-block h3 { font-size: 1.25rem; }

  /* Callout */
  .callout p { line-height: 1.5; }
}

/* --- Narrowest phones: final paragraph polish --- */
@media (max-width: 380px) {
  .tile p { font-size: 0.88rem; }
  .story p { font-size: 0.92rem; }
  .callout p { font-size: 1rem; }
  .asym-block p { font-size: 0.9rem; }
  .cust-role { font-size: 0.92rem; }
  .cust-role-sub { font-size: 0.74rem; }
}
