/* Proof of Soil: concept site. Look and feel follows soilscope.land. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/inter-var.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-var.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(/fonts/playfair-italic-500.woff2) format("woff2"); }

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

:root {
  --soil-deep: #060d06;
  --soil-dark: #121a12;
  --soil-mid: #1a2e1a;
  --soil-warm: #2d4a2d;
  --leaf: #4caf50;
  --leaf-light: #81c784;
  --leaf-glow: #66bb6a;
  --earth: #8d6e63;
  --earth-light: #bcaaa4;
  --amber: #c9a25a;
  --sand: #d4c5a9;
  --cream: #f5f0e8;
  --text: #e8ede8;
  --text-dim: #9aaa9a;
  --breathe-duration: 8s;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--soil-deep);
  color: var(--text);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body { background: transparent; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf-light); }

/* Keyboard focus: always visible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--leaf-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--leaf); color: #0a0f0a; padding: 0.6rem 1rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Living background ── */
.living-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--soil-deep); }
.living-bg__layer { position: absolute; inset: -60%; width: 220%; height: 220%; }
.living-bg__layer--1 { background: radial-gradient(ellipse 70% 55% at 25% 35%, rgba(20,100,40,0.65) 0%, rgba(15,70,30,0.3) 40%, transparent 70%); animation: drift1 45s ease-in-out infinite; }
.living-bg__layer--2 { background: radial-gradient(ellipse 55% 70% at 75% 65%, rgba(141,110,85,0.45) 0%, rgba(100,75,55,0.2) 40%, transparent 70%); animation: drift2 55s ease-in-out infinite; }
.living-bg__layer--3 { background: radial-gradient(ellipse 45% 45% at 50% 45%, rgba(76,175,80,0.35) 0%, rgba(56,142,60,0.15) 35%, transparent 65%); animation: bg-breathe 16s ease-in-out infinite; }
.living-bg__layer--4 { background: radial-gradient(ellipse 40% 50% at 60% 30%, rgba(0,105,92,0.3) 0%, rgba(0,77,64,0.1) 40%, transparent 65%); animation: drift3 60s ease-in-out infinite; }
.living-bg__layer--5 { background: radial-gradient(ellipse 50% 35% at 40% 80%, rgba(160,120,60,0.25) 0%, rgba(120,85,40,0.1) 40%, transparent 60%); animation: drift4 70s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(4%,-2%) scale(1.04); } 50% { transform: translate(2%,3%) scale(1.02); } 75% { transform: translate(-3%,1%) scale(0.97); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) rotate(0deg) scale(1); } 33% { transform: translate(-5%,3%) rotate(2deg) scale(1.03); } 66% { transform: translate(3%,-2%) rotate(-1deg) scale(0.98); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); opacity: 0.8; } 50% { transform: translate(-6%,4%) scale(1.06); opacity: 1; } }
@keyframes drift4 { 0%,100% { transform: translate(0,0) scale(1); opacity: 0.6; } 40% { transform: translate(3%,-3%) scale(1.05); opacity: 1; } 70% { transform: translate(-2%,2%) scale(0.98); opacity: 0.7; } }
@keyframes bg-breathe { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.organic-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 2; opacity: 0.025; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px;
}
.page { position: relative; z-index: 3; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,15,10,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(76,175,80,0.1);
  transition: padding 0.4s ease, background 0.4s ease;
}
nav.scrolled { padding: 0.75rem 2rem; background: rgba(10,15,10,0.9); }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.nav-brand svg { width: 30px; height: 30px; }
.nav-brand span { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.3px;
  transition: color 0.3s; position: relative;
}
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--leaf); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--leaf-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta {
  padding: 0.5rem 1.2rem; background: rgba(76,175,80,0.25); border: 1px solid rgba(76,175,80,0.3);
  border-radius: 6px; color: var(--leaf-light); font-weight: 500;
}
.nav-links a.nav-cta:hover { border-color: var(--leaf); }
.nav-links a.nav-cta::after { display: none; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 38px; padding: 0 11px;
  background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.3); border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; background: var(--leaf-light); transition: transform 0.3s ease, opacity 0.3s ease; }
nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 6rem; position: relative; max-width: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--leaf-light);
  margin-bottom: 1.75rem; font-weight: 500;
  padding: 0.45rem 0.95rem; border: 1px solid rgba(76,175,80,0.3); border-radius: 999px;
  background: rgba(76,175,80,0.08);
  opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 10px var(--leaf); animation: label-pulse 2.5s ease-in-out infinite; }
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.3rem, 6.4vw, 5.1rem); font-weight: 400; line-height: 1.1;
  max-width: 980px; margin-bottom: 1.6rem;
  opacity: 0; animation: fadeUp 1s ease 0.5s forwards;
}
.hero h1 em, .section-title em { font-style: italic; color: var(--leaf-light); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--leaf);
  animation: breathe-line var(--breathe-duration) ease-in-out infinite;
}
@keyframes breathe-line { 0%,100% { opacity: 0.2; transform: scaleX(0.95); } 50% { opacity: 0.6; transform: scaleX(1); } }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.22rem); color: var(--text-dim); max-width: 600px; line-height: 1.7; font-weight: 300;
  margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 1s ease 0.7s forwards;
}
.hero-sub strong { color: var(--sand); font-weight: 400; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fadeUp 1s ease 0.9s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0; animation: fadeUp 1s ease 1.2s forwards; }
.scroll-hint span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--leaf), transparent); animation: scroll-pulse 2s ease-in-out infinite; }
@keyframes scroll-pulse { 0%,100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.3; transform: scaleY(0.6); } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem; border-radius: 8px; font: inherit; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: all 0.4s ease; cursor: pointer; border: none; letter-spacing: 0.3px;
  min-height: 44px;
}
.btn-primary { background: var(--leaf); color: #0a0f0a; box-shadow: 0 0 30px rgba(76,175,80,0.2); animation: btn-breathe var(--breathe-duration) ease-in-out infinite; }
.btn-primary:hover { background: var(--leaf-light); box-shadow: 0 0 50px rgba(76,175,80,0.35); transform: translateY(-2px); }
@keyframes btn-breathe { 0%,100% { box-shadow: 0 0 20px rgba(76,175,80,0.25); } 50% { box-shadow: 0 0 40px rgba(76,175,80,0.3); } }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn-xl { padding: 1.05rem 2.6rem; font-size: 1rem; }

/* ── Sections ── */
section { padding: 8rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--leaf); margin-bottom: 1rem; font-weight: 500; animation: label-pulse 4s ease-in-out infinite; }
@keyframes label-pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
.section-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 400; margin-bottom: 1rem; line-height: 1.2; }
.section-desc { font-size: 1.05rem; color: var(--text-dim); max-width: 620px; line-height: 1.7; font-weight: 300; margin-bottom: 3rem; }
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

.divider {
  max-width: 1100px; margin: 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76,175,80,0.25), transparent);
  animation: divider-breathe var(--breathe-duration) ease-in-out infinite;
}
@keyframes divider-breathe { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ── Glass panels and cards ── */
.panel {
  border-radius: 16px; padding: 2rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(76,175,80,0.18);
  box-shadow: 0 0 60px rgba(76,175,80,0.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  padding: 2rem; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
  position: relative; overflow: hidden;
  animation: card-breathe 6s ease-in-out infinite;
}
.card:nth-child(2) { animation-delay: 2s; }
.card:nth-child(3) { animation-delay: 4s; }
@keyframes card-breathe { 0%,100% { border-color: rgba(255,255,255,0.05); box-shadow: 0 0 0 rgba(76,175,80,0); } 50% { border-color: rgba(76,175,80,0.14); box-shadow: 0 0 30px rgba(76,175,80,0.05); } }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--leaf), transparent); opacity: 0; transition: opacity 0.5s; }
.card:hover { background: rgba(255,255,255,0.045); border-color: rgba(76,175,80,0.25); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-icon { width: 44px; height: 44px; margin-bottom: 1.2rem; color: var(--leaf-light); }
.card-kicker { display: block; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.35rem; color: var(--leaf-light); margin-bottom: 0.6rem; }
.card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.75rem; color: var(--cream); line-height: 1.4; }
.card p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.65; font-weight: 300; }
.card ul { list-style: none; display: grid; gap: 0.7rem; }
.card li { font-size: 0.92rem; color: var(--text-dim); line-height: 1.5; font-weight: 300; padding-left: 1.2rem; position: relative; }
.card li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.card .card-link { display: inline-block; margin-top: 1.2rem; font-size: 0.88rem; color: var(--leaf-light); text-decoration: none; border-bottom: 1px solid rgba(129,199,132,0.4); }
.card .card-link:hover { border-color: var(--leaf-light); }

