/* ============================================================
   FAIR DATA — design system
   The paper ledger to NuvaLabs' dark lab. Warm stock, ink
   serif, deep garden green, clay for the stamp ink. Same craft
   family, opposite climate.
   ============================================================ */

:root {
  --paper: #f4efe6;
  --paper-2: #ece5d7;
  --paper-3: #e3dac8;
  --ink: #1d1a15;
  --ink-2: #57503f;
  --ink-3: #8a8069;
  --line: rgba(29, 26, 21, 0.14);
  --line-2: rgba(29, 26, 21, 0.24);
  --green: #2e6b4f;
  --green-2: #3f8a66;
  --clay: #bc5a38;
  --serif: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--green); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* paper grain */
.fgrain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.sec { padding: clamp(80px, 11vh, 140px) 0; position: relative; }
.sec-line { border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--green); }
.h-hero {
  font-size: clamp(46px, 7.4vw, 104px); font-weight: 560; line-height: 1.0;
  letter-spacing: -0.03em; font-variation-settings: "opsz" 144;
}
.h-xl { font-size: clamp(32px, 4.6vw, 62px); font-weight: 560; line-height: 1.05; letter-spacing: -0.025em; }
.h-lg { font-size: clamp(24px, 3vw, 40px); font-weight: 560; line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); line-height: 1.65; }
.small { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.mono { font-family: var(--mono); }
.it { font-style: italic; }
.green { color: var(--green); }
.u-green { box-shadow: inset 0 -0.14em 0 rgba(46, 107, 79, 0.35); }

/* ---------- buttons ---------- */
.fbtn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 999px;
  border: 1px solid var(--ink); color: var(--ink);
  position: relative; overflow: hidden;
  transition: color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.fbtn:hover { background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(29, 26, 21, 0.25); }
.fbtn.solid { background: var(--ink); color: var(--paper); }
.fbtn.solid:hover { background: var(--green); border-color: var(--green); }
.fbtn .arr { transition: transform 0.3s var(--ease); }
.fbtn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.fnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.fnav.scrolled {
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.fnav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  height: 68px; display: flex; align-items: center; gap: 30px;
}
.flogo { display: inline-flex; align-items: center; gap: 11px; font-weight: 620; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.flogo em { font-style: italic; font-weight: 480; color: var(--green); }
.fnav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.fnav-links a.nl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); transition: color 0.25s;
}
.fnav-links a.nl:hover { color: var(--ink); }
.fbtn.sm { padding: 10px 19px; font-size: 10.5px; }
@media (max-width: 760px) { .fnav-links a.nl { display: none; } }

/* ---------- hero ---------- */
.fhero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
#garden {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 52%; height: 100%; display: block; cursor: pointer;
}
/* the plant is generated SVG; growth = per-branch dash transitions,
   staggered by birth order via --gd. No canvas, no rAF. */
#garden path.br { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.15s var(--ease); transition-delay: var(--gd, 0s); }
#garden.grown path.br { stroke-dashoffset: 0; }
#garden .lf { opacity: 0; transform: scale(0.35); transform-origin: center; transform-box: fill-box; transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: var(--gd, 0s); }
#garden.grown .lf { opacity: 1; transform: scale(1); }
.fhero-in {
  position: relative; z-index: 2; width: 100%;
  padding: 120px 0 clamp(30px, 5vh, 56px);
  display: flex; flex-direction: column; gap: 24px;
}
.fhero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.fhero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.fhero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3);
}
.fhero-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.garden-hint {
  position: absolute; z-index: 2; right: clamp(20px, 4vw, 48px); bottom: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- ledger rule sections ---------- */
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 6vh, 68px); }

