/*
 * GENERATED by build-legacy-css.js from assets/style.css (old "sd-*" layer).
 * Repaints the old page components with design-F tokens. Load after f.css.
 * Edit the overrides at the bottom, not the generated part.
 */
/* ============================================================
   NEW UI 2026 REDESIGN — Homepage component system
   Signature alternating dark / light sections, card-based.
   All classes are prefixed .sd- to avoid clashing with the
   existing shared styles used by other pages.
   ============================================================ */



/* --- Header CTA button (added to shared header) --- */



/* --- Full-bleed section framework --- */
.sd-section {
  width: 100%;
  padding: 80px 24px;
}
.sd-section--dark {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sd-section--light {
  background: var(--bg-alt);
  color: var(--text-strong);
  background-image: none;
}
.sd-section--light-2 { background: var(--sd-light-bg-2); }
.sd-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sd-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--crimson);
  margin: 0 0 10px;
}
.sd-section-title {
  text-align: center;
  font-size: 2.2em;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  border: none;
  padding: 0;
}
.sd-section--light .sd-section-title { color: var(--text-strong); }
.sd-section--dark .sd-section-title { color: var(--surface-inset); }
.sd-section-title .accent { color: var(--crimson); }
.sd-title-rule {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--crimson);
  margin: 0 auto 44px;
}
.sd-section-sub {
  text-align: center;
  max-width: 640px;
  margin: -26px auto 44px;
  font-size: 1.05em;
  line-height: 1.7;
}
.sd-section--light .sd-section-sub { color: var(--muted); }
.sd-section--dark .sd-section-sub { color: var(--muted); }

/* --- HERO --- */
.sd-hero {
  width: 100%;
  background: transparent;
  padding: 150px 24px 80px;
  border-bottom: 1px solid var(--border);
}
.sd-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.sd-hero h1 {
  font-size: 3.1em;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--surface-inset);
  margin: 0 0 22px;
}
.sd-hero h1 .accent { color: var(--crimson-text); }
.sd-hero-lead {
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--border-strong);
  margin: 0 0 30px;
  max-width: 560px;
}
.sd-hero-lead strong { color: var(--crimson-text); }

.sd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 34px;
}
.sd-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sd-badge-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--border);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sd-badge-text { line-height: 1.25; }
.sd-badge-text strong {
  display: block;
  color: var(--surface-inset);
  font-size: 0.98em;
  font-weight: 700;
}
.sd-badge-text span {
  color: var(--muted);
  font-size: 0.82em;
}

.sd-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.sd-btn--primary {
  background: var(--crimson);
  color: var(--text-strong);
  box-shadow: none;
}
.sd-btn--primary:hover {
  background: var(--crimson);
  color: var(--text-strong);
  transform: translateY(-2px);
  box-shadow: none;
}
.sd-btn--ghost {
  background: transparent;
  color: var(--border);
  border-color: var(--text-soft);
}
.sd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  border-color: var(--crimson-text);
}
.sd-btn--light {
  background: var(--crimson);
  color: var(--text-strong);
  box-shadow: none;
}
.sd-btn--light:hover { background: var(--crimson); color: var(--text-strong); transform: translateY(-2px); }

/* Ghost buttons on light sections need dark/blue text so they don't blend in */
.sd-section--light .sd-btn--ghost {
  color: var(--crimson);
  border-color: var(--crimson);
}
.sd-section--light .sd-btn--ghost:hover {
  background: var(--crimson);
  color: var(--text-strong);
  border-color: var(--crimson);
}

/* --- FAQ accordion --- */
.sd-faq {
  max-width: 820px;
  margin: 0 auto;
}
.sd-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--text-strong);
  margin-bottom: 12px;
  overflow: hidden;
}
.sd-faq-item + .sd-faq-item { margin-top: 0; }
.sd-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02em;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}
.sd-faq-item summary::-webkit-details-marker { display: none; }
.sd-faq-item summary:hover { color: var(--crimson); }
.sd-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4em;
  font-weight: 400;
  line-height: 1;
  color: var(--crimson);
  transition: transform 0.2s ease;
}
.sd-faq-item[open] summary::after {
  content: "\2212"; /* minus */
}
.sd-faq-item[open] summary { color: var(--crimson); }
.sd-faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.7;
}
.sd-faq-answer p { margin: 0; }

