/* ================================================================
   World Of Vijaya – Infinite Energy
   Design System
   ================================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ================================================================
   Design Tokens — Dark Mode (default; light mode commented out)
   ================================================================ */
:root {
  /* ---- Base Palette — Dark (Navy + Gold) ---- */
  --bg: #0F1D33;
  --surface: #1B2A4A;
  --surface-alt: #17253F;
  --surface-card: #1F3052;
  --fg: #F2F0EB;
  --muted: #8A9AB0;
  --border: #2C4A6E;
  --accent: #D4B96A;
  --accent-hover: #C5A55A;
  --accent-soft: rgba(212, 185, 106, 0.14);
  --accent-strong: #E0C87A;

  /* -- Light mode values (commented out) --
  --bg: linear-gradient(0.30turn, #fae7ec, #9cd7fffa);
  --surface: rgba(239, 239, 239, 0.608);
  --surface-alt: #E8E4DC;
  --surface-card: #FFFFFF;
  --fg: #1b2a4a;
  --muted: #5A6A7E;
  --border: #D4D2CC;
  --accent: #521A28;
  --accent-hover: #B8972F;
  --accent-soft: rgba(197, 165, 90, 0.12);
  --accent-strong: #A08838;
  -- */
  --navy: #1B2A4A;
  --navy-light: #2C4A6E;
  --navy-dark: #0F1D33;

  /* ---- Dark Mode Palette ---- */
  --dark-bg: #0F1D33;
  --dark-surface: #1B2A4A;
  --dark-surface-alt: #17253F;
  --dark-surface-card: #1F3052;
  --dark-fg: #F2F0EB;
  --dark-muted: #8A9AB0;
  --dark-border: #2C4A6E;
  --dark-accent: #D4B96A;

  /* ---- Nature ---- */
  --nature: #3D6B5D;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 42, 74, 0.10);
  --shadow-xl: 0 16px 64px rgba(27, 42, 74, 0.12);

  /* ---- Radii ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* ---- Layout ---- */
  --max-w: 1200px;
  --max-w-narrow: 800px;

  /* ---- Typography ---- */
  --font-display: 'Cinzel', serif;
  --font-sub: 'Cormorant Garamond', serif;
  --font-body: 'Lora', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

}

/* ================================================================
   Dark Mode
   ================================================================ */
[data-theme="dark"] {
  --bg: #0F1D33;
  --surface: #1B2A4A;
  --surface-alt: #17253F;
  --surface-card: #1F3052;
  --fg: #F2F0EB;
  --muted: #8A9AB0;
  --border: #2C4A6E;
  --accent: #D4B96A;
  --accent-hover: #C5A55A;
  --accent-soft: rgba(212, 185, 106, 0.14);
  --accent-strong: #E0C87A;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1D33;
    --surface: #1B2A4A;
    --surface-alt: #17253F;
    --surface-card: #1F3052;
    --fg: #F2F0EB;
    --muted: #8A9AB0;
    --border: #2C4A6E;
    --accent: #D4B96A;
    --accent-hover: #C5A55A;
    --accent-soft: rgba(212, 185, 106, 0.14);
    --accent-strong: #E0C87A;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.55);
  }
}

/* ================================================================
   Reset
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ================================================================
   Typography
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  transition: color 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: 0; }
h4 { font-size: clamp(0.9rem, 1.3vw, 1.05rem); letter-spacing: 0; }
.subheading {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}
.kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-strong, var(--accent));
}

/* ================================================================
   Layout
   ================================================================ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-w-narrow); }
.section {
  padding: clamp(36px, 5vw, 64px) 0;
  position: relative;
}
.section--alt { background: var(--surface); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-center .kicker, .text-center .subheading { margin: 0 auto; }

/* ---- Section Header Pattern ---- */
.section-header {
  max-width: 620px;
  margin-bottom: 36px;
}
.section-header.text-center { margin-left: auto; margin-right: auto; }
.section-header .kicker { margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-family: var(--font-sub);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ================================================================
   Ornamental Divider
   ================================================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider svg { width: 24px; height: 24px; color: var(--accent); opacity: 0.6; }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(27, 42, 74, 0.3); }
