:root {
  --paper: #f7f2e7;
  --paper-deep: #eee5d3;
  --ink: #17261f;
  --ink-soft: #43534a;
  --moss: #2f6c51;
  --moss-deep: #204b3a;
  --teal: #2f7a7b;
  --amber: #df8d38;
  --amber-soft: #f5d8af;
  --sage: #b9cbbd;
  --line: rgba(23, 38, 31, 0.18);
  --line-strong: rgba(23, 38, 31, 0.34);
  --white: rgba(255, 255, 255, 0.7);
  --shadow: 0 24px 70px rgba(49, 59, 45, 0.11);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(223, 141, 56, 0.12), transparent 25rem),
    radial-gradient(circle at 92% 18%, rgba(47, 122, 123, 0.1), transparent 28rem),
    linear-gradient(180deg, #fbf8f0 0%, var(--paper) 52%, #f2ebdc 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(47, 108, 81, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 108, 81, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 82%);
}

a {
  color: var(--moss-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid rgba(223, 141, 56, 0.55);
  outline-offset: 4px;
}

.mono,
.eyebrow,
.node-label,
.section-index,
.status-chip,
footer,
.topnav {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.075em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), 1480px);
  min-height: 64px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.brand-mark::before {
  inset: 3px auto auto 2px;
  width: 10px;
  height: 10px;
  background: var(--moss);
  box-shadow: 14px 4px 0 var(--amber), 8px 16px 0 var(--teal);
}

.brand-mark::after {
  top: 8px;
  left: 8px;
  width: 14px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-width: 1px 0 0 1px;
  border-radius: 0;
  transform: rotate(25deg);
}

.topnav,
.nav-links,
.lang-switch {
  display: flex;
  align-items: center;
}

.topnav {
  gap: 18px;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links {
  gap: 18px;
}

.lang-switch {
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.lang-switch span[aria-current="page"] {
  color: var(--moss);
  font-weight: 700;
}

main {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(78px, 10vw, 140px) 0 84px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--moss);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.25rem, 10vw, 8.7rem);
  line-height: 0.86;
}

h1 em {
  color: var(--moss);
  font-weight: 400;
}

