:root {
  color-scheme: light;
  --ivory: #fffaf0;
  --paper: #fffdf8;
  --maroon: #8d171d;
  --maroon-dark: #651015;
  --rose: #a70c42;
  --gold: #d7a33d;
  --gold-soft: #efd69a;
  --ink: #3b2a23;
  --muted: #6d5a50;
  --line: rgba(141, 23, 29, 0.13);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(215, 163, 61, 0.76); outline-offset: 4px; }
.shell { width: min(100% - 48px, 1260px); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 3000; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--maroon); }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid rgba(215, 163, 61, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 5px 22px rgba(77, 36, 12, 0.07);
  transition: background 240ms ease, box-shadow 240ms ease;
}
.site-header.compact { background: rgba(255, 253, 248, 0.985); box-shadow: 0 8px 30px rgba(77, 36, 12, 0.12); }
.site-nav { position: relative; z-index: 2; display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: 32px; padding: 8px clamp(22px, 4vw, 58px); transition: min-height 240ms ease; }
.compact .site-nav { min-height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--maroon); text-decoration: none; }
.brand-logo { width: 50px; height: 50px; border: 1px solid rgba(215, 163, 61, 0.55); border-radius: 50%; object-fit: cover; transition: width 240ms ease, height 240ms ease; }
.compact .brand-logo { width: 42px; height: 42px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font: 700 25px/1.1 var(--serif); letter-spacing: -0.02em; }
.brand-copy span { margin-top: 4px; color: #98631f; font-size: 10px; font-weight: 650; letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link, .nav-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 10px; color: #62463d; font-size: 14px; font-weight: 700; text-decoration: none; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.nav-link:hover, .nav-link.active { color: var(--maroon); background: rgba(215, 163, 61, 0.12); }
.nav-cta { margin-left: 6px; background: var(--maroon); color: #fff; box-shadow: 0 8px 20px rgba(141, 23, 29, 0.2); }
.nav-cta:hover { transform: translateY(-2px); background: var(--maroon-dark); }
.menu-toggle { display: none; min-width: 52px; min-height: 44px; border: 1px solid rgba(141, 23, 29, 0.18); border-radius: 10px; background: var(--paper); color: var(--maroon); font: 700 14px var(--sans); }
.menu-scrim { display: none; }

.hero {
  position: relative;
  min-height: 655px;
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
  background: #efd49e;
}
.hero-art { position: absolute; inset: 0; z-index: -3; background: url("/assets/sacred-cinematic-hero-4k-v1.webp") center / cover no-repeat; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(52, 13, 9, 0.9) 0%, rgba(73, 24, 12, 0.72) 31%, rgba(73, 24, 12, 0.2) 58%, transparent 76%);
}
.hero-light { position: absolute; top: 8%; left: -10%; z-index: -1; width: 60%; height: 70%; background: radial-gradient(circle, rgba(255, 247, 213, 0.46), rgba(255, 239, 184, 0.08) 48%, transparent 72%); filter: blur(10px); animation: breathe-light 9s ease-in-out infinite; pointer-events: none; }
.water-shimmer { position: absolute; inset: auto 0 0; z-index: -1; height: 32%; opacity: 0.36; background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.62) 42%, transparent 58%); transform: translateX(-45%); animation: water-glow 8s ease-in-out infinite; pointer-events: none; }
.hero-copy { min-height: 581px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 44px 68px; }
.hero-eyebrow { margin: 0 0 18px; color: #f6d887; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { margin: 0 0 16px; color: #8b5317; font-size: 12px; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--maroon); font-family: var(--serif); font-weight: 600; letter-spacing: -0.035em; }
h1 { max-width: 620px; font-size: clamp(48px, 3.8vw, 53px); line-height: 1.02; }
.hero h1 { color: #fff9eb; text-shadow: 0 3px 24px rgba(35, 8, 5, .28); }
.hero h1 span { color: #f4cb70; }
.hero h1 span { white-space: nowrap; }
.hero-lede { max-width: 510px; margin: 22px 0 0; color: rgba(255, 249, 235, .9); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.button { position: relative; display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 12px; overflow: hidden; padding: 0 26px; border-radius: 10px; background: var(--maroon); color: #fff; box-shadow: 0 12px 28px rgba(141, 23, 29, 0.22); font-weight: 750; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button::before { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 35%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 650ms ease; }
.button:hover { transform: translateY(-3px); background: var(--maroon-dark); box-shadow: 0 16px 34px rgba(141, 23, 29, 0.3); }
.button:hover::before { left: 135%; }
.button img { width: 20px; filter: brightness(0) invert(1); }
.primary-button { min-width: 220px; font-size: 17px; }
.hero-secondary { color: #fff4d5; font-size: 14px; font-weight: 750; text-decoration: none; border-bottom: 1px solid rgba(255,244,213,.55); padding: 12px 0 8px; }
.hero-secondary span { margin-left: 7px; }
.text-link { color: var(--maroon); font-size: 14px; font-weight: 750; text-underline-offset: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 27px 0 0; padding: 0; list-style: none; }
.trust-row li { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(244, 203, 112, .4); border-radius: 999px; background: rgba(48, 10, 8, .48); color: #fff3d0; box-shadow: 0 5px 14px rgba(20, 5, 2, .12); font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }
.trust-row img { filter: brightness(0) invert(1) !important; opacity: .82; }

.programs-section { padding: 92px 0 104px; background: #fffaf0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: end; gap: 64px; margin-bottom: 42px; }
.section-heading h2 { max-width: 760px; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.04; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { position: relative; display: flex; min-height: 310px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 28px; border: 1px solid rgba(141,23,29,.12); border-radius: 22px; color: #fff; text-decoration: none; box-shadow: 0 18px 48px rgba(70, 31, 14, .12); transition: transform .25s ease, box-shadow .25s ease; }
.program-card::before { content:""; position:absolute; inset:0; z-index:0; background: linear-gradient(155deg, rgba(55,12,8,.12), rgba(55,12,8,.88)); }
.program-card > * { position: relative; z-index: 1; }
.program-card-gita { background: linear-gradient(145deg,#c98725,#6e170f); }
.program-card-shloka { background: linear-gradient(145deg,#9f2728,#4e0e14); }
.program-card-home { background: linear-gradient(145deg,#795522,#32130b); }
.program-card:hover { transform: translateY(-7px); box-shadow: 0 26px 58px rgba(70,31,14,.2); }
.program-number { width: 42px; height: 42px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.35); border-radius:50%; font-size:12px; font-weight:800; }
.program-card p { margin: 0 0 8px; color:#f5d889; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.program-card h3 { margin:0 0 10px; font: 600 30px/1.08 var(--serif); }
.program-card div span { display:block; max-width:280px; color:rgba(255,255,255,.8); font-size:14px; line-height:1.55; }
.program-card > b { position:absolute; right:24px; bottom:24px; display:grid; width:42px; height:42px; place-items:center; border-radius:50%; background:rgba(255,255,255,.14); font-size:20px; }
.trust-row img { width: 15px; opacity: 0.78; }
.trust-row li:nth-child(1) img { filter: invert(42%) sepia(59%) saturate(1141%) hue-rotate(171deg) brightness(85%) contrast(91%); }
.trust-row li:nth-child(2) img { filter: invert(29%) sepia(11%) saturate(675%) hue-rotate(334deg) brightness(88%) contrast(87%); }
.trust-row li:nth-child(3) img,
.trust-row li:nth-child(4) img { filter: invert(67%) sepia(65%) saturate(557%) hue-rotate(358deg) brightness(91%) contrast(90%); }

.journey-section { position: relative; min-height: 390px; padding: 32px 0 36px; overflow: hidden; background: var(--paper); }
.journey-heading { position: relative; z-index: 2; text-align: center; }
.journey-heading .eyebrow { color: var(--maroon); }
.journey-heading h2 { font-size: clamp(34px, 3vw, 42px); line-height: 1.08; }
.journey-heading > p:last-child { margin: 9px auto 0; color: var(--muted); font-size: 15px; }
.journey-stage { position: relative; min-height: 218px; margin-top: 0; padding-top: 12px; }
.journey-feather { position: absolute; top: 6px; left: -3%; width: 108%; height: auto; max-height: none; object-fit: contain; opacity: 0.82; transform-origin: center; animation: feather-float 8s ease-in-out infinite; pointer-events: none; }
.milestones { position: relative; z-index: 2; display: grid; width: 84%; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 0 4%; }
.milestone { --step-y: 28px; display: grid; justify-items: center; gap: 5px; padding: var(--step-y) 0 0; border: 0; background: transparent; color: var(--muted); font-family: var(--sans); cursor: pointer; }
.milestone:nth-child(2) { --step-y: 68px; }
.milestone:nth-child(3) { --step-y: 28px; }
.milestone:nth-child(4) { --step-y: 64px; }
.milestone-icon { display: grid; width: 68px; height: 68px; place-items: center; border: 1px solid rgba(215, 163, 61, 0.58); border-radius: 50%; background: rgba(255, 253, 248, 0.96); box-shadow: 0 8px 22px rgba(92, 48, 15, 0.09); transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease; }
.milestone-icon img { width: 27px; opacity: 0.86; filter: invert(65%) sepia(62%) saturate(535%) hue-rotate(359deg) brightness(96%) contrast(86%); }
.milestone strong { margin-top: 5px; color: #59372d; font: 600 19px/1.2 var(--serif); }
.milestone small { font-size: 12px; }
.milestone:hover .milestone-icon, .milestone.active .milestone-icon { transform: translateY(-6px) scale(1.05); background: #fff4d7; box-shadow: 0 13px 30px rgba(132, 77, 17, 0.17), 0 0 0 7px rgba(215, 163, 61, 0.1); }
.milestone.active strong { color: var(--maroon); }
.journey-button { display: flex; min-width: 190px; width: max-content; min-height: 50px; margin: 18px auto 0; }

.promise-section { padding: 104px 0; background: #f5e4c5; }
.promise-grid { display:grid; grid-template-columns: minmax(280px,.75fr) minmax(420px,1.25fr); align-items:center; gap:clamp(48px,7vw,100px); }
.teacher-portrait { overflow:hidden; aspect-ratio:4/5; max-height:560px; border-radius:180px 180px 24px 24px; box-shadow:0 24px 60px rgba(74,31,15,.18); }
.teacher-portrait img { width:100%; height:100%; object-fit:cover; object-position:center 18%; }
.promise-inner { max-width: 680px; text-align: left; }
.promise-inner h2 { font-size: clamp(40px, 5vw, 62px); }
.promise-inner > p:not(.eyebrow) { margin: 18px auto 24px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.promise-inner blockquote { margin:30px 0 22px; padding:0 0 0 24px; border-left:3px solid var(--gold); color:#6f2a22; font:italic 600 23px/1.55 var(--serif); }
.teacher-name { display:flex; flex-direction:column; gap:4px; margin-bottom:24px !important; font-size:14px !important; line-height:1.35 !important; }
.teacher-name strong { color:var(--maroon); }
.teacher-name span { color:var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px clamp(24px, 5vw, 72px); border-top: 1px solid var(--line); background: #fffdf8; color: var(--muted); font-size: 13px; }
.site-footer span:first-child { color: var(--maroon); font: 700 16px var(--serif); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
@keyframes breathe-light { 0%, 100% { opacity: 0.62; transform: scale(0.98); } 50% { opacity: 0.9; transform: scale(1.05); } }
@keyframes water-glow { 0%, 100% { transform: translateX(-48%); opacity: 0.14; } 50% { transform: translateX(48%); opacity: 0.38; } }
@keyframes feather-float { 0%, 100% { transform: translateY(0) rotate(-0.35deg); } 50% { transform: translateY(-7px) rotate(0.35deg); } }

@media (max-width: 980px) {
  :root { --header-height: 66px; }
  .site-nav { min-height: var(--header-height); padding-inline: 18px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy span { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu-scrim.open { position: fixed; inset: var(--header-height) 0 0; z-index: 1; display: block; width: 100%; border: 0; background: rgba(45, 26, 19, 0.48); backdrop-filter: blur(3px); }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 3; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; box-shadow: 0 22px 52px rgba(55, 28, 16, 0.24); }
  .nav-links.open { display: grid; }
  .nav-link, .nav-cta { justify-content: center; }
  .nav-cta { grid-column: 1 / -1; margin: 4px 0 0; }
  .hero { min-height: 780px; }
  .hero-copy { min-height: 714px; }
  .hero-art { background-position: center; }
  .hero::after { background: linear-gradient(90deg, rgba(255, 250, 240, 0.62), rgba(255, 250, 240, 0.28) 52%, rgba(255, 250, 240, 0.04)); }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .program-card:last-child { grid-column:1 / -1; min-height:250px; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 1260px); }
  .brand-logo { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 18px; }
  .hero { min-height: 0; padding-top: var(--header-height); background: var(--ivory); }
  .hero-art { position: relative; inset: auto; width: 100%; height: 232px; background-image: url("/assets/sacred-cinematic-hero-mobile-v1.webp"); background-size: cover; background-position: center; }
  .hero::after { display: none; }
  .hero-light, .water-shimmer { display: none; }
  .hero-copy { min-height: 0; padding-block: 18px 48px; align-items: center; text-align: center; }
  .hero-eyebrow { color:#8b5317; }
  .hero h1 { color:var(--maroon); text-shadow:none; }
  .hero h1 span { color:#b66d19; }
  .hero-lede { color:#523e34; }
  .hero-secondary { color:var(--maroon); }
  .trust-row li { background:#fffaf0; color:#72492d; border-color:rgba(215,163,61,.38); }
  .trust-row img { filter:none !important; }
  h1 { max-width: 358px; font-size: clamp(38px, 10.3vw, 42px); line-height: 1.03; }
  .hero h1 span { white-space: normal; }
  .hero-lede { max-width: 350px; margin-top: 18px; font-size: 15px; line-height: 1.58; }
  .hero-actions { justify-content: center; gap: 16px; }
  .trust-row { justify-content: center; }
  .trust-row li { font-size: 11px; }
  .journey-section { padding-block: 58px 68px; }
  .journey-heading h2 { font-size: 38px; }
  .journey-heading > p:last-child { font-size: 15px; }
  .journey-stage { min-height: 0; padding-top: 76px; }
  .journey-feather { top: 12px; left: -9%; width: 118%; max-height: 92px; opacity: 0.52; }
  .milestones { grid-template-columns: 1fr; gap: 14px; }
  .milestones { width: 100%; margin: 0; }
  .milestone { --step-y: 0px; grid-template-columns: 62px 1fr; grid-template-rows: auto auto; column-gap: 16px; justify-items: start; width: 100%; padding: 0; text-align: left; }
  .milestone-icon { grid-row: 1 / 3; width: 58px; height: 58px; }
  .milestone-icon img { width: 24px; }
  .milestone strong { align-self: end; margin: 0; font-size: 20px; }
  .milestone small { align-self: start; }
  .journey-button { width: 100%; }
  .promise-section { padding-block: 72px; }
  .programs-section { padding:68px 0; }
  .section-heading { grid-template-columns:1fr; gap:18px; margin-bottom:30px; }
  .section-heading h2 { font-size:39px; }
  .program-grid { grid-template-columns:1fr; }
  .program-card, .program-card:last-child { grid-column:auto; min-height:255px; }
  .promise-grid { grid-template-columns:1fr; gap:38px; }
  .teacher-portrait { width:min(88%,390px); margin:auto; }
  .promise-inner { text-align:center; }
  .promise-inner blockquote { text-align:left; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