.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-dark {
  background: var(--navy-dark);
  color: #F2F0EB;
}
.btn-dark:hover { background: var(--navy); }
.btn-lg { padding: 13px 32px; font-size: 0.82rem; }
.btn-sm { padding: 8px 18px; font-size: 0.72rem; }

/* ================================================================
   Cards
   ================================================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ================================================================
   Navigation — Standard Sticky Header
   ================================================================ */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1320px);
  z-index: 1000;
  background: rgba(250, 250, 248, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(212, 210, 204, 0.4);
  border-radius: 24px;
  box-shadow:
    0 4px 24px rgba(27, 42, 74, 0.06),
    0 1px 3px rgba(27, 42, 74, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, top 0.3s ease,
              width 0.3s ease, border-radius 0.3s ease;
}
.nav:hover {
  box-shadow:
    0 8px 32px rgba(27, 42, 74, 0.10),
    0 2px 6px rgba(27, 42, 74, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: rgba(250, 250, 248, 0.65);
}
.nav.scrolled {
  top: 10px;
  background: rgba(250, 250, 248, 0.78);
  border-color: rgba(212, 210, 204, 0.55);
  box-shadow:
    0 8px 40px rgba(27, 42, 74, 0.10),
    0 2px 8px rgba(27, 42, 74, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .nav {
  background: rgba(15, 29, 51, 0.45);
  border-color: rgba(44, 74, 110, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .nav:hover {
  background: rgba(15, 29, 51, 0.55);
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(15, 29, 51, 0.75);
  border-color: rgba(44, 74, 110, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  transition: height 0.3s ease, padding 0.3s ease;
}
.nav.scrolled .nav-inner {
  height: 52px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links > a,
.nav-links > .mega-wrap > .mega-trigger {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-links > a::after,
.nav-links > .mega-wrap > .mega-trigger::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links > a:hover,
.nav-links > .mega-wrap > .mega-trigger:hover {
  color: var(--fg);
  background: rgba(27, 42, 74, 0.06);
}
.nav-links > a:hover::after,
.nav-links > .mega-wrap > .mega-trigger:hover::after {
  width: calc(100% - 28px);
}
.nav-links > a.active { color: var(--accent); }
.nav-links > a.active::after {
  width: calc(100% - 28px);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: 4px;
}
.theme-toggle:hover {
  background: rgba(27, 42, 74, 0.08);
  color: var(--fg);
}
.theme-toggle svg { width: 18px; height: 18px; }

/* CTA button */
.nav-cta {
  padding: 10px 22px !important;
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  margin-left: 8px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s !important;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.2);
}
.nav-cta:hover {
  background: var(--navy-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.3);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-toggle:hover { background: rgba(27, 42, 74, 0.08); }
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================================
   Mega Menu
   ================================================================ */
.mega-wrap { position: static; }

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  position: relative;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.mega-trigger:hover,
.mega-wrap.is-open > .mega-trigger {
  color: var(--fg);
  background: rgba(27, 42, 74, 0.06);
}
.mega-trigger svg {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mega-wrap.is-open > .mega-trigger svg { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(212, 210, 204, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(27, 42, 74, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.3s;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 999;
}

[data-theme="dark"] .mega-panel {
  background: rgba(15, 29, 51, 0.92);
  border-color: rgba(44, 74, 110, 0.4);
}

[data-theme="dark"] .mega-col-title {
  color: var(--accent);
  border-bottom-color: rgba(212, 185, 106, 0.18);
}

[data-theme="dark"] .mega-col a {
  color: rgba(178, 196, 220, 0.85);
}

[data-theme="dark"] .mega-col a:hover {
  color: var(--accent);
}

[data-theme="dark"] .mega-featured {
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.8) 0%, rgba(15, 29, 51, 0.9) 100%);
  border: 1px solid rgba(212, 185, 106, 0.2);
}

[data-theme="dark"] .mega-featured::before {
  background: radial-gradient(circle, rgba(212, 185, 106, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .mega-featured .btn {
  background: var(--accent);
  color: #0F1D33;
}

[data-theme="dark"] .mega-featured .btn:hover {
  background: #C9A855;
  color: #0F1D33;
}

[data-theme="dark"] .mega-featured .btn-outline-mega {
  color: var(--fg);
  border-color: rgba(212, 185, 106, 0.3);
  background: transparent;
}

[data-theme="dark"] .mega-featured .btn-outline-mega:hover {
  background: rgba(212, 185, 106, 0.1);
  color: var(--accent);
  border-color: rgba(212, 185, 106, 0.5);
}

.mega-wrap.is-open > .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 36px 40px 40px;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.mega-col-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(27, 42, 74, 0.15);
}

.mega-col ul { list-style: none; }
.mega-col li { margin-bottom: 0; }
.mega-col a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0;
  line-height: 1.5;
  transition: color 0.2s, padding-left 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.mega-col a:hover { color: var(--accent); padding-left: 6px; }

.mega-featured {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mega-featured::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.mega-featured-title {
  font-family: var(--font-sub);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.4;
}
.mega-featured-text {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.mega-featured .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  width: 100%;
  justify-content: center;
}
.mega-featured .btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.mega-featured .btn-outline-mega {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(27, 42, 74, 0.25);
  margin-top: 8px;
}
.mega-featured .btn-outline-mega:hover { background: rgba(27, 42, 74, 0.08); color: var(--navy-light); }

/* ================================================================
   Footer
   ================================================================ */
.footer {
  background: rgba(15, 29, 51, 0.96);
  backdrop-filter: blur(4px);
  color: #F2F0EB;
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: #F2F0EB;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.footer p { color: rgba(242, 240, 235, 0.6); font-size: 0.9rem; line-height: 1.6; }
.footer a { color: rgba(242, 240, 235, 0.7); text-decoration: none; transition: color 0.25s, text-decoration-color 0.25s; }
.footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(242, 240, 235, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(242, 240, 235, 0.4);
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { margin-bottom: 20px; }
.hero p {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ================================================================
   Path Cards
   ================================================================ */
.path-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.path-card:hover::before { transform: scaleX(1); }
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.path-card .path-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.path-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.path-card p {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* ================================================================
   Service Card
   ================================================================ */
.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: var(--fg);
  display: block;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--surface-card));
  z-index: 1;
  pointer-events: none;
}
.service-card-body { padding: 18px 20px; }
.service-card-body h3 { margin-bottom: 6px; font-size: 1rem; }
.service-card-body p { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.service-card-link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong, var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ================================================================
   Tool Card
   ================================================================ */
.tool-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: var(--fg);
  display: block;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
}
.tool-card h3 { margin-bottom: 8px; }
.tool-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }

/* ================================================================
   Testimonial
   ================================================================ */
.testimonial {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}
.testimonial p {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 16px;
  padding-top: 28px;
}
.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
}

/* ================================================================
   Stats Row
   ================================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent-strong, var(--accent));
  margin-bottom: 4px;
}
.stat-item p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================================================================
   Process Steps
   ================================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.process-step {
  counter-increment: step;
  text-align: center;
  padding: 24px;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-strong, var(--accent));
  opacity: 0.4;
  margin-bottom: 12px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--muted); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent-strong, var(--accent));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================================================================
   CTA Banner
   ================================================================ */
.cta-banner {
  background: rgba(15, 29, 51, 0.95);
  backdrop-filter: blur(4px);
  color: #F2F0EB;
  padding: 64px;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #F2F0EB; margin-bottom: 12px; }
.cta-banner p {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  color: rgba(242, 240, 235, 0.7);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   Form
   ================================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ================================================================
   Motion System — Temple Silence × Morning Sunlight
   Apple · Linear · Emil Kowalski
   ================================================================ */

/* ---- Keyframes ---- */
@keyframes page-enter {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes gentle-breathe {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---- Page Load Entry ---- */
body { animation: page-enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ---- Scroll-Triggered Reveal Base ---- */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.anim-fade { transform: none; }
.anim-fade.visible { transform: none; }

.anim-scale { transform: scale(0.97); }
.anim-scale.visible { transform: scale(1); }

/* ---- Parallax layer ---- */
.parallax-layer {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ---- Stagger Delays ---- */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
.stagger-7 { transition-delay: 0.56s; }
.stagger-8 { transition-delay: 0.64s; }

/* ---- Hero-specific ---- */
.hero .animate-in { transition-duration: 1.4s; }

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  body { animation: none; }
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1100px) {
  .nav { width: min(95%, 1100px); }
  .nav-inner { padding: 0 22px; }
  .mega-columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    width: calc(100% - 24px);
    top: 10px;
    border-radius: 18px;
  }
  .nav.scrolled { top: 6px; }
  .nav-inner {
    height: 52px;
    padding: 0 16px;
  }
  .nav.scrolled .nav-inner { height: 46px; }
  .nav-logo img { height: 30px; }
  .nav-logo span { font-size: 0.88rem; }

  .mobile-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.88);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(212, 210, 204, 0.4);
    border-radius: 18px;
    padding: 12px;
    gap: 2px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(27, 42, 74, 0.10);
    animation: mobile-nav-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  [data-theme="dark"] .nav-links.open {
    background: rgba(15, 29, 51, 0.88);
    border-color: rgba(44, 74, 110, 0.4);
  }

  @keyframes mobile-nav-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links > a,
  .nav-links > .mega-wrap > .mega-trigger {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-radius: 10px;
    width: 100%;
  }
  .nav-cta {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
    display: flex !important;
  }

  .theme-toggle { display: none; }

  .mega-panel {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    max-height: none;
    top: auto;
  }
  .mega-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
  }
  .mega-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mega-col {
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    padding-bottom: 0;
  }
  .mega-col-title {
    padding: 12px 16px;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
  }
  .mega-col-title::after {
    content: '+';
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--muted);
    transition: transform 0.3s;
  }
  .mega-col.is-expanded .mega-col-title::after { transform: rotate(45deg); }
  .mega-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0 0 0 16px;
  }
  .mega-col.is-expanded ul {
    max-height: 600px;
    padding: 4px 0 12px 16px;
  }
  .mega-col a { padding: 6px 0; font-size: 0.82rem; }
  .mega-featured { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 70vh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* hero-paths: 2-column grid, cards become horizontal rows */
  .hero-paths-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-path-card { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
  .hero-path-icon { width: 26px; height: 26px; flex-shrink: 0; }
  .hero-path-icon svg { width: 18px; height: 18px; }
  .hero-path-arrow { position: static; margin-left: auto; }
  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .card { padding: 24px; }
  /* hero-paths: single-column vertical list — all 6 visible at once */
  .hero-paths-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-x: unset;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .hero-paths-row::-webkit-scrollbar { display: none; }
  .hero-path-card {
    flex: unset;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    scroll-snap-align: unset;
  }
  .hero-path-icon { width: 28px; height: 28px; flex-shrink: 0; }
  .hero-path-icon svg { width: 18px; height: 18px; }
  .hero-path-text h3 { font-size: 0.72rem; }
  .hero-path-text span { font-size: 0.7rem; }
  .hero-path-arrow { position: static; margin-left: auto; flex-shrink: 0; }
}

/* ================================================================
   ELEVATION LAYER — Sanctuary × Gurukul × Vedic Heritage
   Paper texture · Gold foil · Ornaments · Motion choreography
   Pure CSS + small vanilla JS (no dependencies)
   ================================================================ */

/* ---- Refined tokens ---- */
:root {
  --gold-gradient: linear-gradient(135deg, #D4B96A 0%, #C5A55A 45%, #A08838 100%);
  --gold-foil: linear-gradient(110deg, #A08838 0%, #C5A55A 25%, #D4B96A 50%, #C5A55A 75%, #A08838 100%);
  --ink: #0F1D33;
  --ease-temple: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-incense: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] {
  --gold-gradient: linear-gradient(135deg, #E0C87A 0%, #D4B96A 50%, #C5A55A 100%);
  --gold-foil: linear-gradient(110deg, #C5A55A 0%, #D4B96A 25%, #E0C87A 50%, #D4B96A 75%, #C5A55A 100%);
}

/* ---- Parchment paper texture (subtle grain) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.20  0 0 0 0 0.22  0 0 0 0 0.32  0 0 0 0.30 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
[data-theme="dark"] body::before {
  opacity: 0.25;
  mix-blend-mode: screen;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before {
    opacity: 0.25;
    mix-blend-mode: screen;
  }
}

/* Make sure all real content sits above the grain */
main, .footer { position: relative; z-index: 2; }


/* ---- Sacred vignette ---- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(197, 165, 90, 0.06), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(27, 42, 74, 0.04), transparent 60%),
    var(--bg);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(197, 165, 90, 0.08), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0, 0, 0, 0.4), transparent 60%),
    var(--bg);
}

/* ---- Ornamental flourishes ---- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 28px;
  max-width: 320px;
  opacity: 0.85;
}
.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 50%, transparent);
  opacity: 0.6;
}
.ornament-glyph {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent-strong, var(--accent));
  font-weight: 600;
  text-transform: uppercase;
}
.ornament-glyph svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  display: block;
}

/* ---- Section ornament: pure SVG flourish ---- */
.section-ornament {
  display: block;
  margin: 0 auto 32px;
  width: 80px;
  height: 24px;
  color: var(--accent);
  opacity: 0.7;
}

/* ---- Hero kicker with gold underline ---- */
.hero .kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hero .kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ---- Word-split hero heading ---- */
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero h1 .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-temple);
  will-change: transform;
}
.hero h1 .word.italic .word-inner {
  font-family: var(--font-sub);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-strong, var(--accent));
}
.hero.is-loaded h1 .word-inner { transform: translateY(0); }
.hero h1 .word:nth-child(1) .word-inner { transition-delay: 0.10s; }
.hero h1 .word:nth-child(2) .word-inner { transition-delay: 0.18s; }
.hero h1 .word:nth-child(3) .word-inner { transition-delay: 0.26s; }
.hero h1 .word:nth-child(4) .word-inner { transition-delay: 0.34s; }
.hero h1 .word:nth-child(5) .word-inner { transition-delay: 0.42s; }
.hero h1 .word:nth-child(6) .word-inner { transition-delay: 0.50s; }
.hero h1 .word:nth-child(7) .word-inner { transition-delay: 0.58s; }
.hero h1 .word:nth-child(8) .word-inner { transition-delay: 0.66s; }
.hero h1 .word:nth-child(9) .word-inner { transition-delay: 0.74s; }

/* ---- Mantra strip under hero subhead ---- */
.mantra-strip {
  margin-top: 12px;
  padding: 12px 18px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(184, 138, 68, 0.06), transparent);
  border-radius: 0 8px 8px 0;
  max-width: 460px;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}
.mantra-sanskrit {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent-strong, var(--accent));
  margin-bottom: 6px;
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s var(--ease-temple), transform 0.7s var(--ease-temple);
}
.mantra-translation {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s var(--ease-temple) 0.1s, transform 0.7s var(--ease-temple) 0.1s;
}
.mantra-strip.is-active .mantra-sanskrit,
.mantra-strip.is-active .mantra-translation {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero mandala parallax wrapper ---- */
.hero-sacred {
  --parallax-y: 0;
  --parallax-rot: 0;
}
.hero-sacred .mandala-1,
.hero-sacred .mandala-2,
.hero-sacred .lotus-1 {
  color: var(--accent);
  opacity: 0.07;
  transition: opacity 1.5s var(--ease-temple);
}
[data-theme="dark"] .hero-sacred .mandala-1,
[data-theme="dark"] .hero-sacred .mandala-2,
[data-theme="dark"] .hero-sacred .lotus-1 { opacity: 0.10; }
.hero-sacred .mandala-1 {
  transform: translateY(calc(var(--parallax-y, 0) * 0.4px)) rotate(calc(var(--parallax-y, 0) * 0.05deg));
  will-change: transform;
}
.hero-sacred .mandala-2 {
  transform: translateY(calc(var(--parallax-y, 0) * -0.25px)) rotate(calc(var(--parallax-y, 0) * -0.04deg));
  will-change: transform;
}
.hero-sacred .lotus-1 {
  transform: translateY(calc(var(--parallax-y, 0) * 0.15px));
  will-change: transform;
  animation: gentle-breathe 8s ease-in-out infinite;
}

/* ---- Ember particles ---- */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ember {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0;
  animation: ember-rise var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
}
@keyframes ember-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-50vh) translateX(var(--drift, 20px)); opacity: 0.4; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-100vh) translateX(calc(var(--drift, 20px) * 2)); opacity: 0; }
}

/* ---- Gold-foil button ---- */
.btn-foil {
  position: relative;
  background: var(--gold-foil);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #FFFDF5;
  border: none;
  font-weight: 600;
  letter-spacing: 0.1em;
  box-shadow:
    0 1px 0 rgba(255, 253, 245, 0.3) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 6px 20px rgba(197, 165, 90, 0.3);
  transition: background-position 0.9s var(--ease-temple), transform 0.3s var(--ease-temple), box-shadow 0.3s var(--ease-temple);
}
.btn-foil::after { display: none; }
.btn-foil:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 253, 245, 0.4) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 10px 30px rgba(197, 165, 90, 0.4);
  color: #FFFDF5;
}
.btn-foil::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s var(--ease-temple);
  pointer-events: none;
}
.btn-foil:hover::before { left: 120%; }

/* ---- Outline button refinement ---- */
.btn-outline {
  position: relative;
  background: transparent;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.4s;
}
.btn-outline:hover::before { opacity: 1; }

/* ---- Magnetic hover (pure CSS via custom props, JS drives --mx/--my) ---- */
.magnetic {
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.5s var(--ease-spring);
  will-change: transform;
}

/* ---- Hero path cards refinement ---- */
.hero-path-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  transition: transform 0.6s var(--ease-temple),
              border-color 0.4s, box-shadow 0.5s var(--ease-temple);
  overflow: hidden;
}
.hero-path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(197, 165, 90, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-temple);
  pointer-events: none;
}
.hero-path-card:hover::before { opacity: 1; }
.hero-path-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(27, 42, 74, 0.12);
}
.hero-path-card::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-temple);
}
.hero-path-card:hover::after { transform: scaleX(1); }
.hero-path-text h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Stat numerals with gold foil ---- */
.stats-row .stat-item h3 {
  background: var(--gold-foil);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-feature-settings: 'lnum';
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}
.stat-item {
  padding: 16px 12px;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

/* ---- Service card image w/ greyscale → colour hover ---- */
.service-card { position: relative; }
.service-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card-img img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}
.service-card {
  position: relative;
  isolation: isolate;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gold-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s var(--ease-temple);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { border-color: transparent; transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27, 42, 74, 0.14); }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.4s var(--ease-temple);
}
.service-card:hover .service-card-link { gap: 12px; }

/* ---- Path card on home ---- */
.path-card::before { background: var(--gold-gradient); height: 2px; }

/* ---- Journey horizontal (elevation handled in page styles) ---- */

/* ---- Testimonial editorial upgrade ---- */
.testimonial {
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface) 100%);
  transition: transform 0.6s var(--ease-temple), box-shadow 0.5s var(--ease-temple), border-color 0.4s;
}
.testimonial:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.testimonial::before {
  font-size: 3.5rem;
  top: 0;
  left: 24px;
  opacity: 0.18;
  background: var(--gold-foil);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.testimonial p {
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
  padding-top: 20px;
}
.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong, var(--accent));
}

