/* =========================================================================
   CyberBlade — design system
   A cut edge, not a rounded corner: every surface takes its shape from a
   single chamfered cut, the same motif as the mark's blade. Dark ground
   with a slight green undertone (never neutral gray-black), one accent,
   spent mostly on the cut itself.
   Brand (fixed, do not adjust): green #2C962A, gray #666666.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg:            #0a0e0b;
  --bg-2:          #0d1310;
  --surface:       #111813;
  --surface-2:     #161f18;
  --surface-3:     #1c281f;
  --line:          rgba(233, 240, 234, 0.07);
  --line-strong:   rgba(233, 240, 234, 0.15);
  --line-control:  rgba(233, 240, 234, 0.32);

  --text:          #edf3ee;
  --text-2:        #b4c1b8;
  --muted:         #7c8b82;

  --accent:        #2c962a;
  --accent-2:      #35b233;
  --accent-deep:   #1f7a1e;
  --accent-soft:   rgba(44, 150, 42, 0.16);
  --accent-line:   rgba(44, 150, 42, 0.42);

  --danger:        #ff5d5d;
  --brand-gray:    #666666;

  --radius:        3px;
  --radius-sm:     2px;
  --radius-lg:     3px;
  --cut-sm:        11px;
  --cut:           22px;
  --cut-lg:        34px;

  --shadow:        0 20px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-soft:   0 10px 40px -20px rgba(0, 0, 0, 0.6);

  --header-h:      76px;
  --container:     1200px;
  --gutter:        clamp(20px, 5vw, 48px);

  --font-sans:     "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display:  "Unbounded", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);

  /* One consistent chamfer (top-right corner cut), sized per scale, used on
     buttons/cards/panels instead of rounded corners. Border/background clip
     to it automatically; box-shadow does not, so glows use drop-shadow(). */
  --clip-sm: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%);
  --clip:    polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  --clip-lg: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "cv02", "cv03", "cv04";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a, button { touch-action: manipulation; }

h1, h2, h3, h4, h5 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: #fff;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; color: var(--text-2); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: rgba(44, 150, 42, 0.5); color: #fff; }

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

