/* ============================================================
   INFRAZEN: design system "calm infrastructure" (v2.1 light)
   Ground: warm paper. Accent: deep jade = status-OK green.
   Dark "instrument islands": terminal, diagrams, calc output, footer.
   Type: Martian Mono (structural) + Atkinson Hyperlegible Next (prose).
   Docs: redesign-docs/DESIGN-PLAN.md
   ============================================================ */

/* ---------- fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: "Martian Mono";
  src: url("/assets/fonts/martian-mono-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --bg: #F6F3EC;         /* page ground: warm paper */
  --bg-deep: #EEEAE0;    /* recessed panels, code, strips */
  --surface: #FCFAF5;    /* raised cards */
  --surface-2: #FFFFFF;  /* hover surfaces */

  --text: #1B221C;       /* primary text: warm ink */
  --text-2: #3C453D;     /* long-form body text */
  --sage: #59665B;       /* secondary text, labels */

  --jade: #24704F;       /* brand accent = status OK (AA on paper) */
  --jade-bright: #2E9E6F;/* decorative dots/bars only */
  --jade-dim: rgba(36, 112, 79, 0.10);
  --amber: #8F671C;      /* metrics, warn (AA on paper) */
  --amber-2: #7E5C1B;    /* takeaway labels on recessed panels */
  --crit: #A94A38;       /* status critical only */

  --line: rgba(27, 34, 28, 0.13);
  --line-strong: rgba(27, 34, 28, 0.26);
  --wash-1: rgba(27, 34, 28, 0.03);
  --wash-2: rgba(27, 34, 28, 0.05);
  --wash-3: rgba(27, 34, 28, 0.07);

  /* fixed dark "instrument island" palette (terminal, diagrams, footer) */
  --pit: #10160F;
  --pit-2: #1A211A;
  --pit-text: #ECE9E1;
  --pit-muted: #9CA898;
  --pit-line: rgba(236, 233, 225, 0.14);
  --jade-lit: #6FBF9C;
  --amber-lit: #D9A441;
  --crit-lit: #E07856;   /* status-critical text on dark islands (AA) */

  --band: #FAF7F0;      /* alternating section band */
  --shadow-1: 0 1px 2px rgba(27, 34, 28, 0.05), 0 10px 28px -18px rgba(27, 34, 28, 0.12);
  --shadow-2: 0 2px 4px rgba(27, 34, 28, 0.08), 0 24px 48px -20px rgba(27, 34, 28, 0.25);

  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", system-ui, sans-serif;
  /* legacy aliases (pillar/blog pages reference nothing directly, but keep parity) */
  --font-display: var(--font-mono);
  --gold: var(--jade);
  --teal: var(--jade);
  --text-primary: var(--text);
  --text-secondary: var(--sage);
  --border: var(--line);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-1: 2px; --r-2: 6px; --r-3: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s var(--ease);
  --t-med: 0.3s var(--ease);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--jade); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 700; color: var(--text); }
hr { border: none; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--jade); color: #F7FBF6; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--s-4); }

/* links inside text blocks stay distinguishable without relying on color
   (WCAG 1.4.1 / axe link-in-text-block) */
p a, li a, td a, article a, .prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(36, 112, 79, 0.5);
}
p a:hover, li a:hover, td a:hover, article a:hover, .prose a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--jade); color: #F7FBF6;
  font-family: var(--font-mono); font-size: 0.8rem;
  padding: var(--s-2) var(--s-4); border-radius: 0 0 var(--r-2) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-5); }

