/* organic-vs-bits — style.css v2 */

:root {
  --bg:        #080c06;
  --bg-2:      #0d1309;
  --bg-3:      #101708;
  --text:      #b8b8b2;
  --text-hi:   #e8e8e2;
  --organic:   #52734d;
  --organic-l: #8bc34a;
  --organic-b: #a5d46a;
  --digital:   #39ff14;
  --warm:      #b8956a;
  --warm-d:    rgba(184,149,106,.25);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
  --sans:       system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}


/* ── HERO ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mycelium-bg {
  position: absolute;
  inset: 0;
  opacity: .4;
  pointer-events: none;
}
.mycelium-bg svg { width: 100%; height: 100%; }

.hypha {
  fill: none;
  stroke: var(--organic);
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: grow linear forwards;
}
.trunk  { stroke-width: .45; animation-duration: 3.5s; }
.branch { stroke-width: .3;  animation-duration: 2.5s; }
.tendril{ stroke-width: .2;  animation-duration: 1.8s; }
.t1 { animation-delay: .1s; } .t2 { animation-delay: .4s; }
.t3 { animation-delay: .7s; } .t4 { animation-delay: 1.0s; }
.t5 { animation-delay: 1.3s; }
.b1 { animation-delay: 2.2s; } .b2 { animation-delay: 2.4s; }
.b3 { animation-delay: 2.6s; } .b4 { animation-delay: 2.8s; }
.b5 { animation-delay: 2.9s; } .b6 { animation-delay: 3.1s; }
.r1 { animation-delay: 3.3s; } .r2 { animation-delay: 3.5s; }
.r3 { animation-delay: 3.7s; } .r4 { animation-delay: 3.4s; }
@keyframes grow { to { stroke-dashoffset: 0; } }

.node {
  fill: var(--organic);
  opacity: 0;
  animation: node-appear 1s ease forwards;
}
.node:nth-child(1)  { animation-delay: 2.8s; }
.node:nth-child(2)  { animation-delay: 3.0s; }
.node:nth-child(3)  { animation-delay: 3.2s; }
.node:nth-child(4)  { animation-delay: 3.4s; }
.node:nth-child(5)  { animation-delay: 3.5s; }
.node:nth-child(6)  { animation-delay: 3.7s; }
.node:nth-child(7)  { animation-delay: 3.8s; }
.node:nth-child(8)  { animation-delay: 3.9s; }
.node:nth-child(9)  { animation-delay: 4.0s; }
.node:nth-child(10) { animation-delay: 4.1s; }
@keyframes node-appear {
  0%   { opacity: 0; }
  60%  { opacity: .9; }
  100% { opacity: .55; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--organic);
  opacity: .6;
  margin-bottom: 1.5rem;
  animation: fadein .8s ease forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
}
.ht-organic { display: block; color: var(--organic-b); animation: fadein .6s ease both .2s; }
.ht-vs      { display: block; font-style: italic; font-size: .38em; color: var(--warm);
              letter-spacing: .3em; text-transform: uppercase; animation: fadein .6s ease both .5s; }
.ht-bits    { display: block; color: var(--digital); text-shadow: 0 0 60px rgba(57,255,20,.25);
              animation: fadein .6s ease both .8s; }
.hero-falscher {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--warm);
  letter-spacing: .12em;
  margin-top: 2rem;
  animation: fadein 1s ease forwards 2.5s;
  opacity: 0;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadein 1s ease forwards 3.2s;
  opacity: 0;
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--organic);
  font-size: 1.4rem;
  animation: bob 2.5s ease-in-out infinite 4.5s both, fadein .8s ease forwards 4.5s;
  opacity: 0;
}
@keyframes fadein { to { opacity: 1; } }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}


/* ── SHARED SECTION STYLES ──────────────────────────────────── */

.s {
  padding: 6rem 2rem;
  border-top: 1px solid rgba(255,255,255,.04);
}
.s-zeit      { background: var(--bg); }
.s-netz      { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.s-food-web  { background: var(--bg-2); }
.s-sensoren  { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.s-vpd       { background: var(--bg-3); }
.s-loop      { background: radial-gradient(ellipse at center, rgba(57,255,20,.03) 0%, var(--bg-3) 65%); }
.s-substrate { background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%); }
.s-local-ai  { background: var(--bg-2); }
.s-farmbot   { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.s-smart     { background: var(--bg-3); }
.s-and       { background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%); }
.s-limits    { background: var(--bg-2); }

.layer-label {
  text-align: center;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  opacity: .45;
}
.ll-organic { color: var(--organic-l); }
.ll-sep     { color: var(--warm); margin: 0 .75rem; }
.ll-digital { color: var(--digital); }

.s-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.s-inner-flip .s-aside { order: -1; }

.s-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-hi);
  margin-bottom: 1.5rem;
}
.s-text p { margin-bottom: 1.1rem; font-size: 1.02rem; }
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem !important;
  color: var(--warm) !important;
  border-left: 2px solid var(--warm-d);
  padding-left: 1.2rem;
  margin-top: 2rem !important;
  line-height: 1.55;
}


