/* ============================================================
   nThreads Studios — Site Styles
   Brand: flat logo green + slate. Light default, dark via
   [data-theme="dark"].
   ============================================================ */

:root {
  --bg: #fafbf9;
  --bg-2: #f1f5ee;
  --surface: #ffffff;
  --surface-2: #f5f8f3;
  --border: rgba(45, 58, 48, 0.10);
  --border-strong: rgba(45, 58, 48, 0.18);
  --text: #2e3a42;          /* slate from wordmark */
  --text-dim: #55636d;
  --text-faint: #7d8b94;

  --brand: #62b944;         /* logo green */
  --brand-dark: #4a9a30;    /* hover / text-safe green */
  --brand-deep: #3c7f27;
  --accent: var(--brand-dark);
  --accent-dim: rgba(98, 185, 68, 0.12);
  --accent-ink: #ffffff;
  --link: #3c7f27;

  --radius: 16px;
  --radius-sm: 11px;
  --font-head: "Montserrat", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1180px;

  --shadow-card: 0 1px 2px rgba(46, 58, 66, 0.05), 0 6px 24px rgba(46, 58, 66, 0.06);
  --shadow-lift: 0 4px 10px rgba(46, 58, 66, 0.07), 0 18px 44px rgba(46, 58, 66, 0.12);
  --shadow-menu: 0 12px 44px rgba(46, 58, 66, 0.16);
  --btn-shadow: 0 6px 18px rgba(98, 185, 68, 0.35);

  --header-bg: rgba(250, 251, 249, 0.85);
  --error: #c62828;
  --note-fg: #8a6d00;
  --note-bg: rgba(255, 193, 7, 0.08);
  --plexus-alpha: 0.55;
}

[data-theme="dark"] {
  --bg: #1c2429;
  --bg-2: #212b31;
  --surface: #27333a;
  --surface-2: #2d3a42;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #edf2ee;
  --text-dim: #aebbb4;
  --text-faint: #7f8d90;

  --brand: #6fc551;
  --brand-dark: #83d465;
  --brand-deep: #62b944;
  --accent: #83d465;
  --accent-dim: rgba(111, 197, 81, 0.14);
  --accent-ink: #17240f;
  --link: #8fd873;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 26px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 6px 14px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-menu: 0 16px 56px rgba(0, 0, 0, 0.5);
  --btn-shadow: 0 6px 18px rgba(98, 185, 68, 0.25);

  --header-bg: rgba(28, 36, 41, 0.85);
  --error: #ff8a8a;
  --note-fg: #e8c96a;
  --note-bg: rgba(255, 193, 7, 0.07);
  --plexus-alpha: 0.7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.22rem; font-weight: 600; }

p { color: var(--text-dim); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 60px 0; }

