/* Yoga with Yashvi — styles. Colours and fonts are set once here in :root. */
:root {
  --ivory: #FAF7F0;
  --beige: #EDE4D8;
  --blush: #F3E8E5;
  --sage: #E7E8DE;
  --olive: #8B9278;
  --olive-deep: #5A6150;   /* darker olive for text & buttons — passes contrast */
  --charcoal: #35352F;
  --ink-soft: #5B5950;
  --line: rgba(53, 53, 47, .16);
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font: 400 1.0625rem/1.7 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--charcoal); color: var(--ivory); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.setup-bar { background: #F6E7B4; color: #4a3f12; text-align: center; font-size: .875rem; padding: .5rem var(--gutter); }

/* ---------- type ---------- */
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--olive-deep); margin-bottom: 1.5rem; }
.display { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; }
.subhead { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.35; color: var(--ink-soft); margin-top: 1rem; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 36rem; color: var(--ink-soft); }
.prose--sm { font-size: .97rem; }
.prose--light { color: #DCDACF; }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .8rem 1.6rem; border-radius: 999px;
  font: 500 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; text-align: center;
  border: 1px solid var(--olive-deep); transition: background-color .25s, color .25s, border-color .25s, transform .3s ease;
}
.btn--solid { background: var(--olive-deep); color: var(--white); }
.btn--solid:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn--line { background: transparent; color: var(--olive-deep); }
.btn--line:hover { background: var(--olive-deep); color: var(--white); }
.btn--ivory { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn--ivory:hover { background: transparent; color: var(--ivory); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.25rem; font-size: .875rem; }
.btn--lg { min-height: 3.4rem; padding: 1rem 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; gap: .6rem; align-items: center; font-weight: 500; color: var(--olive-deep); text-decoration: none; border-bottom: 1px solid currentColor; padding: .75rem 0 .2rem; }  /* ≥44px tap target */
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header / nav ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, .94); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: .01em; }
.logo__small { font-style: italic; color: var(--ink-soft); }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .6rem 0; font: 500 .8rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--charcoal); cursor: pointer; min-height: 44px; }
.menu-btn__lines, .menu-btn__lines::before { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .3s; }
.menu-btn__lines::before { content: ""; position: absolute; top: 6px; }
.menu-btn__lines { top: -3px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(-6px) rotate(-90deg); }

.nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ivory); padding: 1.5rem var(--gutter) 2.5rem; border-bottom: 1px solid var(--line); display: none;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }  /* scrolls on short / landscape phones */
.nav.is-open { display: block; }
.nav ul { display: grid; gap: .25rem; margin-bottom: 1.5rem; }
.nav li a { display: block; font-family: var(--serif); font-size: 2rem; text-decoration: none; padding: .3rem 0; }
.nav li a.is-active { color: var(--olive-deep); font-style: italic; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex !important; position: static; padding: 0; background: none; border: 0; align-items: center; gap: 2.25rem; }
  .nav ul { display: flex; gap: 2rem; margin: 0; }
  .nav li a { font: 400 .9rem var(--sans); letter-spacing: .04em; padding: .4rem 0; position: relative; }
  .nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
  .nav li a:hover::after, .nav li a.is-active::after { transform: scaleX(1); }
  .nav li a.is-active { font-style: normal; }
}

/* ---------- 1. hero ---------- */
.hero { display: grid; background: var(--ivory); }
.hero__media { position: relative; aspect-ratio: 4 / 5; max-height: 78svh; overflow: hidden; background: var(--beige); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__text { padding: 2.75rem var(--gutter) 4rem; align-self: center; }
.hero__title { font-family: var(--serif); font-size: clamp(2.3rem, min(4vw, 6.4svh), 3.9rem); line-height: 1.06; letter-spacing: -.012em; max-width: 17ch; }
.hero__lead { margin: 1.5rem 0 2.25rem; font-size: 1.125rem; color: var(--ink-soft); max-width: 30rem; }
.hero__meta { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); max-width: 30rem; }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1.05fr; min-height: calc(100svh - var(--header-h)); }
  .hero__media { order: 2; aspect-ratio: auto; max-height: none; height: 100%; min-height: 620px; }
  .hero__text { padding: 4rem clamp(2rem, 5vw, 5rem) 4rem max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
}