/* ── ZEITACHSEN ─────────────────────────────────────────────── */

.zeit-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.zeit-wrap h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text-hi);
  margin-bottom: 2.5rem;
  line-height: 1.2;
}
.zeitachse { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.za-item { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 1rem; align-items: center; }
.za-year {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--warm);
  text-align: right;
  white-space: nowrap;
}
.za-bar { height: 6px; border-radius: 3px; min-width: 2px; }
.za-label { font-size: .9rem; color: var(--text); }
.zeit-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--warm);
  border-left: 2px solid var(--warm-d);
  padding-left: 1.2rem;
  line-height: 1.6;
}


/* ── MONO BLOCK ─────────────────────────────────────────────── */

.mono-block {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(57,255,20,.1);
  border-radius: 3px;
  padding: 1.5rem;
}
.mono-label {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .28em;
  color: var(--digital);
  opacity: .6;
  margin-bottom: 1rem;
}
.mono-content {
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 2;
  color: var(--organic-l);
  white-space: pre;
}


/* ── FACT BOXES ─────────────────────────────────────────────── */

.fact-box {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(82,115,77,.08);
  border-left: 3px solid var(--organic);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.fact-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--organic-b);
  white-space: nowrap;
  line-height: 1;
}
.fact-label {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.4;
}


/* ── FOOD WEB ───────────────────────────────────────────────── */

.food-web { display: flex; flex-direction: column; gap: 0; border-radius: 4px; overflow: hidden; }
.fw-layer {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,.25);
  background: rgba(var(--c), .15);
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: .5rem;
  align-items: center;
  font-family: var(--mono);
  font-size: .8rem;
}
.fw-name { color: var(--organic-l); font-weight: 500; }
.fw-role { color: var(--text); font-size: .75rem; }
.fw-tech { color: var(--digital); opacity: .6; font-size: .72rem; }


/* ── SENSOR STACK ───────────────────────────────────────────── */

.sensor-stack {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: .82rem;
}
.sensor-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: .5rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  align-items: center;
}
.sensor-row.header {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--digital);
  opacity: .5;
  padding: .6rem 1rem;
}
.sr-name { color: var(--organic-l); font-weight: 500; }
.sr-val  { color: var(--warm); font-size: .76rem; text-align: right; }
.sensor-note {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text);
  opacity: .55;
  line-height: 1.6;
}


/* ── VPD ────────────────────────────────────────────────────── */

.vpd-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.vpd-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-hi);
  margin-bottom: 1.5rem;
}
.vpd-text p { margin-bottom: 1.1rem; font-size: 1.02rem; }
.vpd-chart { padding-top: .5rem; }
.vpd-scale { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 1.5rem; }
.vpd-row { display: grid; grid-template-columns: 100px 1fr 80px; gap: .75rem; align-items: center; }
.vpd-phase { font-family: var(--mono); font-size: .78rem; color: var(--text); text-align: right; }
.vpd-bar {
  height: 12px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.vpd-fill {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 6px;
}
.vpd-range { font-family: var(--mono); font-size: .72rem; color: var(--warm); }
.vpd-note {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--text);
  opacity: .55;
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 1rem;
}


/* ── LOOP ───────────────────────────────────────────────────── */

.loop-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.loop-diagram svg { width: 100%; max-width: 400px; display: block; margin: 0 auto; }
.dl { font-family: 'JetBrains Mono', monospace; font-size: 11px; fill: rgba(57,255,20,.7); }
.ol { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: var(--organic-l); }
.ct { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 15px; font-weight: 300; fill: var(--text); }
.cb { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 600; fill: var(--text-hi); }
.loop-text h2 {
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.9;
  color: var(--digital);
  margin-bottom: 1.5rem;
}
.loop-text p { margin-bottom: 1rem; font-size: 1.02rem; }
.loop-stack { margin-top: 1.8rem; display: flex; flex-direction: column; gap: .5rem; }
.ls-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .8rem;
  padding: .45rem .6rem;
  background: rgba(0,0,0,.25);
  border-left: 2px solid transparent;
  transition: border-color .2s;
}
.ls-row:hover { border-left-color: var(--organic); }
.ls-o  { color: var(--organic-l); }
.ls-arr{ color: var(--warm); opacity: .6; }
.ls-d  { color: var(--digital); opacity: .7; }


/* ── SOIL STACK ─────────────────────────────────────────────── */

