/* ============================================================
   Shri Pragya Sagar Ji Muniraj — Official Website
   Palette: ivory light primary, royal maroon and antique gold
   ============================================================ */

:root {
  --ivory: #f8f4ea;
  --ivory-deep: #efe8d6;
  --cream: #fffdf6;
  --maroon: #571a31;
  --maroon-deep: #3c0f21;
  --maroon-soft: #7b2a49;
  --gold: #a98836;
  --gold-bright: #c9a959;
  --gold-pale: #e6d5ac;
  --ink: #2a211a;
  --muted: #71624f;
  --line: rgba(87, 26, 49, 0.14);
  --shadow: 0 22px 60px -28px rgba(60, 15, 33, 0.35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); text-decoration: none; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.14;
}

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

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

.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 0.9rem; }
.section-head p { color: var(--muted); margin-top: 1rem; max-width: 60ch; }

.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { display: none; }
.center .section-head p { margin-inline: auto; }

/* ---------- ornament ---------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  margin: 0.6rem 0;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  padding: 18px 0;
}

.site-header.scrolled {
  background: rgba(252, 249, 240, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}

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

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--maroon-soft), var(--maroon-deep));
  color: var(--gold-pale);
  box-shadow: inset 0 0 0 1.5px rgba(201, 169, 89, 0.55);
  flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }

.brand-name {
  display: flex;
  flex-direction: column-reverse;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--maroon-deep);
  line-height: 1.2;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-header.on-dark:not(.scrolled) .brand-name { color: #fdf9ee; }
.site-header.on-dark:not(.scrolled) .brand-name small { color: var(--gold-bright); }

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--maroon); }

.site-header.on-dark:not(.scrolled) .main-nav a { color: rgba(253, 249, 238, 0.92); }
.site-header.on-dark:not(.scrolled) .main-nav a.active { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 70;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.on-dark:not(.scrolled) .nav-toggle span { background: #fdf9ee; }
.nav-open .nav-toggle span { background: #fdf9ee; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: linear-gradient(160deg, var(--maroon-deep), var(--maroon));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .main-nav a { color: #fdf9ee !important; font-size: 1rem; }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: var(--maroon-deep);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-2px); }

.btn-ghost {
  border-color: rgba(253, 249, 238, 0.55);
  color: #fdf9ee;
}
.btn-ghost:hover { background: rgba(253, 249, 238, 0.12); }

.btn-outline {
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: var(--ivory); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fdf9ee;
  isolation: isolate;
  overflow: hidden;
}

.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(40, 8, 22, 0.55) 0%, rgba(40, 8, 22, 0.1) 34%, rgba(40, 8, 22, 0.82) 88%),
    linear-gradient(100deg, rgba(40, 8, 22, 0.72) 6%, rgba(40, 8, 22, 0.05) 60%);
}

.hero-content { padding: 20vh 0 9vh; max-width: 780px; }

.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  color: #fffcf2;
  margin: 1.1rem 0 1.2rem;
}

.hero h1 em { font-style: italic; color: var(--gold-bright); }

.hero-lede {
  font-size: 1.06rem;
  color: rgba(253, 249, 238, 0.88);
  max-width: 56ch;
  margin-bottom: 2.4rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 3.4rem; }

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(253, 249, 238, 0.22);
  width: 100%;
}
.hero-strip div {
  padding: 20px 44px 4px 0;
}
.hero-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.hero-strip span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253, 249, 238, 0.72);
}

/* mobile: show the complete hero photograph, uncropped */
@media (max-width: 720px) {
  .hero {
    min-height: auto;
    display: block;
    background: linear-gradient(180deg, var(--maroon-deep), var(--maroon) 60%, var(--maroon-soft) 130%);
    padding-top: 86px;
  }
  .hero-media, .hero-media img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    z-index: 0;
  }
  .hero-media img { transform: none !important; }
  .hero::after {
    background: linear-gradient(180deg, transparent 0%, rgba(40, 8, 22, 0.28) 100%);
  }
  .hero-content { padding: 2.6rem 0 3.2rem; }
  .hero-strip strong { font-size: 1.25rem; }
  .hero-strip div { padding-right: 26px; }
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: 190px 0 90px;
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(169, 136, 54, 0.24), transparent 65%),
    linear-gradient(160deg, var(--maroon-deep) 0%, var(--maroon) 68%, var(--maroon-soft) 110%);
  color: #fdf9ee;
  overflow: hidden;
}