/* ---------- 2. connect ---------- */
.connect { padding-top: var(--section); background: linear-gradient(var(--ivory), var(--beige)); }
.connect__grid { display: grid; gap: 2.5rem; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
@media (min-width: 900px) { .connect__grid { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; } .connect__body { padding-top: .75rem; } }
.connect__figure { position: relative; }
.connect__figure img { width: 100%; height: clamp(26rem, 70vh, 46rem); object-fit: cover; object-position: 50% 78%; }
.connect__quote {
  position: absolute; inset: auto 0 0 0; padding: 6rem var(--gutter) clamp(2rem, 5vw, 4rem);
  background: linear-gradient(transparent, rgba(30, 30, 26, .62));
  color: var(--ivory); font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.2; text-wrap: balance;
}
.connect__quote { max-width: none; }
@media (min-width: 900px) { .connect__quote { padding-right: 35%; } }

/* ---------- 3. letter ---------- */
.letter { background: var(--blush); padding: var(--section) 0; }
.letter__grid { display: grid; gap: 3rem; }
.letter__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 38%; }
.letter__title { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; margin-bottom: 2rem; }
.prose--letter { font-size: 1.07rem; }
.prose--letter .lead { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; color: var(--charcoal); }
.signature { font-family: var(--serif); font-style: italic; font-size: 2.2rem; margin: 2rem 0 2.25rem; }
.signature::before { content: "— "; color: var(--olive); }
@media (min-width: 960px) {
  .letter__grid { grid-template-columns: 5fr 6fr; gap: clamp(4rem, 8vw, 8rem); align-items: start; }
  .letter__portrait { position: sticky; top: calc(var(--header-h) + 2rem); }
  .letter__portrait img { aspect-ratio: 3 / 4; }
  .letter__body { padding-top: 3rem; }
}

/* ---------- 4. offer ---------- */
.offer { padding: var(--section) 0; background: var(--ivory); }
.offer .section-head { max-width: 40rem; }
.offer__list { display: grid; gap: clamp(3rem, 6vw, 4rem); }
.service { display: grid; background: var(--beige); }
.service--blush { background: var(--blush); }
.service--sage { background: var(--sage); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.service:hover .service__img img { transform: scale(1.03); }
.service--blush .service__img img { object-position: 50% 72%; }
.service__body { padding: 2rem clamp(1.5rem, 4vw, 2.75rem) 2.5rem; display: flex; flex-direction: column; }
.service__title { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; }
.service__tag { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.35; color: var(--olive-deep); margin: .5rem 0 1.5rem; }
.service .prose { flex: 1; margin-bottom: 2rem; }
.service .btn { align-self: flex-start; }
.placeholder { height: 100%; min-height: 14rem; display: grid; place-items: center; padding: 2rem; text-align: center;
  background: #E2E4D7;
  color: var(--olive-deep); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.placeholder span { border: 1px dashed var(--olive); padding: .9rem 1.2rem; background: rgba(250, 247, 240, .7); }

@media (min-width: 700px) and (max-width: 1099px) {
  .service { grid-template-columns: 2fr 3fr; }
  .service__img { aspect-ratio: auto; }
}
@media (min-width: 1100px) {
  .offer__list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .service__img { aspect-ratio: 4 / 5; }
  .service:nth-child(2) { margin-top: 4rem; }  /* gentle stagger */
}

/* ---------- 5. classes ---------- */
.classes { padding-top: var(--section); background: var(--white); }
.section-head--split { display: grid; gap: .5rem; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; } .section-head--split .subhead { margin: 0; justify-self: end; text-align: right; max-width: 22rem; } }
.schedule { border-top: 1px solid var(--line); margin-bottom: var(--section); }
.class-row > * { min-width: 0; }
.class-row { display: grid; gap: 1.75rem; padding: clamp(2.25rem, 4vw, 3.25rem) 0; border-bottom: 1px solid var(--line); }
.class-row__tag { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-deep); border: 1px solid var(--olive); border-radius: 999px; padding: .25rem .8rem; margin-bottom: 1rem; }
.class-row__title { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; margin-bottom: .9rem; }
.class-row__desc { color: var(--ink-soft); max-width: 32rem; }
.days { display: flex; gap: .35rem; margin-bottom: 1.25rem; }
.days span { flex: 1 1 0; max-width: 2.4rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; letter-spacing: .04em; color: #75736A; border: 1px solid var(--line); }  /* chips shrink on very narrow phones */
.days span.on { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--white); font-weight: 500; }
.facts { display: grid; gap: .65rem; margin: 0 0 1.75rem; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; font-size: .95rem; }
.facts dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2rem; }
.facts dd { margin: 0; }
.facts--light dt { color: #B7B9A8; }
.facts--light dd { color: var(--ivory); }
@media (min-width: 900px) {
  .class-row { grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; }
}

.pranayama { display: grid; background: var(--charcoal); color: var(--ivory); }
.pranayama__img img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; }
.pranayama__body { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); }
.pranayama__title { font-family: var(--serif); font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.05; margin-bottom: 2rem; }
.pranayama__close { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ivory); }
.pranayama .facts { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(250, 247, 240, .18); }
.note-light { font-size: .9rem; color: #C9CDB9; margin: -.5rem 0 2rem; font-style: italic; }
@media (min-width: 960px) {
  .pranayama { grid-template-columns: 1fr 1fr; }
  .pranayama__body { padding-left: clamp(3rem, 6vw, 6rem); max-width: 44rem; }
}

/* ---------- events ---------- */
.events { padding: var(--section) 0; background: var(--sage); }
.events .section-head { margin-bottom: 2.5rem; }
.events__empty { display: grid; gap: 2rem; max-width: 44rem; }
.events__empty p { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35; }
.events__empty .btn { justify-self: start; }
.event-list { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .event-list { grid-template-columns: repeat(2, 1fr); } }
.event { background: var(--ivory); padding: 2rem; display: grid; gap: .6rem; align-content: start; }
.event__date { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-deep); }
.event__title { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.event__loc { color: var(--ink-soft); font-size: .95rem; }
.event .btn { justify-self: start; margin-top: 1rem; }

/* ---------- 6. reviews ---------- */
.reviews { padding: var(--section) 0; background: var(--ivory); }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 22rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1.5rem; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--olive) transparent;
}
.review { scroll-snap-align: start; background: var(--white); padding: 2.25rem 2rem 2rem; display: flex; flex-direction: column; border-top: 2px solid var(--olive); }
.review__mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--olive); height: 1.8rem; }
.review__quote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; flex: 1; margin: 0; }
.review__name { margin-top: 1.75rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.review--placeholder { background: var(--white); }
.review__flag { align-self: flex-start; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-deep); border: 1px dashed var(--olive); padding: .2rem .6rem; margin-bottom: 1.25rem; }
@media (min-width: 1000px) {
  .reviews__track { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; overflow: visible; max-width: 1280px; margin: 0 auto; padding-bottom: 0; }
}