/* Brand color text helper (was gradient; now flat brand green) */
.grad { color: var(--brand-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.lede { font-size: 1.16rem; max-width: 660px; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .eyebrow::after {
  content: "";
  width: 30px; height: 2px; border-radius: 2px; background: var(--brand);
}

.sec-head { margin-bottom: 50px; }
.sec-head .lede { margin-top: 16px; }

/* ---------- Icons (SVG sprite) ---------- */
.icon svg, .icon-inline svg {
  width: 26px; height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-inline svg { width: 21px; height: 21px; vertical-align: -4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.18s, border-color 0.18s, color 0.18s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(98, 185, 68, 0.42);
}
.btn-primary:active { transform: translateY(0); }
[data-theme="dark"] .btn-primary { color: #14210e; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.87rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(46, 58, 66, 0.07);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--text);
  text-decoration: none !important;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-mark-img { width: 42px; height: 42px; display: inline-block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 1px; }
.logo-name { font-weight: 700; }
.logo em.logo-studio { font-style: normal; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.42em; color: var(--brand); display: block; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links a.nav-item, .nav-links button.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 9px;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none !important;
  transition: color 0.15s, background 0.15s;
}
.nav-links a.nav-item:hover, .nav-links button.nav-item:hover,
.nav-links a.nav-item.active { color: var(--text); background: var(--accent-dim); }
.nav-item .caret { font-size: 0.6rem; transition: transform 0.18s; }
.has-menu.open .caret { transform: rotate(180deg); }

.nav-cta { margin-left: 10px; }

/* Theme toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-dim);
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  margin-left: auto;
  margin-right: 12px;
}
.theme-toggle:hover { color: var(--brand-dark); border-color: var(--brand); }
@media (min-width: 981px) { .theme-toggle { margin-left: 12px; order: 2; } .nav-links { order: 1; } }

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(880px, calc(100vw - 48px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-menu);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.2s ease;
}
.mega::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}
/* Invisible bridge over the gap between nav item and menu, so the
   cursor can travel down without the menu closing */
.mega::after {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.mega.mega-sm { width: min(420px, calc(100vw - 48px)); grid-template-columns: 1fr; }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.mega ul li a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 6px 0;
  text-decoration: none !important;
  transition: color 0.12s, padding-left 0.15s ease;
}
.mega ul li a:hover { color: var(--text); padding-left: 6px; }
.mega .mega-all {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--brand-dark);
  font-weight: 600;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-strong);
    padding: 12px 24px 24px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    box-shadow: var(--shadow-menu);
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-item, .nav-links button.nav-item {
    width: 100%;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .mega {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 6px 12px 14px;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .mega::before { display: none; }
  .has-menu.open .mega { display: grid; transform: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero with node-network canvas ---------- */
.hero {
  position: relative;
  padding: 90px 0 104px;
  overflow: hidden;
}
.hero-page { padding: 92px 0 68px; }
.threads-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--plexus-alpha);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 80% 15%, rgba(98, 185, 68, 0.09), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 820px; margin-bottom: 24px; }
.hero .lede { margin-bottom: 38px; font-size: 1.2rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero entrance animation */
.hero .eyebrow, .hero h1, .hero .lede, .hero .hero-ctas {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.7s cubic-bezier(.25,.7,.3,1) forwards;
}
.hero h1 { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.18s; }
.hero .hero-ctas { animation-delay: 0.28s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-faint);
  opacity: 0;
  animation: rise 0.7s cubic-bezier(.25,.7,.3,1) 0.4s forwards;
}

/* Hero trust bar */
.hero-trust {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-trust-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-left: 2px solid var(--brand);
  padding-left: 8px;
  margin-bottom: 18px;
}
.hero-trust-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trust-item .icon svg { width: 26px; height: 26px; color: var(--brand); }
.hero-trust-item strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.hero-trust-item span { display: block; font-size: 0.74rem; color: var(--text-faint); margin-top: 2px; }
.hero-trust-div { width: 1px; height: 34px; background: var(--border-strong); margin: 0 22px; flex-shrink: 0; }
@media (max-width: 700px) {
  .hero-trust-items { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-trust-div { display: none; }
}

/* Tech stack strip */
.tech-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 30px 0;
}
.tech-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.chip {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.chip:hover { color: var(--brand-dark); border-color: var(--brand); transform: translateY(-2px); }
.tech-note {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 10px;
}

/* Stats strip with counters */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 38px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  justify-content: center;
  align-items: center;
}
.trust-item {
  color: var(--text-faint);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.trust-item strong {
  color: var(--brand-dark);
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
a.card { text-decoration: none !important; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(98, 185, 68, 0.4); }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}
.card:hover .icon { transform: scale(1.08); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; flex-grow: 1; }
.card .card-link {
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
  font-family: var(--font-head);
  transition: padding-left 0.2s ease;
}
.card:hover .card-link { padding-left: 5px; }
.card ul.svc-list { margin-top: 14px; }
.card ul.svc-list li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding: 5px 0 5px 22px;
  position: relative;
}
.card ul.svc-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-dark);
  font-size: 0.8rem;
}

/* ---------- Service detail sections ---------- */
.svc-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.svc-section:first-of-type { border-top: none; }
.svc-section .svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 860px) { .svc-section .svc-grid { grid-template-columns: 1fr; gap: 24px; } }
.svc-section h2 { margin-bottom: 14px; }
.svc-benefit {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.svc-points li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text-dim);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--border);
}
.svc-points li:last-child { border-bottom: none; }
.svc-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sticky sub-nav for category pages */
.subnav {
  position: sticky;
  top: 74px;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
}
.subnav .container { display: flex; gap: 4px; padding: 0 24px; }
.subnav a {
  color: var(--text-faint);
  font-size: 0.87rem;
  font-weight: 500;
  padding: 15px 14px;
  text-decoration: none !important;
  position: relative;
}
.subnav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.subnav a:hover { color: var(--text); }
.subnav a:hover::after { transform: scaleX(1); }