/* ---- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding: clamp(44px, 6vw, 84px) 0; position: relative; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--alt { background: var(--bg-2); }
.section--page-top { padding-top: clamp(96px, 15vh, 150px); }

.stack > * + * { margin-top: 1.1em; }
.center { text-align: center; }

/* ---- Typography helpers ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-line);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-line);
}

.h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-family: var(--font-sans); font-weight: 800; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 60ch;
}
.lead--center { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }

.text-accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #06210d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 1em 1.6em 1em 1.4em;
  clip-path: var(--clip-sm);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease),
              filter 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }

.btn--primary {
  background: var(--accent);
  color: #05210c;
  filter: drop-shadow(0 10px 22px rgba(44, 150, 42, 0.35));
}
.btn--primary:hover { background: #38b535; filter: drop-shadow(0 12px 26px rgba(44, 150, 42, 0.45)); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-control);
}
.btn--ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }

.btn--sm { padding: 0.75em 1.2em 0.75em 1.05em; font-size: 0.88rem; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}
.textlink svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 11, 0.84);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand__logo { height: 32px; width: auto; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0;
  color: var(--text-2);
}
.brand__text b { color: var(--accent); font-weight: 700; }

/* Primary nav */
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: #fff; }
.nav__link svg { width: 0.7em; height: 0.7em; opacity: 0.7; transition: transform 0.25s var(--ease); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.nav__drop-link {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}
.nav__drop-link:hover { background: var(--surface-3); }
.nav__drop-ico { transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav__drop-title { transition: color 0.2s var(--ease); }
.nav__drop-link:hover .nav__drop-ico { background: var(--accent); color: #05210c; }
.nav__drop-link:hover .nav__drop-title { color: var(--accent); }
.nav__drop-ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-top: 2px;
}
.nav__drop-ico svg { width: 18px; height: 18px; }
.nav__drop-title { font-weight: 600; font-size: 0.95rem; color: #fff; }
.nav__drop-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile-only CTA lives inside the nav; hidden on desktop */
.nav-mobile-cta { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-control);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(108px, 13vh, 168px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.hero__grid-bg, .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}
.hero__grid-bg::before, .hero__grid-bg::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--accent-line);
  opacity: 0.6;
}
.hero__grid-bg::before { top: 96px; left: var(--gutter); border-width: 1px 0 0 1px; }
.hero__grid-bg::after { bottom: 56px; right: var(--gutter); border-width: 0 1px 1px 0; }
.hero__glow {
  position: absolute;
  top: -25%; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 560px;
  background: radial-gradient(circle, rgba(44, 150, 42, 0.13), transparent 65%);
  pointer-events: none;
  filter: blur(20px);
}
.hero__inner { position: relative; max-width: 900px; }
.hero__inner--center { margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero--center .lead { margin-inline: auto; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero--center .hero-cta { justify-content: center; }

/* Interior pages get a quieter open than the homepage - same chrome,
   turned down, so the flagship hero doesn't get stamped on every page. */
.hero--minimal .hero__grid-bg { opacity: 0.22; }
.hero--minimal .hero__glow { opacity: 0.45; width: 620px; height: 420px; }
.hero--minimal .hero__grid-bg::before, .hero--minimal .hero__grid-bg::after { opacity: 0.35; }

/* Oversized mark watermark - homepage hero only, a brand-specific texture
   no generic template could have. Cropped off the edge, not a centerpiece. */
.hero__mark {
  position: absolute;
  top: 50%; right: clamp(-180px, -8vw, -60px);
  transform: translateY(-50%);
  width: clamp(360px, 34vw, 560px);
  height: auto;
  opacity: 0.05;
  filter: grayscale(1);
  pointer-events: none;
}

/* Chip / badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.5em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1.8rem;
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---- Grid / cards ------------------------------------------------------ */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: var(--clip);
  padding: clamp(1.6rem, 2.5vw, 2.2rem) clamp(1.5rem, 2.5vw, 2.1rem) clamp(1.5rem, 2.5vw, 2.1rem);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.22rem; line-height: 1.25; margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; margin-bottom: 0; }

.card__ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  clip-path: var(--clip-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.3rem;
  border: 1px solid var(--accent-line);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover .card__ico { background: rgba(44, 150, 42, 0.16); border-color: var(--accent); transform: translateY(-2px); }
.card--link:active { transform: translateY(-2px) scale(0.995); }
.card__ico svg { width: 26px; height: 26px; }

.card--link { display: block; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.3rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.card__more svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.card--link:hover .card__more svg { transform: translateX(4px); }

/* Feature list inside cards */
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.feature-list--2col { columns: 2; column-gap: 2.5rem; }
.feature-list--2col li { break-inside: avoid; }
@media (max-width: 700px) {
  .feature-list--2col { columns: 1; }
}

/* ---- FIERCE: a spelled-out word strip + a definition-list, not cards --- */
.fierce-word {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.4rem, 1.6vw, 1rem);
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
  overflow-x: auto;
  padding: 4px;
}
.fierce-letter {
  flex: none;
  width: clamp(38px, 7vw, 68px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  clip-path: var(--clip-sm);
}
.fierce-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 4vw, 3.5rem);
}
.fierce-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.fierce-item:nth-child(-n+2) { border-top: 0; }
.fierce-item__k {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  clip-path: var(--clip-sm);
}
.fierce-item h3 { font-size: 1.08rem; line-height: 1.2; margin-bottom: 0.35rem; }
.fierce-item p { font-size: 0.94rem; margin: 0; }
@media (max-width: 700px) {
  .fierce-list { grid-template-columns: 1fr; }
  .fierce-item:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .fierce-item:first-child { border-top: 0; }
}

/* ---- Plain list (heading + text, no card chrome) ----------------------- */
.plain-list__item { padding-left: 1rem; border-left: 2px solid var(--accent-line); }
.plain-list__item + .plain-list__item { margin-top: 1.5rem; }
.plain-list__item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.plain-list__item p { font-size: 0.94rem; margin: 0; }

/* ---- Stats ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  letter-spacing: 0;
  line-height: 1;
}
.stat__num b { color: var(--accent); }
.stat__label { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

/* ---- Split / media rows ------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.split--center { align-items: center; }
.split--reverse .split__media { order: -1; }

.panel {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  clip-path: var(--clip-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.6rem, 3vw, 2.6rem) clamp(1.6rem, 3vw, 2.6rem);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  position: relative;
}

/* Terminal accent block */
.terminal {
  background: #080b09;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5));
}
.terminal__bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.terminal__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); display: block; }
.terminal__bar i:first-child { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.terminal__bar i:nth-child(3) { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.terminal__bar span { margin-left: 0.6rem; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.terminal__body { padding: 1.25rem 1.35rem; font-size: 0.86rem; font-weight: 500; line-height: 1.9; }
.terminal__body .l { display: block; white-space: pre-wrap; }
.terminal__body .c { color: var(--accent); }
.terminal__body .p { color: var(--danger); }
.terminal__body .m { color: var(--muted); }
.terminal__body .g { color: var(--text-2); }
.terminal__cursor {
  display: inline-block;
  width: 9px; height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { opacity: 0; } }

/* ---- Logos / credential strip ----------------------------------------- */
.cred-strip { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cred {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding: 0.5em 0.95em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cred::before {
  content: "";
  flex: none;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}
.cred b { color: var(--text); font-weight: 500; }
.cred:hover { border-color: var(--accent-line); background: var(--surface-2); }

.cert-group + .cert-group { margin-top: 1.6rem; }
.cert-group__label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.cert-strip { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px; height: 112px;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 20, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cert-badge img { width: 100%; height: 100%; object-fit: contain; }
.cert-badge:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22); }
@media (max-width: 560px) {
  .cert-badge { width: 88px; height: 88px; padding: 0.7rem; }
}

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-panel {
  position: relative;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  clip-path: var(--clip-lg);
  padding: clamp(2rem, 4.5vw, 3.4rem);
  text-align: center;
  overflow: hidden;
}
.cta-panel .hero__glow { top: -60%; opacity: 0.8; }
.cta-panel h2 { margin-bottom: 1rem; }
.cta-panel .lead { margin: 0 auto 2rem; }

/* ---- Media banner (photo + caption, e.g. team/culture imagery) --------- */
.media-banner {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  clip-path: var(--clip-lg);
  border: 1px solid var(--line);
}
.media-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-banner__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 2.2rem 1.6rem 1.4rem;
  background: linear-gradient(to top, rgba(4, 6, 5, 0.88), transparent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.01em;
}

/* Full-bleed photo at the top of a .card, e.g. service category imagery */
.card__photo {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: calc(-1 * clamp(1.6rem, 2.5vw, 2.2rem)) calc(-1 * clamp(1.5rem, 2.5vw, 2.1rem)) 1.3rem;
}
.card__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__photo img { transform: scale(1.05); }

/* ---- Service detail lists: a grid of category blocks, not one column
   of full-width rows - a page with 8 categories was 8 forced screens of
   scrolling before this. ------------------------------------------------ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.svc-block {
  border: 1px solid var(--line);
  clip-path: var(--clip);
  background: var(--surface);
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.svc-block:hover { border-color: var(--line-strong); background: var(--surface-2); }
.svc-block__grid { display: flex; flex-direction: column; gap: 1.2rem; }
.svc-block h3 { font-size: 1.3rem; margin-top: 0.9rem; }
.svc-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.4rem 1.5rem;
}
.svc-item { padding: 0.5rem 0; }
.svc-item h4 { font-size: 1.02rem; color: #fff; margin-bottom: 0.3rem; }
.svc-item p { font-size: 0.94rem; margin: 0; }
@media (max-width: 700px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ---- Product rows (full-width, not a 3-up grid - the copy is too long
   to stay legible squeezed into a third of the container) ------------- */
.product-row {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
}
.product-row:first-child { border-top: 0; padding-top: 0; }
.product-row h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1rem; }
.product-row p { font-size: 1rem; line-height: 1.75; }
@media (max-width: 700px) {
  .product-row { grid-template-columns: 1fr; }
}

/* ---- Blog -------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: var(--clip);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.post-card__thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid; place-items: center;
  background-color: var(--bg-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(ellipse 55% 55% at var(--tx, 50%) 128%, rgba(44, 150, 42, 0.16), transparent 60%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.post-card__thumb::before, .post-card__thumb::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent-line);
  pointer-events: none;
}
.post-card__thumb::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.post-card__thumb::after { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.post-card__thumb svg {
  width: 26px; height: 26px;
  color: var(--accent);
  opacity: 1;
  padding: 15px;
  box-sizing: content-box;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: rgba(44, 150, 42, 0.08);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.post-card:hover .post-card__thumb svg { transform: translateY(-3px); background: rgba(44, 150, 42, 0.14); }
.post-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card:nth-child(3n+1) .post-card__thumb { --tx: 22%; }
.post-card:nth-child(3n+2) .post-card__thumb { --tx: 50%; }
.post-card:nth-child(3n) .post-card__thumb { --tx: 78%; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35em 0.7em;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.tag:hover { background: var(--accent-soft); border-color: var(--accent); }
.post-card__body h3 { font-size: 1.18rem; line-height: 1.25; margin-bottom: 0.6rem; }
.post-card__body p { font-size: 0.93rem; color: var(--text-2); margin-bottom: 1.2rem; }
.post-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.post-card__date { font-size: 0.8rem; font-weight: 500; color: var(--muted); font-family: var(--font-mono); }

/* Article */
.article { padding-top: clamp(108px, 13vh, 150px); }
.article__header { max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.article__meta { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.article__title { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 1rem; }
.article__sub { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.article__hero {
  max-width: 900px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  clip-path: var(--clip-lg);
  border: 1px solid var(--line);
}
.article__hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article__body { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.article__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2em 0 0.7em; }
.article__body h3 { font-size: 1.35rem; margin: 1.8em 0 0.6em; }
.article__body p { margin-bottom: 1.35em; line-height: 1.8; }
.article__body ul, .article__body ol { margin-bottom: 1.35em; }
.article__body li { line-height: 1.7; }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body img { border-radius: var(--radius); margin: 2em 0; border: 1px solid var(--line); }
.article__body blockquote {
  margin: 2em 0; padding: 1.2em 1.6em;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}

.contact-detail { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-detail:first-child { border-top: 0; }
.contact-detail__ico {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.contact-detail__ico svg { width: 20px; height: 20px; }
.contact-detail h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-detail p, .contact-detail a { font-size: 0.95rem; color: var(--text-2); margin: 0; }
.contact-detail a:hover { color: var(--accent); }

/* ---- Accordion (careers roles etc.) ----------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0;
  background: none; border: 0; cursor: pointer;
  text-align: left; color: #fff; font: inherit;
  transition: color 0.2s var(--ease);
}
.acc-head h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 0; }
.acc-head .plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.acc-head .plus::before, .acc-head .plus::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.acc-head:hover h3 { color: var(--accent); }
.acc-head:hover .plus::before, .acc-head:hover .plus::after { background: #38b535; }
.acc-head .plus::before { top: 10px; left: 0; width: 22px; height: 2px; }
.acc-head .plus::after { top: 0; left: 10px; width: 2px; height: 22px; }
.acc-item.is-open .plus::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc-body__inner { padding: 0 0 1.6rem; color: var(--text-2); }
.acc-body__inner p:last-child { margin-bottom: 0; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(40px, 5vw, 64px) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-follow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.1rem 0 0.7rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { font-size: 0.95rem; color: var(--text-2); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--accent); }
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; color: var(--text-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { color: var(--accent); border-color: var(--accent-line); }
.social svg { width: 17px; height: 17px; }

/* ---- Reveal animation (only hides when JS is present) ------------------ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---- Misc -------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #05210c; padding: 0.7em 1.2em; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.breadcrumb { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.5em; opacity: 0.5; }

.pill-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill-nav a {
  font-size: 0.85rem; font-family: var(--font-mono);
  padding: 0.5em 1em; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-2); transition: all 0.2s var(--ease);
}
.pill-nav a:hover, .pill-nav a.is-active { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}

@media (max-width: 900px) {
  .grid--3, .grid--4, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__media { order: 0; }

  /* Mobile nav */
  .nav-toggle { display: grid; }
  .header-actions .btn:not(.nav-toggle) { display: none; }
  body.nav-open .site-header { background: var(--bg); border-bottom-color: var(--line); }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 1.1rem 0; font-size: 1.05rem; justify-content: space-between; }
  .nav__link svg { width: 1em; height: 1em; }
  .nav__dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; background: none; border: 0; box-shadow: none;
    padding: 0 0 1rem; display: none;
  }
  .nav__item.is-expanded .nav__dropdown { display: block; }
  .nav__item.is-expanded .nav__link svg { transform: rotate(180deg); }
  .nav__drop-link { padding: 0.7rem 0; }
  .nav-mobile-cta { display: block !important; margin-top: 1.5rem; }
  .nav-mobile-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .post-grid, .stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-col a { display: inline-block; padding-block: 0.4rem; }
  .footer-col li { margin-bottom: 0.25rem; }
  .social a { width: 44px; height: 44px; }
  .clickup-embed { min-height: 620px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}