/* ---------- nav ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med);
}
/* scrim lives on a pseudo-element: backdrop-filter directly on .navbar would
   make it the containing block for the fixed .nav-links mobile overlay,
   pinning the open menu to the 54px bar instead of the viewport */
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent;
  transition: background var(--t-med);
}
.navbar.scrolled { border-bottom-color: var(--line); }
.navbar.scrolled::before {
  background: rgba(246, 243, 236, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav-container {
  max-width: 1120px; margin: 0 auto; padding: var(--s-3) var(--s-5);
  display: flex; align-items: center; gap: var(--s-5);
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img, .logo-full { height: 30px; width: auto; }
.logo-mark { height: 26px; width: 26px; }
.logo-word {
  font-family: var(--font-mono); font-size: 1.02rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text);
}
.logo-word b { color: var(--jade); font-weight: 700; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: var(--s-5); margin-left: auto; }
.nav-link {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  color: var(--sage); letter-spacing: 0.02em;
  padding: var(--s-1) 0;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.nav-active { color: var(--jade); }
.nav-link.nav-active::before { content: "● "; font-size: 0.6em; vertical-align: 2px; }
.nav-cta {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: #F7FBF6; background: var(--jade);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-2);
  transition: background var(--t-fast);
}
.nav-cta:hover { background: #2C8560; text-decoration: none; }
.hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: var(--s-2); margin-left: var(--s-2);
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 1px; transition: transform var(--t-med), opacity var(--t-med);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-2);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn .btn-icon { transition: transform var(--t-fast); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-primary, .btn-gold { background: var(--jade); color: #F7FBF6; }
.btn-primary:hover, .btn-gold:hover { background: #2C8560; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--jade); color: var(--jade); }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { font-family: var(--font-body); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(46, 158, 111, 0.10), transparent);
}
/* legacy decorative layers, now inert */
.hero-noise, .hero-grid-overlay, .orb, #hero-canvas { display: none; }
.hero-content {
  max-width: 880px; margin: 0 auto; padding: 0 var(--s-5);
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--sage); letter-spacing: 0.06em; text-transform: lowercase;
  border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--s-2) var(--s-4); margin-bottom: var(--s-6);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jade-bright); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46, 158, 111, 0.5);
  animation: pulse 3s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 158, 111, 0.45); }
  60% { box-shadow: 0 0 0 8px rgba(46, 158, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 158, 111, 0); }
}
.hero-headline {
  font-family: var(--font-mono); font-weight: 660;
  font-size: clamp(1.9rem, 4.7vw, 3.55rem);
  letter-spacing: -0.035em; line-height: 1.12;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
.gradient-text { color: var(--jade); }         /* legacy class: now solid jade */
.hero-subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--sage); max-width: 640px;
  margin: 0 auto var(--s-6); line-height: 1.65;
}
.hero-cta-group {
  display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap;
}

/* split hero (homepage): copy left, terminal right */
.hero-split {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--s-5);
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: var(--s-8); align-items: center; text-align: left;
}
.hero-split .hero-headline { font-size: clamp(1.8rem, 2.9vw, 2.6rem); }
.hero-split .hero-subtitle { margin-left: 0; margin-right: 0; }
.hero-split .hero-cta-group { justify-content: flex-start; }
.hero-split .term { margin: 0; max-width: none; }
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: var(--s-6); }
  .hero-split .hero-cta-group { justify-content: center; }
  .hero-split .hero-subtitle { margin: 0 auto var(--s-2); }
}