/* ---------- How We Work (card grid) ---------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 40px;
}
/* dashed connector line through all badge centres */
.how-steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 10%;
  right: 10%;
  height: 0;
  border-top: 1.5px dashed var(--brand);
  opacity: 0.45;
  z-index: 0;
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}
.how-step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  color: var(--brand-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.how-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-shadow: var(--shadow-card);
  flex-grow: 1;
}
.how-step-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 4px;
}
.how-step-icon .icon svg { width: 28px; height: 28px; color: var(--brand); }
.how-step-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin: 0; }
.how-step-card p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.55; margin: 0; }
.how-tagline {
  text-align: center;
  font-size: 0.94rem;
  color: var(--text-faint);
  line-height: 1.85;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .how-steps::before { display: none; }
  .how-step:last-child { grid-column: 1 / -1; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 500px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-step:last-child { grid-column: auto; max-width: none; margin: 0; }
}

/* ---------- Case studies ---------- */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.case-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.case-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.case-banner.cb-1 { background: linear-gradient(125deg, #4a9a30, #62b944); }
.case-banner.cb-2 { background: linear-gradient(125deg, #2e3a42, #4c5e6b); }
.case-banner.cb-3 { background: linear-gradient(125deg, #2c7a56, #3ba97e); }
.case-body { padding: 28px; }
.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-deep);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
  margin-right: 6px;
}
[data-theme="dark"] .case-tag { color: var(--brand-dark); }
.case-body h3 { margin-bottom: 10px; }
.case-body p { font-size: 0.94rem; }
.case-metrics {
  display: flex;
  gap: 26px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.case-metrics div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--brand-dark);
}
.case-metrics div span { font-size: 0.78rem; color: var(--text-faint); }

/* Full case study */
.case-full { max-width: 800px; }
.case-full h2 { margin: 40px 0 14px; }
.case-full p + p { margin-top: 14px; }
.placeholder-note {
  background: var(--note-bg);
  border: 1px dashed rgba(255, 193, 7, 0.5);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--note-fg);
  margin: 24px 0;
}

/* ---------- Quote / testimonial ---------- */
.quote-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 38px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.quote-block::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand);
}
.grid .quote-block { padding: 30px 28px; }
.grid .quote-block blockquote { font-size: 1.02rem; font-weight: 500; }
.quote-block blockquote {
  font-family: var(--font-head);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 500;
}
.quote-block cite { font-style: normal; color: var(--text-faint); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 0%, rgba(98, 185, 68, 0.10), transparent 65%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 13px 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--text-faint); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside .card { margin-bottom: 18px; }
.contact-aside .card p { font-size: 0.92rem; }

.form-status { margin-top: 16px; font-size: 0.92rem; display: none; }
.form-status.error { display: block; color: var(--error); }
.form-status.ok { display: block; color: var(--brand-dark); }

/* ---------- Two-tier banner ---------- */
.tier-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.94rem;
  box-shadow: var(--shadow-card);
}
.tier-note .icon-inline { color: var(--brand-dark); line-height: 1.4; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 72px 0 32px;
}
[data-theme="dark"] .site-footer { background: var(--bg-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a { color: var(--text-dim); font-size: 0.92rem; text-decoration: none !important; transition: color 0.12s; }
.footer-grid ul li a:hover { color: var(--brand-dark); }
.footer-about p { font-size: 0.92rem; margin-top: 14px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Cal.com embed ---------- */
.cal-embed {
  min-height: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-menu);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  animation: rise 0.5s cubic-bezier(.25,.7,.3,1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.88rem; margin: 0; flex: 1 1 100%; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; }

/* Scroll reveal with stagger support */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.25,.7,.3,1), transform 0.6s cubic-bezier(.25,.7,.3,1);
  transition-delay: var(--stagger, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .eyebrow, .hero h1, .hero .lede, .hero .hero-ctas {
    opacity: 1; transform: none; transition: none; animation: none;
  }
  .threads-canvas { display: none; }
  html { scroll-behavior: auto; }
}
