/* ============================================================
   ARTHANARIKULAM — Main Stylesheet
   Design System + Layout + Component Styles
   ============================================================ */

/* ─── GOOGLE FONTS ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* ─── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --forest:        #0d1f0d;
  --green:         #1a2e1a;
  --mid:           #2a4a2a;
  --green-light:   #3a6b3a;
  --cream:         #f5f0e8;
  --cream-dark:    #ede5d5;
  --gold:          #c9a84c;
  --gold-light:    #e8c96a;
  --gold-dim:      rgba(201, 168, 76, 0.3);
  --muted:         #a89f8c;
  --text-dark:     #1a1a12;

  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;

  --ease-organic:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);

  --nav-h:         80px;
  --section-pad:   120px;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: var(--font-sans);
  background: var(--forest);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none; /* custom cursor */
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── CUSTOM CURSOR ───────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
              transform 0.12s linear, opacity 0.3s;
  opacity: 0.6;
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  opacity: 1;
}

/* ─── LOADING SCREEN ──────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.loader-plant {
  width: 80px;
  height: 120px;
}

.loader-brand {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--cream);
  opacity: 0;
}

.loader-tagline {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
}

.loader-bar-wrap {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  opacity: 0;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.05s linear;
}

/* ─── NAVIGATION ──────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  transition: background 0.6s var(--ease-organic), backdrop-filter 0.6s;
}

#navbar.scrolled {
  background: rgba(13, 31, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-dim);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-organic);
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  padding: 10px 24px;
  border-radius: 40px;
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--forest) !important;
  border-color: var(--gold) !important;
}

.nav-cta::after { display: none !important; }

/* ─── HERO SECTION ────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url('../assets/images/hero-forest.png');
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}

.hero-fog {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-fog.png');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.6;
  will-change: transform;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 31, 13, 0.15) 0%,
    rgba(13, 31, 13, 0.05) 30%,
    rgba(13, 31, 13, 0.4) 70%,
    rgba(13, 31, 13, 0.85) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 36px;
  overflow: hidden;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
}

.hero-headline .line-inner {
  display: block;
  transform: translateY(110%);
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  color: rgba(245, 240, 232, 0.65);
  letter-spacing: 0.5px;
  margin-bottom: 56px;
  opacity: 0;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 60px;
  background: rgba(13, 31, 13, 0.3);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transition: background 0.4s, border-color 0.4s, transform 0.3s var(--ease-out);
  cursor: none;
}

.hero-cta:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.hero-cta-arrow {
  transition: transform 0.3s var(--ease-out);
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateX(6px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero-scroll-hint span {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── CHAPTER LABEL SHARED ────────────────────────────────── */
.chapter-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.chapter-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── SECTION 2 — NATURE'S WISDOM ────────────────────────── */
#wisdom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.wisdom-text {
  background: var(--green);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 80px;
  position: relative;
  overflow: hidden;
}

.wisdom-text::before {
  content: '02';
  position: absolute;
  top: 40px;
  left: 60px;
  font-family: var(--font-serif);
  font-size: 180px;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.wisdom-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 32px;
}

.wisdom-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
}

.wisdom-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245, 240, 232, 0.65);
  max-width: 420px;
  margin-bottom: 44px;
}

.wisdom-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s var(--ease-out);
  cursor: none;
}

.wisdom-link:hover {
  gap: 18px;
}

.wisdom-illustration {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  position: relative;
  border-left: 1px solid var(--gold-dim);
  overflow: hidden;
}

.wisdom-illustration img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(13,31,13,0.15));
}

/* ─── WISDOM TREE SVG ─────────────────────────────────────── */
.wisdom-tree-svg {
  width: 100%;
  height: auto;
  max-height: 82vh;
  display: block;
}

/* SVG transform-box so GSAP scale works from element centre */
.leaf-bud {
  transform-box: fill-box;
  transform-origin: center;
}

.benefit-bubble {
  transform-box: fill-box;
}

/* ─── SECTION 3 — HERB CAROUSEL ──────────────────────────── */
#herbs {
  background: var(--forest);
  padding: var(--section-pad) 0 80px;
  overflow: hidden;
}

.herbs-header {
  text-align: center;
  padding: 0 60px;
  margin-bottom: 56px;
}

.herbs-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 16px;
}

.herbs-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 1px;
}

/* Carousel wrapper — positions arrows absolutely */
.herbs-carousel {
  position: relative;
  width: 100%;
}

/* Clipping window — only 1 slide visible at a time */
.herbs-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

/* Each slide = a row of 3 cards, full-width */
.herbs-slide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  /* GSAP will animate opacity + transform when switching */
}

/* Cards fill their grid cell completely */
.herb-card {
  position: relative;
  height: 540px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: none;
  /* subtle border between cards */
  border-right: 1px solid rgba(201, 168, 76, 0.08);
  transition: transform 0.5s var(--ease-out);
}

