/* =====================================================
   SUGANDHA SHAKTIPEETH — Premium Heritage Stylesheet
   ===================================================== */

:root {
  --crimson: #7a1f2b;
  --crimson-deep: #5a121c;
  --gold: #c9a961;
  --gold-bright: #d9b86b;
  --gold-soft: #ead7a4;
  --ivory: #fbf6ec;
  --ivory-soft: #f6efde;
  --sand: #e8dcc4;
  --midnight: #0f1b2d;
  --midnight-soft: #1a2840;
  --saffron: #d97a1a;
  --charcoal: #2a2118;
  --muted: #6b6052;
  --line: rgba(122, 31, 43, 0.18);

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bengali: 'Noto Serif Bengali', 'Cormorant Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--midnight);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.2rem;
  font-style: italic;
  font-weight: 500;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-head { text-align: center; margin-bottom: 3.5rem; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.4rem auto;
  gap: 14px;
  color: var(--gold);
}
.divider-ornament::before, .divider-ornament::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-ornament span { font-size: 1.2rem; }

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s ease;
}
.site-header.scrolled {
  background: rgba(251, 246, 236, 0.98);
  box-shadow: 0 4px 30px rgba(122, 31, 43, 0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.2rem;
  max-width: 1480px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--crimson));
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  font-style: italic;
  box-shadow: 0 4px 14px rgba(122, 31, 43, 0.25);
  position: relative;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.5;
}
.brand-text { line-height: 1.1; display: flex; flex-direction: column; }
.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--midnight);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-tagline {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  font-weight: 400;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: all 0.35s ease;
  transform: translateX(-50%);
}
.main-nav a:hover, .main-nav a.active { color: var(--crimson); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
/* Nav CTA button must override the generic .main-nav a color */
.main-nav a.cta-btn { color: var(--ivory); padding: 0.85rem 1.7rem; }
.main-nav a.cta-btn:hover { color: var(--midnight); }
.main-nav a.cta-btn::after { display: none; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--crimson);
  color: var(--ivory);
  padding: 0.85rem 1.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--crimson);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.cta-btn span { position: relative; z-index: 1; }
.cta-btn:hover { color: var(--midnight); border-color: var(--gold); }
.cta-btn:hover::before { transform: translateX(0); }

.cta-btn.outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}
.cta-btn.outline::before { background: var(--ivory); }
.cta-btn.outline:hover { color: var(--midnight); }

.cta-btn.dark { background: var(--midnight); border-color: var(--midnight); color: var(--ivory); }
.cta-btn.dark::before { background: var(--gold); }
.cta-btn.dark:hover { color: var(--midnight); border-color: var(--gold); }

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  width: 24px; height: 1.5px;
  background: var(--midnight);
  transition: all 0.3s ease;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
  padding-top: 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: slowZoom 22s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 27, 45, 0.78) 0%, rgba(90, 18, 28, 0.6) 60%, rgba(15, 27, 45, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.hero-inner { max-width: 880px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.6rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(217, 184, 107, 0.4);
  background: rgba(15, 27, 45, 0.3);
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.05;
  font-style: italic;
  margin-bottom: 1.2rem;
}
.hero-title .gold { color: var(--gold-bright); }
.hero-bengali {
  font-family: var(--bengali);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold-bright);
  margin-bottom: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 2.6rem;
  color: rgba(251, 246, 236, 0.92);
  line-height: 1.8;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold-bright);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--gold-bright);
  margin: 12px auto 0;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
  padding: 140px 1rem 80px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.78), rgba(90, 18, 28, 0.55) 50%, rgba(15, 27, 45, 0.7));
}
.page-hero-content { position: relative; z-index: 2; max-width: 920px; }
.page-hero h1 {
  color: var(--ivory);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
  margin-bottom: 1rem;
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
}
.page-hero .breadcrumb a { color: rgba(251, 246, 236, 0.7); }
.page-hero .breadcrumb a:hover { color: var(--gold-bright); }
.page-hero p {
  color: rgba(251, 246, 236, 0.9);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------------- SECTIONS ---------------- */
section { padding: 6rem 0; }

.section-light { background: var(--ivory); }
.section-cream { background: var(--ivory-soft); }
.section-sand {
  background: linear-gradient(180deg, var(--ivory-soft) 0%, var(--sand) 100%);
}
.section-dark {
  background: var(--midnight);
  color: var(--ivory);
}
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .eyebrow { color: var(--gold-bright); }
.section-dark .eyebrow::before, .section-dark .eyebrow::after { background: var(--gold-bright); }
.section-dark p { color: rgba(251, 246, 236, 0.78); }

.section-crimson {
  background: linear-gradient(135deg, var(--crimson-deep), var(--crimson));
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.section-crimson::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(217, 184, 107, 0.08), transparent 40%),
                    radial-gradient(circle at 80% 80%, rgba(217, 184, 107, 0.08), transparent 40%);
}
.section-crimson > * { position: relative; }

