:root {
  --forest: #0f5a3b;
  --forest-deep: #093723;
  --leaf: #6cb83c;
  --lime: #c9ec6b;
  --mist: #eef5ec;
  --paper: #ffffff;
  --ink: #0b2c1d;
  --muted: #4b6357;
  --amber: #f3b23e;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 0.6em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--forest);
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--mist); color: var(--forest); border-color: var(--forest); }
.btn--small { padding: 0.55em 1.1em; font-size: 0.95rem; }
.btn--light { background: var(--lime); border-color: var(--lime); color: var(--forest-deep); font-size: 1.15rem; }
.btn--light:hover { background: #fff; border-color: #fff; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 90, 59, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.nav__logo { position: relative; display: block; }
.nav__logo img { height: 34px; width: auto; }

/* The lid closes gradually as the page is scrolled: --lid-open goes from 65deg at the top to 0 at the bottom.
   Hinge and offsets are measured from the logo artwork; 13.08deg lays the lid flat on the rim. */
.nav__lid {
  position: absolute;
  inset: 0;
  transform-origin: 54.88% 33.72%;
  transform: translate(1.54%, 0.68%) rotate(calc(13.08deg - var(--lid-open, 65deg)));
  transition: transform 0.2s ease-out;
}
.nav nav { margin-left: auto; }
.nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a:hover { color: var(--forest); }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 var(--section);
  background:
    radial-gradient(60rem 40rem at 110% -10%, rgba(108, 184, 60, 0.16), transparent 60%),
    var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6rem);
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 0.35em;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.backing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 90, 59, 0.14);
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.backing svg { flex: none; width: 34px; height: 34px; color: var(--leaf); }
.backing strong { color: var(--forest); font-weight: 600; }

/* Stage: the camera demo */
.stage { margin: 0; }
.stage__view {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #14704a 0%, var(--forest-deep) 70%);
  box-shadow: 0 30px 60px -30px rgba(9, 55, 35, 0.6);
}
.stage__view::after {
  /* faint scanlines so it reads as a camera feed */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.stage__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(201, 236, 107, 0.55);
}
.stage__corner--tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.stage__corner--tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.stage__corner--bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.stage__corner--br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.stage__rec {
  position: absolute;
  top: 22px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}
.stage__rec span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5a4e;
  animation: blink 1.4s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.stage__item {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 34%;
  translate: -50% -50%;
  transform: translateY(-160%) rotate(-12deg);
  opacity: 0;
}
.stage__item svg { width: 100%; height: auto; overflow: visible; }

