:root {
  --green-dark: #046A32;
  --green: #007A34;
  --green-bright: #00C25A;
  --green-mist: #A7E8C2;
  --green-pale: #D3F1DF;
  --ink: #0E100F;
  --ink-soft: #3F453F;
  --body-copy: #4A504A;
  --muted: #5F655F;
  --line: #E8EBE6;
  --line-strong: #E1E6DE;
  --grid-line: #EEF1EC;
  --off-white: #FAFBF9;
  --white: #FFFFFF;
  --dark-bg: #0E100F;
  --dark-panel: #141716;
  --dark-line: #2A2E2B;
  --dark-muted: #8A928C;
  --dark-body: #C2C9C3;
  --font-mono: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Archivo', 'Instrument Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
}
img { max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: var(--font-sans); }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.eyebrow-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow-accent { color: var(--green); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1320px;
  margin: 0 auto;
}
.logo-link { display: block; line-height: 0; flex: 0 0 auto; }
.logo { height: 36px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-link {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.header-progress-track { height: 2px; width: 100%; background: var(--grid-line); }
.header-progress-bar { height: 2px; width: 0%; background: var(--green-dark); }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  color: var(--white) !important;
  background: var(--ink);
  padding: 12px 20px;
  transition: background .15s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-dark); color: var(--white) !important; }
.lang-switch {
  display: flex; align-items: center; border: 1px solid var(--line-strong); flex: 0 0 auto;
}
.lang-btn {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.05em;
  padding: 8px 12px; border: none; background: transparent; color: var(--muted); cursor: pointer;
}
.lang-btn.is-active { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 14px; }
  .lang-switch { margin-top: 14px; align-self: flex-start; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.hero-rule { position: absolute; z-index: 0; right: 0; top: 0; bottom: 0; width: 8px; background: var(--green-dark); pointer-events: none; }
.hero-inner { padding: 92px 32px 0; position: relative; z-index: 1; }
.hero-badge { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.dot { width: 13px; height: 13px; display: block; }
.dot-dark { background: var(--green-dark); }
.dot-blink { background: var(--green-bright); animation: hosblink 2.6s steps(1,end) infinite; }
.hero-badge-text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-left: 10px;
}
.hero-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero-heading span { display: inline-block; }
.hero-bottom {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; align-items: end; margin-top: 34px; padding-bottom: 48px;
}
.hero-sub {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--body-copy);
  max-width: 56ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  font-size: 16px;
  font-weight: 600;
  padding: 17px 30px;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: background .15s ease, color .15s ease;
}
.btn-dark { color: var(--white); background: var(--ink); }
.btn-dark:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { color: var(--ink); border: 1.5px solid var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { color: var(--green-dark); background: var(--white); }
.btn-light:hover { background: var(--green-mist); color: var(--green-dark); }
.btn-light:disabled { opacity: 0.6; cursor: default; }

.ticker-bar { border-top: 1px solid var(--line); background: rgba(255,255,255,0.72); position: relative; z-index: 1; }
.ticker-inner { padding: 16px 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; max-width: 1320px; margin: 0 auto; }
.ticker-label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; color: var(--green-dark); }
.ticker-text { font-size: 14px; color: var(--body-copy); }

@keyframes hosblink { 0%, 70% { opacity: 0 } 74%, 96% { opacity: 1 } 100% { opacity: 0 } }

/* ---- Section shell ---- */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-border { border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.section-head h2, .section-head-stack h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.section-head-stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 740px; }
.section-eyebrow-group { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---- Work / filter ---- */
.filter-label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); display: block; margin-bottom: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 10px 18px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink-soft); cursor: pointer;
}
.filter-btn.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 34px; }
.case-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; color: var(--ink); transition: color .25s ease; }
.case-card:hover { color: var(--green-dark); }
.case-card .thumb { border: 1px solid var(--line); overflow: hidden; background: var(--off-white); aspect-ratio: 16 / 10; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.case-card:hover .thumb img { transform: scale(1.03); }
.case-tag { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 12px; line-height: 1.5; letter-spacing: 0.14em; color: var(--green); min-height: 3em; }
.case-title { font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.2; }
.case-desc { font-size: 16px; line-height: 1.6; color: var(--body-copy); }
.case-ctas { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 2px; }
.case-cta { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; }
.case-cta.is-secondary { color: var(--muted); }
.case-status { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.empty-note { margin: 36px 0 0; font-size: 17px; color: var(--muted); }
.empty-note button {
  font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--green-dark);
  background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline;
}

/* ---- System map ---- */
.system-section { background: var(--dark-bg); color: #F2F4F1; overflow: hidden; }
.system-intro { padding-top: 84px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.system-intro h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; max-width: 24ch; }
.system-intro p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--dark-muted); max-width: 62ch; }
.system-body { padding-bottom: 84px; display: grid; grid-template-columns: minmax(280px, 640px) 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) {
  .system-body { grid-template-columns: 1fr; }
}
.node-groups { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.node-group { display: flex; flex-direction: column; gap: 12px; }
.node-group-label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; color: #6BCF95; }
.node-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.node-divider { height: 20px; width: 2px; background: var(--dark-line); margin-left: 12px; }
.node-btn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 10px 16px;
  border: 1px solid var(--dark-line); background: transparent; color: #DDE2DA; cursor: pointer;
}
.node-btn.is-active { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.node-panel {
  min-width: 0; border: 1px solid var(--dark-line); background: var(--dark-panel);
  padding: 32px 30px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px;
}
.node-panel-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.node-status { font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; padding: 3px 9px; border: 1px solid var(--dark-line); color: var(--dark-muted); }
.node-status.is-progress { color: #FFD98E; border-color: #5A4B24; }
.node-title { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.node-body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--dark-body); }
.node-meta { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--dark-line); padding-top: 14px; }

