/* ==========================================================
   Sacred Space page (body.page-sacred-space). Loaded only on
   /sacred-space, after theme.css. Same palette, type and tight
   spacing standard as Return Again (--section-y sections,
   clamp(28px, 3.5vw, 40px) gap between stacked blocks).
   ========================================================== */

.ss-stack { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 40px); }
.ss-title { margin: 0 0 16px; }
.ss-rule { display: block; width: 56px; height: 1px; margin: 20px 0 24px; background: var(--h-terracotta); border: 0; }

/* ---------- Banners: fixed (parallax) on desktop, normal scroll on touch ---------- */
.page-sacred-space .banner--fixed {
  position: relative; height: clamp(320px, 55vh, 620px);
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; background-attachment: fixed;
}
.page-sacred-space .banner--fixed .banner__img { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
/* Circle by the fire: anchored high so every face stays in frame */
.page-sacred-space .banner--hero { height: clamp(320px, 54vh, 600px); background-position: 50% 30%; }
/* Feather ceremony: faces sit mid-photo */
.page-sacred-space .banner--feather { height: clamp(320px, 56vh, 640px); background-position: 50% 10%; }
/* Touch screens can't do fixed backgrounds: sacred-space.js moves a photo layer instead (same still-photo feel) */
.page-sacred-space .banner--fixed.has-par { background-image: none !important; overflow: hidden; }
.ss-par { position: absolute; left: 0; right: 0; top: -22%; bottom: -22%; background-size: cover; background-repeat: no-repeat; will-change: transform; }

/* ---------- Opening ---------- */
.ss-head { text-align: center; max-width: 760px; margin: 0 auto; }
.ss-head h1 { margin: 0 0 6px; }
.page-sacred-space .ss-head .ss-sub { margin: 0; font: italic 500 clamp(1.4rem, 1.2rem + .9vw, 1.95rem)/1.3 var(--h-font-display); color: var(--h-muted); }
.ss-head .ss-rule { margin-left: auto; margin-right: auto; }
.ss-date {
  display: inline-block; margin: 0 0 24px; padding: 10px 26px; border: 1px solid var(--h-sand); border-radius: 999px;
  background: var(--h-white); font-weight: 600; letter-spacing: .02em; color: var(--h-forest);
}
.ss-lead { max-width: 660px; margin: 0 auto; font-size: 1.125rem; line-height: 1.75; }
.ss-head .actions { justify-content: center; margin-top: 30px; }

/* ---------- At a glance ---------- */
.ss-glance {
  width: 100%; max-width: 1060px; margin: 0 auto; background: var(--h-white);
  border: 1px solid var(--h-sand); border-top: 3px solid var(--h-terracotta); border-radius: var(--radius);
  padding: 26px clamp(20px, 3vw, 40px) 30px; box-shadow: 0 14px 34px rgba(31, 48, 40, .07);
}
.ss-glance__title { margin: 0 0 22px; text-align: center; font: 500 1.5rem/1.2 var(--h-font-display); color: var(--h-forest); }
.ss-glance dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.ss-glance dl > div { padding: 2px 22px; border-left: 1px solid var(--h-ivory-deep); }
.ss-glance dl > div:first-child { padding-left: 0; border-left: 0; }
.ss-glance dl > div:last-child { padding-right: 0; }
.ss-glance dt { font: 600 .82rem/1.3 var(--h-font-body); letter-spacing: .04em; color: var(--h-muted); }
.ss-glance dd { margin: 6px 0 0; font: 500 1.14rem/1.45 var(--h-font-display); color: var(--h-forest); }

/* ---------- Two-column block ---------- */
.ss-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ss-split__media, .ss-wide, .ss-fac__frame { overflow: hidden; border-radius: var(--radius); box-shadow: 0 22px 46px rgba(31, 48, 40, .16); }
.ss-split .photo, .ss-wide .photo { display: block; width: 100%; height: auto; box-shadow: none; }
.ss-split h2 { margin-bottom: 0; }
.ss-text p { max-width: 62ch; }
.ss-text .actions { margin-top: 24px; }
.ss-center--text .actions { justify-content: center; margin-top: 26px; }

/* ---------- Video: the centrepiece, on a deep green band ---------- */
.page-sacred-space .ss-watch { background: var(--h-forest-deep); }
.page-sacred-space .ss-watch h2 { color: var(--h-ivory); }
.page-sacred-space .ss-watch .ss-center p { color: var(--h-sand); }
.ss-stage { width: 100%; max-width: 1040px; margin: 0 auto; }
.page-sacred-space .ss-stage .video {
  max-width: none; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(217, 201, 168, .28), 0 30px 70px rgba(0, 0, 0, .45), 0 0 100px rgba(183, 111, 80, .24);
}
.page-sacred-space .ss-stage .video__play { width: 104px; height: 104px; background: var(--h-terracotta); transition: transform 300ms var(--m-ease, ease), background-color 200ms; }
.page-sacred-space .ss-stage .video__play::after { left: 41px; top: 32px; border-width: 20px 0 20px 32px; }
.page-sacred-space .ss-stage .video__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); animation: ss-ring 2.6s ease-out infinite; }
.page-sacred-space .ss-stage .video__play:hover { transform: scale(1.07); background: var(--h-terracotta-ink); }
.page-sacred-space .ss-stage .video__play:focus-visible { outline: 3px solid var(--h-ivory); outline-offset: 4px; }
@keyframes ss-ring { 0% { transform: scale(.92); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.ss-watch__cta { justify-content: center; }
.ss-watchlink { margin: 16px 0 0; }
.ss-watchlink a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ss-watchlink a::before { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
@media (max-width: 560px) {
  .page-sacred-space .ss-stage .video__play { width: 76px; height: 76px; }
  .page-sacred-space .ss-stage .video__play::after { left: 30px; top: 22px; border-width: 15px 0 15px 24px; }
}
@media (prefers-reduced-motion: reduce) { .page-sacred-space .ss-stage .video__play::before { animation: none; opacity: 0; } }

/* ---------- Centered section heads ---------- */
.ss-center { text-align: center; max-width: 720px; margin: 0 auto; }
.ss-center .ss-rule { margin-left: auto; margin-right: auto; }
.ss-center p { margin: 0; color: var(--h-muted); }
.ss-center--text p { color: var(--h-forest); text-align: left; max-width: 62ch; margin: 0 auto 1em; }
.ss-center--text p:last-child { margin-bottom: 0; }

/* ---------- What you will learn ---------- */
.ss-learn { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 960px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 64px); }
.ss-learn li { position: relative; padding: 14px 0 14px 24px; border-top: 1px solid var(--h-sand); line-height: 1.55; }
.ss-learn li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 7px; height: 7px; border-radius: 50%; background: var(--h-terracotta); }
.ss-receive { margin: 0 auto; max-width: 62ch; text-align: center; color: var(--h-muted); }
.page-sacred-space .ss-pull {
  margin: 0 auto; max-width: 760px; text-align: center;
  font: italic 500 clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem)/1.3 var(--h-font-display); color: var(--h-forest);
}

