/* Bamboo Stack. Palette: paper, ink, live leaf green (the one accent), dried culm gold, black tie (BRAND 3.1; matches the logo, card and avatars). */
:root {
  color-scheme: light dark;
  --paper: #F3F4EF;
  --paper-2: #E8EBE3;
  --ink: #16201B;
  --ink-2: #4A564F;
  --accent: #3F7D4E;
  --accent-strong: #2B5A38;
  --on-accent: #FFFFFF;
  --sun: #3F7D4E;
  --culm: #C9A961;
  --culm-deep: #9C7E3E;
  --leaf: #3F7D4E;
  --line: #D9DCD3;
  --night: #0B0E0C;
  --night-ink: #E7EAE3;
  --night-ink-2: #A9B3AC;
  --contact: #2B5A38;
  --contact-ink: #FFFFFF;
  --field: #FFFFFF;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "IBM Plex Sans Condensed", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121714;
    --paper-2: #1B221E;
    --ink: #E7EAE3;
    --ink-2: #A9B3AC;
    --accent: #7CC489;
    --accent-strong: #9AD6A4;
    --on-accent: #0B0E0C;
    --sun: #2B5A38;
    --culm: #D9B86A;
    --culm-deep: #B8964A;
    --leaf: #7CC489;
    --line: #2A332D;
    --night: #0B0E0C;
    --night-ink: #E7EAE3;
    --night-ink-2: #A9B3AC;
    --contact: #2B5A38;
    --contact-ink: #E7EAE3;
    --field: #1B221E;
  }
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 0.25em; }
p { margin: 0 0 1em; }

a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
  font: 600 1rem/1.2 var(--sans);
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 9px 18px; font-size: 0.95rem; }