.herb-card:last-child {
  border-right: none;
}

.herb-card:hover {
  transform: translateY(-10px);
  z-index: 2;
}

.herb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-organic);
  display: block;
}

.herb-card:hover .herb-card-img {
  transform: scale(1.06);
}

.herb-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,31,13,0.92) 0%,
    rgba(13,31,13,0.35) 45%,
    rgba(13,31,13,0.05) 100%
  );
}

.herb-card-glass {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 32px;
  background: rgba(10, 24, 10, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out), background 0.4s;
}

.herb-card:hover .herb-card-glass {
  background: rgba(10, 24, 10, 0.72);
}

.herb-card-number {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 400;
}

.herb-card-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.1;
}

.herb-card-latin {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 14px;
}

.herb-card-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.62);
  line-height: 1.65;
}

/* Prev / Next arrow buttons */
.herbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(13, 31, 13, 0.6);
  backdrop-filter: blur(12px);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.herbs-arrow:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.herbs-arrow:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.herbs-prev { left: 24px; }
.herbs-next { right: 24px; }

/* Slide dots */
.herbs-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding: 0 60px;
}

.herbs-dot {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: rgba(201, 168, 76, 0.2);
  border: none;
  cursor: none;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}

.herbs-dot.active {
  background: var(--gold);
  width: 48px;
}

.herbs-cta-row {
  text-align: center;
  margin-top: 40px;
  padding: 0 60px;
}

.herbs-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s;
  cursor: none;
}

.herbs-all-link:hover { gap: 18px; }

/* ─── SECTION 4 — HEALING ─────────────────────────────────── */
#healing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.healing-bg {
  position: absolute;
  inset: -10%;
  background-image: url('../assets/images/healing-landscape.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.healing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,31,13,0.80) 0%,
    rgba(13,31,13,0.55) 50%,
    rgba(13,31,13,0.75) 100%
  );
}

.healing-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 60px;
}

.healing-quote-mark {
  font-family: var(--font-serif);
  font-size: 120px;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 32px;
  display: block;
}

.healing-quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 40px;
}

.healing-attr {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── SECTION 5 — FUTURE ──────────────────────────────────── */
#future {
  background: var(--green);
  padding: var(--section-pad) 80px;
  position: relative;
  overflow: hidden;
}

.future-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.future-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.future-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.future-headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 3.5vw, 58px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
}

.future-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245, 240, 232, 0.6);
  padding-top: 12px;
}

.future-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.future-module {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
  padding: 28px 24px;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
  /* equal-height cards — fills grid cell height */
  display: flex;
  flex-direction: column;
}

.future-module-badge {
  display: inline-block;
  margin-top: auto;  /* pin badge to bottom regardless of content height */
  padding-top: 12px;
  align-self: flex-start;
}

.future-module:hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-6px);
}

.future-module-icon {
  font-size: 24px;
  margin-bottom: 16px;
}

.future-module-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 6px;
}

.future-module-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── CONTACT SECTION ─────────────────────────────────────── */

#contact {
  background: var(--cream);
  padding: var(--section-pad) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-leaf-left,
.contact-leaf-right {
  position: absolute;
  font-size: 260px;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.contact-leaf-left  { top: -60px; left: -60px; transform: rotate(-30deg); }
.contact-leaf-right { bottom: -60px; right: -60px; transform: rotate(150deg); }

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.contact-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 24px;
}

.contact-sub {
  font-size: 15px;
  font-weight: 300;
  color: #5a5046;
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 24px;
  border: 1px solid rgba(13,31,13,0.2);
  border-radius: 60px;
  overflow: hidden;
  background: white;
}

.contact-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--forest);
  background: transparent;
}

.contact-input::placeholder {
  color: var(--muted);
}

.contact-submit {
  background: var(--forest);
  color: var(--cream);
  border: none;
  padding: 18px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  border-radius: 0 60px 60px 0;
  transition: background 0.3s;
  white-space: nowrap;
}

.contact-submit:hover {
  background: var(--green);
}

.contact-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
#footer {
  background: var(--forest);
  padding: 80px 80px 40px;
  border-top: 1px solid var(--gold-dim);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 260px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245,240,232,0.55);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: rgba(245,240,232,0.25);
}

.footer-gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
}

/* ─── FLOATING LEAF PARTICLES ─────────────────────────────── */
.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  font-size: 20px;
  user-select: none;
  animation: floatParticle var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}

