/* Mystik Path — brand palette extracted from @mystik.path Instagram feed */
:root {
  --forest: #116b1c;
  --leaf: #1d9426;
  --stone: #8f8876;
  --earth: #67553e;
  --espresso: #231c12;
  --espresso-2: #1a140d;
  --cream: #d7cdbb;
  --cream-bright: #f2ead9;
  --glow: rgba(29, 148, 38, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--espresso-2);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--leaf); color: var(--espresso); }

h1, h2, h3, .display { font-family: 'Fraunces', Georgia, serif; font-weight: 400; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2.2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3.4rem);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(26, 20, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem clamp(1.2rem, 4vw, 3.4rem);
  box-shadow: 0 1px 0 rgba(215, 205, 187, 0.08);
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: 'Fraunces', serif; font-size: 1.25rem; letter-spacing: 0.02em;
  color: var(--cream-bright); text-decoration: none;
}
.brand svg { color: var(--leaf); transition: transform 0.6s ease; }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.links { display: flex; gap: 1.8rem; margin-left: auto; }
.links a {
  color: var(--cream); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.04em;
  opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease;
}
.links a:hover { opacity: 1; color: var(--cream-bright); }
.cta {
  padding: 0.55rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(215, 205, 187, 0.35);
  color: var(--cream-bright); text-decoration: none; font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cta:hover { background: var(--leaf); border-color: var(--leaf); color: var(--espresso); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; transition: 0.3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(26, 20, 13, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--cream-bright); text-decoration: none;
  transform: translateY(10px); transition: transform 0.3s ease;
}
.mobile-menu.open a { transform: translateY(0); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #12200f 0%, var(--espresso-2) 55%);
}
.aurora { position: absolute; inset: -20%; filter: blur(70px); opacity: 0.85; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.b1 {
  width: 55vmax; height: 55vmax; left: -12vmax; top: -18vmax;
  background: radial-gradient(circle at 30% 30%, rgba(29,148,38,0.5), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.b2 {
  width: 45vmax; height: 45vmax; right: -10vmax; top: -6vmax;
  background: radial-gradient(circle at 60% 40%, rgba(17,107,28,0.55), transparent 62%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.b3 {
  width: 40vmax; height: 40vmax; left: 22vmax; bottom: -22vmax;
  background: radial-gradient(circle at 50% 50%, rgba(103,85,62,0.5), transparent 65%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(9vmax, 7vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vmax, 10vmax) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-6vmax, -8vmax) scale(1.2); } }

#spores { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 2; padding: 6rem 1.4rem 4rem; max-width: 1000px; }
.eyebrow {
  font-size: clamp(0.75rem, 1.4vw, 0.9rem); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 1.6rem;
}
.display { font-size: clamp(2.6rem, 9vw, 6.6rem); line-height: 1.02; color: var(--cream-bright); }
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.display .w {
  display: inline-block; transform: translateY(110%);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.display .line:nth-child(1) .w:nth-child(1) { animation-delay: 0.15s; }
.display .line:nth-child(1) .w:nth-child(2) { animation-delay: 0.28s; }
.display .line:nth-child(2) .w:nth-child(1) { animation-delay: 0.41s; }
.display .line:nth-child(2) .w:nth-child(2) { animation-delay: 0.54s; }
@keyframes rise { to { transform: translateY(0); } }

.accent {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, #5ddb6b, #c9f2a6 45%, #5ddb6b 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }

.sub {
  margin: 1.6rem auto 0; max-width: 34rem;
  color: var(--cream); opacity: 0.82; font-size: clamp(0.95rem, 1.6vw, 1.08rem); font-weight: 300;
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.9rem 2rem; border-radius: 999px;
  font-size: 0.95rem; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn.primary {
  background: var(--leaf); color: var(--espresso); border: 1px solid var(--leaf);
  box-shadow: 0 8px 30px rgba(29,148,38,0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(29,148,38,0.5); }
.btn.ghost {
  color: var(--cream-bright); border: 1px solid rgba(215, 205, 187, 0.35); background: rgba(215,205,187,0.04);
}
.btn.ghost:hover { background: rgba(215,205,187,0.12); transform: translateY(-2px); }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(215,205,187,0.4); border-radius: 999px; z-index: 2;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--leaf);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; padding: 1rem 0; border-top: 1px solid rgba(215,205,187,0.08); border-bottom: 1px solid rgba(215,205,187,0.08); }
.track {
  display: flex; gap: 2.6rem; width: max-content; align-items: center;
  animation: marquee 30s linear infinite;
}
.track span { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--stone); letter-spacing: 0.05em; white-space: nowrap; }
.track i { color: var(--leaf); font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 4rem); max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3.2rem; }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: 0.9rem;
}
.section h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--cream-bright); line-height: 1.15; }
.section h2 em { font-style: italic; color: var(--leaf); }

.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: rgba(215, 205, 187, 0.035);
  border: 1px solid rgba(215, 205, 187, 0.1);
  border-radius: 1.4rem; padding: 2rem 1.7rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(29,148,38,0.5); box-shadow: 0 18px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(29,148,38,0.2); }
.icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.35rem; color: var(--cream-bright); margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--cream); opacity: 0.8; font-weight: 300; }

