@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --green: #275927;
  --green-dark: #1b3f1b;
  --green-light: #7fbf6a;
  --ink: #14211a;
  --ink-soft: #4a5a50;
  --paper: #fbfcfa;
  --paper-alt: #f0f4ee;
  --line: #dde5da;
  --dark: #0f1d14;
  --radius: 10px;
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 12px; height: 10.4px; background: currentColor; clip-path: var(--hex); flex: none; }

/* Honeycomb background pattern (inline SVG) */
.hex-pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hex-pattern polygon { fill: none; stroke: var(--line); stroke-width: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 250, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 18px; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green); }
.nav .nav-cta { background: var(--green); color: #fff; padding: 9px 16px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--green-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.hero .hex-pattern {
  mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 65%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; max-width: 22ch; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 36em; }
.stack { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--green-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-net { width: 100%; max-width: 440px; justify-self: end; overflow: visible; }
.net-grid polygon { fill: none; stroke: #c9dac3; stroke-width: 1.5; }
.net-dots circle { fill: #c9dac3; }
.net-core polygon, .net-core line { fill: rgba(127, 191, 106, .08); stroke: var(--green); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.net-nodes circle { fill: var(--green); }
.net-nodes .hl, .net-pulse circle { fill: var(--green-light); }
.net-pulse circle { animation: pulse 3.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.net-pulse circle:nth-child(2) { animation-delay: 1.3s; }
.net-pulse circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-net { display: none; }
}
@media (max-width: 600px) { .hero { padding: 72px 0 64px; } }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section h2 { font-size: clamp(30px, 4vw, 42px); }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--green); transform: translateY(-2px); }
.hex-badge {
  width: 52px; height: 45px; clip-path: var(--hex); margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--paper-alt); color: var(--green);
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.card:hover .hex-badge { background: var(--green); color: #fff; }
.card h3 { font-size: 21px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.card li { padding: 3px 0 3px 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: var(--green); }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sector { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 28px; }
.sector h3 { font-size: 21px; }
.sector p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .sectors { grid-template-columns: 1fr; } }

/* Steps: hexagon nodes joined by a line */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: "0" counter(step); position: relative; z-index: 1;
  width: 60px; height: 52px; clip-path: var(--hex); margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--green); color: #fff; font-family: var(--mono); font-size: 15px; font-weight: 500;
}
.steps li:last-child::before { background: var(--green-light); color: var(--dark); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 60px; right: -40px; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-light)); }
.steps h3 { font-size: 21px; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { padding-left: 80px; min-height: 52px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 52px; bottom: -32px; left: 28.5px; right: auto; width: 3px; height: auto; background: var(--green); }
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about-body p { font-size: 19px; color: var(--ink-soft); }
.about-body p:first-child { color: var(--ink); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 16px; } }

/* Contact */
.section-dark { position: relative; overflow: hidden; background: var(--dark); color: #e8efe9; }
.section-dark .hex-pattern polygon { stroke: rgba(127, 191, 106, .12); }
.section-dark .hex-pattern { mask-image: linear-gradient(90deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); }
.section-dark .wrap { position: relative; z-index: 1; }
.section-dark .eyebrow { color: var(--green-light); }
.section-dark h2 { color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-intro p:last-child { color: #b5c4b9; font-size: 18px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } }

.contact-form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; color: #fff; }
.optional { font-weight: 400; color: #8fa596; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-light); background: rgba(255, 255, 255, .09); }
.field.invalid input, .field.invalid textarea { border-color: #e88a7d; }
.contact-form .btn-primary { justify-self: start; background: var(--green-light); color: var(--dark); }
.contact-form .btn-primary:hover { background: #9ad187; }
.form-note { margin: -6px 0 0; font-size: 14px; color: #8fa596; }
.form-note a { color: #b5c4b9; }
.form-status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form-status.ok { color: var(--green-light); }
.form-status.err { color: #f0a497; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--dark); color: #8fa596; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.site-footer a { color: #b5c4b9; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* About facts */
.facts { list-style: none; padding: 24px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.facts li::before { content: ""; grid-row: span 2; width: 22px; height: 19px; margin-top: 3px; clip-path: var(--hex); background: var(--green-light); }
.facts strong { font-size: 17px; color: var(--green); }
.facts span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* Privacy / text pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 24px; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--paper-alt); padding: 1px 6px; border-radius: 4px; }
.prose .updated { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .nav.nav-simple { display: flex; position: static; padding: 0; border: 0; background: none; }
  .nav.nav-simple .nav-cta { margin: 0; }
}