/* --- Hero transform visual (Complex -> Stable) --- */
.sd-transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.sd-tcard {
  border-radius: 16px;
  padding: 22px 20px;
  min-height: 240px;
  border: 1px solid var(--border);
}
.sd-tcard-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}
.sd-tcard--bad {
  background: transparent;
}
.sd-tcard--bad .sd-tcard-label { color: var(--crimson-text); }
.sd-chaos {
  position: relative;
  height: 170px;
}
.sd-chaos span {
  position: absolute;
  font-size: 0.62em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 7px;
  white-space: nowrap;
}
.sd-chaos span:nth-child(1) { top: 6%;  left: 46%; }
.sd-chaos span:nth-child(2) { top: 34%; left: 4%; }
.sd-chaos span:nth-child(3) { top: 40%; right: 2%; }
.sd-chaos span:nth-child(4) { top: 66%; left: 20%; }
.sd-chaos span:nth-child(5) { top: 82%; right: 14%; }
.sd-chaos svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd-tcard--good {
  background: transparent;
  border-color: var(--border);
}
.sd-tcard--good .sd-tcard-label { color: var(--ok); }
.sd-good-list { list-style: none; margin: 0; padding: 0; }
.sd-good-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 0.86em;
  padding: 7px 0;
  border: none;
}
.sd-good-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--surface-inset);
  font-size: 0.7em;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sd-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: none;
}

/* --- Trust strip --- */
.sd-trust {
  background: var(--sd-light-bg-2);
  width: 100%;
  padding: 34px 24px;
}
.sd-trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.sd-trust-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 18px;
}
.sd-trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.sd-trust-items span {
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.98em;
  padding: 8px 18px;
  background: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* --- Stat cards --- */
.sd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.sd-stat-card {
  background: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: all 0.2s ease;
}
.sd-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--border);
}
.sd-stat-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--surface-inset);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.sd-stat-num {
  font-size: 1.9em;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sd-stat-label {
  color: var(--muted);
  font-size: 0.92em;
  margin-top: 6px;
  line-height: 1.4;
}

/* --- How we can help cards --- */
.sd-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.sd-help-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sd-help-card {
  background: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  transition: all 0.2s ease;
}
.sd-help-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--border);
}
.sd-help-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--surface-inset);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.sd-help-card h3 {
  color: var(--text-strong);
  font-size: 1.18em;
  font-weight: 700;
  margin: 0 0 10px;
}
.sd-help-card p {
  color: var(--muted);
  font-size: 0.94em;
  line-height: 1.65;
  margin: 0 0 16px;
}
.sd-help-link {
  color: var(--crimson);
  font-weight: 600;
  font-size: 0.92em;
  text-decoration: none;
}
.sd-help-link:hover { color: var(--crimson); }

/* --- Case study cards --- */
.sd-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}
.sd-case-card {
  background: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.sd-case-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}
.sd-case-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.sd-case-badge {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--text-strong);
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.sd-case-head h3 {
  color: var(--text-strong);
  font-size: 1.08em;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.sd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sd-tag {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-inset);
  border-radius: 5px;
  padding: 3px 9px;
}
.sd-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
}
.sd-metric-col .m-val { font-size: 1.5em; font-weight: 800; line-height: 1; }
.sd-metric-col .m-val.before { color: var(--crimson-text); }
.sd-metric-col .m-val.after { color: var(--ok); }
.sd-metric-col .m-lbl { font-size: 0.76em; color: var(--muted); margin-top: 4px; }
.sd-metric-arrow { color: var(--crimson); font-size: 1.2em; }
.sd-case-card p {
  color: var(--muted);
  font-size: 0.92em;
  line-height: 1.6;
  margin: 0 0 16px;
}
.sd-case-link {
  margin-top: auto;
  color: var(--crimson);
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
}

