/* =========================================================
   Suparshvanatha Bhagwan — Sacred Digital Sanctuary
   Premium Jain Heritage Portal — Crafted by Creaa Designs
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ivory: #FBF7EE;
  --ivory-2: #F4ECD8;
  --sand: #E8DCC0;
  --sandstone: #D6C49A;
  --gold: #B8893B;
  --gold-soft: #D4A85C;
  --gold-deep: #8E6726;
  --maroon: #6B1F2B;
  --maroon-deep: #4A1620;
  --sage: #6F7E62;
  --sage-deep: #4D5C42;
  --charcoal: #1F1A14;
  --charcoal-soft: #3A332A;
  --line: rgba(31, 26, 20, 0.12);
  --line-strong: rgba(31, 26, 20, 0.22);

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --shadow-soft: 0 30px 60px -30px rgba(74, 22, 32, 0.18), 0 6px 16px -8px rgba(74, 22, 32, 0.08);
  --shadow-deep: 0 50px 90px -40px rgba(31, 26, 20, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .35s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--charcoal); }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; }
::selection { background: var(--gold-soft); color: var(--charcoal); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  color: var(--charcoal-soft);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Sacred Mark / Decorative ---------- */
.sacred-mark {
  width: 56px;
  height: 56px;
  display: inline-block;
  position: relative;
}
.sacred-mark svg { width: 100%; height: 100%; display: block; }
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 36px auto;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  height: 1px;
  width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