.stage__box {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 44%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 3px solid var(--lime);
  border-radius: 10px;
  opacity: 0;
  scale: 1.25;
  transition: opacity 0.2s, scale 0.25s cubic-bezier(.2,.9,.3,1.2);
}
.stage__box.is-on { opacity: 1; scale: 1; }
.stage__box span {
  position: absolute;
  left: -3px;
  bottom: 100%;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--forest-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stage__box.is-unsure { border-color: var(--amber); border-style: dashed; }
.stage__box.is-unsure span { background: var(--amber); }

.stage__note {
  position: absolute;
  right: 22px;
  top: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(243, 178, 62, 0.18);
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.stage__note.is-on { opacity: 1; }

.bins {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.bins li {
  padding: 10px 8px 9px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.25s, color 0.25s;
}
.bins b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.bins li.is-hit { background: var(--forest); color: #fff; }
.bins li.is-hit b { color: var(--lime); }

/* Problem */
.problem {
  background: var(--forest);
  color: #fff;
  padding: var(--section) 0;
}
.problem h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 600;
  max-width: 24ch;
  margin-bottom: 1.6em;
}
.problem__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
}
.problem__facts p { font-size: 1.15rem; color: rgba(255,255,255,0.82); }
.problem__facts strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
  margin-bottom: 0.2em;
  white-space: nowrap;
}
.problem__source {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

/* How */
.how { padding: var(--section) 0; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 76px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
}
.steps li:not(:last-child)::after {
  /* connector line to the next step */
  content: "";
  position: absolute;
  top: 26px;
  left: 64px;
  right: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--leaf), rgba(108,184,60,0.15));
}
.steps h3 { font-size: 1.4rem; font-weight: 800; color: var(--forest); margin-bottom: 0.4em; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Loop */
.loop {
  background: var(--mist);
  padding: var(--section) 0;
}
.loop__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.loop__text p { font-size: 1.15rem; color: var(--muted); }
.loop__diagram {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}
.loop__spin { transform-origin: 200px 200px; animation: spin 80s linear infinite; }
.loop__dots text { animation: spin 80s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { rotate: 360deg; } }
.loop__dots circle { fill: var(--forest); stroke: var(--mist); stroke-width: 5; }
.loop__dots text { fill: #fff; }
.loop__center { font-family: var(--display); font-weight: 600; font-size: 21px; fill: var(--forest); }
.loop__list {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 0.6em;
  font-weight: 500;
}
.loop__list li::marker { font-family: var(--display); font-weight: 800; color: var(--leaf); }

/* Data */
.data { padding: var(--section) 0; }
.data__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.data p { color: var(--muted); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7em; }
.checks li { position: relative; padding-left: 2em; font-weight: 500; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.panel {
  background: var(--forest-deep);
  color: #fff;
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 40px);
}
.panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.panel__badge {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.8rem;
}
.panel__big { margin: 1.4rem 0 1.6rem; font-size: 1.05rem; color: rgba(255,255,255,0.8); }
.panel__big b {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lime);
  letter-spacing: -0.03em;
}
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li {
  display: grid;
  grid-template-columns: 8.5em 1fr 3em;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}
.bars i {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--leaf) var(--w), rgba(255,255,255,0.08) var(--w));
}
.bars em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.75); }
.bars .is-rest i { background: linear-gradient(90deg, rgba(255,255,255,0.4) var(--w), rgba(255,255,255,0.08) var(--w)); }

/* Who */
.who { padding: 0 0 var(--section); }
.who__list {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.who__list li {
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: 2px solid var(--forest);
  color: var(--forest);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}
.who__note { color: var(--muted); }

/* Status */
.status {
  background: var(--mist);
  padding: var(--section) 0;
}
.status__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
}
.status p { color: var(--muted); font-size: 1.1rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.8rem 2.4rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--forest);
  background: var(--mist);
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.3em + 18px);
  bottom: 2px;
  width: 2px;
  background: rgba(15, 90, 59, 0.25);
}
.timeline li.is-done::before { background: var(--leaf); border-color: var(--leaf); }
.timeline time { font-family: var(--display); font-weight: 800; color: var(--forest); font-size: 1.15rem; }
.timeline p { margin: 0.1em 0 0; color: var(--ink); font-size: 1.05rem; }

/* Contact */
.contact {
  background:
    radial-gradient(50rem 30rem at 0% 100%, rgba(108,184,60,0.35), transparent 60%),
    var(--forest);
  color: #fff;
  padding: var(--section) 0;
}
.contact h2 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 0.5em;
}
.contact p { font-size: 1.2rem; color: rgba(255,255,255,0.82); max-width: 44ch; margin-bottom: 2rem; }

/* Footer */
.footer { padding: 48px 0; font-size: 0.92rem; color: var(--muted); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
}
.footer__logo { height: 30px; width: auto; }
.footer address { font-style: normal; }
.footer p { margin: 0 0 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .loop__grid, .data__grid, .status__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps li::after { display: none; }
  .nav__links { display: none; }
  .nav nav { margin-left: auto; }
}
@media (max-width: 600px) {
  .problem__facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .steps li { padding: 4px 0 0 72px; }
  .loop__diagram { grid-template-columns: 1fr; }
  .loop__ring { max-width: 300px; margin: 0 auto; }
  .bins { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .bins li { font-size: 0.68rem; padding: 8px 2px; border-radius: 10px; }
  .bins b { font-size: 1.2rem; }
  .nav__logo img { height: 28px; }
  .bars li { grid-template-columns: 7em 1fr 2.6em; }
  .footer p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop__spin, .loop__dots text, .stage__rec span { animation: none; }
  .nav__lid { transition: none; }
}