/* ─── SCROLL REVEAL BASE STATE ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

/* ─── HAMBURGER BUTTON ────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 8px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s, width 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE MENU OVERLAY ─────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13, 31, 13, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-organic);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 1px;
  display: block;
  padding: 10px 24px;
  transition: color 0.3s, transform 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-nav-links li:nth-child(1) .mobile-nav-link { transition-delay: 0.05s; }
.mobile-menu.open .mobile-nav-links li:nth-child(2) .mobile-nav-link { transition-delay: 0.10s; }
.mobile-menu.open .mobile-nav-links li:nth-child(3) .mobile-nav-link { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-links li:nth-child(4) .mobile-nav-link { transition-delay: 0.20s; }
.mobile-menu.open .mobile-nav-links li:nth-child(5) .mobile-nav-link { transition-delay: 0.25s; }

.mobile-nav-link:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.mobile-nav-cta {
  font-family: var(--font-sans);
  font-size: 13px !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  padding: 14px 36px !important;
  border-radius: 40px;
  margin-top: 12px;
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}

.mobile-nav-cta:hover {
  background: var(--gold) !important;
  color: var(--forest) !important;
  border-color: var(--gold) !important;
  transform: none !important;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  #wisdom { grid-template-columns: 1fr; }
  .wisdom-illustration { min-height: 50vh; }

  .future-top { grid-template-columns: 1fr; gap: 40px; }
  .future-modules { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --section-pad: 60px;
  }

  /* ── Nav ── */
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* ── Hero ── */
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-eyebrow { letter-spacing: 3px; font-size: 10px; }
  .hero-cta { padding: 15px 32px; font-size: 12px; }
  .hero-scroll-hint { bottom: 24px; }

  /* ── Wisdom ── */
  #wisdom { display: flex; flex-direction: column; }
  .wisdom-illustration { order: -1; min-height: 45vh; padding: 40px 24px; }
  .wisdom-text { padding: 60px 24px; }
  .wisdom-text::before { font-size: 100px; top: 20px; left: 20px; }
  .wisdom-body { max-width: 100%; }

  /* ── Herbs — single-card scroll-snap carousel ── */
  .herbs-header { padding: 0 24px; margin-bottom: 40px; }
  .herbs-carousel-viewport {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .herbs-carousel-viewport::-webkit-scrollbar { display: none; }
  /* unwrap slide wrappers — all cards become direct flex children */
  .herbs-slide { display: contents; }
  .herb-card {
    flex-shrink: 0;
    width: 100vw;
    min-width: 100vw;
    height: 460px;
    scroll-snap-align: start;
    border-right: none;
    border-bottom: none;
    transform: none !important; /* disable hover lift on touch */
  }
  .herbs-prev { left: 12px; }
  .herbs-next { right: 12px; }
  .herbs-dots { padding: 0 24px; }
  .herbs-cta-row { padding: 0 24px; }

  /* ── Healing ── */
  .healing-content { padding: 0 24px; max-width: 100%; }

  /* ── Future — horizontal swipe carousel ── */
  #future { padding: var(--section-pad) 0; }
  .future-inner { padding: 0 20px; }
  .future-top { padding: 0; }
  .future-modules {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px 20px 20px;
    /* fade-out right edge hint */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }
  .future-modules::-webkit-scrollbar { display: none; }
  .future-module {
    flex-shrink: 0;
    width: 78vw;
    scroll-snap-align: start;
    padding: 24px 20px;
  }

  /* ── Contact ── */
  #contact { padding: var(--section-pad) 20px; }
  .contact-form { flex-direction: column; border-radius: 16px; }
  .contact-submit { border-radius: 0 0 16px 16px; cursor: pointer; }

  /* ── Footer ── */
  #footer { padding: 56px 20px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-tagline { max-width: 100%; }

  /* ── Cursor ── */
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  .hero-cta, .wisdom-link, .herbs-all-link, .contact-submit, .nav-cta,
  .herbs-arrow, .herbs-dot { cursor: pointer; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  /* ── Nav ── */
  .nav-logo { font-size: 18px; }

  /* ── Hero ── */
  .hero-content { padding: 0 20px; }
  .hero-sub { margin-bottom: 36px; }
  .hero-cta { padding: 14px 28px; font-size: 11px; }

  /* ── Wisdom ── */
  .wisdom-text { padding: 48px 20px; }
  .wisdom-illustration { padding: 32px 20px; }

  /* ── Herbs ── */
  .herbs-header { padding: 0 20px; }
  .herb-card { height: 400px; }
  .herb-card-glass { padding: 24px 20px; }
  .herb-card-name { font-size: 26px; }

  /* ── Future (small phones) ── */
  #future { padding: 48px 0; }
  .future-modules { width: calc(100vw); }
  .future-module { width: 82vw; }
  .future-top { gap: 28px; margin-bottom: 48px; }

  /* ── Contact ── */
  #contact { padding: 56px 20px; }
  .contact-sub { margin-bottom: 32px; font-size: 14px; }
  .contact-input { padding: 16px 20px; }
  .contact-submit { padding: 16px 20px; }

  /* ── Footer ── */
  #footer { padding: 48px 20px 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-gold-line { display: none; }

  /* ── Loader ── */
  .loader-brand { font-size: 22px; letter-spacing: 2px; }
}