/* ---------- Passcode Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #2a1a0e 0%, #110a05 80%);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  overflow: hidden;
}
.gate__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 30%, rgba(212, 168, 92, 0.18), transparent 40%),
    radial-gradient(circle at 78% 78%, rgba(107, 31, 43, 0.35), transparent 50%);
  pointer-events: none;
}
.gate__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(212,168,92,.04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(212,168,92,.04) 0 1px, transparent 1px 22px);
  mix-blend-mode: screen;
}
.gate__inner {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  text-align: center;
  animation: fadeUp 1.1s var(--ease) both;
}
.gate__seal {
  width: 96px; height: 96px;
  margin: 0 auto 32px;
  border: 1px solid rgba(212, 168, 92, 0.4);
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(212,168,92,.1), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
.gate__seal svg { width: 50px; height: 50px; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,168,92,.0); }
  50% { box-shadow: 0 0 0 14px rgba(212,168,92,.06); }
}
.gate__sanskrit {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.gate__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.gate__subtitle {
  color: rgba(251, 247, 238, 0.7);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 44px;
}
.gate__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
}
.gate__label {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.gate__input {
  background: transparent;
  border: 1px solid rgba(212, 168, 92, 0.35);
  padding: 18px 22px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-align: center;
  outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.gate__input:focus { border-color: var(--gold-soft); background: rgba(212,168,92,.05); }
.gate__btn {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2b1c0a;
  padding: 16px 24px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gate__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(212,168,92,.5); }
.gate__error {
  min-height: 22px;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #e8b4a0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gate__error.show { opacity: 1; transform: translateY(0); }
.gate.shake .gate__inner { animation: shake .5s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
.gate__footer {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.45);
}
.gate.exiting { animation: gateExit 1s var(--ease) forwards; }
@keyframes gateExit { to { opacity: 0; transform: scale(1.04); pointer-events: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1480px;
  margin: 0 auto;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav__brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
}
.nav__brand-mark svg { width: 22px; height: 22px; }
.nav__brand-text { line-height: 1.1; }
.nav__brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: block;
  color: var(--charcoal);
}
.nav__brand-sub {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-top: 3px;
}
.nav__menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav__link {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: 8px 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease), left .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--maroon); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; left: 0; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav__cta:hover { background: var(--maroon); transform: translateY(-1px); }
.nav__toggle { display: none; width: 40px; height: 40px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); margin: 4px auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__menu {
    display: flex;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 28px var(--gutter) 36px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    gap: 18px;
  }
  .nav.open .nav__cta {
    display: inline-flex;
    margin: 8px var(--gutter) 28px;
    width: max-content;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--charcoal); color: var(--ivory); }
.btn--primary:hover { background: var(--maroon); transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(74,22,32,.5); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--ivory); }
.btn--gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2b1c0a; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 28px -14px rgba(184,137,59,.6); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 960px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  overflow: hidden;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 9vw, 130px) clamp(28px, 6vw, 90px);
  position: relative;
  z-index: 2;
}
.hero__sanskrit {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  margin: 0 0 28px;
  color: var(--charcoal);
}
.hero__title em { font-style: italic; color: var(--maroon); }
.hero__title strong { font-weight: 500; display: block; font-size: 0.55em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-top: 24px; font-family: var(--display); }
.hero__lede {
  max-width: 520px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--charcoal-soft);
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  margin-top: clamp(48px, 8vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 580px;
}
.hero__meta-item-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.hero__meta-item-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--charcoal);
}
.hero__visual {
  position: relative;
  background: linear-gradient(135deg, #2a1a0e, #1a0f08);
  overflow: hidden;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.95) contrast(1.05);
}
.hero__visual::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(26,15,8,0.55)),
    radial-gradient(ellipse at 30% 30%, transparent 40%, rgba(26,15,8,.4));
  pointer-events: none;
}
.hero__plate {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 48px);
  background: rgba(26, 15, 8, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ivory);
  padding: 22px 26px;
  max-width: 320px;
  border-left: 2px solid var(--gold-soft);
  z-index: 3;
}
.hero__plate-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--ivory);
}
.hero__plate-text {
  font-size: 12px;
  color: rgba(251,247,238,.75);
  letter-spacing: 0.04em;
  margin: 0;
}
.hero__index {
  position: absolute;
  top: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  font-family: var(--display);
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0.4em;
  z-index: 3;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { min-height: 60vh; order: -1; }
  .hero__copy { padding: 60px 28px; }
  .hero__scroll { display: none; }
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  background: var(--ivory);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(184,137,59,0.10), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(107,31,43,0.08), transparent 45%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 920px; }
.page-hero__index {
  font-family: var(--display);
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-hero__index::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 22px;
}
.page-hero h1 em { font-style: italic; color: var(--maroon); }
.page-hero p {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--charcoal-soft);
}
.page-hero__art {
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  max-width: 520px;
  height: 100%;
  pointer-events: none;
  opacity: 0.16;
  background-image: url('../../images/suparshvanath.gif');
  background-size: contain;
  background-position: right top;
  background-repeat: no-repeat;
  filter: sepia(.6) saturate(.7);
}
@media (max-width: 760px) { .page-hero__art { display: none; } }

/* ---------- Sections ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--charcoal-soft); font-size: 1.05rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Pillars (Home) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease);
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--ivory-2); }
.pillar__num {
  font-family: var(--display);
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.3em;
  margin-bottom: 22px;
}
.pillar__icon { width: 44px; height: 44px; color: var(--maroon); margin-bottom: 22px; }
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 1.4rem; margin-bottom: 12px; }
.pillar p { font-size: 0.95rem; color: var(--charcoal-soft); margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar:nth-child(2) { border-right: 0; } .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; border-bottom: 1px solid var(--line); } .pillar:last-child { border-bottom: 0; } }

/* ---------- Featured Highlights (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--sand);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.split__media-tag {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(251,247,238,0.92);
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--maroon);
}
.split__copy h2 { margin-bottom: 24px; }
.split__copy p { color: var(--charcoal-soft); font-size: 1.05rem; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Values Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--ivory);
}
.marquee__track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 60px;
}
.marquee__item::after {
  content: '◆';
  color: var(--gold);
  font-style: normal;
  font-size: 0.6em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Quote ---------- */