/* problem rows */
.frow {
  display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: clamp(18px, 3vw, 48px);
  align-items: baseline; padding: clamp(24px, 4vh, 40px) 6px;
  border-top: 1px solid var(--line);
}
.frow:last-child { border-bottom: 1px solid var(--line); }
.frow .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.2em; }
.frow h3 { font-size: clamp(21px, 2.6vw, 32px); font-weight: 560; letter-spacing: -0.02em; line-height: 1.1; }
.frow p { color: var(--ink-2); font-size: 15.5px; max-width: 520px; }
.frow p b { color: var(--ink); font-weight: 600; }

/* capability cards */
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cap {
  border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  background: rgba(255, 255, 255, 0.35);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.cap:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 16px 40px rgba(29, 26, 21, 0.1); }
.cap .tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green);
}
.cap h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.cap p { font-size: 14px; color: var(--ink-2); flex: 1; }

/* illustrative specimen card */
.specimen {
  border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
}
.specimen .sp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.specimen .sp-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.specimen .sp-ph {
  font-size: 9px; letter-spacing: 0.18em; color: var(--clay);
  border: 1px solid var(--clay); border-radius: 999px; padding: 4px 10px;
  text-transform: uppercase;
}
.specimen .sp-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.specimen .sp-row b { color: var(--ink); font-weight: 500; }
.specimen .sp-row .ok { color: var(--green); }

/* ---------- the fair chain ---------- */
.chain { position: relative; }
.chain-svg { position: absolute; left: 27px; top: 0; height: 100%; width: 2px; overflow: visible; }
.chain-svg path { stroke: var(--green); stroke-width: 2; fill: none; }
.chain-steps { display: flex; flex-direction: column; gap: clamp(34px, 6vh, 60px); position: relative; }
.chain-step { display: grid; grid-template-columns: 56px 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
.chain-dot {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--paper);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  transition: border-color 0.5s, color 0.5s, box-shadow 0.5s, background 0.5s;
  position: relative; z-index: 2;
}
.chain-step.lit .chain-dot {
  border-color: var(--green); color: var(--paper); background: var(--green);
  box-shadow: 0 0 0 8px rgba(46, 107, 79, 0.12);
}
.chain-body { max-width: 620px; padding-top: 4px; }
.chain-body h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 560; letter-spacing: -0.02em; margin-bottom: 8px; transition: color 0.5s; }
.chain-step.lit .chain-body h3 { color: var(--green); }
.chain-body p { font-size: 15px; color: var(--ink-2); }

/* ---------- network (honest traction) ---------- */
.net-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.net {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  background: rgba(255, 255, 255, 0.35);
  display: flex; flex-direction: column; gap: 12px;
}
.net .qual {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--clay); align-self: flex-start;
  border-bottom: 1px solid var(--clay); padding-bottom: 3px;
}
.net h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.net p { font-size: 14px; color: var(--ink-2); }

/* straight talk strip */
.talk {
  border: 1.5px solid var(--ink); border-radius: 20px;
  padding: clamp(30px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--ink); color: var(--paper);
}
.talk .eyebrow { color: var(--green-2); }
.talk .eyebrow::before { background: var(--green-2); }
.talk h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 560; letter-spacing: -0.02em; line-height: 1.08; }
.talk-list { display: flex; flex-direction: column; gap: 0; }
.talk-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(244, 239, 230, 0.16); font-size: 15px; color: rgba(244, 239, 230, 0.75); align-items: baseline; }
.talk-item b { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-2); flex: none; width: 92px; }
.talk-item.no b { color: var(--clay); }

/* buyers */
.buyers { display: flex; flex-wrap: wrap; gap: 10px; }
.buyer {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px;
  color: var(--ink-2); transition: all 0.3s;
}
.buyer:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* pilot steps */
.pilot { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.35); }
.pilot-cell { padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.pilot-cell + .pilot-cell { border-left: 1px solid var(--line); }
.pilot-cell .stage { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); }
.pilot-cell h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pilot-cell p { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .pilot { grid-template-columns: 1fr 1fr; } .pilot-cell + .pilot-cell { border-left: 0; border-top: 1px solid var(--line); } .pilot-cell:nth-child(odd) { border-right: 1px solid var(--line); } .pilot-cell:nth-child(-n+2) { border-top: 0; } .pilot-cell:nth-child(2) { border-left: 1px solid var(--line); border-top: 0; } }