.page-hero::after {
  content: "ॐ";
  position: absolute;
  right: -40px;
  bottom: -90px;
  font-family: var(--serif);
  font-size: 24rem;
  line-height: 1;
  color: rgba(253, 249, 238, 0.05);
  pointer-events: none;
}

.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero .eyebrow::before { background: var(--gold-bright); }

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fffcf2;
  margin-top: 1rem;
  max-width: 18ch;
}

.page-hero p {
  margin-top: 1.2rem;
  max-width: 62ch;
  color: rgba(253, 249, 238, 0.82);
}

/* ---------- sections ---------- */

section.block { padding: 6.5rem 0; }
section.block.tint { background: var(--ivory-deep); }
section.block.dark {
  background: linear-gradient(165deg, var(--maroon-deep), var(--maroon));
  color: rgba(253, 249, 238, 0.9);
}
section.block.dark h2, section.block.dark h3 { color: #fffcf2; }
section.block.dark .section-head p { color: rgba(253, 249, 238, 0.72); }

/* ---------- split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split.reverse > .split-media { order: 2; }

.split-media { position: relative; }

.split-media .frame {
  position: relative;
  box-shadow: var(--shadow);
}
.split-media .frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.split-media figcaption {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.split-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0.9rem 0 1.3rem; }
.split-copy p { color: var(--muted); margin-bottom: 1.1rem; }
.split-copy .btn { margin-top: 1.2rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
}

/* ---------- fact list (about) ---------- */

.fact-list { border-top: 1px solid var(--line); }
.fact-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}
.fact-list dd { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) {
  .fact-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.photo-card {
  background: var(--cream);
  box-shadow: 0 14px 40px -22px rgba(60, 15, 33, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.photo-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.photo-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.photo-card:hover .thumb img { transform: scale(1.05); }

.photo-card .body { padding: 26px 28px 30px; }
.photo-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.photo-card p { font-size: 0.92rem; color: var(--muted); }
.photo-card .body a { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 148px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--line));
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px 60px 1fr;
  margin-bottom: 3rem;
}

.timeline-item .when {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--maroon);
  text-align: right;
  line-height: 1.2;
}
.timeline-item .when small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.timeline-item .dot { position: relative; }
.timeline-item .dot::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  background: var(--ivory);
  border: 2px solid var(--gold);
}

.timeline-item .what h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.timeline-item .what p { color: var(--muted); font-size: 0.95rem; max-width: 56ch; }

@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 34px 1fr; }
  .timeline-item .when { grid-column: 2; text-align: left; margin-bottom: 6px; }
  .timeline-item .dot { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-item .dot::before { left: 0; }
  .timeline-item .what { grid-column: 2; }
}

/* ---------- honours ---------- */

.honour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(253, 249, 238, 0.16);
  border: 1px solid rgba(253, 249, 238, 0.16);
}
@media (max-width: 900px) { .honour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .honour-grid { grid-template-columns: 1fr; } }

.honour {
  background: linear-gradient(165deg, var(--maroon-deep), var(--maroon));
  padding: 44px 34px;
}
.honour .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-bright);
  letter-spacing: 0.2em;
}
.honour h3 { font-size: 1.55rem; margin: 0.8rem 0 0.5rem; }
.honour p { font-size: 0.86rem; color: rgba(253, 249, 238, 0.7); }