/* ---- Tool card refinement ---- */
.tool-card {
  padding: 32px 24px;
  background: linear-gradient(180deg, var(--surface-card), var(--surface));
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 165, 90, 0.08) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-temple);
  pointer-events: none;
}
.tool-card:hover::before { opacity: 1; }
.tool-card-icon {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 0 6px var(--accent-soft),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.6s var(--ease-temple);
}
.tool-card:hover .tool-card-icon { transform: scale(1.06) rotate(6deg); }

/* ---- Blog card refinement ---- */
.blog-card { position: relative; transition: transform 0.6s var(--ease-temple), box-shadow 0.5s, border-color 0.4s; }
.blog-card:hover { border-color: var(--accent); }
.blog-card-img {
  height: 220px;
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%),
    var(--surface-alt);
  font-size: 3rem;
  position: relative;
}
.blog-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(197, 165, 90, 0.12), transparent 60%);
  transition: transform 1.4s var(--ease-temple);
}
.blog-card:hover .blog-card-img::before { transform: scale(1.1); }
.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

/* ---- CTA banner with gold ornament ---- */
.cta-banner {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(197, 165, 90, 0.12), transparent 60%),
    rgba(15, 29, 51, 0.96);
  padding: 64px 40px;
  border: 1px solid rgba(197, 165, 90, 0.2);
  position: relative;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.cta-banner p {
  font-family: var(--font-sub);
  font-size: 1rem;
  font-style: italic;
}

