:root {
  --maroon: #5a0f1c;
  --gold: #c9a34e;
  --ivory: #fff8f0;
  --charcoal: #1f1f1f;
  --panel: #f8eee1;
  --radius: 14px;
  --shadow: 0 16px 34px rgba(31, 31, 31, 0.12);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-standard: 0.34s var(--ease-premium);
  --motion-reveal: 0.56s var(--ease-premium);
  --motion-delay: 0.1s;
  --frame-side-width: 45px;
  --frame-top-height: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Lato", sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.temple-layout {
  position: relative;
  min-height: 100vh;
}

.temple-layout::before,
.temple-layout::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--frame-side-width);
  z-index: 0;
  background-image: url("assets/images/left_and_right_b.jpg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  opacity: 0.82;
  pointer-events: none;
}

.temple-layout::before {
  left: 0;
}

.temple-layout::after {
  right: 0;
}

.with-page-background {
  background: #12090b;
}

.page-bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.page-bg-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 8, 0.68);
}

.about-page .page-bg-slideshow::after {
  background: rgba(10, 5, 8, 0.42);
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.15s var(--ease-premium), transform 1.15s var(--ease-premium);
}

.bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 248, 240, 0.88);
  border-bottom: 1px solid rgba(90, 15, 28, 0.12);
  transition: background-color 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), border-color 0.35s var(--ease-premium);
}

.site-header::after {
  content: "";
  display: block;
  width: 100%;
  height: var(--frame-top-height);
  background-image: url("assets/images/top_ and_bottom_b.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center top;
  opacity: 0.84;
}

.site-header.scrolled {
  background: rgba(255, 248, 240, 0.97);
  border-bottom-color: rgba(90, 15, 28, 0.2);
  box-shadow: 0 8px 22px rgba(90, 15, 28, 0.14);
}

.nav-wrap {
  width: min(1200px, calc(100% - 132px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: "Playfair Display", serif;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  transition: transform 0.28s var(--ease-premium), opacity 0.28s var(--ease-premium);
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  transition: color 0.25s var(--ease-premium), background-color 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--maroon);
  background: rgba(201, 163, 78, 0.22);
}

.menu-btn {
  display: none;
  border: 1px solid rgba(90, 15, 28, 0.35);
  color: var(--maroon);
  background: transparent;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-weight: 700;
}

.container {
  width: min(1120px, calc(100% - 132px));
  margin: 0 auto;
}

.hero {
  padding: clamp(2rem, 4vw, 4.8rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: center;
}

.hero-title span {
  display: block;
  color: var(--charcoal);
  font-size: clamp(1.8rem, 4.1vw, 3rem);
}

.hero-brand-panel {
  width: min(100%, 380px);
  aspect-ratio: 1;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  margin-inline: auto;
  position: relative;
}

.academy-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.2);
  transform-origin: center;
}

.kicker {
  font-size: 0.95rem;
  color: var(--maroon);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--maroon);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
}

p {
  margin: 0 0 1rem;
}

.quote-box {
  background: linear-gradient(135deg, #f6e9d4, #fff8f0);
  border: 1px solid rgba(90, 15, 28, 0.14);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 1.1rem 1.2rem;
}

.quote-copy {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.quote-motif {
  width: min(100%, 108px);
  height: auto;
  object-fit: contain;
  display: block;
}

.quote-line {
  margin: 0;
  font-family: "Playfair Display", serif;
  color: var(--maroon);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  text-align: center;
  justify-self: center;
}

button,
.btn,
a.btn {
  appearance: none;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--gold);
  color: #24190b;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium), filter 0.22s var(--ease-premium), background-color 0.22s var(--ease-premium);
}

button:hover,
.btn:hover,
a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(90, 15, 28, 0.24);
  filter: brightness(1.03);
}

section {
  padding: clamp(1.8rem, 3.5vw, 3.2rem) 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.two-col-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border: 1px solid rgba(90, 15, 28, 0.13);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 16px rgba(90, 15, 28, 0.08);
}

.bullet-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.quote {
  border-left: 4px solid var(--gold);
  padding: 0.8rem 1rem;
  background: var(--panel);
  border-radius: 8px;
  font-style: italic;
}

.interactive-panel {
  transition: transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard), background-color var(--motion-standard);
}

.interactive-panel:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 34px rgba(31, 31, 31, 0.16);
  border-color: rgba(201, 163, 78, 0.62);
}

.quote.interactive-panel:hover {
  background: #f4e5ce;
}

.content-panel {
  background: rgba(255, 248, 240, 0.97);
  border: 1px solid rgba(201, 163, 78, 0.3);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.about-page .content-panel {
  background: rgba(255, 248, 240, 0.86);
  border: 1px solid rgba(201, 163, 78, 0.4);
  backdrop-filter: blur(1.8px) saturate(1.08);
}

.guru-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.guru-center {
  text-align: center;
}

.guru-photo {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(201, 163, 78, 0.55);
  box-shadow: var(--shadow);
}

.guru-photo-center {
  max-width: 340px;
  margin: 0 auto 1rem;
}

.guru-name-line {
  margin: 0 0 1.2rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--maroon);
}