/* ---- Stats ---- */
.stats-section { background: var(--green-dark); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px; padding: 56px 0; }
.stat-item { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid rgba(255,255,255,0.32); padding-top: 18px; }
.stat-item:first-child { border-top-color: rgba(255,255,255,0.9); }
.stat-value { font-family: var(--font-display); font-size: clamp(34px, 4vw, 54px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 14px; line-height: 1.5; color: var(--green-pale); }

/* ---- Habits ---- */
.habits-section { background: var(--off-white); }
.habits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 36px; }
.habit-item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.habit-before { font-size: 14px; line-height: 1.6; color: var(--muted); text-decoration: line-through; }
.habit-rule { width: 26px; height: 2px; background: var(--green-dark); display: block; }
.habit-after { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.3; }
.habit-body { font-size: 14px; line-height: 1.6; color: var(--body-copy); }

/* ---- Capabilities ---- */
.capabilities-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong);
}
.capability-card {
  background: var(--white); padding: 32px 28px; display: flex; flex-direction: column;
  gap: 12px; min-width: 0; transition: background .25s ease;
}
.capability-card:hover { background: var(--off-white); }
.capability-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.capability-desc { font-size: 15px; line-height: 1.6; color: var(--body-copy); }

/* ---- Engage ---- */
.engage-tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--line-strong); }
.engage-tab-btn {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; padding: 16px 22px;
  border: none; background: var(--white); color: var(--ink-soft); cursor: pointer; flex: 1 1 auto;
}
.engage-tab-btn.is-active { background: var(--ink); color: var(--white); }
.engage-panel {
  border: 1px solid var(--line-strong); border-top: none; padding: 40px 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 44px;
  background: var(--off-white);
}
.engage-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.engage-main h3 { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.engage-main p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--body-copy); max-width: 46ch; }
.engage-main a { font-weight: 600; font-size: 14px; letter-spacing: 0.03em; margin-top: 4px; }
.engage-meta { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.engage-meta-item { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-strong); padding-top: 12px; }
.engage-meta-label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.engage-meta-value { font-size: 15px; line-height: 1.5; }

/* ---- Team ---- */
.team-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.team-head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body-copy); max-width: 36ch; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.team-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.team-photo { width: 100%; height: 230px; background: var(--grid-line); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; display: block; }
.team-role { font-size: 14px; color: var(--muted); display: block; }

/* ---- Testimonial ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; align-items: center; }
.testimonial-quote { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; }
.testimonial-footer { margin-top: 20px; display: flex; flex-direction: column; gap: 3px; }
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-org { font-size: 14px; color: var(--muted); }
.testimonial-photo { width: 100%; height: 230px; background: var(--grid-line); overflow: hidden; }
.testimonial-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Contact ---- */
.contact-section { background: var(--green-dark); color: var(--white); }
.contact-grid {
  padding-top: 84px; padding-bottom: 84px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 60px;
}
.contact-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.contact-copy h2 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em;
}
.contact-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--green-pale); max-width: 44ch; }
.contact-eyebrow { color: var(--green-mist); }
.contact-details {
  display: flex; flex-direction: column; gap: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.24);
}
.contact-detail { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field .eyebrow-mono { color: var(--green-mist); font-size: 12px; letter-spacing: 0.12em; }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--white); background: transparent;
  border: none; border-bottom: 1.5px solid rgba(255,255,255,0.45); padding: 12px 2px;
  outline: none; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom: 1.5px solid var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-status { margin: 0; font-size: 14px; color: var(--green-mist); min-height: 1.2em; }
.form-status.is-error { color: #FFD1CB; }

/* ---- Footer ---- */
.site-footer { background: var(--dark-bg); color: #F2F4F1; }
.footer-top {
  padding: 56px 32px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 40px; align-items: start; max-width: 1320px; margin: 0 auto;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-logo { height: 30px; width: auto; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: var(--dark-muted); max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-col #footer-recent-work { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; color: #6BCF95; }
.footer-col a, .footer-col span { font-size: 14px; color: #C9CFC9; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--dark-line); }
.footer-bottom-inner {
  max-width: 1320px; margin: 0 auto; padding: 20px 32px; display: flex; flex-wrap: wrap;
  gap: 12px; align-items: center; justify-content: space-between;
}
.footer-copyright { font-size: 13px; color: var(--dark-muted); }
.footer-mark { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; color: var(--dark-muted); }

@media (max-width: 720px) {
  .hero-inner { padding: 76px 24px 0; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-row { padding: 14px 20px; }
  .node-panel { position: static; }
}

/* ---- Scroll reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  /* hero-canvas stays visible and cursor-reactive under reduced motion —
     only its unprompted ambient auto-sweep is disabled, in JS. */
}