/* ---------- terminal (signature) ---------- */
.term {
  max-width: 720px; margin: 0 auto var(--s-7);
  text-align: left;
  background: var(--pit);
  border: 1px solid rgba(16, 22, 15, 0.9);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--pit-line);
  background: var(--pit-2);
}
.term-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pit-line); font-style: normal;
}
.term-bar i:first-child { background: #C4604F; opacity: 0.85; }
.term-bar i:nth-child(2) { background: var(--amber-lit); opacity: 0.85; }
.term-bar i:nth-child(3) { background: var(--jade-lit); opacity: 0.9; }
.term-title {
  margin-left: auto; font-family: var(--font-mono);
  font-size: 0.68rem; color: var(--pit-muted); letter-spacing: 0.05em;
}
.term-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.75;
  height: 252px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--pit-line) transparent;
}
.term-body .t-cmd { color: var(--pit-text); font-weight: 500; }
.term-body .t-prompt { color: var(--jade-lit); font-weight: 600; user-select: none; }
.term-body .t-out { color: var(--pit-muted); display: block; white-space: pre-wrap; }
.term-body .t-out b, .term-body .t-out strong { color: var(--pit-text); font-weight: 600; }
.term-body .t-ok { color: var(--jade-lit); }
.term-body .t-num { color: var(--amber-lit); }
.term-body .t-out a { color: var(--jade-lit); text-decoration: underline; text-underline-offset: 3px; }
.term-caret {
  display: inline-block; width: 8px; height: 1.05em;
  background: var(--jade-lit); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term-input-row { display: flex; align-items: baseline; gap: var(--s-2); }
.term-input {
  flex: 1; background: none; border: 0; outline: none;
  font: inherit; color: var(--pit-text); caret-color: var(--jade-lit);
  min-width: 0; padding: 0;
}
.term-chips {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  padding: 0 var(--s-5) var(--s-4);
}
.term-chip {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--pit-muted); background: none;
  border: 1px solid var(--pit-line); border-radius: var(--r-2);
  padding: 3px 10px; cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.term-chip:hover { color: var(--jade-lit); border-color: var(--jade-lit); }

/* ---------- sections ---------- */
section { position: relative; }
/* alternating paper bands give the page compositional rhythm */
main > section:nth-of-type(even):not(.hero):not(.trust-strip) {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services, .contact, .global, .why-us, .ecosystem, .approach {
  padding: var(--s-9) 0;
}
.section-header { max-width: 760px; margin: 0 auto var(--s-8); text-align: center; }
.section-label {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
  margin-bottom: var(--s-4);
}
.section-label::before { content: "●"; color: var(--jade); font-size: 0.6rem; }
.section-title {
  font-family: var(--font-mono); font-weight: 620;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* log-line eyebrow variant (left-aligned sections) */
.log-line {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: var(--s-6);
}
.log-line::before { content: "●"; color: var(--jade); font-size: 0.6rem; }
.log-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- cards ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
.service-card, .glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
  transition: border-color var(--t-med), background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
  display: flex;
  flex-direction: column;
}
.service-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
a.service-card:hover { text-decoration: none; transform: translateY(-2px); }
.service-card.featured { border-color: rgba(36, 112, 79, 0.45); }
.badge-sun {
  position: absolute; top: calc(-1 * var(--s-3)); left: var(--s-5);
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--jade); color: #F7FBF6;
  border-radius: var(--r-1); padding: 3px 8px;
}
.service-icon { color: var(--jade); margin-bottom: var(--s-4); }
.service-number {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  color: var(--amber); margin-bottom: var(--s-3); letter-spacing: 0.08em;
}
.service-number::before { content: "["; color: var(--sage); }
.service-number::after { content: "]"; color: var(--sage); }
.service-title {
  font-family: var(--font-mono); font-size: 1.02rem; font-weight: 620;
  letter-spacing: -0.01em; margin-bottom: var(--s-3);
}
.service-desc { color: var(--sage); font-size: 0.95rem; margin: 0 0 var(--s-4); }
.service-features {
  list-style: none; margin: 0 0 var(--s-5); padding: 0;
  font-size: 0.9rem; color: var(--text-2);
}
.service-features li {
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  position: relative; border-top: 1px solid var(--line);
}
.service-features li::before {
  content: "▸"; position: absolute; left: var(--s-1);
  color: var(--jade); font-size: 0.8rem;
}
.service-link {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: var(--jade);
  transition: letter-spacing var(--t-fast);
}
.service-card:hover .service-link { letter-spacing: 0.02em; }

/* decision-aid table (services hub) */
.decide { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.decide table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.decide th {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage);
  text-align: left; padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-strong); background: var(--bg-deep);
}
.decide td { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.decide tr:last-child td { border-bottom: none; }
.decide tbody tr { transition: background var(--t-fast); }
.decide tbody tr:hover { background: var(--jade-dim); }
.decide td a { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

/* compact one-line info strips (engagement models, principles, stack) */
.strip-list { max-width: 980px; margin: 0 auto; }
.strip-row {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: var(--s-5); align-items: baseline;
  padding: var(--s-5) 0; border-top: 1px solid var(--line);
}
.strip-row:last-child { border-bottom: 1px solid var(--line); }
.strip-key { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 620; color: var(--text); }
.strip-val { color: var(--sage); font-size: 0.95rem; }
.strip-link { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.chip-row span {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--sage);
  border: 1px solid var(--line); border-radius: var(--r-1);
  background: var(--surface); padding: 4px 12px;
}
@media (max-width: 768px) {
  .strip-row { grid-template-columns: 1fr; gap: var(--s-2); }
  .decide { overflow-x: auto; }
}

/* sticky in-page nav (long landing pages) */
.page-toc {
  position: sticky; top: 0; z-index: 90;
  background: rgba(246, 243, 236, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.page-toc-inner {
  max-width: 1120px; margin: 0 auto; padding: var(--s-3) var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-items: center;
  font-family: var(--font-mono); font-size: 0.75rem;
}
.page-toc-inner b { color: var(--sage); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
.page-toc-inner a { color: var(--text-2); }
.page-toc-inner a:hover { color: var(--jade); text-decoration: none; }

/* why-cards / steps / method */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.why-card { text-align: left; }
.why-card h3 { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 620; }
.why-card p { color: var(--sage); font-size: 0.9rem; margin: 0; }
.why-icon { color: var(--jade); margin-bottom: var(--s-4); }

.steps { max-width: 860px; margin: 0 auto; }
.step {
  display: grid; grid-template-columns: 88px 1fr; gap: var(--s-6);
  padding: var(--s-6) 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-number {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 640;
  color: var(--amber);
}
.step-number::after { content: " ▸"; color: var(--line-strong); }
.step-content h3 {
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 620;
  margin-bottom: var(--s-2);
}
.step-content p { color: var(--sage); margin: 0 0 var(--s-2); }
.step-week {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2);
  display: block; padding-left: var(--s-4); position: relative;
}
.step-week::before { content: "└"; position: absolute; left: 0; color: var(--line-strong); }

/* diagrams ship dark-designed; pin them onto instrument panels.
   Only diagrams carry role="img" (decorative icons don't), so this is global. */
svg[role="img"] {
  background: var(--pit);
  border: 1px solid var(--pit-2);
  border-radius: var(--r-3);
  padding: 14px;
  box-shadow: var(--shadow-1);
}

/* ---------- evidence / stats ---------- */
.evidence-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
  max-width: 980px; margin: 0 auto var(--s-4);
  text-align: center;
}
.ev-stat { padding: var(--s-5) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--shadow-1); transition: border-color var(--t-med); }
.ev-stat:hover { border-color: rgba(36, 112, 79, 0.35); }
.ev-num {
  display: block; font-family: var(--font-mono); font-weight: 640;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--amber); letter-spacing: -0.02em;
}
.ev-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--sage); letter-spacing: 0.06em; }
.disclaimer {
  font-size: 0.8rem; color: var(--sage); text-align: center;
  max-width: 640px; margin: var(--s-4) auto 0;
}