/* ---------------- IMPORTANCE / FEATURE GRID ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--ivory);
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -20px rgba(122, 31, 43, 0.25);
  border-color: var(--gold);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--crimson-deep);
  border-radius: 50%;
  margin-bottom: 1.4rem;
  font-size: 1.4rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
}
.feature-card h3 {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 0.8rem;
  color: var(--crimson);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------- INTRO / EDITORIAL ---------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}
.intro-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}
.intro-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.intro-image:hover img { transform: scale(1.04); }
.intro-image::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(251, 246, 236, 0.3);
  pointer-events: none;
}
.intro-image-cap {
  position: absolute;
  bottom: -22px; right: -22px;
  background: var(--crimson);
  color: var(--ivory);
  padding: 1.4rem 1.8rem;
  font-family: var(--display);
  font-style: italic;
  z-index: 2;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
.intro-image-cap small {
  display: block;
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 4px;
  font-style: normal;
}

.intro-content h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1.4rem; font-style: italic; }
.intro-content p {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.85;
}
.intro-content .lede {
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--crimson);
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

/* ---------------- QUOTE ---------------- */
.quote-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.quote-block .quote-mark {
  font-family: var(--display);
  font-size: 6rem;
  color: var(--gold-bright);
  line-height: 0.4;
  margin-bottom: 1.5rem;
  display: block;
}
.quote-block p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  color: var(--ivory);
  line-height: 1.5;
  margin-bottom: 1.8rem;
  font-weight: 400;
}
.quote-block cite {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-style: normal;
}

/* ---------------- HIGHLIGHT SLIDER ---------------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.highlight-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--midnight);
  cursor: pointer;
}
.highlight-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.6s ease;
  opacity: 0.85;
}
.highlight-card:hover img { transform: scale(1.06); opacity: 1; }
.highlight-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 27, 45, 0.92) 100%);
}
.highlight-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 2rem 1.6rem;
  color: var(--ivory);
}
.highlight-card-content small {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.5rem;
}
.highlight-card-content h4 {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ivory);
  line-height: 1.3;
}

/* ---------------- ESSENTIALS / INFO STRIP ---------------- */
.essentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.essentials-item {
  padding: 2.4rem 1.8rem;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.essentials-item:last-child { border-right: none; }
.essentials-item .ic {
  font-family: var(--display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.essentials-item h5 {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.6rem;
  font-family: var(--body);
  font-weight: 500;
}
.essentials-item p {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--midnight);
  font-style: italic;
}

/* ---------------- FEATURED STORY ---------------- */
.story-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 520px;
}
.story-img {
  position: relative;
  overflow: hidden;
}
.story-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.story-content {
  background: var(--midnight);
  color: var(--ivory);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.story-content::before {
  content: '';
  position: absolute;
  top: 30px; left: 30px;
  width: 50px; height: 50px;
  border-top: 2px solid var(--gold-bright);
  border-left: 2px solid var(--gold-bright);
}
.story-content::after {
  content: '';
  position: absolute;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-bottom: 2px solid var(--gold-bright);
  border-right: 2px solid var(--gold-bright);
}
.story-content h2 {
  color: var(--ivory);
  font-style: italic;
  font-size: 2.2rem;
  margin-bottom: 1.4rem;
}
.story-content p { color: rgba(251, 246, 236, 0.85); margin-bottom: 1rem; }

/* ---------------- MANAGEMENT ---------------- */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 980px;
  margin: 3rem auto 0;
}
.mgmt-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  text-align: center;
  padding: 2.6rem 2rem;
  cursor: pointer;
  transition: all 0.45s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mgmt-card .read-more { margin-top: auto; padding-top: 1.4rem; }
.mgmt-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  opacity: 0.6;
}
.mgmt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(122, 31, 43, 0.3);
  border-color: var(--gold);
}
.mgmt-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  background: var(--sand);
  border: 4px solid var(--gold-soft);
  position: relative;
}
.mgmt-photo::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.4;
}
.mgmt-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.mgmt-card h3 {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--crimson);
  margin-bottom: 0.4rem;
}
.mgmt-card .role {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 1rem;
  font-weight: 500;
}
.mgmt-card .bio {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.7;
}
.mgmt-card .read-more {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}
.mgmt-card:hover .read-more { color: var(--crimson); border-color: var(--crimson); }