/* ---------- CTA ---------- */
.fcta { text-align: center; }
.fcta-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mail-big {
  font-family: var(--mono); font-size: clamp(15px, 2.2vw, 22px); letter-spacing: 0.05em;
  color: var(--ink); border-bottom: 1.5px solid var(--green); padding-bottom: 4px;
  transition: color 0.3s, letter-spacing 0.4s var(--ease);
}
.mail-big:hover { color: var(--green); letter-spacing: 0.1em; }

/* ---------- the evidence pack ---------- */
.pack { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.pk {
  border: 1px dashed var(--line-2); border-radius: 14px; padding: 24px;
  background: rgba(255, 255, 255, 0.35);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.pk:hover { transform: translateY(-4px); border-color: var(--green); }
.pk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pk-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--green); font-weight: 600; }
.pk-tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); }
.pk h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.pk p { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.pack-note {
  margin-top: 22px; max-width: 720px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  color: var(--ink-3); letter-spacing: 0.02em;
}
.pack-note b { color: var(--clay); font-weight: 500; }

/* ---------- straight answers (buyer Q&A) ---------- */
.qa { display: flex; flex-direction: column; }
.qa-row {
  display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: clamp(18px, 3vw, 48px);
  padding: clamp(22px, 3.5vh, 34px) 6px;
  border-top: 1px solid var(--line); align-items: baseline;
}
.qa-row:last-child { border-bottom: 1px solid var(--line); }
.qa-row .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.2em; }
.qa-row h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 560; letter-spacing: -0.02em; line-height: 1.2; }
.qa-row p { color: var(--ink-2); font-size: 15px; max-width: 560px; }
.qa-row p b { color: var(--ink); font-weight: 600; }

/* ---------- pilot terms ---------- */
.pilot-terms { display: flex; flex-wrap: wrap; gap: 10px; }
.pilot-note { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; line-height: 1.8; max-width: 760px; }
.pilot-note b { color: var(--green); font-weight: 500; }

/* ---------- footer ---------- */
.fftr { border-top: 1px solid var(--line); background: var(--paper-2); position: relative; overflow: hidden; }
.fftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: clamp(48px, 7vh, 76px) 0 44px; }
.fftr-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fftr-h { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.fftr-l { font-size: 14.5px; color: var(--ink-2); transition: color 0.25s, transform 0.25s var(--ease); display: inline-block; }
.fftr-l:hover { color: var(--ink); transform: translateX(4px); }
.fftr-brand p { font-size: 14px; color: var(--ink-2); max-width: 320px; }
.fftr-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 9px; }
.fftr-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.fftr-word {
  font-size: clamp(56px, 12vw, 180px); font-weight: 600; letter-spacing: -0.04em;
  line-height: 0.82; text-align: center; user-select: none; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgba(29, 26, 21, 0.12);
  margin: 20px 0 -10px; white-space: nowrap; font-style: italic;
}
.fftr-bottom {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase;
}
@media (max-width: 760px) { .fftr-grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* stamp pop for section marks */
.stamp {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--clay);
  border: 1.5px solid var(--clay); border-radius: 8px; padding: 8px 14px 8px 18px;
  transform: rotate(-4deg);
}
.rv.in .stamp, .stamp.in { animation: stamp-in 0.5s var(--ease) 0.25s both; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.8) rotate(-4deg); }
  60% { opacity: 1; transform: scale(0.92) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-4deg); }
}

@media (max-width: 900px) {
  #garden { width: 100%; opacity: 0.35; }
  .frow, .qa-row { grid-template-columns: 48px 1fr; }
  .frow p, .qa-row p { grid-column: 2; }
  .talk { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  #garden path.br { stroke-dashoffset: 0; }
  #garden .lf { opacity: 1; transform: none; }
}