/* practices grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.p-card {
  position: relative; border: 1px solid rgba(215,205,187,0.1); border-radius: 1.3rem;
  padding: 1.8rem 1.5rem; background: rgba(215,205,187,0.03);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}
.p-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 85% 15%, rgba(29,148,38,0.16), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.p-card:hover { transform: translateY(-5px); border-color: rgba(29,148,38,0.45); }
.p-card:hover::after { opacity: 1; }
.p-num {
  font-family: 'Fraunces', serif; font-size: 0.85rem; color: var(--leaf); letter-spacing: 0.1em;
  display: block; margin-bottom: 0.8rem;
}
.p-card h3 { font-size: 1.25rem; color: var(--cream-bright); margin-bottom: 0.45rem; }
.p-card p { font-size: 0.92rem; font-weight: 300; opacity: 0.8; margin-bottom: 1rem; }
.tag {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone);
  border: 1px solid rgba(215,205,187,0.18); border-radius: 999px; padding: 0.25rem 0.7rem;
}

/* rhythm */
.timeline { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.t-item {
  display: flex; gap: 2rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid rgba(215,205,187,0.1);
}
.t-item:last-child { border-bottom: 0; }
.t-time { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--leaf); min-width: 4.6rem; }
.t-item h3 { font-size: 1.2rem; color: var(--cream-bright); margin-bottom: 0.25rem; }
.t-item p { font-size: 0.92rem; opacity: 0.75; font-weight: 300; }

/* quote */
.quote {
  padding: clamp(4rem, 10vw, 7rem) 1.4rem; text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(17,107,28,0.22), transparent 60%),
    var(--espresso);
  border-top: 1px solid rgba(215,205,187,0.07); border-bottom: 1px solid rgba(215,205,187,0.07);
}
.quote blockquote p {
  font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 4.6vw, 2.9rem);
  color: var(--cream-bright); line-height: 1.25;
}
.quote em { font-style: italic; color: var(--leaf); }
.quote cite { display: block; margin-top: 1.2rem; color: var(--stone); font-style: normal; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* voices */
.t-card blockquote { font-family: 'Fraunces', serif; font-size: 1.08rem; color: var(--cream-bright); line-height: 1.5; margin-bottom: 1rem; }
.t-card figcaption { font-size: 0.82rem; color: var(--stone); letter-spacing: 0.04em; }

/* join */
.join { max-width: 860px; }
.join-card {
  text-align: center; border: 1px solid rgba(29,148,38,0.35); border-radius: 2rem;
  padding: clamp(2.6rem, 7vw, 4.5rem) 1.6rem;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(29,148,38,0.14), transparent 60%),
    rgba(215,205,187,0.03);
}
.join-card h2 { margin-bottom: 1.1rem; }
.join-sub { max-width: 30rem; margin: 0 auto 2rem; opacity: 0.8; font-weight: 300; }
.join-form { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; max-width: 30rem; margin: 0 auto 1.6rem; }
.join-form input {
  flex: 1 1 220px; padding: 0.9rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(215,205,187,0.25); background: rgba(26,20,13,0.6);
  color: var(--cream-bright); font-size: 0.95rem; outline: none;
}
.join-form input:focus { border-color: var(--leaf); }
.ig-link { color: var(--stone); text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; }
.ig-link span { color: var(--leaf); }
.ig-link:hover { color: var(--cream-bright); }

/* footer */
.footer {
  text-align: center; padding: 3.6rem 1.4rem 2.4rem;
  border-top: 1px solid rgba(215,205,187,0.08); color: var(--stone);
}
.foot-brand {
  font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 6vw, 4rem); color: var(--cream-bright);
  margin-bottom: 0.6rem;
}
.footer p { font-size: 0.9rem; }
.foot-links { display: flex; gap: 1.6rem; justify-content: center; margin: 1.4rem 0; flex-wrap: wrap; }
.foot-links a { color: var(--cream); opacity: 0.8; text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--leaf); opacity: 1; }
.fine { font-size: 0.78rem; opacity: 0.6; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .links, .nav .cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .cards.three, .grid { grid-template-columns: 1fr; }
  .t-item { flex-direction: column; gap: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .display .w { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