/* metric strip (status-quo cost) */
.metric-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
  max-width: 980px; margin: 0 auto;
}
.metric { border-left: 2px solid var(--line-strong); padding: var(--s-2) 0 var(--s-2) var(--s-5); }
.metric b {
  display: block; font-family: var(--font-mono); font-weight: 640;
  font-size: 1.6rem; color: var(--amber); letter-spacing: -0.02em; line-height: 1.2;
}
.metric span { color: var(--sage); font-size: 0.92rem; }
.metric small { display: block; color: var(--sage); font-size: 0.75rem; margin-top: var(--s-2); }

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  /* recessed paper strip */
  padding: var(--s-6) 0;
}
.trust-items {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  justify-content: center; align-items: center;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--sage);
  letter-spacing: 0.04em;
}
.trust-items .t-ok { color: var(--jade); }
.trust-badge {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: var(--r-1);
  color: var(--sage); padding: 4px 10px;
}

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); padding: var(--s-4) 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  font-weight: 700; color: var(--text); font-size: 1.02rem;
  position: relative; padding-right: var(--s-6);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: var(--s-1); top: 0;
  font-family: var(--font-mono); color: var(--jade); font-weight: 400;
}
details[open] summary::after { content: "−"; }
details > p { color: var(--text-2); margin: var(--s-3) 0 0; }