.black-panel {
  background: #070707;
  border-radius: 14px;
  padding: 1.2rem;
}

.black-panel h2 {
  color: #f5d089;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: stretch;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.location-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 248, 240, 0.22);
  min-height: 320px;
  padding: 1.1rem;
  color: #fff8f0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 24px rgba(31, 31, 31, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
}

.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62));
}

.location-card > * {
  position: relative;
  z-index: 1;
}

.location-card h3 {
  color: #fff8f0;
  margin-bottom: 0.3rem;
}

.location-card p {
  margin: 0;
}

.location-meta {
  font-weight: 700;
  color: #f5d089;
}

.video-tile {
  position: relative;
  margin: 0;
  flex: 1 1 360px;
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 248, 240, 0.26);
  overflow: hidden;
  background: #0f0f0f;
  padding: 0.55rem;
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.24);
  transition: transform var(--motion-standard), box-shadow var(--motion-standard), border-color var(--motion-standard);
}

.video-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 163, 78, 0.52);
  box-shadow: 0 14px 30px rgba(31, 31, 31, 0.34);
}

.video-tile video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform var(--motion-standard), filter var(--motion-standard);
}

.video-tile:hover video {
  transform: scale(1.04);
}

.video-tile.is-playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 240, 0.36);
  background: rgba(201, 163, 78, 0.88);
  color: #24190b;
  font-size: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: transform var(--motion-standard), opacity var(--motion-standard), background-color var(--motion-standard);
  z-index: 2;
}

.video-play-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.1rem;
}

.video-tile:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(201, 163, 78, 1);
}

.play-badge {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(201, 163, 78, 0.94);
  color: #261704;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  gap: 0.9rem;
}

.image-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0b0b0b;
  display: block;
  grid-row-end: span 30;
  border-radius: 10px;
  border: 1px solid rgba(255, 248, 240, 0.26);
  cursor: pointer;
  transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium);
}

.image-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(90, 15, 28, 0.3);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff8f0;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 248, 240, 0.15);
  color: #fff8f0;
  border: none;
  padding: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 248, 240, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff8f0;
  font-size: 0.9rem;
}

.action-wrap {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-wrap {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--gold);
  color: #24190b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s var(--ease-premium), box-shadow 0.22s var(--ease-premium);
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(90, 15, 28, 0.24);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.footer {
  position: relative;
  z-index: 100;
  margin-top: auto;
  background: #2c0c13;
  color: #fce8c5;
  padding: 1.2rem 0;
  text-align: center;
}

.footer::before {
  content: "";
  display: block;
  width: 100%;
  margin: 0 auto 0.55rem;
  height: var(--frame-top-height);
  background-image: url("assets/images/top_ and_bottom_b.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center top;
  opacity: 0.86;
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity var(--motion-reveal), transform var(--motion-reveal);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal.show.interactive-panel:hover {
  transform: translateY(-4px) scale(1.015);
}

.stagger-1 {
  transition-delay: var(--motion-delay);
}

.stagger-2 {
  transition-delay: var(--motion-delay);
}

.stagger-3 {
  transition-delay: var(--motion-delay);
}

.stagger-4 {
  transition-delay: var(--motion-delay);
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 64px;
    right: 4%;
    width: min(90vw, 380px);
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 248, 240, 0.98);
    border: 1px solid rgba(90, 15, 28, 0.14);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transform: scale(0.98) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.26s var(--ease-premium), opacity 0.26s var(--ease-premium), visibility 0.26s var(--ease-premium);
  }

  .nav-links.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .card-grid,
  .two-col-cards,
  .guru-layout,
  .location-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    justify-content: stretch;
  }

  .video-tile {
    flex-basis: 100%;
    max-width: none;
  }

  .video-tile img,
  .video-tile video {
    aspect-ratio: 16 / 9;
  }

  .video-play-btn {
    width: 2rem;
    height: 2rem;
  }

  .video-play-btn svg {
    width: 0.9rem;
    height: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --frame-side-width: 18px;
    --frame-top-height: 17px;
  }

  .temple-layout::before,
  .temple-layout::after {
    width: var(--frame-side-width);
    opacity: 0.38;
  }

  .container {
    width: min(100%, calc(100% - 48px));
  }

  .nav-wrap {
    width: min(100%, calc(100% - 48px));
  }

  .hero-brand-panel {
    width: min(100%, 300px);
  }

  .academy-logo {
    transform: scale(1.16);
  }

  .quote-box {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .quote-motif {
    width: 96px;
  }

  .location-card {
    min-height: 260px;
  }

  .video-grid {
    gap: 0.85rem;
  }
}