/* status colors */
.tone-live { --tone: var(--leaf); }
.tone-designed { --tone: var(--amber); }
.tone-open { --tone: #4fb3a5; }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--tone); margin-bottom: 1rem; font-weight: 500; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 12px var(--tone); }
.tone-live .status-pill::before { animation: label-pulse 2s ease-in-out infinite; }
.tone-designed .status-pill::before { background: transparent; border: 1.5px solid var(--tone); box-shadow: none; }
.tone-open .status-pill::before { background: transparent; border: 1.5px dashed var(--tone); box-shadow: none; }
.status-card li { color: var(--text); }
.status-card li::before { background: var(--tone); }

/* ── Ledger demo (redwood) ── */
.ledger-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
.toggle {
  display: inline-grid; grid-template-columns: 1fr 1fr; position: relative;
  padding: 4px; border-radius: 999px; background: rgba(0,0,0,0.35); border: 1px solid rgba(76,175,80,0.25);
  margin-bottom: 1.5rem;
}
.toggle button {
  position: relative; z-index: 1; font: inherit; font-size: 0.9rem; font-weight: 500;
  color: var(--text-dim); background: transparent; border: 0; border-radius: 999px;
  padding: 0.7rem 1.4rem; cursor: pointer; transition: color 0.4s; min-height: 44px;
}
.toggle button[aria-pressed="true"] { color: #0a0f0a; }
.toggle .thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--leaf); box-shadow: 0 0 24px rgba(76,175,80,0.35);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), background 0.6s;
}
.ledger[data-mode="cut"] .toggle .thumb { transform: translateX(100%); background: var(--sand); box-shadow: 0 0 24px rgba(212,197,169,0.3); }

.tree-stage { position: relative; aspect-ratio: 4 / 3.4; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, rgba(76,175,80,0.12), transparent 70%), rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.05); }
.tree-stage svg { width: 100%; height: 100%; }
#fog { animation: fog-drift 14s ease-in-out infinite; }
@keyframes fog-drift { 0%,100% { transform: translateX(0); opacity: 0.55; } 50% { transform: translateX(18px); opacity: 0.85; } }
.drip { animation: drip 3s ease-in infinite; }
.drip:nth-of-type(2) { animation-delay: 1s; }
.drip:nth-of-type(3) { animation-delay: 2s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translateY(150px); opacity: 0; } }
#crown { transform-origin: 200px 300px; transform-box: view-box; transition: transform 1.4s cubic-bezier(0.55,0,0.4,1), opacity 1.4s ease; }
.ledger[data-mode="cut"] #crown { transform: rotate(84deg) translate(8px, -6px); opacity: 0.0; }
#log { opacity: 0; transition: opacity 0.9s ease 0.9s; }
.ledger[data-mode="cut"] #log { opacity: 1; }
#life { transition: opacity 0.8s ease; }
.ledger[data-mode="cut"] #life { opacity: 0; }
#stump-top { opacity: 0; transition: opacity 0.5s ease 0.8s; }
.ledger[data-mode="cut"] #stump-top { opacity: 1; }

.meter { margin-bottom: 1.6rem; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.meter-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-dim); }
.meter-read { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--cream); line-height: 1; transition: color 0.6s; }
.ledger[data-mode="cut"] .meter-read { color: var(--sand); }
.bars { display: grid; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.8rem; align-items: center; font-size: 0.85rem; color: var(--text-dim); }
.bar-track { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--earth), var(--sand)); transition: width 1.2s cubic-bezier(0.16,1,0.3,1); }
.bar-row:nth-child(2) .bar-fill { transition-delay: 0.12s; }
.bar-row:nth-child(3) .bar-fill { transition-delay: 0.24s; }
.bar-row:nth-child(4) .bar-fill { transition-delay: 0.36s; }
.ledger[data-mode="cut"] .bar-row:nth-child(1) .bar-fill { width: 92%; }
.ledger[data-mode="cut"] .bar-row:nth-child(2) .bar-fill { width: 64%; }
.ledger[data-mode="cut"] .bar-row:nth-child(3) .bar-fill { width: 48%; }
.ledger[data-mode="cut"] .bar-row:nth-child(4) .bar-fill { width: 76%; }
.uncounted { margin-top: 1.6rem; }
.uncounted .meter-title { display: block; margin-bottom: 0.7rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-size: 0.8rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid rgba(76,175,80,0.35); color: var(--leaf-light); background: rgba(76,175,80,0.08); transition: all 0.6s ease; }
.ledger[data-mode="cut"] .chip { color: rgba(154,170,154,0.5); border-color: rgba(255,255,255,0.08); background: transparent; text-decoration: line-through; }
.caption { margin-top: 2.5rem; text-align: center; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--cream); }
.caption span { color: var(--leaf-light); }
.fine { font-size: 0.78rem; color: var(--text-dim); opacity: 0.85; font-weight: 300; margin-top: 0.9rem; }