/* ---------------- MODAL ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal-backdrop.active { display: flex; opacity: 1; }
.modal {
  background: var(--ivory);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.45s ease;
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
}
.modal-backdrop.active .modal { transform: translateY(0) scale(1); }
.modal-header {
  background: linear-gradient(135deg, var(--crimson-deep), var(--crimson));
  color: var(--ivory);
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: var(--gold-bright);
}
.modal-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-bright);
  flex-shrink: 0;
  background: var(--sand);
}
.modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.modal-header h3 {
  color: var(--ivory);
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 0.3rem;
}
.modal-header .role {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(251, 246, 236, 0.15);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 5;
}
.modal-close:hover { background: var(--ivory); color: var(--crimson); transform: rotate(90deg); }
.modal-body { padding: 2.5rem; color: var(--charcoal); }
.modal-body h4 {
  font-family: var(--display);
  font-style: italic;
  color: var(--crimson);
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.modal-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.modal-body ul li {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}
.modal-body ul li strong { color: var(--charcoal); font-weight: 500; }
.modal-body .modal-tag {
  display: inline-block;
  background: var(--ivory-soft);
  border: 1px solid var(--gold-soft);
  padding: 6px 14px;
  font-size: 0.72rem;
  color: var(--crimson);
  margin: 4px 4px 4px 0;
  letter-spacing: 0.05em;
}
.modal-body .modal-contact {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--midnight);
}
.modal-body .modal-contact a { color: var(--crimson); }

/* ---------------- HISTORY / TIMELINE ---------------- */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  width: 14px; height: 14px;
  background: var(--gold);
  border: 3px solid var(--ivory);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item:nth-child(odd)::before { right: -7px; }