/* --- Why choose: comparison --- */
.sd-why-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.sd-compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.sd-compare-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.sd-compare-row:last-child { border-bottom: none; }
.sd-compare-head {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 16px 22px;
  background: rgba(255,255,255,0.02);
}
.sd-compare-head.them { color: var(--muted); }
.sd-compare-head.us { color: var(--ok); text-align: right; }
.sd-c-them, .sd-c-us {
  padding: 15px 22px;
  font-size: 0.92em;
  line-height: 1.4;
}
.sd-c-them { color: var(--muted); }
.sd-c-us { color: var(--border); text-align: right; font-weight: 500; }
.sd-c-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson-text);
  font-size: 1.1em;
}
.sd-why-cta {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sd-why-cta-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.sd-why-cta h3 { color: var(--surface-inset); font-size: 1.5em; margin: 0 0 12px; font-weight: 800; }
.sd-why-cta p { color: var(--muted); font-size: 0.96em; line-height: 1.6; margin: 0 0 22px; }

/* --- Approach timeline --- */
.sd-approach {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.sd-approach::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: transparent;
  z-index: 0;
}
.sd-step { text-align: center; position: relative; z-index: 1; }
.sd-step-num {
  width: 50px; height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--text-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1em;
  box-shadow: none;
}
.sd-section--dark .sd-step-num { box-shadow: none; }
.sd-step h4 { margin: 0 0 8px; font-size: 1.02em; font-weight: 700; }
.sd-section--light .sd-step h4 { color: var(--text-strong); }
.sd-step p { font-size: 0.86em; line-height: 1.55; margin: 0; }
.sd-section--light .sd-step p { color: var(--muted); }

/* --- New footer --- */
.sd-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
  color: var(--muted);
}
.sd-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
}
.sd-footer h4 {
  color: var(--surface-inset);
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}
.sd-footer p { font-size: 0.92em; line-height: 1.7; margin: 0 0 14px; }
.sd-footer a { color: var(--muted); text-decoration: none; }
.sd-footer a:hover { color: var(--crimson-text); }
.sd-footer-brand img { height: 40px; margin-bottom: 16px; }
.sd-footer-contact li {
  list-style: none;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92em;
}
.sd-footer-contact { padding: 0; margin: 0; }
.sd-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85em;
  color: var(--muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .sd-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .sd-hero h1 { font-size: 2.4em; }
  .sd-why-grid { grid-template-columns: 1fr; }
  .sd-approach { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .sd-approach::before { display: none; }
  .sd-footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {

  .sd-hero { padding: 120px 18px 60px; }
  .sd-hero h1 { font-size: 2em; }
  .sd-section { padding: 56px 18px; }
  .sd-section-title { font-size: 1.7em; }
  .sd-compare-head, .sd-c-them, .sd-c-us { padding: 12px 14px; font-size: 0.82em; }
}
@media (max-width: 520px) {
  .sd-hero h1 { font-size: 1.7em; }
  .sd-hero-badges { gap: 16px; }
  .sd-approach { grid-template-columns: 1fr; }
  .sd-transform { grid-template-columns: 1fr; }
  .sd-transform .sd-arrow { transform: rotate(90deg); margin: 0 auto; }
}
/* Show nav CTA inside mobile drawer */
@media (max-width: 768px) {

}

/* ---------- Inner-page helpers (About / Solutions / Portfolio / Contact) ---------- */
.sd-page-hero {
  width: 100%;
  background: transparent;
  padding: 150px 24px 70px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.sd-page-hero-inner { max-width: 860px; margin: 0 auto; }
.sd-page-hero h1 {
  font-size: 2.8em;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--surface-inset);
  margin: 0 0 18px;
}
.sd-page-hero h1 .accent { color: var(--crimson-text); }
.sd-page-hero-lead {
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--border-strong);
  margin: 0 auto;
  max-width: 640px;
}
.sd-page-hero .sd-hero-cta { justify-content: center; margin-top: 28px; }

/* Content panel (white card on light sections, dark card on dark sections) */
.sd-panel {
  border-radius: 16px;
  padding: 34px 36px;
  margin: 0 0 24px;
}
.sd-section--light .sd-panel {
  background: var(--text-strong);
  border: 1px solid var(--border);
  box-shadow: none;
}
.sd-section--dark .sd-panel {
  background: var(--surface);
  border: 1px solid var(--border);
}
.sd-panel h2, .sd-panel h3 {
  margin-top: 0;
  border: none;
  padding: 0;
}
.sd-section--light .sd-panel h2 { color: var(--text-strong); font-size: 1.5em; }
.sd-section--light .sd-panel h3 { color: var(--text-strong); }
.sd-section--light .sd-panel p,
.sd-section--light .sd-panel li { color: var(--muted); }
.sd-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.sd-panel-grid .sd-panel { margin: 0; }

/* Icon feature card (Solutions grid, mirrors home help cards but reusable) */
.sd-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* CTA band (used at the bottom of inner pages) */
.sd-cta-band {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.sd-cta-band h2 {
  color: var(--surface-inset);
  border: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 1.9em;
}
.sd-cta-band p { color: var(--muted); font-size: 1.05em; margin: 0 0 26px; }

/* Portfolio filter tabs */
.sd-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.sd-filter button {
  background: var(--text-strong);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.sd-filter button:hover { border-color: var(--crimson); color: var(--crimson); }
.sd-filter button.active { background: var(--crimson); border-color: var(--crimson); color: var(--text-strong); }

@media (max-width: 768px) {
  .sd-page-hero { padding: 120px 18px 50px; }
  .sd-page-hero h1 { font-size: 2em; }
  .sd-panel { padding: 26px 22px; }
  .sd-cta-band { padding: 36px 22px; }
}

/* ---------- Dark card system (Solutions / Portfolio / Blog inner pages) ---------- */
.sd-dcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sd-dcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.sd-dcard:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: none;
}
.sd-dicon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--border);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.sd-dcard h3 { color: var(--surface-inset); font-size: 1.18em; font-weight: 700; margin: 0 0 10px; }
.sd-dcard p { color: var(--muted); font-size: 0.94em; line-height: 1.65; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sd-dcard .sd-help-link { margin-top: auto; }

/* Dark tags */
.sd-tag--dark { background: rgba(148, 163, 184, 0.12); color: var(--border-strong); }

/* Portfolio card thumbnail preview (stylized app window) */
.sd-thumb {
  height: 150px;
  border-radius: 10px;
  margin-bottom: 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(148,163,184,0.06) 22px 23px),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.sd-thumb::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  box-shadow: none;
}
.sd-thumb-icon { position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.sd-cat {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--crimson-text);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Dark filter tabs */
.sd-filter--dark button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.sd-filter--dark button:hover { border-color: var(--crimson-text); color: var(--crimson-text); }
.sd-filter--dark button.active { background: var(--crimson); border-color: var(--crimson); color: var(--text-strong); }

/* Line clamps to keep dark cards even */
.sd-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sd-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog post card (dark) */
.sd-blog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.sd-blog-date { color: var(--muted); font-size: 0.82em; }

/* 3-col package grid on dark */
.sd-pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

@media (max-width: 900px) {
  .sd-dcard-grid, .sd-pkg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sd-dcard-grid, .sd-pkg-grid { grid-template-columns: 1fr; }
}

/* Forced 2-column grid (portfolio expertise, solutions packages) — collapses to 1 col on mobile */
.sd-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .sd-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Case study article pages ---------- */
.sd-cs-hero {
  width: 100%;
  background: transparent;
  padding: 132px 24px 48px;
  border-bottom: 1px solid var(--border);
}
.sd-cs-hero-inner { max-width: 880px; margin: 0 auto; }
.sd-breadcrumb { margin-bottom: 20px; }
.sd-breadcrumb a { color: var(--muted); font-size: 0.9em; text-decoration: none; }
.sd-breadcrumb a:hover { color: var(--crimson-text); }
.sd-cs-hero h1 {
  font-size: 2.5em;
  line-height: 1.14;
  color: var(--surface-inset);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 16px;
}
.sd-cs-lead { color: var(--border-strong); font-size: 1.12em; line-height: 1.7; margin: 0; }
.sd-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.sd-fact .k {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson-text);
  font-weight: 700;
  margin-bottom: 5px;
}
.sd-fact .v { color: var(--border); font-size: 0.95em; line-height: 1.4; }

.sd-article { max-width: 820px; margin: 0 auto; }
.sd-article h2 {
  font-size: 1.5em;
  color: var(--surface-inset);
  border: none;
  padding: 0;
  margin: 40px 0 14px;
  font-weight: 700;
}
.sd-article h2:first-child { margin-top: 0; }
.sd-article p, .sd-article li { color: var(--border-strong); line-height: 1.85; font-size: 1.02em; }
.sd-article ul { padding-left: 22px; margin: 0 0 20px; }
.sd-article li { margin: 8px 0; }
.sd-article li::marker { color: var(--crimson-text); }
.sd-article strong { color: var(--surface-inset); }
.sd-article .sd-metric { justify-content: flex-start; margin: 26px 0; }
.sd-article a { color: var(--crimson-text); }

@media (max-width: 768px) {
  .sd-cs-hero { padding: 116px 18px 40px; }
  .sd-cs-hero h1 { font-size: 1.9em; }
}

/* Old token names still used by page-level <style> blocks (demos, pricing tables) */
:root, :root[data-theme="light"] {
  --sd-bg: var(--bg); --sd-card: var(--surface); --sd-border: var(--border);
  --sd-blue: var(--crimson); --sd-blue-hover: #B8323A; --sd-blue-light: var(--crimson-text);
  --sd-green: var(--ok); --sd-green-light: var(--ok);
  --sd-text: var(--text); --sd-muted: var(--muted);
  --sd-light-bg: var(--bg-alt); --sd-ink: var(--text-strong); --sd-ink-muted: var(--muted);
}

/* ===================== F overrides for the legacy layer ===================== */
.sd-section { background: var(--bg); color: var(--text); padding-top: 104px; padding-bottom: 104px; }
.sd-section--light, .sd-section--light-2 { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.sd-section--dark { background: var(--bg); }
.sd-inner { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.sd-eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--crimson-text); background: none; border: 0; padding: 0; }
.sd-section-title, .sd-section--light .sd-section-title, .sd-section--dark .sd-section-title { font-family: var(--font); font-weight: 600; letter-spacing: -0.03em; color: var(--text-strong); }
.sd-section-title .accent, .sd-page-hero h1 .accent, .sd-hero h1 .accent, .sd-cs-hero h1 .accent { color: var(--dim); background: none; -webkit-text-fill-color: currentColor; }
.sd-title-rule { display: none; }
.sd-section-title + .sd-title-rule + .sd-section-sub, .sd-section-title + .sd-section-sub { margin-top: 0; }
.sd-section-sub, .sd-section--light .sd-section-sub, .sd-section--dark .sd-section-sub { color: var(--muted); }

.sd-page-hero, .sd-cs-hero, .sd-hero {
  background: radial-gradient(ellipse 60% 55% at 70% 0%, var(--glow-crimson), transparent 70%), radial-gradient(ellipse 50% 50% at 20% 10%, var(--glow-system), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--border-soft); color: var(--text);
}
.sd-page-hero h1, .sd-cs-hero h1, .sd-hero h1 { font-family: var(--font); font-weight: 600; letter-spacing: -0.035em; color: var(--text-strong); }
.sd-page-hero-lead, .sd-cs-lead, .sd-hero-lead { color: var(--muted); }

.sd-btn { font: 500 16px/1.2 var(--font); border-radius: var(--radius-sm); min-height: 46px; text-transform: none; letter-spacing: 0; }
.sd-btn--primary { background: var(--crimson); color: #FFFFFF; border-color: var(--crimson); }
.sd-btn--primary:hover { background: #B8323A; color: #FFFFFF; }
.sd-btn--ghost, .sd-section--light .sd-btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.sd-btn--ghost:hover, .sd-section--light .sd-btn--ghost:hover { border-color: var(--faint); color: var(--text-strong); background: var(--surface-2); }
.sd-btn--light { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.sd-btn--light:hover { color: var(--bg); opacity: .9; }

.sd-panel, .sd-section--light .sd-panel, .sd-section--dark .sd-panel,
.sd-dcard, .sd-help-card, .sd-case-card, .sd-stat-card, .sd-tcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
}
.sd-dcard:hover, .sd-help-card:hover, .sd-case-card:hover, .sd-stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.sd-panel h2, .sd-panel h3, .sd-section--light .sd-panel h2, .sd-section--light .sd-panel h3, .sd-dcard h3, .sd-help-card h3, .sd-case-head h3 { color: var(--text-strong); font-family: var(--font); letter-spacing: -0.02em; }
.sd-panel p, .sd-panel li, .sd-section--light .sd-panel li, .sd-dcard p, .sd-help-card p, .sd-case-card p { color: var(--muted); }
.sd-dicon, .sd-help-icon, .sd-stat-icon, .sd-thumb-icon { background: var(--surface-inset); border: 1px solid var(--border); color: var(--system); }
.sd-thumb { background: var(--surface-inset); border-bottom: 1px solid var(--border-soft); }
.sd-thumb::before { display: none; }
.sd-help-link, .sd-case-link { color: var(--text-strong); }
.sd-help-link:hover, .sd-case-link:hover { color: var(--crimson-text); }

.sd-tag, .sd-tag--dark { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface-inset); border: 1px solid var(--border); border-radius: 6px; }
.sd-cat, .sd-case-badge { font-family: var(--mono); font-size: 12px; color: var(--crimson-text); background: var(--crimson-soft); border: 1px solid var(--crimson-line); }

.sd-faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
.sd-faq-item + .sd-faq-item { margin-top: 0; }
.sd-faq-item summary { color: var(--text-strong); font-weight: 500; padding-left: 0; padding-right: 0; }
.sd-faq-item summary::after { color: var(--faint); background: none; border: 0; }
.sd-faq-answer, .sd-faq-answer p { color: var(--muted); padding-left: 0; padding-right: 0; }

.sd-cta-band { background: radial-gradient(ellipse 50% 70% at 50% 100%, var(--glow-crimson), var(--glow-system) 45%, transparent 75%), var(--bg); border: 0; border-top: 1px solid var(--border-soft); border-radius: 0; color: var(--text); }
.sd-cta-band h2 { color: var(--text-strong); font-family: var(--font); letter-spacing: -0.035em; font-weight: 600; }
.sd-cta-band p { color: var(--muted); }

.sd-stat-num, .sd-metric-col .m-val { color: var(--text-strong); font-family: var(--font); letter-spacing: -0.03em; }
.sd-metric-col .m-val.after { color: var(--ok); }
.sd-metric-col .m-val.before { color: var(--muted); }
.sd-stat-label, .sd-metric-col .m-lbl { color: var(--faint); }
.sd-step-num, .sd-section--dark .sd-step-num { background: var(--surface); border: 1px solid var(--border-strong); color: var(--crimson-text); font-family: var(--mono); }
.sd-step h4, .sd-section--light .sd-step h4 { color: var(--text-strong); }
.sd-step p, .sd-section--light .sd-step p { color: var(--muted); }
.sd-approach::before { background: var(--border); }

.sd-filter button, .sd-filter--dark button { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; font: 500 14px/1.2 var(--font); min-height: 40px; }
.sd-filter button:hover, .sd-filter--dark button:hover { color: var(--text-strong); border-color: var(--border-strong); background: transparent; }
.sd-filter button.active, .sd-filter--dark button.active { background: var(--text-strong); border-color: var(--text-strong); color: var(--bg); }

.sd-breadcrumb, .sd-breadcrumb a { color: var(--faint); }
.sd-breadcrumb a:hover { color: var(--text-strong); }
.sd-fact, .sd-facts { border-color: var(--border); background: var(--surface); }
.sd-fact .k { color: var(--faint); font-family: var(--mono); }
.sd-fact .v { color: var(--text-strong); }
.sd-article, .sd-article p, .sd-article li { color: var(--text-soft); }
.sd-article h2 { color: var(--text-strong); font-family: var(--font); letter-spacing: -0.02em; border: 0; }
.sd-article strong { color: var(--text-strong); }
.sd-article a { color: var(--text-strong); text-decoration-color: var(--crimson-text); }
.sd-good-list li::before { color: var(--ok); }
.sd-compare, .sd-compare-row { border-color: var(--border); background: var(--surface); }
.sd-c-us { color: var(--text-strong); }
.sd-c-them { color: var(--muted); }

/* Contact page form (old classes) */
.contact-form, .contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; color: var(--text); }
.form-group { display: grid; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-inset); color: var(--text); font: 400 16px/1.4 var(--font);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--system); outline-offset: 1px; border-color: transparent; }
.form-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border: 0; border-radius: var(--radius-sm); background: var(--crimson); color: #FFFFFF; font: 500 16px/1.2 var(--font); cursor: pointer; }
.form-submit:hover { background: #B8323A; }

/* Old entrance animation: content stays visible (no JS-dependent hiding) */
.animate-on-scroll { opacity: 1; transform: none; }

/* Hidden stand-ins for ids that old page scripts still look up */
#sd-legacy-stubs { display: none !important; }