/* ---- Section header — centered ornament style ---- */
.section-header.text-center .kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-header.text-center .kicker::before,
.section-header.text-center .kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.section-header h2 .accent {
  font-family: var(--font-sub);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-strong, var(--accent));
}

/* ---- Mask reveal headings ---- */
.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-temple);
  will-change: transform;
}
.reveal-mask.is-visible > span { transform: translateY(0); }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold-foil);
  background-size: 200% 100%;
  z-index: 1001;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---- Page transition wipe ---- */
.page-wipe {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(197, 165, 90, 0.12), transparent 60%),
    var(--bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-temple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-wipe.is-active {
  opacity: 1;
  pointer-events: auto;
}
.page-wipe-glyph {
  width: 80px;
  height: 80px;
  color: var(--accent);
  opacity: 0;
  animation: glyph-spin 1.4s linear infinite;
}
.page-wipe.is-active .page-wipe-glyph {
  opacity: 1;
  transition: opacity 0.4s 0.1s var(--ease-temple);
}
@keyframes glyph-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ---- Service hero logo ---- */
.service-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.service-hero-content { position: relative; z-index: 2; }
.service-hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.service-hero-logo .logo-glow {
  position: absolute;
  width: clamp(220px, 22vw, 340px);
  height: clamp(220px, 22vw, 340px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 30, 40, 0.20) 0%, rgba(120, 30, 40, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.service-hero-logo img {
  position: relative;
  width: clamp(200px, 22vw, 340px);
  height: auto;
  animation: logo-float 8s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 768px) {
  .service-hero .container { grid-template-columns: 1fr; text-align: center; }
  .service-hero-logo { order: -1; }
  .service-hero-logo img { width: clamp(160px, 45vw, 220px); }
  .service-hero-logo .logo-glow { width: clamp(180px, 50vw, 260px); height: clamp(180px, 50vw, 260px); }
}

/* ---- Mega menu refinement ---- */
.mega-panel {
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(197, 165, 90, 0.06), transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(27, 42, 74, 0.12);
}
.mega-col a {
  position: relative;
}
.mega-col a::before {
  content: '·';
  color: var(--accent);
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: opacity 0.3s, left 0.3s;
}
.mega-col a:hover::before { opacity: 1; left: -8px; }

/* ---- Mobile responsive tweaks for new system ---- */
@media (max-width: 768px) {
  .mantra-strip { min-height: 100px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .cta-banner { padding: 48px 24px; }
}
@media (max-width: 480px) {
  body::before { opacity: 0.25; }
  .embers, .scroll-progress { display: none; }
  .stats-row { gap: 16px; }
  .stat-item { padding: 16px 8px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .word-inner { transform: none !important; transition: none !important; }
  .ember, .hero-sacred .lotus-1 { animation: none !important; }
  .magnetic { transform: none !important; transition: none !important; }
  .page-wipe-glyph { animation: none !important; }
  .reveal-mask > span { transform: none !important; }
  body::before { display: none; }
}