/* ---------- Typical day ---------- */
.ss-day { width: 100%; max-width: 760px; margin: 0 auto; border-top: 3px solid var(--h-terracotta); background: var(--h-white); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(31, 48, 40, .07); border-left: 1px solid var(--h-sand); border-right: 1px solid var(--h-sand); border-bottom: 1px solid var(--h-sand); }
.ss-day > div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 16px; padding: 14px clamp(18px, 3vw, 32px); border-top: 1px solid var(--h-ivory-deep); }
.ss-day > div:first-child { border-top: 0; }
.ss-day dt { font-weight: 600; letter-spacing: .02em; }
.ss-day dd { margin: 0; }

/* ---------- Pricing ---------- */
.ss-prices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); width: 100%; max-width: 860px; margin: 0 auto; }
.ss-price {
  display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--h-white); border: 1px solid var(--h-sand);
  border-top: 3px solid var(--h-terracotta); border-radius: var(--radius); padding: 28px clamp(22px, 3vw, 34px) 30px;
  box-shadow: 0 14px 34px rgba(31, 48, 40, .07);
}
.ss-price h3 { margin: 0 0 4px; }
.ss-price__d { margin: 0; color: var(--h-muted); font-size: .98rem; }
.ss-price__n { margin: 18px 0 22px; font: 500 3rem/1 var(--h-font-display); color: var(--h-forest); }
.ss-price__n span { font: 600 .8rem/1 var(--h-font-body); letter-spacing: .1em; color: var(--h-muted); }
.ss-price .btn { margin-top: auto; align-self: center; }
.ss-incl { width: 100%; max-width: 860px; margin: 0 auto; text-align: center; }
.ss-incl h3 { margin-bottom: 12px; }
.ss-incl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.ss-incl li { padding: 6px 16px; border: 1px solid var(--h-sand); border-radius: 999px; background: var(--h-white); font-size: .98rem; }

