/* ============================================================
   DR. PRIYA MENON — THE GUT IS A GARDEN
   Midnight botanical garden. Everything luminous is alive.
   ============================================================ */

:root {
  --soil:        #050f0a;   /* page ground */
  --soil-warm:   #0a1a11;
  --moss:        #1c3a28;
  --stem:        #4a7a56;
  --bloom:       #c8e86a;   /* bioluminescent chartreuse */
  --bloom-soft:  rgba(200, 232, 106, 0.55);
  --gold:        #e0b45c;   /* pollen gold */
  --cream:       #f0eee0;
  --cream-dim:   rgba(240, 238, 224, 0.72);
  --cream-faint: rgba(240, 238, 224, 0.38);
  --hairline:    rgba(200, 232, 106, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--soil);
  color: var(--cream);
  font-family: "Karla", sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip;
}

.mono { font-family: "Fragment Mono", monospace; font-size: 0.68rem; letter-spacing: 0.14em; }

::selection { background: var(--bloom); color: var(--soil); }

/* ---- the garden canvas sits behind everything ---- */
#garden {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 10%, transparent 55%, rgba(5, 15, 10, 0.82) 100%),
    linear-gradient(180deg, rgba(5, 15, 10, 0.5) 0%, transparent 22%);
}

header, main, footer { position: relative; z-index: 2; }

/* ============ MASTHEAD ============ */
.mast {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: linear-gradient(180deg, rgba(5,15,10,0.92) 55%, rgba(5,15,10,0.55) 80%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.wordmark {
  font-family: "Italiana", serif;
  font-size: 1.35rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.12em;
}

.mast-nav { display: flex; gap: 2.4rem; }
.mast-nav a {
  font-family: "Fragment Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.mast-nav a:hover { color: var(--bloom); }

.flora-status {
  color: var(--bloom);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.flora-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bloom);
  box-shadow: 0 0 8px var(--bloom);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.kicker { color: var(--gold); margin-bottom: 1.6rem; }

.hero h1 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 8.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--bloom);
  text-shadow: 0 0 34px rgba(200, 232, 106, 0.35);
}

.lede {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: 1.06rem;
  color: var(--cream-dim);
}

.hero-cta { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.8rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: "Fragment Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soil);
  background: var(--bloom);
  padding: 1rem 2.2rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(200, 232, 106, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 42px rgba(200, 232, 106, 0.45); }
.btn.big { padding: 1.2rem 3rem; margin-top: 3rem; }

.ghost {
  font-family: "Fragment Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.3rem;
  transition: color 0.3s, border-color 0.3s;
}
.ghost:hover { color: var(--bloom); border-color: var(--bloom); }

.hero-foot {
  position: absolute;
  left: 3rem; right: 3rem; bottom: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--cream-faint);
}
.hero { position: relative; }
.scroll-hint { animation: breathe 4s ease-in-out infinite; }

/* ============ SECTION SHARED ============ */
section { padding: 9rem 3rem; max-width: 1200px; margin: 0 auto; }

.eyebrow { color: var(--gold); margin-bottom: 1.4rem; }

h2 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.6rem;
}
h2 em { font-style: normal; color: var(--bloom); }

/* ============ WHAT WE TEND ============ */
.tend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 4rem;
}

.plot {
  background: rgba(5, 15, 10, 0.82);
  backdrop-filter: blur(2px);
  padding: 2.4rem 2rem 2.2rem;
  position: relative;
  transition: background 0.4s;
}
.plot:hover { background: rgba(15, 33, 21, 0.92); }
.plot:hover .plot-num { color: var(--bloom); }

.plot-num { color: var(--cream-faint); display: block; margin-bottom: 1.6rem; transition: color 0.4s; }

.plot h3 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.plot p { font-size: 0.92rem; color: var(--cream-dim); margin-bottom: 1.6rem; }

.plot-latin { color: var(--gold); opacity: 0.75; font-style: italic; }

/* ============ ROOT DIVIDER ============ */
.root-divider {
  color: var(--stem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}
.root-divider svg { width: 100%; height: 110px; display: block; overflow: visible; }
#rootLine, #rootLine2 {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
}
#rootTwigs { opacity: 0; transition: opacity 1.4s ease 2.6s; }
.root-divider.drawn #rootLine  { animation: rootgrow 3.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.root-divider.drawn #rootLine2 { animation: rootgrow 3.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.root-divider.drawn #rootTwigs { opacity: 0.5; }
@keyframes rootgrow { to { stroke-dashoffset: 0; } }

/* ============ A GENTLE LOOK ============ */
.look {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 5rem;
  align-items: start;
}

.look-copy > p:not(.eyebrow) { max-width: 32rem; color: var(--cream-dim); }

.look-list { list-style: none; margin-top: 2.6rem; }
.look-list li {
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem;
}
.look-list li:first-child { border-top: 1px solid var(--hairline); }
.look-list .mono { color: var(--bloom); }

.look-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 3.4rem;
}

.stat {
  background: rgba(5, 15, 10, 0.82);
  padding: 2.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stat-num {
  font-family: "Italiana", serif;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--bloom);
  text-shadow: 0 0 22px rgba(200, 232, 106, 0.25);
}

.stat-label { color: var(--cream-faint); }

/* ============ PHILOSOPHY ============ */
.creed { text-align: center; padding-top: 7rem; padding-bottom: 7rem; }

.creed blockquote p {
  font-family: "Italiana", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.3;
}
.creed em { font-style: normal; color: var(--bloom); text-shadow: 0 0 28px rgba(200,232,106,0.3); }
.creed cite { display: block; margin-top: 2.4rem; color: var(--cream-faint); font-style: normal; }

/* ============ VISIT ============ */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.6rem;
  max-width: 56rem;
}
.visit-grid h4 { color: var(--gold); margin-bottom: 0.8rem; font-weight: 400; }
.visit-grid p { font-size: 0.94rem; color: var(--cream-dim); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(0deg, rgba(5,15,10,0.9), transparent);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.footer-row .mono { color: var(--cream-faint); }
.footer-row a { color: var(--bloom); text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }
.footer-note { font-size: 0.8rem; max-width: 46rem; opacity: 0.75; color: var(--cream-dim); }
.footer-note a { color: var(--bloom); text-decoration: none; border-bottom: 1px solid rgba(200, 232, 106, 0.35); }
.footer-note a:hover { border-bottom-color: var(--bloom); }

/* ============ REVEALS ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .mast { padding: 1.1rem 1.4rem; }
  .mast-nav { display: none; }
  .hero { padding: 7.5rem 1.4rem 7rem; justify-content: flex-start; min-height: 100svh; }
  .hero-foot { left: 1.4rem; right: 1.4rem; }
  .hero-foot span:first-child { display: none; }
  section { padding: 5.5rem 1.4rem; }
  .tend-grid { grid-template-columns: 1fr; }
  .look { grid-template-columns: 1fr; gap: 3rem; }
  .visit-grid { grid-template-columns: 1fr; gap: 2rem; }
  .root-divider { padding: 0 1.4rem; }
  .footer { padding: 2.4rem 1.4rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flora-dot, .scroll-hint { animation: none; }
  .root-divider.drawn #rootLine, .root-divider.drawn #rootLine2 {
    animation: none; stroke-dashoffset: 0;
  }
}