/* ---------- long-form article ---------- */
article { color: var(--text-2); }
article h2 { font-family: var(--font-mono); font-weight: 620; letter-spacing: -0.015em; }
.prose { max-width: 760px; margin: 0 auto; line-height: 1.85; font-size: 1.05rem; color: var(--text-2); }

/* ---------- blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
/* latest post gets the editorial slot */
.blog-grid > .service-card:first-child { grid-column: 1 / -1; padding: var(--s-7); }
.blog-grid > .service-card:first-child .service-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); max-width: 720px; }
.blog-grid > .service-card:first-child .service-desc { font-size: 1.02rem; max-width: 720px; }
.blog-grid > .service-card:first-child::after {
  content: "latest"; position: absolute; top: var(--s-5); right: var(--s-5);
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--jade); border: 1px solid rgba(36, 112, 79, 0.4);
  border-radius: var(--r-1); padding: 3px 8px;
}
.blog-card-gradient { display: none; }        /* legacy gradient strip removed */
.blog-card-category {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: var(--r-1);
  padding: 3px 8px; margin-bottom: var(--s-4); color: var(--sage);
}
.blog-cat--devops, .blog-cat--platform { color: var(--jade); border-color: rgba(36, 112, 79, 0.45); }
.blog-cat--sre, .blog-cat--k8s { color: var(--amber); border-color: rgba(143, 103, 28, 0.45); }
.blog-cat--cloud { color: var(--text); }
.blog-meta {
  margin-top: auto; padding-top: var(--s-4);
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--sage);
}

/* ---------- contact / forms ---------- */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-7);
  max-width: 980px; margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-item {
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--text-2); font-size: 0.98rem;
}
.contact-item svg { color: var(--sage); flex-shrink: 0; }
.trust-signals {
  margin-top: var(--s-4); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.trust-item {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2);
}
.trust-item svg { color: var(--jade); flex-shrink: 0; }

.contact-form { padding: var(--s-6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-group { margin-bottom: var(--s-4); display: flex; flex-direction: column; }
.form-group label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage);
  margin-bottom: var(--s-2);
}
.form-group input, .form-group select, .form-group textarea {
  background: #FFFFFF; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-2);
  font: inherit; font-size: 0.95rem;
  padding: var(--s-3) var(--s-4);
  transition: border-color var(--t-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--jade);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--sage); opacity: 1; }
.form-privacy { font-size: 0.8rem; color: var(--sage); margin: var(--s-4) 0 0; }
.form-note {
  border: 1px solid var(--line-strong); border-left: 3px solid var(--amber);
  border-radius: var(--r-2); background: var(--bg-deep);
  padding: var(--s-4) var(--s-5); margin-top: var(--s-4);
  font-size: 0.92rem; color: var(--text-2);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- calculator ---------- */
.calc {
  max-width: 860px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--r-3);
  background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
}
.calc-head {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--sage); text-transform: uppercase;
  background: var(--bg-deep); border-bottom: 1px solid var(--line);
  padding: var(--s-3) var(--s-5);
}
.calc-head::before { content: "●"; color: var(--jade); font-size: 0.6rem; }
.calc-body { padding: var(--s-6); }
.calc-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-5); }
.calc-out {
  border: 1px solid var(--pit-2); border-radius: var(--r-2);
  background: var(--pit); padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.calc-out-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-4); padding: var(--s-2) 0;
  font-size: 0.95rem; color: var(--pit-muted);
  flex-wrap: wrap;
}
.calc-out-row b {
  font-family: var(--font-mono); font-weight: 640; font-size: 1.25rem;
  color: var(--amber-lit); letter-spacing: -0.01em;
}
.calc-out-row.total { border-top: 1px solid var(--pit-line); margin-top: var(--s-2); padding-top: var(--s-3); }
.calc-fine { font-size: 0.8rem; color: var(--sage); margin: var(--s-3) 0 0; }
.calc details { border: none; padding: var(--s-3) 0 0; }
.calc summary { font-family: var(--font-mono); font-size: 0.78rem; color: var(--jade); font-weight: 500; }
.calc summary::after { content: none; }
.calc-cta { text-align: center; margin-top: var(--s-5); }

