
/* =====================================================================
   v2 · "Earth & Breath" design layer (Dec 2026)
   Organic shapes, layered light, footprint trail, gentle scroll reveals.
   Every motion rule is behind prefers-reduced-motion: no-preference and
   is switched off by the "stop animations" option (html.a11y-motion).
   ===================================================================== */
:root {
  --sage: #6F7A5A;
  --sage-soft: #DDE2D0;
  --terracotta: #B5653F;
  --night: #1F1C24;
  --glow: rgba(224, 160, 92, .35);
  --shadow-soft: 0 24px 48px -32px rgba(43, 39, 53, .45);
  --shadow-lift: 0 30px 60px -30px rgba(43, 39, 53, .55);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius-blob: 62% 38% 46% 54% / 56% 44% 56% 44%;
}

/* ---------- page-level ambience: soft light pools behind content ---------- */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 32rem at 88% -8%, rgba(224, 160, 92, .20), transparent 70%),
    radial-gradient(36rem 30rem at -10% 38%, rgba(111, 122, 90, .12), transparent 70%),
    radial-gradient(44rem 36rem at 110% 92%, rgba(95, 90, 115, .10), transparent 70%);
}
.a11y-contrast body::before { display: none; }

/* ---------- header: sticky glass bar ---------- */
.site-header {
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--sand) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-block-end-color: color-mix(in srgb, var(--clay-line) 60%, transparent);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(43, 39, 53, .6); background: color-mix(in srgb, var(--sand) 90%, transparent); }
.a11y-contrast .site-header { background: #fff; backdrop-filter: none; }
.brand img { transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.site-nav a { position: relative; border-block-end: 0; }
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .45rem; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .35s var(--ease-out);
}
[dir="ltr"] .site-nav a::after { --origin: left; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::after { background: var(--orange-deep); }

/* ---------- buttons: warm glow + grounding press ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn-primary {
  background: linear-gradient(135deg, #EDB673, var(--orange) 55%, #D58C43);
  box-shadow: 0 12px 24px -14px rgba(201, 133, 63, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: linear-gradient(135deg, #E9AD66, var(--orange-hover) 55%, #C97F38); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.a11y-contrast .btn-primary { background: var(--orange); box-shadow: none; }

/* ---------- HERO ---------- */
.hero { isolation: isolate; }
.hero--home { padding-block: clamp(2rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero--home::before {
  content: ""; position: absolute; z-index: -1; inset-inline-start: -12rem; top: 10%;
  width: 34rem; aspect-ratio: 1; border-radius: var(--radius-blob);
  background: radial-gradient(circle at 40% 40%, rgba(235, 217, 195, .9), rgba(235, 217, 195, 0) 70%);
}
.hero--home h1 { font-size: clamp(3rem, 8vw, 6.6rem); line-height: 1.02; letter-spacing: -.02em; }
.hero--home h1 .hl { position: relative; display: inline-block; color: var(--orange-deep); }
.hero--home h1 .hl svg { position: absolute; inset-inline: -4%; bottom: -.12em; width: 108%; height: .32em; overflow: visible; }
.hero--home h1 .hl path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; }
.hero .lead { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
.hero-text .eyebrow { background: color-mix(in srgb, var(--paper) 70%, transparent); padding: .35rem 1rem .35rem 1rem; border-radius: 999px; border: 1px solid var(--clay-line); }
.hero-text .eyebrow::before { width: .55rem; height: .55rem; border-radius: 50%; }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 6% 2% 10%; z-index: -1; border-radius: var(--radius-blob);
  background: radial-gradient(circle at 50% 42%, rgba(224, 160, 92, .35), rgba(224, 160, 92, 0) 66%);
  filter: blur(8px);
}
.hero-art svg { max-width: 34rem; filter: drop-shadow(0 30px 40px rgba(43, 39, 53, .12)); }
.hero-art svg, .a11y-contrast .hero-art svg { clip-path: none; }
.ha-ring { fill: none; stroke: var(--orange); stroke-linecap: round; }
.ha-ring--1 { stroke-width: 1.5; stroke-dasharray: 2 11; opacity: .75; }
.ha-ring--2 { stroke-width: 1; opacity: .35; }
.ha-ring--3 { stroke: var(--purple); stroke-width: 1; stroke-dasharray: 1 7; opacity: .35; }
.ha-hill-back { fill: #DCC4A6; }
.ha-hill-mid { fill: var(--clay); }
.ha-hill-front { fill: #F3E6D4; }
.ha-line { fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-linecap: round; }
.ha-line--2 { stroke: var(--orange-deep); stroke-width: 1.6; opacity: .8; }
.ha-print { fill: var(--purple); }
.ha-ray { stroke: var(--orange); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.ha-leaf { fill: var(--sage); opacity: .85; }
.a11y-contrast .ha-hill-back, .a11y-contrast .ha-hill-front { fill: #fff; stroke: #000; }

/* ---------- doors: tactile cards with icon + organic glow ---------- */
.doors ul { gap: 1.1rem; }
.door {
  overflow: hidden; isolation: isolate; padding: 1.5rem 1.5rem 1.35rem; min-height: 11rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-color: color-mix(in srgb, var(--clay-line) 80%, transparent);
  grid-template-rows: auto auto 1fr auto;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.door::before {
  content: ""; position: absolute; z-index: -1; width: 14rem; aspect-ratio: 1; inset-inline-end: -6rem; bottom: -7rem;
  border-radius: var(--radius-blob); background: radial-gradient(circle, rgba(224, 160, 92, .32), rgba(224, 160, 92, 0) 70%);
  transition: transform .7s var(--ease-out);
}
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.door:hover::before { transform: scale(1.5) translate(-1rem, -1rem); }
.door-icon {
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem 1rem 1rem .35rem;
  background: var(--clay); color: var(--ink); margin-block-end: .35rem; transition: background-color .3s, transform .45s var(--ease-out);
}
.door-icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.door:hover .door-icon { background: var(--orange); transform: rotate(-6deg); }
.doors li:nth-child(2) .door-icon { background: var(--sage-soft); }
.doors li:nth-child(3) .door-icon { background: #E4DDEC; }
.doors li:nth-child(4) .door-icon { background: #F2E2C4; }
.a11y-contrast .door, .a11y-contrast .door-icon { background: #fff; backdrop-filter: none; }

/* ---------- section rhythm ---------- */
.block h2 { letter-spacing: -.01em; }
.eyebrow { letter-spacing: .04em; }
.tone-paper, .tone-clay { position: relative; }
.tone-clay { background: linear-gradient(180deg, var(--clay), #E6D1B7); }

/* cards: lift + organic corner */
.card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; z-index: -1; inset-block-start: -3rem; inset-inline-end: -3rem; width: 7rem; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(224, 160, 92, .22), transparent 70%); transition: transform .6s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card:hover::before { transform: scale(1.8); }
.cards--4 .card:nth-child(4n+2)::before, .cards--3 .card:nth-child(3n+2)::before { background: radial-gradient(circle, rgba(111, 122, 90, .2), transparent 70%); }
.cards--4 .card:nth-child(4n+3)::before, .cards--3 .card:nth-child(3n)::before { background: radial-gradient(circle, rgba(95, 90, 115, .18), transparent 70%); }
.block--cards .cards--4 .card h3::before {
  content: counter(card, decimal-leading-zero); counter-increment: card; display: block;
  font-family: var(--font-body); font-size: .85rem; font-weight: 800; letter-spacing: .12em; color: var(--orange-deep); margin-block-end: .6rem;
}
.block--cards .cards--4 { counter-reset: card; }
.block--places .card { border-width: 1.5px; }
.block--places .card-meta { display: inline-block; background: var(--clay); color: var(--ink) !important; padding: .1rem .7rem; border-radius: 999px; }

/* steps: connected by a dotted path */
.steps { position: relative; }
@media (min-width: 48em) {
  .steps::before {
    content: ""; position: absolute; top: 1.45rem; inset-inline: 1.5rem 3rem; height: 2px;
    background-image: radial-gradient(circle, var(--orange) 1.5px, transparent 2px); background-size: 12px 2px; opacity: .8;
  }
}
.steps li::before { background: var(--sand); box-shadow: 0 0 0 6px var(--sand); z-index: 1; }
.tone-clay .steps li::before { background: var(--clay); box-shadow: 0 0 0 6px var(--clay); }

/* checklist: tiny footprint bullets */
.checklist li::before {
  border-radius: 45% 55% 50% 50% / 60% 60% 40% 40%;
  background: var(--orange);
}

/* prose with feet art: floating stone behind */
.prose-art { position: relative; }
.prose-art::before {
  content: ""; position: absolute; inset: -12%; z-index: 0; border-radius: var(--radius-blob);
  background: radial-gradient(circle at 45% 45%, rgba(251, 248, 242, .9), rgba(251, 248, 242, 0) 70%);
}
.prose-art .feet { position: relative; }

/* trainings: hours as big numerals */
.trainings li { transition: background-color .3s; border-radius: var(--radius-s); padding-inline: .5rem; }
.trainings li:hover { background: color-mix(in srgb, var(--clay) 45%, transparent); }
.hours { font-size: 2rem; }

/* faq: smooth open */
.faq details { transition: background-color .3s; border-radius: var(--radius-s); padding-inline: .75rem; }
.faq details[open] { background: color-mix(in srgb, var(--paper) 80%, transparent); }
.faq summary::after { transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }

/* ---------- breath section: singing-bowl rings ---------- */
.block--breath { position: relative; overflow: hidden; background: radial-gradient(60rem 40rem at 75% 50%, #3A3446, var(--dusk) 65%); }
.breath-ring { position: relative; border: 0; }
.breath-ring::before, .breath-ring::after, .breath-ring span {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(247, 241, 232, .18);
}
.breath-ring::after { inset: 14%; border-style: dashed; border-color: rgba(242, 195, 143, .3); }
.breath-ring::before { inset: -10%; border-color: rgba(247, 241, 232, .08); }
.breath-orb {
  position: relative; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #FFE2B8, #F0B571 35%, var(--orange) 62%, #B9722F);
  box-shadow: 0 0 80px 10px rgba(224, 160, 92, .35), inset -10px -14px 30px rgba(120, 60, 10, .35);
}
.breath.is-in .breath-orb { box-shadow: 0 0 120px 30px rgba(224, 160, 92, .45), inset -10px -14px 30px rgba(120, 60, 10, .3); }
.breath-phase { letter-spacing: .02em; }

/* ---------- CTA: sunrise ---------- */
.block--cta { background: radial-gradient(50rem 26rem at 50% 115%, rgba(224, 160, 92, .45), transparent 70%), var(--dusk); }
.block--cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* ---------- footer ---------- */
.site-footer { background: radial-gradient(50rem 30rem at 90% 0%, #3A3446, var(--dusk) 60%); }
.footer-brand img { filter: drop-shadow(0 6px 18px rgba(224, 160, 92, .35)); }

/* ---------- footprint trail (scroll progress, decorative) ---------- */
.trail { position: fixed; z-index: 15; inset-inline-end: .6rem; top: 50%; transform: translateY(-50%); display: none; flex-direction: column-reverse; gap: .55rem; pointer-events: none; }
.trail i { display: block; width: .62rem; height: 1rem; background: var(--purple); opacity: .12; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; transition: opacity .5s, background-color .5s, transform .5s var(--ease-out); }
.trail i:nth-child(odd) { transform: translateX(.45rem) rotate(8deg); }
.trail i:nth-child(even) { transform: rotate(-8deg); }
.trail i.on { opacity: .85; background: var(--orange-deep); }
@media (min-width: 70em) { .js .trail { display: flex; } }
.a11y-contrast .trail { display: none !important; }

/* ---------- reveal on scroll (only when JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.a11y-motion) .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
  html.js:not(.a11y-motion) .rv.in { opacity: 1; transform: none; }

  /* one-time hero intro, well under 5 seconds */
  html.js:not(.a11y-motion) .hero--home .hero-text > * { animation: rise 1s var(--ease-out) both; }
  html.js:not(.a11y-motion) .hero--home .hero-text > :nth-child(2) { animation-delay: .12s; }
  html.js:not(.a11y-motion) .hero--home .hero-text > :nth-child(3) { animation-delay: .24s; }
  html.js:not(.a11y-motion) .hero--home .hero-text > :nth-child(4) { animation-delay: .36s; }
  html.js:not(.a11y-motion) .hero--home h1 .hl path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .7s var(--ease-out) forwards; }
  html.js:not(.a11y-motion) .ha-sun { transform-origin: 240px 200px; animation: sunrise 1.8s var(--ease-out) both; }
  html.js:not(.a11y-motion) .ha-ring { transform-origin: 240px 200px; animation: ringIn 2s var(--ease-out) both; }
  html.js:not(.a11y-motion) .ha-ring--2 { animation-delay: .2s; }
  html.js:not(.a11y-motion) .ha-ring--3 { animation-delay: .4s; }
  html.js:not(.a11y-motion) .ha-print { animation: step .5s var(--ease-out) both; }
  html.js:not(.a11y-motion) .ha-print:nth-of-type(1) { animation-delay: 1.0s; }
  html.js:not(.a11y-motion) .ha-print:nth-of-type(2) { animation-delay: 1.3s; }
  html.js:not(.a11y-motion) .ha-print:nth-of-type(3) { animation-delay: 1.6s; }
  html.js:not(.a11y-motion) .ha-print:nth-of-type(4) { animation-delay: 1.9s; }
  html.js:not(.a11y-motion) .ha-print:nth-of-type(5) { animation-delay: 2.2s; }
  html.js:not(.a11y-motion) .ha-print:nth-of-type(6) { animation-delay: 2.5s; }
  html.js:not(.a11y-motion) .doors li { animation: rise .9s var(--ease-out) both; }
  html.js:not(.a11y-motion) .doors li:nth-child(1) { animation-delay: .45s; }
  html.js:not(.a11y-motion) .doors li:nth-child(2) { animation-delay: .55s; }
  html.js:not(.a11y-motion) .doors li:nth-child(3) { animation-delay: .65s; }
  html.js:not(.a11y-motion) .doors li:nth-child(4) { animation-delay: .75s; }

  /* gentle scroll-linked parallax where supported (user-driven, not automatic) */
  @supports (animation-timeline: view()) {
    html.js:not(.a11y-motion) .hero-art svg { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    html.js:not(.a11y-motion) .prose-art .feet { animation: floatUp linear both; animation-timeline: view(); animation-range: cover; }
  }

  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sunrise { from { opacity: 0; transform: translateY(60px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ringIn { from { opacity: 0; transform: scale(.7) rotate(-20deg); } }
@keyframes step { from { opacity: 0; transform: translateY(6px) scale(.6); } }
@keyframes drift { to { transform: translateY(-60px) scale(.97); } }
@keyframes floatUp { from { transform: translateY(30px) rotate(-3deg); } to { transform: translateY(-30px) rotate(3deg); } }

@media print { .trail { display: none !important; } .site-header { position: static; } body::before { display: none; } }
@media (forced-colors: active) { .trail, body::before, .door::before, .card::before { display: none; } }

/* fix: round the hero illustration into a sun-disc window */
.hero-art svg { clip-path: ellipse(47% 47% at 50% 50%); }
.a11y-contrast .hero-art svg { clip-path: none; }
.ha-print { opacity: .8; }
.prose-art::before { inset: -45%; border-radius: 50%; background: radial-gradient(circle, rgba(251, 248, 242, .55), rgba(251, 248, 242, 0) 65%); }