.hero-lede {
  max-width: 660px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  text-wrap: balance;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.status-chip {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.status-chip.live::before,
.status-chip.open::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
}

.status-chip.live::before {
  background: var(--moss);
}

.status-chip.open::before {
  background: var(--amber);
}

.graph-stage {
  position: relative;
  min-width: 0;
  min-height: 570px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.graph-stage::before {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(47, 108, 81, 0.16);
  border-radius: 24px;
  content: "";
}

.graph-caption {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.graph {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  grid-template-areas:
    "source edge-a lotse"
    ". . edge-b"
    "nutrient edge-c gardener"
    ". . routes";
  gap: 26px 8px;
  align-items: center;
}

.graph-node {
  position: relative;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(46, 63, 51, 0.08);
}

.graph-node strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.graph-node small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.node-label {
  color: var(--moss);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.node-source { grid-area: source; }
.node-lotse { grid-area: lotse; border-color: rgba(47, 122, 123, 0.55); }
.node-nutrient { grid-area: nutrient; border-color: rgba(223, 141, 56, 0.65); background: #fff8ec; }
.node-gardener { grid-area: gardener; border-color: rgba(47, 108, 81, 0.58); }

.edge {
  color: var(--moss);
  font-size: 1.6rem;
  text-align: center;
}

.edge-a { grid-area: edge-a; }
.edge-b { grid-area: edge-b; transform: rotate(135deg); }
.edge-c { grid-area: edge-c; }

.route-stack {
  grid-area: routes;
  display: grid;
  gap: 7px;
}

.route {
  padding: 8px 11px;
  border-left: 3px solid var(--sage);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.route:last-child {
  border-color: var(--amber);
}

.feedback-edge {
  position: absolute;
  right: -15px;
  bottom: 78px;
  left: 22%;
  height: 62px;
  border: 2px dashed rgba(223, 141, 56, 0.7);
  border-top: 0;
  border-radius: 0 0 28px 28px;
}

.feedback-edge span {
  position: absolute;
  right: 12px;
  bottom: -28px;
  padding: 3px 7px;
  background: var(--paper);
  color: #8f551d;
  font: 0.62rem/1.3 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 120px);
  padding: clamp(82px, 11vw, 142px) 0;
  border-top: 1px solid var(--line);
}

.section-index {
  color: var(--moss);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.section h2 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 6.2vw, 6.2rem);
  line-height: 0.96;
}

.section-intro {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.45;
}

.principles,
.comparison,
.case-grid {
  display: grid;
  gap: 16px;
  margin-top: 46px;
}

.principles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle,
.case-card,
.comparison > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.principle h3,
.case-card h3,
.comparison h3 {
  font-size: 1.5rem;
}

.principle p,
.case-card p,
.comparison p,
.body-copy p,
.body-copy li {
  color: var(--ink-soft);
}

.principle p,
.case-card p,
.comparison p {
  margin: 10px 0 0;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card .step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--moss);
  font: 0.68rem/1 "SFMono-Regular", Consolas, monospace;
}

.comparison {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison > div:nth-child(2) {
  border-color: rgba(47, 108, 81, 0.48);
  background: rgba(223, 238, 226, 0.62);
}

.open-loop {
  position: relative;
  margin-top: 42px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(223, 141, 56, 0.55);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.94), rgba(244, 228, 199, 0.72));
}

.open-loop::before {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 34px;
  height: 34px;
  border: 2px dashed var(--amber);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
}

.open-loop h3 {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.open-loop p {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #654a31;
}

.body-copy {
  max-width: 760px;
}

.closing-copy {
  margin-top: 34px;
}

.body-copy p {
  margin: 0 0 20px;
  font-size: 1.08rem;
}

.body-copy ul {
  padding-left: 1.2rem;
}

.closing {
  padding-bottom: 130px;
}

.closing-claim {
  max-width: 19ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.closing-claim em {
  color: var(--moss);
  font-weight: 400;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), 1480px);
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.legal-main {
  width: min(calc(100% - 40px), 940px);
  min-height: calc(100vh - 150px);
  padding: clamp(76px, 10vw, 132px) 0;
}

.legal-main h1,
.not-found h1 {
  max-width: none;
  font-size: clamp(3.8rem, 10vw, 8rem);
}

.legal-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.legal-sections {
  margin-top: 62px;
  border-top: 1px solid var(--line);
}

.legal-sections section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.legal-sections h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.legal-sections p,
.legal-sections li,
.legal-sections dd {
  color: var(--ink-soft);
}

.legal-sections p {
  max-width: 68ch;
}

dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 20px;
}

dt {
  color: var(--moss);
  font: 0.68rem/1.5 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.not-found {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 70px 0;
}

.not-found p:not(.eyebrow) {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.not-found a {
  justify-self: start;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .graph-stage {
    min-height: auto;
  }

  .case-grid,
  .comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: calc(100% - 22px);
  }

  .nav-links {
    display: none;
  }

  main,
  footer {
    width: min(calc(100% - 28px), 1180px);
  }

  h1 {
    font-size: clamp(3.35rem, 17.2vw, 6rem);
  }

  .graph-stage {
    width: 100%;
    padding: 20px;
    border-radius: 24px;
  }

  .graph-caption {
    flex-wrap: wrap;
  }

  .graph {
    grid-template-columns: 1fr;
    grid-template-areas:
      "source"
      "edge-a"
      "lotse"
      "edge-b"
      "nutrient"
      "edge-c"
      "gardener"
      "routes";
  }

  .edge-b {
    transform: none;
  }

  .edge {
    transform: rotate(90deg);
  }

  .feedback-edge {
    display: none;
  }

  .section {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .legal-sections section,
  dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