/* ---------- book list ---------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.book {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 30px 28px;
  box-shadow: 0 12px 34px -20px rgba(60, 15, 33, 0.3);
  transition: transform 0.3s ease;
}
.book:hover { transform: translateY(-5px); }
.book .idx {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}
.book h3 { font-size: 1.3rem; margin: 0.5rem 0 0.4rem; }
.book p { font-size: 0.86rem; color: var(--muted); }

/* ---------- gallery ---------- */

.gallery-grid {
  columns: 3 320px;
  column-gap: 22px;
}
.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--maroon-deep);
}
.gallery-grid img {
  width: 100%;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); opacity: 0.85; }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(40, 8, 22, 0.85));
  color: #fdf9ee;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 5, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.lightbox figcaption { color: rgba(253, 249, 238, 0.85); margin-top: 18px; font-size: 0.9rem; }
.lightbox .close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: 0;
  color: #fdf9ee;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--serif);
}
.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 249, 238, 0.08);
  border: 1px solid rgba(253, 249, 238, 0.3);
  color: #fdf9ee;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.lightbox .nav-btn:hover { background: rgba(253, 249, 238, 0.2); }
.lightbox .prev { left: 22px; }
.lightbox .next { right: 22px; }

/* ---------- video ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .video-grid { grid-template-columns: 1fr; } }

.video-card { background: var(--cream); box-shadow: 0 14px 40px -22px rgba(60, 15, 33, 0.35); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--maroon-deep);
  cursor: pointer;
  overflow: hidden;
}
.video-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.video-frame:hover img { transform: scale(1.05); opacity: 0.8; }
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-frame .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(40, 8, 22, 0.72);
  border: 1.5px solid var(--gold-bright);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
  pointer-events: none;
}
.video-frame:hover .play { transform: scale(1.1); background: var(--maroon); }
.video-frame .play::after {
  content: "";
  border-left: 18px solid var(--gold-bright);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}

.video-card .body { padding: 22px 24px 26px; }
.video-card h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: 0.4rem; }
.video-card p { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; }

.video-feature .video-frame { aspect-ratio: 16 / 9; box-shadow: var(--shadow); }

/* ---------- instagram ---------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 960px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

.ig-grid a {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  background: var(--maroon-deep);
}
.ig-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.35s ease;
}
.ig-grid a:hover img { transform: scale(1.07); opacity: 0.75; }
.ig-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px; height: 30px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdf9ee' stroke-width='1.7'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.3' cy='6.7' r='1.1' fill='%23fdf9ee' stroke='none'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ig-grid a:hover::after { opacity: 1; }

/* ---------- quote band ---------- */

.quote-band { text-align: center; padding: 7rem 0; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  color: #fffcf2;
  max-width: 26ch;
  margin: 1.6rem auto;
  line-height: 1.4;
}
.quote-band cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-list .ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-pale);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list h3 { font-size: 1.2rem; margin-bottom: 2px; }
.contact-list p { font-size: 0.9rem; color: var(--muted); }
.contact-list a { font-weight: 600; }

.form-card {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.form-card label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.4rem 0 0.4rem;
}
.form-card input, .form-card textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border 0.25s ease;
  resize: vertical;
}
.form-card input:focus, .form-card textarea:focus { border-color: var(--gold); }
.form-card .btn { margin-top: 1.8rem; width: 100%; justify-content: center; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--maroon-deep);
  color: rgba(253, 249, 238, 0.75);
  padding: 5rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: 3.4rem;
  border-bottom: 1px solid rgba(253, 249, 238, 0.14);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
}