/* ── Loop diagram ── */
.loop-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.loop { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: 0 auto; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop-ring { fill: none; stroke: rgba(76,175,80,0.22); stroke-width: 0.4; }
.loop-flow { fill: none; stroke: var(--leaf-light); stroke-width: 0.9; stroke-linecap: round; stroke-dasharray: 9 91; animation: flow 10s linear infinite; filter: drop-shadow(0 0 1.5px rgba(76,175,80,0.9)); }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.loop-arrow { fill: rgba(129,199,132,0.55); }
.loop-core { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(76,175,80,0.28), transparent 70%); animation: bg-breathe 10s ease-in-out infinite; display: grid; place-items: center; text-align: center; }
.loop-core span { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(0.9rem, 2.4vw, 1.15rem); color: var(--cream); line-height: 1.25; }
.node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--text-dim);
  padding: 0.3rem; border-radius: 10px; min-width: 44px; min-height: 44px;
}
.node-dot {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soil-dark); border: 1px solid rgba(76,175,80,0.35);
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; color: var(--leaf-light);
  transition: all 0.4s ease;
}
.node-label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.3px; white-space: nowrap; transition: color 0.4s; }
.node:hover .node-dot, .node[aria-pressed="true"] .node-dot { background: var(--leaf); color: #0a0f0a; border-color: var(--leaf); box-shadow: 0 0 0 6px rgba(76,175,80,0.12), 0 0 30px rgba(76,175,80,0.5); }
.node:hover .node-label, .node[aria-pressed="true"] .node-label { color: var(--cream); }
.step-card { min-height: 230px; }
.step-card .step-count { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--leaf); margin-bottom: 0.8rem; }
.step-card h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--cream); margin-bottom: 0.9rem; }
.step-card p { font-size: 1.05rem; line-height: 1.7; color: var(--text); font-weight: 300; }
.step-card .fade { animation: fadeUp 0.5s ease both; }
.step-progress { display: flex; gap: 0.4rem; margin-top: 1.5rem; }
.step-progress i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); transition: background 0.4s; }
.step-progress i.on { background: var(--leaf); }
.loop-hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 1rem; }