.quote {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,137,59,0.12), transparent 60%);
  pointer-events: none;
}
.quote__inner { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.quote__mark {
  font-family: var(--display);
  color: var(--gold-soft);
  font-size: 3.8rem;
  line-height: 1;
  margin-bottom: 30px;
}
.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 36px;
  color: var(--ivory);
}
.quote__cite {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 60px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--maroon));
}
.timeline__item {
  position: relative;
  padding-bottom: 56px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -52px; top: 4px;
  width: 33px; height: 33px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 600;
}
.timeline__era {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.timeline__title {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.timeline__text { color: var(--charcoal-soft); max-width: 680px; }

/* ---------- About / Bio Layout ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}
.bio-portrait {
  position: sticky;
  top: 110px;
  aspect-ratio: 3/4;
  background: var(--sand);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.bio-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.bio-portrait__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(31,26,20,.9), transparent);
  color: var(--ivory);
  padding: 36px 24px 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bio-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  margin: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bio-fact {
  background: var(--ivory);
  padding: 22px 24px;
}
.bio-fact__label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.bio-fact__value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--charcoal);
}
@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { position: static; max-width: 460px; }
  .bio-facts { grid-template-columns: 1fr; }
}

/* ---------- Teachings Cards ---------- */
.teachings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.teaching {
  background: var(--ivory);
  padding: 44px 36px;
  position: relative;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.teaching:hover { background: var(--ivory-2); }
.teaching__num {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--display);
  font-size: 11px;
  color: var(--gold-deep);
  letter-spacing: 0.28em;
}
.teaching__icon {
  width: 46px; height: 46px;
  color: var(--maroon);
  margin-bottom: 24px;
}
.teaching__icon svg { width: 100%; height: 100%; }
.teaching__title {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.teaching__sanskrit {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.teaching__text {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin: 0;
}

/* ---------- Heritage Layout ---------- */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 28px);
}
.heritage-card {
  position: relative;
  overflow: hidden;
  background: var(--ivory-2);
  min-height: 320px;
}
.heritage-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 1.4s var(--ease);
}
.heritage-card:hover img { transform: scale(1.04); }
.heritage-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 28px 24px;
  background: linear-gradient(0deg, rgba(31,26,20,.92), transparent);
  color: var(--ivory);
}
.heritage-card__overlay h3 {
  color: var(--ivory);
  margin-bottom: 6px;
  font-size: 1.4rem;
}
.heritage-card__overlay p {
  color: rgba(251,247,238,.82);
  font-size: 0.92rem;
  margin: 0;
}
.heritage-card--shikharji { grid-column: span 8; min-height: 480px; }
.heritage-card--phalguna { grid-column: span 4; }
.heritage-card--temple { grid-column: span 5; }
.heritage-card--symbol { grid-column: span 4; background: var(--charcoal); color: var(--ivory); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center; }
.heritage-card--symbol .symbol-mark { width: 130px; height: 130px; margin-bottom: 22px; color: var(--gold-soft); }
.heritage-card--symbol h3 { color: var(--ivory); }
.heritage-card--symbol p { color: rgba(251,247,238,.7); font-size: 0.92rem; }
.heritage-card--scripture { grid-column: span 3; background: var(--maroon); color: var(--ivory); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.heritage-card--scripture h3 { color: var(--ivory); font-size: 1.2rem; }
.heritage-card--scripture p { color: rgba(251,247,238,.78); font-size: 0.85rem; }

@media (max-width: 880px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-card, .heritage-card--shikharji, .heritage-card--phalguna,
  .heritage-card--temple, .heritage-card--symbol, .heritage-card--scripture { grid-column: 1 / -1; min-height: 300px; }
}

/* ---------- Symbols & icon list ---------- */
.symbols-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.symbol-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.symbol-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.symbol-item__mark { width: 60px; height: 60px; margin: 0 auto 18px; color: var(--maroon); }
.symbol-item__name { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; color: var(--charcoal); }
.symbol-item__sanskrit { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Gallery ---------- */
.gallery {
  column-count: 3;
  column-gap: clamp(14px, 2vw, 24px);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(14px, 2vw, 24px);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  background: var(--sand);
  display: block;
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(31,26,20,.6), transparent 50%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 22px;
  color: var(--ivory);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }
.gallery__caption h4 { color: var(--ivory); font-size: 1.1rem; margin: 0 0 4px; }
.gallery__caption span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
@media (max-width: 880px) { .gallery { column-count: 2; } }
@media (max-width: 520px) { .gallery { column-count: 1; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 5, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  color: var(--ivory);
  font-size: 28px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(251,247,238,.3);
  transition: background .3s var(--ease);
}
.lightbox__close:hover { background: rgba(251,247,238,.1); }
.lightbox__caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
}

/* ---------- Articles ---------- */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.article-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.article-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--sand);
  position: relative;
}
.article-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease);
}
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__cat {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--ivory);
  color: var(--maroon);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.article-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