.site-footer .brand-name { color: #fdf9ee; }
.site-footer .footer-about p { font-size: 0.9rem; margin-top: 1.2rem; max-width: 42ch; }

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.7rem; }
.site-footer ul a { color: rgba(253, 249, 238, 0.75); font-size: 0.92rem; transition: color 0.25s ease; }
.site-footer ul a:hover { color: var(--gold-bright); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2.2rem;
  font-size: 0.78rem;
  color: rgba(253, 249, 238, 0.5);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Depth, parallax and 3D motion
   ============================================================ */

/* --- reveal variants (assigned by JS) --- */

.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.zoom-in { transform: scale(0.92) translateY(20px); }
.reveal.visible { transform: none; }

.reveal-clip {
  clip-path: inset(12% 8% 12% 8%);
  transform: scale(1.08);
  opacity: 0;
  transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.7s ease;
}
.reveal-clip.visible {
  clip-path: inset(0 0 0 0);
  transform: none;
  opacity: 1;
}

/* --- 3D tilt --- */

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.tilt.tilting { transition: transform 0.08s linear, box-shadow 0.4s ease; }

.tilt .tilt-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 246, 220, 0.28), transparent 42%);
  transition: opacity 0.4s ease;
  mix-blend-mode: soft-light;
}
.tilt:hover .tilt-shine { opacity: 1; }

.photo-card.tilt:hover, .video-card.tilt:hover {
  box-shadow: 0 34px 70px -26px rgba(60, 15, 33, 0.5);
}

.photo-card, .video-card, .book, .split-media .frame, .honour { position: relative; }

/* pop card content forward in 3D space */
.photo-card .body, .video-card .body { transform: translateZ(34px); }
.book h3, .book .idx, .book p { transform: translateZ(26px); }
.honour > * { transform: translateZ(24px); }
.photo-card, .video-card, .book, .honour { transform-style: preserve-3d; }

/* --- parallax media (JS drives --py) --- */

.px-wrap { overflow: hidden; }
.px-img {
  transform: translateY(var(--py, 0)) scale(1.18);
  will-change: transform;
}

.split-media .frame .px-wrap { position: relative; z-index: 1; }

/* --- hero cinematic layers --- */

.hero-media img {
  transform: translateY(var(--hero-y, 0)) scale(var(--hero-s, 1.12));
  will-change: transform;
  transition: none;
}

@keyframes heroIntro {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-media { animation: heroIntro 1.4s ease both; }

.hero-content > * {
  opacity: 0;
  transform: translateY(34px);
  animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.35s; }
.hero-content > *:nth-child(2) { animation-delay: 0.5s; }
.hero-content > *:nth-child(3) { animation-delay: 0.68s; }
.hero-content > *:nth-child(4) { animation-delay: 0.85s; }
.hero-content > *:nth-child(5) { animation-delay: 1.05s; }

@keyframes riseIn {
  to { opacity: 1; transform: none; }
}

/* gold dust canvas */
.dust-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero .container, .page-hero .container { position: relative; z-index: 2; }

/* --- page hero drift --- */

.page-hero::after {
  transform: translateY(var(--om-y, 0)) rotate(var(--om-r, 0deg));
  will-change: transform;
}

/* --- section depth: perspective containers --- */

.card-grid, .book-grid, .video-grid, .honour-grid { perspective: 1400px; }
.split { perspective: 1600px; }

/* --- gallery hover depth --- */

.gallery-grid figure {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.gallery-grid figure:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 30px 60px -24px rgba(60, 15, 33, 0.55);
  z-index: 2;
}

/* --- floating ornament in dark bands --- */

.quote-band { position: relative; overflow: hidden; }
.quote-band::before {
  content: "ॐ";
  position: absolute;
  left: -60px;
  top: -80px;
  font-family: var(--serif);
  font-size: 20rem;
  color: rgba(253, 249, 238, 0.045);
  transform: translateY(var(--om-y, 0));
  pointer-events: none;
}

/* --- header hide on scroll down, show on scroll up --- */

.site-header { transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.45s ease; }
.site-header.hidden { transform: translateY(-110%); }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero-media { animation: none; opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; transform: none; opacity: 1; transition: none; }
  .tilt, .px-img, .hero-media img { transform: none !important; }
  .dust-canvas { display: none; }
}