.soil-stack {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}
.soil-layer {
  padding: .9rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.3);
  font-family: var(--mono);
  font-size: .82rem;
}
.sl-name { color: var(--organic-l); font-weight: 500; white-space: nowrap; }
.sl-val  { color: var(--text); opacity: .65; font-size: .76rem; text-align: right; }
.sl-warn { color: var(--warm) !important; opacity: 1 !important; }


/* ── LOCAL AI / ARCH DIAGRAM ────────────────────────────────── */

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 280px;
  margin: 0 auto;
}
.arch-row { width: 100%; }
.arch-box {
  padding: .8rem 1.2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .82rem;
  border-radius: 3px;
  width: 100%;
}
.arch-agent   { background: rgba(57,255,20,.08);   border: 1px solid rgba(57,255,20,.2);  color: var(--digital); }
.arch-farmbot { background: rgba(184,149,106,.08); border: 1px solid rgba(184,149,106,.2); color: var(--warm); }
.arch-physical{ background: rgba(82,115,77,.12);   border: 1px solid rgba(82,115,77,.25);  color: var(--organic-l); }
.arch-data    { background: rgba(57,255,20,.05);   border: 1px solid rgba(57,255,20,.1);  color: rgba(57,255,20,.6); }
.arch-arrow {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text);
  opacity: .4;
  text-align: center;
  padding: .4rem 0;
}


/* ── SMART REFRAME ──────────────────────────────────────────── */

.smart-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.smart-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-hi);
  margin-bottom: 1.5rem;
}
.smart-text p { margin-bottom: 1.1rem; font-size: 1.02rem; }
.smart-reframe { display: flex; flex-direction: column; gap: .8rem; padding-top: .5rem; }
.reframe-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
  padding: .7rem 1rem;
  background: rgba(0,0,0,.2);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .82rem;
}
.rf-wrong { color: var(--text); opacity: .45; text-decoration: line-through; }
.rf-arr   { color: var(--warm); opacity: .4; }
.rf-right { color: var(--organic-l); }


/* ── AND ────────────────────────────────────────────────────── */

.s-inner-c { max-width: 1000px; margin: 0 auto; text-align: center; }
.and-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-hi);
  margin-bottom: 3rem;
}
.and-title em {
  font-style: normal;
  color: var(--digital);
  text-shadow: 0 0 40px rgba(57,255,20,.3);
}
.and-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  text-align: left;
}
.and-item {
  padding: 1.5rem;
  background: rgba(255,255,255,.02);
  border-top: 2px solid rgba(255,255,255,.06);
}
.and-num {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--organic);
  margin-bottom: .6rem;
}
.and-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-hi);
  margin-bottom: .6rem;
}
.and-item p { font-size: .95rem; line-height: 1.65; }
.and-item em { color: var(--organic-l); font-style: normal; }


/* ── LIMITS ─────────────────────────────────────────────────── */

.limits-list { display: flex; flex-direction: column; gap: 0; border-radius: 3px; overflow: hidden; }
.limit-item {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: start;
  font-size: .9rem;
}
.limit-item:hover { background: rgba(255,255,255,.02); }
.li-sense {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--organic-l);
  font-weight: 500;
}
.li-desc { color: var(--text); line-height: 1.5; }


/* ── CLOSE ──────────────────────────────────────────────────── */

.s-close {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  padding: 6rem 2rem;
  text-align: center;
}
.close-inner { max-width: 700px; }
.close-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-hi);
}
.close-text em {
  font-style: italic;
  color: var(--warm);
  display: block;
  margin-top: .4rem;
}
.close-body {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.close-meta {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text);
  opacity: .3;
  letter-spacing: .12em;
}


/* ── FOOTER ─────────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 1.8rem 2rem;
  border-top: 1px solid rgba(255,255,255,.04);
  font-family: var(--mono);
  font-size: .78rem;
}
.site-footer a { color: var(--organic); text-decoration: none; }
.site-footer a:hover { color: var(--organic-l); }


/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 840px) {
  .s-inner, .loop-wrap, .vpd-wrap, .smart-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .s-inner-flip .s-aside { order: 0; }
  .and-grid { grid-template-columns: 1fr; }
  .fw-layer { grid-template-columns: 1fr 1fr; }
  .fw-tech  { display: none; }
  .za-item  { grid-template-columns: 80px 1fr; }
  .za-label { display: none; }
  .sensor-row { grid-template-columns: 90px 1fr; }
  .sr-val { display: none; }
  .reframe-row { grid-template-columns: 1fr; gap: .2rem; }
  .rf-arr  { display: none; }
  .limit-item { grid-template-columns: 1fr; gap: .25rem; }
  .s { padding: 4rem 1.5rem; }
  .hero-title { font-size: clamp(3rem, 16vw, 5.5rem); }
}