.article-card__date {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.article-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0;
}
.article-card__excerpt {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin: 0;
}
.article-card__more {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-modal {
  position: fixed; inset: 0;
  background: rgba(15,10,5,.85);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.article-modal.open { opacity: 1; pointer-events: auto; }
.article-modal__inner {
  background: var(--ivory);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 56px clamp(28px, 5vw, 64px);
  position: relative;
  box-shadow: var(--shadow-deep);
}
.article-modal__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-size: 22px;
  color: var(--charcoal);
}
.article-modal__close:hover { background: var(--ivory-2); }
.article-modal h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 18px; }
.article-modal__meta {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 24px;
}
.article-modal img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center top;
  margin: 16px 0 24px;
}
.article-modal p { font-size: 1.02rem; color: var(--charcoal-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact-info { padding-right: 0; }
.contact-info h2 { margin-bottom: 22px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0; }
.contact-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: var(--maroon);
  margin-top: 2px;
}
.contact-list__icon svg { width: 100%; height: 100%; }
.contact-list__label {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 6px; display: block;
}
.contact-list__value {
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--charcoal);
}
.contact-list a:hover { color: var(--maroon); }

.contact-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 22px; }
.field label {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.form-success {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(111,126,98,.1);
  border-left: 3px solid var(--sage);
  color: var(--sage-deep);
  font-size: 0.95rem;
  display: none;
}
.form-success.show { display: block; }
@media (max-width: 880px) { .contact-grid, .form-row { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  color: var(--ivory);
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(184,137,59,.25), transparent 60%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.cta-band h2 { color: var(--ivory); font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0; }
.cta-band p { color: rgba(251,247,238,.8); margin: 12px 0 0; max-width: 540px; }
.cta-band .btn--gold { color: var(--maroon-deep); }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(251,247,238,.8);
  padding: clamp(64px, 8vw, 100px) 0 36px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(251,247,238,.1);
}
.footer__brand { max-width: 360px; }
.footer__logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.footer__logo-mark {
  width: 44px; height: 44px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-soft);
}
.footer__logo-mark svg { width: 22px; height: 22px; }
.footer__logo-text {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ivory);
  line-height: 1.1;
}
.footer__logo-text small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 4px;
}
.footer__brand p { font-size: 0.92rem; color: rgba(251,247,238,.6); }
.footer__heading {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__list a { color: rgba(251,247,238,.7); font-size: 0.95rem; }
.footer__list a:hover { color: var(--gold-soft); }
.footer__contact-line { font-size: 0.92rem; line-height: 1.8; color: rgba(251,247,238,.7); }
.footer__contact-line a:hover { color: var(--gold-soft); }
.footer__bottom {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__credit { font-size: 0.88rem; color: rgba(251,247,238,.6); }
.footer__credit a { color: var(--gold-soft); border-bottom: 1px solid rgba(184,137,59,.4); }
.footer__credit a:hover { color: var(--ivory); }
.footer__social { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(251,247,238,.2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(251,247,238,.7);
  transition: all .3s var(--ease);
}
.footer__social a:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  transform: translateY(-2px);
}
.footer__social svg { width: 16px; height: 16px; }
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Prevent body scroll while gate or lightbox open */
body.locked { overflow: hidden; }