/* ---------- 7. meet ---------- */
.meet { padding: var(--section) 0; background: var(--beige); }
.meet__grid { display: grid; gap: 3rem; align-items: center; }
.meet__cred { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-deep); margin: 1.25rem 0 2rem; }
.meet .prose { margin-bottom: 2.5rem; }
.meet__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 900px) {
  .meet__grid { grid-template-columns: 1.2fr 1fr; gap: clamp(4rem, 9vw, 9rem); }
  .meet__img { max-width: 30rem; justify-self: end; width: 100%; }
  .meet__img img { aspect-ratio: 3 / 4; }
}

/* ---------- 8. faq ---------- */
.faq { padding: var(--section) 0; background: var(--ivory); }
.faq__grid { display: grid; gap: 3rem; }
.faq__title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 14ch; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 2fr 3fr; gap: 6rem; } .faq__title { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--olive-deep); flex-shrink: 0; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--olive-deep); }
.faq details p { padding: 0 2.5rem 1.75rem 0; color: var(--ink-soft); max-width: 40rem; }
.faq details a { color: var(--olive-deep); }

/* ---------- 9. cta ---------- */
.cta { padding: calc(var(--section) * 1.15) 0; background: radial-gradient(120% 90% at 50% 0%, var(--blush), var(--beige)); text-align: center; }
.cta__inner { display: grid; justify-items: center; }
.cta__title { font-family: var(--serif); font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: 1; letter-spacing: -.015em; max-width: 12ch; text-wrap: balance; }
.cta__prose { margin: 2.5rem auto 3rem; max-width: 34rem; font-size: 1.08rem; }
.cta__handle { margin-top: 1.75rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- 10. footer ---------- */
.footer { background: var(--charcoal); color: #DCDACF; padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer :focus-visible, .pranayama :focus-visible { outline-color: var(--ivory); }  /* visible on dark backgrounds */
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand { font-family: var(--serif); font-size: 2.1rem; color: var(--ivory); }
.footer__line { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: .25rem; }
.footer__nav, .footer__contact { display: grid; gap: 0; align-content: start; }
.footer__nav a, .footer__contact a { display: inline-block; padding: .6rem 0; }  /* ≥44px tap targets */
.footer__contact li:not(:has(a)) { padding: .6rem 0; }
.footer__base p { border-top: 1px solid rgba(250, 247, 240, .14); padding-top: 1.75rem; }
.footer__base { font-size: .8rem; color: #A9A79C; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr 1.4fr; } }

/* =====================================================================
   ---------- animations ----------
   Gentle, calm motion. Only transform / opacity / stroke are animated.
   Everything here is switched off for visitors who prefer reduced motion
   (see "motion preferences" below). Scroll-reveal only hides content when
   main.js has added the class "js-anim" to <html>, so the page is always
   readable if JavaScript doesn't run.
   ===================================================================== */
@keyframes rise   { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }

/* Hero: text fades up in sequence, photo settles from a slight zoom */
.hero__text > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: .12s; }
.hero__text > :nth-child(3) { animation-delay: .26s; }
.hero__text > :nth-child(4) { animation-delay: .4s; }
.hero__text > :nth-child(5) { animation-delay: .55s; }
.hero__media img, .hero__media video { animation: settle 2.6s cubic-bezier(.2, .7, .2, 1) both; }

/* Scroll-reveal: fade + rise as sections enter (stagger set by main.js via --d) */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* Schedule day chips pop in one by one */
.js-anim .class-row .days span { opacity: 0; transform: scale(.7); transition: opacity .4s ease, transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 70ms + .35s); }
.js-anim .class-row.is-in .days span { opacity: 1; transform: none; }

/* Buttons: soft lift on hover */
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(53, 53, 47, .45); }
.btn--ivory:hover { box-shadow: none; }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