/* ---- header ---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.lockup { width: auto; height: 32px; display: block; }
.lockup .mark { fill: var(--leaf); }
.lockup .wm { fill: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav a:not(.btn):hover { color: var(--accent-strong); }

/* ---- hero ------------------------------------------------------------------------------ */
.hero { padding-top: 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 0.35em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art svg { width: 100%; height: auto; display: block; }

.scaffold .sun { fill: var(--sun); }
.scaffold .ground { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.scaffold .pole { stroke: var(--culm); stroke-width: 11; stroke-linecap: round; }
.scaffold .ledger { stroke: var(--culm-deep); stroke-width: 7; stroke-linecap: round; }
.scaffold .brace { stroke: var(--culm-deep); stroke-width: 5; stroke-linecap: round; }
.scaffold .node { stroke: var(--culm-deep); stroke-width: 3; stroke-linecap: round; }
.scaffold .tie { fill: var(--ink); }
.scaffold .leaf { fill: var(--leaf); }

.ticker { margin-top: 56px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; }
.ticker-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.ticker-track li {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 16px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ticker-track li::after {
  content: "";
  width: 9px;
  height: 9px;
  margin: 0 28px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---- sections -------------------------------------------------------------------------- */
section { padding: 110px 0; }
.hero { padding-bottom: 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p:not(.eyebrow) { font-size: 1.15rem; color: var(--ink-2); }

.statement { padding: 120px 0 40px; }
.statement .big {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin: 0;
}
.statement .hl { color: var(--accent); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 36px 32px 20px;
  border-top: 8px solid var(--accent-strong);
  transition: transform 0.3s;
}
.pillar:nth-child(2) { border-top-color: var(--culm); }
.pillar:nth-child(3) { border-top-color: var(--leaf); }
.pillar:hover { transform: translateY(-4px); }
.pillar header { margin-bottom: 20px; }
.pillar-tag { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.pillar h3 { font-size: 1.9rem; margin: 0; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.items p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.icon { width: 32px; height: 32px; color: var(--ink); }
.icon .ac { stroke: var(--accent); }

.approach { background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps li { padding: 40px 28px 0 0; position: relative; border-top: 10px solid var(--culm); }
.steps li::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--ink);
  border-radius: 4px;
  transform: rotate(45deg);
}
.steps li:first-child { border-top-left-radius: 6px; }
.steps li:last-child { border-top-right-radius: 6px; }
.steps h3 { font-size: 1.75rem; }
.steps p { color: var(--ink-2); margin: 0; }

.principles { background: var(--night); color: var(--night-ink); }
.principles .eyebrow { color: var(--culm); }
.principles h2 { color: var(--night-ink); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--night-ink-2); border: 1px solid var(--night-ink-2); border-radius: var(--radius); overflow: hidden; }
.tiles li { background: var(--night); padding: 40px; }
.tiles h3 { color: var(--culm); font-size: 1.6rem; }
.tiles p { color: var(--night-ink-2); margin: 0; font-size: 1.05rem; }

.proof-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof-grid li { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color 0.25s, transform 0.25s; }
.proof-grid li:hover { border-color: var(--accent); transform: translateY(-4px); }
.proof-grid .icon { width: 40px; height: 40px; margin-bottom: 18px; }
.proof-grid h3 { font-size: 1.35rem; }
.proof-grid p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

.sectors { padding-top: 0; }
.sectors-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; border-top: 2px solid var(--ink); padding-top: 90px; }
.sectors h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.sectors-grid p:not(.eyebrow) { color: var(--ink-2); font-size: 1.1rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.chips li:hover { background: var(--ink); color: var(--paper); }

.faq { background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq-list details { border-top: 1.5px solid var(--line); padding: 4px 0; }
.faq-list details:last-child { border-bottom: 1.5px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 18px 40px 18px 0;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-family: var(--mono);
  font-size: 1.6rem;
  color: var(--accent-strong);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding-right: 40px; }

.contact { background: var(--contact); color: var(--contact-ink); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact .eyebrow { color: var(--contact-ink); }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.contact-copy p { font-size: 1.15rem; }
.contact .mail a { color: var(--contact-ink); font-family: var(--mono); font-size: 1.05rem; }
.contact form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 36px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; border: 0; padding: 0; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-2); }
input[type=text], input[type=email], select, textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0 18px; }
.notice { font-size: 0.82rem; color: var(--ink-2); margin: 16px 0 0; line-height: 1.5; }

/* ---- footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer .lockup .wm { fill: var(--night-ink); }
.site-footer .lockup .mark { fill: var(--culm); }
.tagline { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--night-ink); margin: 14px 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; align-content: start; }
.footer-links a { color: var(--night-ink); text-decoration: none; }
.footer-links a:hover { color: var(--culm); text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 24px; margin: 8px 0 0; }

/* ---- prose pages (privacy, terms, thanks, 404) ----------------------------------------- */
.prose { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---- motion ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .scaffold .pole, .scaffold .ledger, .scaffold .brace {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) forwards;
  }
  .scaffold .sun { transform-box: fill-box; transform-origin: center; animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .scaffold .tie, .scaffold .node { opacity: 0; animation: fade 0.4s ease-out forwards; }
  .scaffold .leaf {
    transform-box: fill-box;
    transform-origin: 0% 50%;
    animation: grow 0.6s 1.8s cubic-bezier(0.3, 1.4, 0.5, 1) both, sway 4s 2.4s ease-in-out infinite alternate;
  }
  .scaffold .l2 { animation-delay: 1.95s, 2.6s; animation-duration: 0.6s, 5s; }
  .scaffold .l3 { animation-delay: 2.1s, 2.8s; animation-duration: 0.6s, 4.5s; }
  .scaffold .d1 { animation-delay: 0.2s; }
  .scaffold .d2 { animation-delay: 0.32s; }
  .scaffold .d3 { animation-delay: 0.44s; }
  .scaffold .d4 { animation-delay: 0.56s; }
  .scaffold .d5 { animation-delay: 0.68s; }
  .scaffold .d6 { animation-delay: 0.8s; }
  .scaffold .d7 { animation-delay: 0.92s; }
  .scaffold .d8 { animation-delay: 1.04s; }
  .scaffold .d9 { animation-delay: 1.3s; }
  .scaffold .d10 { animation-delay: 1.4s; }
  .scaffold .d11 { animation-delay: 1.5s; }

  .ticker-track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .steps .reveal:nth-child(2), .js .tiles .reveal:nth-child(2), .js .proof-grid .reveal:nth-child(2), .js .pillars .reveal:nth-child(2) { transition-delay: 0.1s; }
  .js .steps .reveal:nth-child(3), .js .tiles .reveal:nth-child(3), .js .proof-grid .reveal:nth-child(3), .js .pillars .reveal:nth-child(3) { transition-delay: 0.2s; }
  .js .steps .reveal:nth-child(4), .js .tiles .reveal:nth-child(4), .js .proof-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- responsive ------------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .steps li { border-radius: 6px 6px 0 0; }
}

@media (max-width: 820px) {
  .nav li:not(:last-child) { display: none; }
  .hero { padding-top: 40px; }
  .hero-grid, .sectors-grid, .faq-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .tiles { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  section { padding: 80px 0; }
  .statement { padding: 80px 0 20px; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .proof-grid, .steps, .row2 { grid-template-columns: 1fr; }
  .tiles li { padding: 28px 24px; }
  .pillar { padding: 28px 22px 12px; }
  .contact form { padding: 24px 18px; }
  .lockup { height: 26px; }
}