/* ── Parcel demo ── */
.parcel-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.illus-tag { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--amber); border: 1px dashed rgba(201,162,90,0.55); border-radius: 999px; padding: 0.3rem 0.8rem; margin-bottom: 1.2rem; }
.parcel-stage { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, rgba(120,170,200,0.10), rgba(0,0,0,0.1) 45%); }
.parcel-stage svg { width: 100%; height: auto; }
.parcel-stage svg * { transition: all 0.5s ease; }
.slider-block { margin-top: 1.4rem; }
.slider-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-dim); margin-top: 0.5rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--earth) 0%, rgba(255,255,255,0.12) 50%, var(--leaf) 100%); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--earth) 0%, rgba(255,255,255,0.12) 50%, var(--leaf) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--cream); border: 3px solid var(--leaf); box-shadow: 0 0 20px rgba(76,175,80,0.5); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--cream); border: 3px solid var(--leaf); box-shadow: 0 0 20px rgba(76,175,80,0.5); }
input[type="range"]:focus-visible { outline: 2px solid var(--leaf-light); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.preset { font: inherit; font-size: 0.82rem; color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.55rem 1rem; cursor: pointer; min-height: 40px; transition: all 0.3s; }
.preset:hover { border-color: var(--leaf); color: var(--leaf-light); }
.readout { display: grid; gap: 1.2rem; }
.readout-status { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.2; color: var(--cream); min-height: 2.4em; }
.readout-status.up { color: var(--leaf-light); }
.readout-status.down { color: var(--sand); }
.flow-row { display: grid; grid-template-columns: 5rem 1fr; gap: 0.9rem; align-items: center; }
.flow-row b { font-weight: 500; font-size: 0.95rem; }
.flow-row .bar-track { height: 16px; }
.fill-earned { height: 100%; width: 0; background: linear-gradient(90deg, #2e7d32, var(--leaf-light)); border-radius: 999px; transition: width 0.6s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 0 14px rgba(76,175,80,0.5); }
.fill-owed { height: 100%; width: 0; background: linear-gradient(90deg, var(--earth), var(--amber)); border-radius: 999px; transition: width 0.6s cubic-bezier(0.16,1,0.3,1); }
.earned-label { color: var(--leaf-light); }
.owed-label { color: var(--amber); }
.readout-note { font-size: 0.92rem; color: var(--text-dim); line-height: 1.65; font-weight: 300; }

/* ── Problems list ── */
.problems { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; counter-reset: p; }
.problems li { counter-increment: p; padding: 1.3rem 1.4rem 1.3rem 3.6rem; position: relative; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); transition: border-color 0.4s, background 0.4s; }
.problems li:hover { border-color: rgba(201,162,90,0.3); background: rgba(255,255,255,0.035); }
.problems li::before { content: counter(p); position: absolute; left: 1.2rem; top: 1.2rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-family: 'Playfair Display', Georgia, serif; font-size: 0.9rem; color: var(--amber); border: 1px solid rgba(201,162,90,0.4); }
.problems strong { display: block; color: var(--cream); font-weight: 500; margin-bottom: 0.3rem; }
.problems span { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; font-weight: 300; }

/* ── CTA ── */
.cta-section { text-align: center; padding: 9rem 2rem; }
.cta-section .section-desc { margin: 0 auto 2.5rem; }
.pilots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 860px; margin: 0 auto 3rem; text-align: left; }
.who { color: var(--text-dim); font-weight: 300; max-width: 640px; margin: 0 auto 2.2rem; line-height: 1.7; }
.who strong { color: var(--cream); font-weight: 500; }
.motto { margin-top: 4rem; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--leaf-light); }

/* ── Footer ── */
footer { padding: 3rem 1.5rem 3.5rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.2rem; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-brand span { font-weight: 500; font-size: 0.9rem; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none; margin-bottom: 1.3rem; }
.footer-links a, .footer-links .soon { color: var(--text-dim); font-size: 0.82rem; font-weight: 300; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--leaf-light); }
.footer-links .soon { opacity: 0.65; cursor: default; }
.footer-links .soon em { font-style: normal; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; margin-left: 0.35rem; color: var(--amber); }
footer p { font-size: 0.78rem; color: var(--text-dim); font-weight: 300; line-height: 1.7; }
footer p a { color: var(--leaf); text-decoration: none; }
footer p a:hover { text-decoration: underline; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.2rem 2rem 1.5rem;
    background: rgba(10,15,10,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(76,175,80,0.1);
  }
  nav.menu-open .nav-links { display: flex; }
  .nav-links a { font-size: 0.95rem; }
  .ledger-wrap, .loop-wrap, .parcel-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav, nav.scrolled { padding-left: 1.2rem; padding-right: 1.2rem; }
  .grid-3, .pilots, .problems { grid-template-columns: 1fr; }
  section { padding: 5rem 1.25rem; }
  .cta-section { padding: 6rem 1.25rem; }
  .panel { padding: 1.4rem; }
  .card { padding: 1.6rem; }
  .bar-row { grid-template-columns: 6.8rem 1fr; font-size: 0.8rem; }
  .node-dot { width: 42px; height: 42px; font-size: 1rem; }
  .node-label { font-size: 0.72rem; }
  .step-card { min-height: 0; }
  .hero h1 em { white-space: normal; }
  .hero h1 em::after { display: none; }
  .hero-eyebrow { letter-spacing: 1.6px; font-size: 0.68rem; white-space: nowrap; }
}
@media (max-width: 380px) {
  .toggle button { padding: 0.7rem 1rem; }
  .node-label { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .loop-flow { stroke-dasharray: none; opacity: 0.35; }
}