/* Mobile menu: drops in softly */
.nav.is-open { animation: fade-down .3s ease both; }
@media (min-width: 900px) { .nav.is-open { animation: none; } }

/* FAQ: answer fades and slides in when opened */
.faq details[open] p { animation: fade-down .45s ease both; }

/* Lotus ornament (letter signature + contact): draws itself on reveal */
.lotus { display: block; width: 3.25rem; height: auto; fill: none; stroke: var(--olive); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.letter .lotus { margin: -1rem 0 1.5rem; }
.cta .lotus { margin-bottom: 1.25rem; }
.js-anim .lotus path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease-in-out; }
.js-anim .lotus path:nth-child(2), .js-anim .lotus path:nth-child(3) { transition-delay: .35s; }
.js-anim .lotus path:nth-child(4) { transition-delay: .7s; }
.js-anim .lotus.is-in path { stroke-dashoffset: 0; }

/* Mini guided breath (pranayama): ring grows ~4s in, shrinks ~4s out */
@keyframes breathe { 0%, 100% { transform: scale(.6); } 50% { transform: scale(1); } }
@keyframes say-in  { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes say-out { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
.breath { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.breath__ring { width: 4.5rem; height: 4.5rem; flex: none; border-radius: 50%; border: 1px solid rgba(250, 247, 240, .55); background: rgba(201, 205, 185, .14); animation: breathe 8s ease-in-out infinite; }
.breath__words { display: grid; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #C9CDB9; }
.breath__words > * { grid-area: 1 / 1; }
.breath__in  { animation: say-in 8s ease-in-out infinite; }
.breath__out { opacity: 0; animation: say-out 8s ease-in-out infinite; }

/* Contact: two soft leaves drift very slowly in the background */
@keyframes drift { from { transform: translate(0, 0) rotate(var(--r)); } to { transform: translate(14px, -18px) rotate(calc(var(--r) + 8deg)); } }
.cta { position: relative; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 0 100% 0 100%; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.cta::before { --r: -20deg; width: 9rem; height: 9rem; left: 6%; top: 12%; background: var(--olive); opacity: .09; }
.cta::after  { --r: 30deg; width: 13rem; height: 13rem; right: 4%; bottom: 8%; background: var(--ivory); opacity: .55; animation-duration: 18s; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-anim .reveal, .js-anim .class-row .days span { opacity: 1; transform: none; }
  .js-anim .lotus path { stroke-dashoffset: 0; }
  .btn:hover { transform: none; }
  .breath__ring { transform: none; }  /* static ring, "Inhale" shown */
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- polish: browser surfaces & small-screen details ---------- */
::selection { background: var(--blush); color: var(--charcoal); }
.pranayama ::selection, .footer ::selection { background: var(--olive); color: var(--white); }
html { scrollbar-color: var(--olive) var(--ivory); caret-color: var(--olive-deep); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.btn { -webkit-tap-highlight-color: transparent; }
.btn--solid:active { background: var(--charcoal); }
.btn--line:active { background: var(--olive-deep); color: var(--white); }
.meet__img { max-width: 30rem; }
.letter__title { margin-top: 0; }
@media (max-width: 479px) {
  .hero .btn-row .btn, .cta .btn-row .btn { flex: 1 1 100%; }
  .footer__nav { grid-template-columns: repeat(2, max-content); column-gap: 3rem; }
}
@media (min-width: 1000px) { .review__quote { font-size: 1.5rem; } }

/* While the latest content loads from content/*.json (a split second), keep the page blank
   instead of flashing old text. Removed by main.js, or after 2.5s at most. */
main, .footer { transition: opacity .35s ease; }
.cms-wait main, .cms-wait .footer { opacity: 0; }