.timeline-item:nth-child(even)::before { left: -7px; }
.timeline-item h4 {
  color: var(--crimson);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.timeline-item small {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-item p { color: var(--muted); font-size: 0.95rem; }

/* ---------------- LONG-FORM ARTICLE ---------------- */
.article {
  max-width: 820px;
  margin: 0 auto;
}
.article p {
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 1.4rem;
  line-height: 1.9;
}
.article p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 4.5rem;
  font-style: italic;
  color: var(--crimson);
  float: left;
  line-height: 0.9;
  padding-right: 12px;
  padding-top: 8px;
}
.article h2 {
  font-style: italic;
  font-size: 2rem;
  color: var(--crimson);
  margin: 2.4rem 0 1rem;
}
.article h3 {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--midnight);
  margin: 2rem 0 0.8rem;
}
.article blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 1.4rem;
  margin: 1.8rem 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--crimson);
}
.article-image {
  margin: 2.5rem 0;
  position: relative;
}
.article-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-image figcaption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------------- PILGRIMAGE GUIDE ---------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}
.guide-card {
  background: var(--ivory);
  padding: 2rem;
  border-left: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.guide-card:hover {
  border-left-color: var(--crimson);
  transform: translateX(6px);
  box-shadow: 0 12px 30px -10px rgba(122, 31, 43, 0.2);
}
.guide-card h4 {
  color: var(--crimson);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.guide-card .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.guide-card ul { list-style: none; padding: 0; }
.guide-card ul li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px dashed rgba(122, 31, 43, 0.1);
}
.guide-card ul li:last-child { border-bottom: none; }
.guide-card ul li strong { color: var(--midnight); font-weight: 500; }
.guide-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.info-tabs {
  background: var(--ivory);
  padding: 0;
  border: 1px solid var(--line);
  margin-top: 3rem;
  overflow: hidden;
}
.tabs-head {
  display: flex;
  background: var(--midnight);
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 1.2rem 1rem;
  color: rgba(251, 246, 236, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  background: rgba(122, 31, 43, 0.4);
}
.tab-content { padding: 2.5rem; display: none; }
.tab-content.active { display: block; }
.tab-content h4 {
  color: var(--crimson);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.tab-content p { color: var(--muted); margin-bottom: 1rem; }

/* ---------------- FESTIVALS ---------------- */
.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.festival-card {
  background: var(--ivory);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.4s ease;
}
.festival-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(122, 31, 43, 0.3);
}
.festival-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--sand);
  position: relative;
}
.festival-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.festival-card:hover .festival-img img { transform: scale(1.06); }
.festival-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,27,45,0.4));
}
.festival-month {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--ivory);
  color: var(--crimson);
  padding: 6px 14px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.festival-content { padding: 1.8rem; }
.festival-content h3 {
  color: var(--crimson);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.festival-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------------- GALLERY MASONRY ---------------- */
.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
  margin-top: 3rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--midnight);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 0.85; }
.gallery-item::after {
  content: '+';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 4px solid var(--ivory);
}
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(251, 246, 236, 0.15);
  color: var(--ivory);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--crimson); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* ---------------- DISCOVER ---------------- */