/* ---------- breadcrumb ---------- */
.crumbs {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--sage); margin-bottom: var(--s-5);
}
.crumbs a { color: var(--sage); }
.crumbs a:hover { color: var(--jade); }
.crumbs .sep { color: var(--line-strong); padding: 0 var(--s-2); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--pit-2);
  background: var(--pit);
  color: var(--pit-muted);
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-9);
}
.footer .logo-word { color: var(--pit-text); }
.footer .logo-word b { color: var(--jade-lit); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer-tagline { color: var(--pit-muted); font-size: 0.9rem; margin: var(--s-4) 0 0; max-width: 300px; }
.footer-partners {
  font-family: var(--font-mono); font-size: 0.7rem !important;
  color: var(--pit-muted) !important; letter-spacing: 0.06em !important;
  margin-top: var(--s-3) !important;
}
.footer-col .footer-col-h {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--pit-muted);
  margin: 0 0 var(--s-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s-3); }
.footer-col a { color: var(--pit-text); opacity: 0.86; font-size: 0.92rem; }
.footer-col a:hover { color: var(--jade-lit); opacity: 1; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--pit-line); padding-top: var(--s-5);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 0.82rem; color: var(--pit-muted);
}
.footer-bottom a { color: var(--pit-muted); }
.footer-social a { color: var(--pit-muted); display: inline-flex; }
.footer-social a:hover { color: var(--jade-lit); }
.footer-status {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--sage);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.footer-status::before { content: "●"; color: var(--jade-lit); font-size: 0.6rem; }

/* ---------- utilities ---------- */
.back-to-top {
  position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 90;
  width: 40px; height: 40px; border-radius: var(--r-2);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity var(--t-med), transform var(--t-med);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { border-color: var(--jade); color: var(--jade); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

.center { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 1rem; }
  .nav-links {
    position: fixed; inset: 0; z-index: 99;
    background: var(--bg);
    flex-direction: column; justify-content: center; align-items: center;
    gap: var(--s-6); font-size: 1.1rem;
    opacity: 0; pointer-events: none; transition: opacity var(--t-med);
  }
  .nav-links.active { opacity: 1; pointer-events: auto; }
  .nav-link { font-size: 1rem; }
  .nav-cta { margin-left: auto; }
  .hamburger { display: block; z-index: 100; }
  .hero { padding: 8rem 0 4rem; }
  .services, .contact, .global, .why-us, .ecosystem, .approach { padding: var(--s-8) 0; }
  .services-grid, .blog-grid, .metric-row, .calc-inputs, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: var(--s-4); }
  .term-body { font-size: 0.72rem; min-height: 0; padding-left: var(--s-4); padding-right: var(--s-4); }
  .section-header { margin-bottom: var(--s-6); }
}
@media (max-width: 480px) {
  .why-grid, .evidence-row, .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 var(--s-4); }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .term-caret { animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff !important; color: var(--text) !important; }
  .navbar, .footer, .back-to-top, .term-chips, .term-input-row, .hero-cta-group,
  .nav-cta, .calc, .skip-link { display: none !important; }
  .hero { padding: 1rem 0; border: 0; background: none; }
  a { color: var(--jade) !important; text-decoration: underline; }
  .service-card, .glass { break-inside: avoid; }
}