/* ---------- Facilitators ---------- */
.ss-facs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.ss-fac__frame { margin-bottom: 18px; box-shadow: 0 18px 40px rgba(31, 48, 40, .14); }
.ss-fac__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.ss-fac h3 { margin: 0 0 8px; }
.ss-fac p { margin: 0; line-height: 1.65; }

/* ---------- Casa Kula ---------- */
.ss-wide { margin: 0; }

/* ---------- Questions form ---------- */
.ss-formcard {
  width: 100%; max-width: 640px; margin: 0 auto; background: var(--h-white); border: 1px solid var(--h-sand);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: 0 14px 34px rgba(31, 48, 40, .07);
}
.ss-formcard .form { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ss-glance dl { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .ss-glance dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ss-glance dl > div:nth-child(even) { padding-right: 0; }
  .ss-facs { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .ss-split { grid-template-columns: 1fr; }
  .ss-learn { grid-template-columns: 1fr; }
  .ss-prices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ss-glance dl { grid-template-columns: 1fr; row-gap: 0; }
  .ss-glance dl > div, .ss-glance dl > div:nth-child(odd), .ss-glance dl > div:nth-child(even) { padding: 14px 0; border-left: 0; border-top: 1px solid var(--h-ivory-deep); }
  .ss-glance dl > div:first-child { border-top: 0; padding-top: 0; }
  .ss-day > div { grid-template-columns: 1fr; gap: 2px; }
  .ss-price .btn { width: 100%; text-align: center; }
  .ss-head .actions .btn { width: 100%; text-align: center; }
}

/* ==========================================================
   Motion. Uses motion.js (adds .js-motion, .is-in, .is-settled and
   --m-delay) and the shared easing from motion.css. Everything shows
   normally when motion is off or reduced.
   ========================================================== */
@keyframes ss-settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes ss-pop    { from { transform: scale(0); } to { transform: none; } }
@keyframes ss-row    { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes ss-track  { from { letter-spacing: .16em; opacity: 0; } to { letter-spacing: -.01em; opacity: 1; } }
@keyframes ss-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-glow   { 0%, 100% { box-shadow: 0 14px 34px rgba(31, 48, 40, .07); } 50% { box-shadow: 0 14px 34px rgba(31, 48, 40, .07), 0 0 0 6px rgba(183, 111, 80, .14); } }

/* Slide-in variants for word blocks and photos */
.js-motion .page-sacred-space [data-reveal="left"]:not(.is-in)  { transform: translateX(-34px); }
.js-motion .page-sacred-space [data-reveal="right"]:not(.is-in) { transform: translateX(34px); }

/* Opening: photo fades up, title letters settle, the rule draws */
.js-motion .page-sacred-space .banner--hero { animation: ss-fade 1.6s var(--m-ease) backwards; }
.js-motion .page-sacred-space .ss-head h1 { animation: ss-track 1.8s var(--m-ease-slow) 150ms both; }
.js-motion .page-sacred-space .ss-head .ss-rule { transform-origin: center; animation: m-draw 900ms var(--m-ease) 750ms backwards; }
.js-motion .page-sacred-space .ss-head .ss-date { animation: m-rise 800ms var(--m-ease) 650ms backwards; }

/* Section rules draw when their heading arrives */
.js-motion .page-sacred-space .is-in .ss-rule { transform-origin: center; animation: m-draw 900ms var(--m-ease) calc(var(--m-delay, 0ms) + 300ms) backwards; }
.js-motion .page-sacred-space .ss-text.is-in .ss-rule { transform-origin: left center; }

/* Photos settle inside their frames */
.js-motion .page-sacred-space .is-in .photo,
.js-motion .page-sacred-space .is-in .ss-fac__img { animation: ss-settle 1600ms var(--m-ease-slow) var(--m-delay, 0ms) backwards; }
.js-motion .page-sacred-space .ss-fac.is-in .ss-fac__img { animation-delay: calc(var(--m-delay, 0ms) + 150ms); }

/* At a glance: columns arrive one by one */
.js-motion .page-sacred-space .ss-glance.is-in dl > div { animation: m-rise 700ms var(--m-ease) backwards; }
.js-motion .page-sacred-space .ss-glance.is-in dl > div:nth-child(1) { animation-delay: 300ms; }
.js-motion .page-sacred-space .ss-glance.is-in dl > div:nth-child(2) { animation-delay: 400ms; }
.js-motion .page-sacred-space .ss-glance.is-in dl > div:nth-child(3) { animation-delay: 500ms; }
.js-motion .page-sacred-space .ss-glance.is-in dl > div:nth-child(4) { animation-delay: 600ms; }

/* Learn list: each dot pops as its line arrives */
.js-motion .page-sacred-space .ss-learn li.is-in::before { animation: ss-pop 500ms var(--m-ease) calc(var(--m-delay, 0ms) + 250ms) backwards; }

/* Typical day: rows slide in from the left */
.js-motion .page-sacred-space .ss-day.is-in > div { animation: ss-row 600ms var(--m-ease) backwards; }
.js-motion .page-sacred-space .ss-day.is-in > div:nth-child(1) { animation-delay: 250ms; }
.js-motion .page-sacred-space .ss-day.is-in > div:nth-child(2) { animation-delay: 330ms; }
.js-motion .page-sacred-space .ss-day.is-in > div:nth-child(3) { animation-delay: 410ms; }
.js-motion .page-sacred-space .ss-day.is-in > div:nth-child(4) { animation-delay: 490ms; }
.js-motion .page-sacred-space .ss-day.is-in > div:nth-child(5) { animation-delay: 570ms; }
.js-motion .page-sacred-space .ss-day.is-in > div:nth-child(6) { animation-delay: 650ms; }
.js-motion .page-sacred-space .ss-day.is-in > div:nth-child(7) { animation-delay: 730ms; }

/* Included pills pop in */
.js-motion .page-sacred-space .ss-incl li.is-in { animation: ss-pop 500ms var(--m-ease) var(--m-delay, 0ms) backwards; }

/* A slow glow on the pricing cards once they have arrived */
.js-motion .page-sacred-space .ss-price.is-settled { animation: ss-glow 5s ease-in-out 1s 2; }

/* Scroll progress line */
.ss-progress { position: fixed; z-index: 70; left: 0; top: 0; height: 3px; width: 100%; background: var(--h-terracotta); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* Hover touches */
@media (prefers-reduced-motion: no-preference) {
  .ss-split__media .photo, .ss-wide .photo, .ss-fac__img { transition: transform 900ms var(--m-ease); }
  .ss-split__media:hover .photo, .ss-wide:hover .photo, .ss-fac:hover .ss-fac__img { transform: scale(1.04); }
  .ss-price { transition: transform 350ms var(--m-ease), box-shadow 350ms var(--m-ease); }
  .ss-price:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(31, 48, 40, .16); }
  .ss-incl li { transition: transform 300ms var(--m-ease), border-color 300ms; }
  .ss-incl li:hover { transform: translateY(-2px); border-color: var(--h-terracotta); }
  .ss-day > div { transition: background-color 250ms; }
  .ss-day > div:hover { background: var(--h-ivory); }
  .ss-learn li { transition: transform 300ms var(--m-ease); }
  .ss-learn li:hover { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .ss-progress { display: none; } .ss-par { transform: none !important; } }

/* ---------- Testimonials ---------- */
.ss-testis { display: grid; gap: clamp(28px, 3.5vw, 40px); max-width: 960px; margin: 0 auto; width: 100%; }
.ss-testi { margin: 0; display: grid; grid-template-columns: 190px 1fr; gap: clamp(22px, 3vw, 40px); align-items: center; background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: 0 18px 40px rgba(31, 48, 40, .10); }
.ss-testi:nth-child(even) { grid-template-columns: 1fr 190px; }
.ss-testi:nth-child(even) .ss-testi__photo { order: 2; }
.ss-testi__photo { width: 190px; height: 190px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--h-sand), 0 14px 30px rgba(31, 48, 40, .18); }
.ss-testi__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-testi blockquote { margin: 0; position: relative; }
.ss-testi blockquote p { margin: 0 0 18px; font-family: var(--h-display, inherit); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--h-forest); }
.ss-testi figcaption { display: flex; flex-direction: column; gap: 2px; }
.ss-testi figcaption b { font-weight: 600; color: var(--h-forest); }
.ss-testi figcaption span { color: var(--h-muted); font-size: .95rem; }
@media (max-width: 700px) {
  .ss-testi, .ss-testi:nth-child(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ss-testi:nth-child(even) .ss-testi__photo { order: 0; }
  .ss-testi__photo { width: 150px; height: 150px; }
}