.discover-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 3rem 0;
}
.discover-feature.reverse { direction: rtl; }
.discover-feature.reverse > * { direction: ltr; }
.discover-feature-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.discover-feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.discover-feature-content {
  padding: 3rem;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.discover-feature-content h3 {
  font-style: italic;
  color: var(--crimson);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.discover-feature-content p { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }

.itinerary {
  background: var(--midnight);
  color: var(--ivory);
  padding: 4rem 3rem;
  margin-top: 4rem;
  position: relative;
}
.itinerary h3 {
  color: var(--gold-bright);
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.itinerary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.itinerary-step {
  border-left: 2px solid var(--gold-bright);
  padding-left: 1.4rem;
}
.itinerary-step .time {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.4rem;
}
.itinerary-step h5 {
  font-family: var(--display);
  color: var(--ivory);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.itinerary-step p { color: rgba(251, 246, 236, 0.7); font-size: 0.9rem; }

/* ---------------- CONTACT ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}
.contact-info {
  background: var(--midnight);
  color: var(--ivory);
  padding: 3rem;
  position: relative;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: 30px; right: 30px;
  width: 50px; height: 50px;
  border-top: 2px solid var(--gold-bright);
  border-right: 2px solid var(--gold-bright);
}
.contact-info h3 {
  color: var(--ivory);
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.contact-info > p { color: rgba(251, 246, 236, 0.75); margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(217, 184, 107, 0.15);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(217, 184, 107, 0.12);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-style: italic;
}
.contact-detail-content small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 4px;
}
.contact-detail-content a, .contact-detail-content p {
  color: var(--ivory);
  font-family: var(--display);
  font-size: 1.1rem;
  font-style: italic;
}
.contact-detail-content a:hover { color: var(--gold-bright); }

.contact-form {
  background: var(--ivory);
  padding: 3rem;
  border: 1px solid var(--line);
}
.contact-form h3 {
  color: var(--crimson);
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}
.contact-form > p { color: var(--muted); margin-bottom: 1.8rem; font-size: 0.95rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; position: relative; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: var(--ivory-soft);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: all 0.3s ease;
  border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ivory);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 6px;
  font-weight: 500;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--midnight);
  color: rgba(251, 246, 236, 0.75);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-mark { width: 56px; height: 56px; font-size: 1.5rem; }
.footer-brand .brand-name { color: var(--ivory); font-size: 1.3rem; }
.footer-brand p {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(251, 246, 236, 0.65);
  max-width: 320px;
}
.footer-col h5 {
  color: var(--gold-bright);
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a {
  color: rgba(251, 246, 236, 0.7);
  font-size: 0.92rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}
.footer-col ul a:hover { color: var(--gold-bright); padding-left: 8px; }
.footer-col p {
  font-size: 0.92rem;
  color: rgba(251, 246, 236, 0.7);
  margin-bottom: 0.6rem;
}
.footer-col p a:hover { color: var(--gold-bright); }

.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(217, 184, 107, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  transition: all 0.3s ease;
}
.social-row a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--midnight);
  transform: translateY(-3px);
}
.social-row svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(217, 184, 107, 0.15);
  padding: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(251, 246, 236, 0.6);
}
.footer-bottom a { color: var(--gold-bright); }
.footer-bottom a:hover { color: var(--ivory); }

/* ---------------- ANIMATIONS ---------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .story-split { grid-template-columns: 1fr; }
  .story-img { aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .discover-feature { grid-template-columns: 1fr; }
  .discover-feature.reverse { direction: ltr; }
  .essentials-item { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 768px) {
  .nav-wrap { padding: 0.9rem 1.2rem; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav a { font-size: 1rem; padding: 8px 0; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
  .hero { min-height: 90vh; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }
  .gallery-grid { column-count: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding: 1rem 1rem 1rem 3rem; text-align: left !important; }
  .timeline-item::before { left: 13px !important; right: auto !important; }
  .modal-header { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .modal-body { padding: 1.5rem; }
  .story-content { padding: 2rem; }
  .discover-feature-content { padding: 2rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .cta-btn { width: 100%; justify-content: center; }
  .brand-tagline { display: none; }
}

/* ---------------- ACCESS GATE (index.html) ---------------- */
.gate-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gate-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gate-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: slowZoom 30s ease-in-out infinite alternate;
}
.gate-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15, 27, 45, 0.85) 0%, rgba(90, 18, 28, 0.7) 50%, rgba(15, 27, 45, 0.92) 100%);
}
.gate-panel {
  position: relative;
  z-index: 2;
  background: rgba(251, 246, 236, 0.97);
  backdrop-filter: blur(20px);
  padding: 3.5rem 3rem;
  max-width: 480px;
  width: calc(100% - 2.5rem);
  text-align: center;
  border: 1px solid rgba(217, 184, 107, 0.5);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6);
  position: relative;
}
.gate-panel::before, .gate-panel::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
}
.gate-panel::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.gate-panel::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.gate-emblem {
  width: 78px; height: 78px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-bright), var(--crimson));
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
  font-family: var(--display);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 600;
  position: relative;
  box-shadow: 0 12px 30px rgba(122, 31, 43, 0.4);
}
.gate-emblem::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.4;
}
.gate-emblem::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.2;
}
.gate-bengali {
  font-family: var(--bengali);
  color: var(--crimson);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.gate-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--midnight);
  margin-bottom: 0.5rem;
}
.gate-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.gate-form { position: relative; }
.gate-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(122, 31, 43, 0.2);
  background: var(--ivory);
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--midnight);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.gate-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}
.gate-btn {
  width: 100%;
  padding: 1rem;
  background: var(--crimson);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.gate-btn:hover { background: var(--midnight); }
.gate-error {
  color: var(--crimson);
  font-size: 0.8rem;
  margin-top: 0.8rem;
  letter-spacing: 0.05em;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gate-error.show { opacity: 1; animation: shake 0.5s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.gate-foot {
  margin-top: 1.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.gate-foot::before, .gate-foot::after {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 10px;
}

/* sacred reveal (when entering main site) */
.sacred-reveal {
  position: fixed;
  inset: 0;
  background: var(--midnight);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sacred-reveal.fade-out {
  animation: fadeAway 1s forwards;
}
@keyframes fadeAway {
  to { opacity: 0; visibility: hidden; }
}

/* Page enter */
.page-enter {
  animation: pageIn 1s ease both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
