/* =========================================
  Core - Tokens & Base
========================================= */
:root {
  --red: #c72d2d;
  --red-light: #e84545;
  --dark: #f8fafc;
  --dark2: #f1f5f9;
  --dark3: #e2e8f0;
  --slate: #475569;
  --light: #334155;
  --white: #0f172a;
  --accent: #0ea5e9;
  --teal: #14b8a6;
  --surface-015: rgba(15, 23, 42, 0.015);
  --surface-02: rgba(15, 23, 42, 0.02);
  --surface-03: rgba(15, 23, 42, 0.03);
  --surface-035: rgba(15, 23, 42, 0.035);
  --surface-04: rgba(15, 23, 42, 0.04);
  --surface-05: rgba(15, 23, 42, 0.05);
  --surface-06: rgba(15, 23, 42, 0.06);
  --surface-07: rgba(15, 23, 42, 0.07);
  --surface-08: rgba(15, 23, 42, 0.08);
  --surface-10: rgba(15, 23, 42, 0.1);
  --surface-12: rgba(15, 23, 42, 0.12);
  --surface-15: rgba(15, 23, 42, 0.15);
  --surface-20: rgba(15, 23, 42, 0.2);
  --surface-35: rgba(15, 23, 42, 0.35);
  --nav-scrim: rgba(248, 250, 252, 0.92);
  --nav-scrim-strong: rgba(248, 250, 252, 0.82);
  --nav-mobile-bg: rgba(248, 250, 252, 0.97);
  --hero-overlay-stop: rgba(248, 250, 252, 0);
  --elevated-panel: rgba(255, 255, 255, 0.88);
  --modal-overlay: rgba(15, 23, 42, 0.72);
  --primary-btn-bg: var(--red);
  --primary-btn-text: #fff;
  --primary-btn-border: transparent;
  --primary-btn-shadow: 0 0 30px rgba(199, 45, 45, 0.25);
  --primary-btn-hover-bg: var(--red);
  --primary-btn-hover-shadow: 0 8px 40px rgba(199, 45, 45, 0.45);
  --chip-bg: rgba(2, 132, 199, 0.14);
  --chip-text: #0b4f7a;
  --chip-border: rgba(2, 132, 199, 0.3);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.dark,
body.dark {
  --dark: #0a0e17;
  --dark2: #111827;
  --dark3: #1a2035;
  --slate: #94a3b8;
  --light: #e2e8f0;
  --white: #f8fafc;
  --surface-015: rgba(255, 255, 255, 0.015);
  --surface-02: rgba(255, 255, 255, 0.02);
  --surface-03: rgba(255, 255, 255, 0.03);
  --surface-035: rgba(255, 255, 255, 0.035);
  --surface-04: rgba(255, 255, 255, 0.04);
  --surface-05: rgba(255, 255, 255, 0.05);
  --surface-06: rgba(255, 255, 255, 0.06);
  --surface-07: rgba(255, 255, 255, 0.07);
  --surface-08: rgba(255, 255, 255, 0.08);
  --surface-10: rgba(255, 255, 255, 0.1);
  --surface-12: rgba(255, 255, 255, 0.12);
  --surface-15: rgba(255, 255, 255, 0.15);
  --surface-20: rgba(255, 255, 255, 0.2);
  --surface-35: rgba(255, 255, 255, 0.35);
  --nav-scrim: rgba(10, 14, 23, 0.92);
  --nav-scrim-strong: rgba(10, 14, 23, 0.82);
  --nav-mobile-bg: rgba(10, 14, 23, 0.97);
  --hero-overlay-stop: rgba(10, 14, 23, 0);
  --elevated-panel: rgba(17, 24, 39, 0.85);
  --modal-overlay: rgba(2, 6, 23, 0.75);
  --primary-btn-bg: var(--red);
  --primary-btn-text: #fff;
  --primary-btn-border: transparent;
  --primary-btn-shadow: 0 0 30px rgba(199, 45, 45, 0.25);
  --primary-btn-hover-bg: var(--red);
  --primary-btn-hover-shadow: 0 8px 40px rgba(199, 45, 45, 0.45);
  --chip-bg: rgba(14, 165, 233, 0.14);
  --chip-text: #7dd3fc;
  --chip-border: rgba(14, 165, 233, 0.28);
}

* {
  box-sizing: border-box;
}

body.template-homepage,
body.template-services-listing-page,
body.template-service-page,
body.template-industry-page,
body.template-project-list-page,
body.template-project-detail-page,
body.template-case-study-listing-page,
body.template-case-study-page,
body.template-blog-listing-page,
body.template-blog-page,
body.template-article-listing-page,
body.template-article-detail-page,
body.template-article-page,
body.template-about-us-page,
body.template-contact-page {
  margin: 0;
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.template-homepage a,
body.template-services-listing-page a,
body.template-service-page a,
body.template-industry-page a,
body.template-project-list-page a,
body.template-project-detail-page a,
body.template-case-study-listing-page a,
body.template-case-study-page a,
body.template-blog-listing-page a,
body.template-blog-page a,
body.template-article-listing-page a,
body.template-article-detail-page a,
body.template-article-page a,
body.template-about-us-page a,
body.template-contact-page a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================
   Home - Navigation
========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: var(--nav-scrim);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-bird {
  display: block;
  width: auto;
  height: auto;
}

.brand-bird-nav {
  height: 32px;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.brand-wordmark-nav {
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s;
}

.nav-links a:hover {
  background: var(--surface-06);
  color: var(--white);
}

.nav-cta {
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text) !important;
  border: 1px solid var(--primary-btn-border);
  font-weight: 600;
  box-shadow: var(--primary-btn-shadow);
}

.nav-hamburger {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 26px;
}

.nav-close {
  display: none;
  cursor: pointer;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--slate);
  background: transparent;
  border: 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  background: var(--surface-06);
  color: var(--white);
}

.nav-dropdown-caret {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--dark2);
  border: 1px solid var(--surface-08);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-06);
  color: var(--white);
}

.nav-dropdown-all {
  border-bottom: 1px solid var(--surface-08);
  margin-bottom: 4px;
  padding-bottom: 10px !important;
  font-weight: 500;
  color: var(--slate) !important;
}

/* =========================================
   Home - Hero
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 40%,
      rgba(199, 45, 45, 0.1),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 50% at 20% 80%,
      rgba(14, 165, 233, 0.08),
      transparent 65%
    );
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--surface-02) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title {
  max-width: 760px;
}

.hero-highlight {
  color: var(--red-light);
}

.hero-break {
  display: inline;
}

.hero h1 em {
  font-style: normal;
  color: var(--red-light);
}

.hero-lead p {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 540px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-red {
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
  border-color: var(--primary-btn-border);
  box-shadow: var(--primary-btn-shadow);
}

.btn.btn-red,
.btn.btn-red:visited,
.btn.btn-red:hover,
.btn.btn-red:focus {
  color: var(--primary-btn-text);
}

.btn-red:hover {
  background: var(--primary-btn-hover-bg);
  box-shadow: var(--primary-btn-hover-shadow);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--surface-20);
}

.btn-ghost:hover {
  border-color: var(--surface-35);
  background: var(--surface-04);
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-pill {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-10);
  color: var(--slate);
}

.hero-card {
  position: relative;
}

.hero-card img {
  width: min(100%, 520px);
  border-radius: 18px;
  display: block;
  object-fit: cover;
  min-height: 460px;
  filter: brightness(0.85) contrast(1.05);
  margin-left: auto;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(199, 45, 45, 0.18), transparent 52%);
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: var(--elevated-panel);
  border: 1px solid var(--surface-08);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(16px);
}

.float-card span {
  display: block;
  color: var(--slate);
  font-size: 11px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.float-card strong {
  font-size: 22px;
}

.float-top {
  top: -12px;
  right: -10px;
}

.float-bottom {
  bottom: 18px;
  left: -18px;
}

/* =========================================
   Home - Metrics
========================================= */
.metrics {
  padding: 0 0 80px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--surface-04);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-06);
}

.metric-item {
  padding: 32px 28px;
  background: var(--dark);
  text-align: center;
  transition: background 0.3s;
}

.metric-item:hover {
  background: var(--dark2);
}

.metric-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.metric-num .accent {
  color: var(--red-light);
}

.metric-label {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--surface-08);
  border-radius: 14px;
  overflow: hidden;
}

.metrics-grid > div {
  background: var(--dark);
  padding: 30px 26px;
  text-align: center;
  transition: background 0.3s;
}

.metrics-grid > div:hover {
  background: var(--dark2);
}

.metrics-grid strong {
  display: block;
  font-size: 32px;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.metrics-grid span {
  color: var(--slate);
  font-size: 13px;
}

/* =========================================
   Home - Shared Section Layout
========================================= */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--dark2);
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(26px, 3.3vw, 42px);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--slate);
  line-height: 1.6;
  max-width: 700px;
}

/* =========================================
   Home - Services
========================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--surface-10);
  border-radius: 14px;
  background: var(--surface-03);
  padding: 22px;
  transition: all 0.35s ease;
}

.card:hover {
  border-color: rgba(199, 45, 45, 0.24);
  background: var(--surface-05);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-03);
  border: 1px solid var(--surface-06);
  border-radius: 16px;
  padding: 32px 28px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Industry cards ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface-03);
  border: 1px solid var(--surface-06);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.industry-card:hover {
  border-color: rgba(199, 45, 45, 0.28);
  background: var(--surface-05);
  transform: translateY(-4px);
}

.industry-card:hover::before { opacity: 1; }

.industry-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-light);
}

.industry-card-icon svg { width: 22px; height: 22px; }

.industry-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.industry-card p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.industry-card-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-top: auto;
}

@media (max-width: 768px) {
  .industries-grid { grid-template-columns: 1fr; }
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.35s;
  background: linear-gradient(90deg, var(--red), transparent);
}

.service-card:hover::before {
  opacity: 1;
}

a.service-card--linked {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.service-card--linked:hover {
  transform: translateY(-2px);
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(199, 45, 45, 0.1);
  border: 1px solid rgba(199, 45, 45, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--red-light);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.service-tag {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
}

.tag-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.service-tag.tag-active {
  background: rgba(199, 45, 45, 0.18);
  border-color: rgba(199, 45, 45, 0.45);
  color: var(--red-light);
}

/* =========================================
   Home - Technology Stack
========================================= */
.tag-row span {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stack-section {
  padding: 80px 0;
  border-top: 1px solid var(--surface-04);
  border-bottom: 1px solid var(--surface-04);
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.stack-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stack-logo-card {
  background: var(--surface-04);
  border: 1px solid var(--surface-06);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.stack-logo-card:hover {
  border-color: var(--surface-15);
  background: var(--surface-07);
  transform: translateY(-3px);
}

.stack-logo-card img {
  height: 36px;
  width: auto;
  filter: grayscale(0.3) brightness(1.1);
  transition: filter 0.3s;
}

.stack-logo-card:hover img {
  filter: grayscale(0) brightness(1.2);
}

.stack-logo-card span {
  font-size: 11px;
  color: var(--slate);
  font-weight: 500;
}

.tech-item {
  border: 1px solid var(--surface-10);
  border-radius: 14px;
  background: var(--surface-03);
  padding: 20px 14px;
  text-align: center;
}

.tech-item img {
  height: 38px;
  width: 38px;
  margin: 0 auto 10px;
  display: block;
  filter: grayscale(0.35) brightness(1.08);
  transition: filter 0.25s ease;
}

.tech-item:hover img {
  filter: grayscale(0) brightness(1.2);
}

.tech-item span {
  font-size: 13px;
  color: var(--slate);
}

.stack-integrations {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.int-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(199, 45, 45, 0.08);
  border: 1px solid rgba(199, 45, 45, 0.15);
  color: var(--light);
}

/* =========================================
   Home - Process
========================================= */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  gap: 10px;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(199, 45, 45, 0.45),
    rgba(14, 165, 233, 0.28)
  );
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.step-dot {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--dark);
  border: 2px solid rgba(199, 45, 45, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-dot span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--red-light);
}

.process-step:hover .step-dot {
  border-color: var(--red);
  background: rgba(199, 45, 45, 0.1);
  transform: scale(1.08);
}

.process-step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.5;
}

.steps li {
  border: 1px solid var(--surface-10);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: var(--surface-02);
}

.steps li strong {
  display: block;
  color: #ef6d6d;
  margin-bottom: 6px;
  font-family: var(--mono);
}

.steps li span {
  font-size: 14px;
  font-weight: 600;
}

.steps li p {
  margin-top: 6px;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.5;
}

.center-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.center-head .kicker {
  justify-content: center;
}

/* =========================================
   Home - Logo Wall
========================================= */
.logo-wall {
  padding: 60px 0;
  border-top: 1px solid var(--surface-04);
}

.logo-kicker {
  text-align: center;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 28px;
}

.logo-row {
  display: flex;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
}

.logo-row span {
  color: var(--slate);
  opacity: 0.55;
  font-weight: 600;
}

/* =========================================
   Home - Testimonials
========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  background: var(--surface-03);
  border: 1px solid var(--surface-06);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial:hover {
  border-color: var(--surface-12);
  transform: translateY(-3px);
}

.testimonial::before {
  content: "\201C";
  font-size: 72px;
  font-weight: 700;
  color: rgba(199, 45, 45, 0.15);
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--light);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  padding-top: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(199, 45, 45, 0.2),
    rgba(14, 165, 233, 0.15)
  );
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--red-light);
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 12px;
  color: var(--slate);
}

/* =========================================
   Home - Case Studies
========================================= */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--surface-06);
  background: linear-gradient(
    180deg,
    var(--surface-035) 0%,
    var(--surface-015) 100%
  );
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 45, 45, 0.32);
  background: linear-gradient(
    180deg,
    var(--surface-05) 0%,
    var(--surface-02) 100%
  );
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.case-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.82) saturate(1.02);
  transition:
    transform 0.45s ease,
    filter 0.35s ease;
}

.case-card:hover .case-img {
  transform: scale(1.03);
  filter: brightness(0.9) saturate(1.06);
}

.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 22px;
}

.case-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.case-body p {
  margin: 0;
  color: var(--slate);
  line-height: 1.42;
  font-size: 14px;
}

.case-outcome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.case-outcome svg {
  width: 16px;
  height: 16px;
}

.case-actions {
  margin-top: 24px;
  text-align: right;
}

/* =========================================
   Home - Team
========================================= */
.team-card {
  padding: 0;
  overflow: hidden;
}

.team-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: brightness(0.84) saturate(0.9);
}

.team-body {
  padding: 20px 22px 24px;
}

.team-body h3 {
  margin-bottom: 3px;
}

.team-role {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #41516b;
  line-height: 1.4;
}

.team-note {
  margin-top: 10px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.55;
}

.team-body .btn {
  margin-top: 8px;
  width: 100%;
  padding: 10px 20px;
  font-size: 13px;
}

/* =========================================
   Home - Partnership & Outcomes
========================================= */
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.partnership-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.partnership-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 7px;
  flex-shrink: 0;
}

.partnership-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.partnership-list span {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

.outcomes-panel {
  background: var(--surface-03);
  border: 1px solid var(--surface-06);
  border-radius: 16px;
  padding: 32px;
}

.outcomes-panel .kicker {
  margin-bottom: 16px;
}

.outcome-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-04);
}

.outcome-item:last-child {
  border-bottom: none;
}

.outcome-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.outcome-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.outcome-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.outcome-item span {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.5;
}

/* =========================================
   Home - CTA
========================================= */
.cta {
  padding: 80px 0;
}

.cta-inner {
  border: 1px solid rgba(199, 45, 45, 0.25);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(
    135deg,
    rgba(199, 45, 45, 0.12),
    rgba(199, 45, 45, 0.04)
  );
  overflow: hidden;
  position: relative;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: -55%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 45, 45, 0.08), transparent 70%);
}

.cta-inner h2 {
  font-size: clamp(24px, 3vw, 36px);
  position: relative;
  z-index: 1;
}

.cta-inner h2 span {
  color: var(--slate);
  font-weight: 400;
  font-size: 0.65em;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-inner .btn {
  position: relative;
  z-index: 1;
}

/* =========================================
   Home - Footer
========================================= */
.footer {
  border-top: 1px solid var(--surface-08);
  padding: 60px 0 40px;
}

.footer p {
  color: var(--slate);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-bird-footer {
  height: 34px;
}

.brand-wordmark-footer {
  height: 30px;
}

.footer-desc {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
  font-size: 16px;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-item a:hover {
  text-decoration: underline;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex: 0 0 20px;
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
}

.footer-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--accent);
  display: inline-block;
}

.footer-col h4 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--light);
  text-decoration: none;
  padding: 4px 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-04);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate);
}

/* =========================================
   Pages - Inner Layout
========================================= */
.page-hero {
  padding-top: 140px;
  padding-bottom: 48px;
}

.page-hero .section-header {
  margin-bottom: 0;
}

.page-hero .section-header h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-content {
  padding-top: 28px;
}

.about-hero {
  padding-bottom: 60px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-hero-copy p:not(.kicker) {
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 0;
}

.about-hero-title {
  margin-top: 10px;
  margin-bottom: 20px;
}

.about-hero-title-line {
  display: block;
  line-height: 1.04;
}

.about-hero-title-line--accent {
  color: var(--accent, #e11d48);
}

.about-hero-title-line + .about-hero-title-line {
  margin-top: 4px;
}

.about-hero-creds {
  display: flex;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 28px;
}

.about-hero-cred {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
}

.about-hero-cred + .about-hero-cred {
  padding-left: 20px;
  padding-right: 20px;
  border-left: 1px solid rgba(255,255,255,0.16);
}

.about-hero-cred:last-child {
  padding-right: 0;
}

.about-hero-cred-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.about-hero-cred-value .accent {
  color: var(--red-light);
}

.about-hero-cred-label {
  font-size: 0.8125rem;
  color: var(--light);
  line-height: 1.4;
}

.about-hero-panel {
  border: 1px solid var(--surface-10);
  background: var(--surface-03);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.about-hero-image-panel {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 580px;
  border-radius: 20px;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) saturate(0.9);
}

.about-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.0) 30%,
    rgba(15, 23, 42, 0.9) 100%
  );
}

.about-hero-image-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 18px;
  color: #e2e8f0;
}

.about-hero-image-caption p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--white);
}

.about-hero-caption-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #e11d48);
  margin-bottom: 8px;
}

.about-history {
  border-top: 1px solid var(--surface-04);
}

.about-timeline {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-timeline-item {
  border: 1px solid var(--surface-10);
  background: var(--surface-03);
  border-radius: 14px;
  padding: 18px;
}

.about-year {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-timeline-item h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.about-timeline-item p {
  margin: 0;
  font-size: 14px;
  color: var(--slate);
}

.story-body {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
}

.story-body p {
  margin-bottom: 1.2em;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.community-section {
  border-top: 1px solid var(--surface-04);
  border-bottom: 1px solid var(--surface-04);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.community-card {
  border: 1px solid var(--surface-10);
  background: var(--surface-03);
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
}

.community-card-img {
  width: calc(100% + 40px);
  margin: -20px -20px 16px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(1.03);
}

.community-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.community-card p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.template-case-study-listing-page .case-card {
  min-height: 0;
}

.template-article-listing-page .article-card-placeholder .case-outcome {
  color: var(--slate);
  font-weight: 500;
}

.template-services-listing-page .page-hero .section-header {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.template-services-listing-page .page-hero .kicker {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  justify-content: center;
}

.template-services-listing-page .page-hero .section-header h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.template-services-listing-page .page-hero .section-header p:not(.kicker) {
  font-size: 18px;
  line-height: 1.65;
  color: var(--light);
}

.services-rich-section {
  padding-top: 18px;
}

.services-modern {
  padding-top: 16px;
}

.services-grid-modern {
  gap: 18px;
}

.services-grid-modern .service-card {
  padding: 28px 24px;
  border: 1px solid var(--surface-10);
  background: linear-gradient(180deg, var(--surface-05) 0%, var(--surface-02) 100%);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.services-grid-modern .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 45, 45, 0.28);
  box-shadow: 0 16px 32px var(--surface-08);
}

.services-grid-modern .service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(199, 45, 45, 0.1);
  border: 1px solid rgba(199, 45, 45, 0.22);
}

.services-grid-modern .service-icon svg {
  width: 24px;
  height: 24px;
}

.services-grid-modern .service-card h3 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.services-grid-modern .service-card p {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--slate);
}

.services-grid-modern .service-tag {
  font-size: 11px;
}

.approach-modern {
  padding-top: 12px;
}

.approach-modern .center-head {
  margin-bottom: 30px;
}

.approach-modern .step-dot {
  width: 34px;
  height: 34px;
  margin: 0 0 10px;
  border-radius: 10px;
  border-width: 1px;
}

.approach-modern .step-dot span {
  font-size: 11px;
}

.approach-sequence {
  display: grid;
  gap: 18px;
}

.approach-row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  align-items: stretch;
}

.approach-row.is-reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.approach-row-copy {
  border: 1px solid var(--surface-10);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-05) 0%, var(--surface-02) 100%);
  padding: 20px 20px 18px;
}

.approach-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.approach-step-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--surface-10);
  border-radius: 9px;
  background: var(--surface-04);
  display: grid;
  place-items: center;
  color: rgba(199, 45, 45, 0.9);
}

.approach-step-icon svg {
  width: 14px;
  height: 14px;
}

.approach-row-copy h4 {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1.15;
}

.approach-row-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 56ch;
}

.approach-row-media {
  border: 1px solid var(--surface-10);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-03);
}

.approach-row-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: brightness(0.84) saturate(1.02);
}

.approach-trusted {
  margin-top: 26px;
  border-top: 1px solid var(--surface-08);
  padding-top: 22px;
  text-align: center;
}

.approach-trusted .kicker {
  margin-bottom: 14px;
  justify-content: center;
}

.approach-trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
}

.approach-trusted-logos span {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.services-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.services-cap-card {
  border: 1px solid var(--surface-10);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-05) 0%, var(--surface-02) 100%);
  padding: 22px;
}

.services-cap-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.services-cap-card p {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
  font-size: 15px;
}

.services-rich-content {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--surface-10);
  border-radius: 18px;
  background: var(--surface-03);
  padding: clamp(22px, 3.5vw, 44px);
}

.template-services-listing-page .services-rich-content h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.template-services-listing-page .services-rich-content h3 {
  margin: 26px 0 8px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.template-services-listing-page .services-rich-content h4 {
  margin: 16px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.template-services-listing-page .services-rich-content p {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--light);
  max-width: 80ch;
}

.template-services-listing-page .services-rich-content ul,
.template-services-listing-page .services-rich-content ol {
  margin: 10px 0 18px;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.template-services-listing-page .services-rich-content li {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 30px;
  border-radius: 10px;
  background: var(--surface-04);
  border: 1px solid var(--surface-10);
  color: var(--light);
  font-size: 17px;
  line-height: 1.45;
}

.template-services-listing-page .services-rich-content li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}

.template-services-listing-page .services-rich-content a {
  color: var(--red-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.template-article-listing-page .page-hero,
.template-blog-listing-page .page-hero {
  padding-bottom: 22px;
}

.template-article-listing-page .article-list-section,
.template-blog-listing-page .article-list-section {
  padding-top: 22px;
}

.template-article-listing-page .cases-grid,
.template-blog-listing-page .cases-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .template-article-listing-page .cases-grid,
  .template-blog-listing-page .cases-grid {
    grid-template-columns: 1fr;
  }
}

.template-article-listing-page .article-card,
.template-blog-listing-page .article-card {
  min-height: 0;
  border: 1px solid var(--surface-08);
  background: linear-gradient(180deg, var(--surface-05) 0%, var(--surface-02) 100%);
}

.template-article-listing-page .article-img,
.template-blog-listing-page .article-img {
  aspect-ratio: 16/9;
  filter: brightness(0.9) saturate(1.03);
}

.template-article-listing-page .article-body,
.template-blog-listing-page .article-body {
  padding: 20px 22px 22px;
  gap: 10px;
}

.template-article-listing-page .article-card-meta,
.template-blog-listing-page .article-card-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(199, 45, 45, 0.95);
}

.template-article-listing-page .article-body h3,
.template-blog-listing-page .article-body h3 {
  margin: 0;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.1;
}

.template-article-listing-page .article-body h3 a,
.template-blog-listing-page .article-body h3 a {
  color: var(--white);
}

.template-article-listing-page .article-body p:not(.article-card-meta),
.template-blog-listing-page .article-body p:not(.article-card-meta) {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-article-listing-page .article-body .case-outcome,
.template-blog-listing-page .article-body .case-outcome {
  margin-top: 4px;
  color: var(--red-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.template-article-listing-page .article-body .case-outcome::after,
.template-blog-listing-page .article-body .case-outcome::after {
  content: "->";
  transition: transform 0.25s var(--ease);
}

.template-article-listing-page .article-card:hover .article-body .case-outcome::after,
.template-blog-listing-page .article-card:hover .article-body .case-outcome::after {
  transform: translateX(3px);
}

.article-empty,
.projects-empty {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px solid var(--surface-08);
  border-radius: 12px;
  background: var(--surface-02);
  color: var(--slate);
}

.template-article-page .page-hero,
.template-project-detail-page .page-hero {
  padding-bottom: 24px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.article-meta {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
}

.article-hero-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--surface-08);
  filter: brightness(0.84) saturate(0.96);
}

.article-content-section {
  padding-top: 24px;
}

.article-content {
  max-width: 860px;
}

.article-content h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 18px;
  line-height: 1.12;
}

.article-content h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 28px);
}

.article-content p {
  color: var(--light);
  line-height: 1.7;
  font-size: 17px;
  margin-bottom: 14px;
}

.template-article-detail-page .article-detail-layout-section {
  padding-top: 116px;
  padding-bottom: 44px;
}

.template-article-detail-page .article-detail-single {
  max-width: 980px;
}

.template-article-detail-page .article-detail-head {
  margin: 0;
}

.template-article-detail-page .article-detail-head h1 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.template-article-detail-page .article-detail-summary {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.6;
}

.template-article-detail-page .article-hero-tags {
  margin-top: 16px;
}

.template-article-detail-page .article-hero-media {
  margin-top: 22px;
}

.template-article-detail-page .article-hero-media img {
  border-radius: 18px;
  border: 1px solid var(--surface-08);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.86) saturate(0.98);
}

.template-article-detail-page .article-detail-content {
  max-width: 100%;
  border: 1px solid var(--surface-08);
  border-radius: 16px;
  background: var(--surface-02);
  padding: 26px 28px;
  margin-top: 20px;
}

.template-project-detail-page .project-detail-layout-section {
  padding-top: 116px;
  padding-bottom: 44px;
}

.template-project-detail-page .project-detail-single {
  max-width: 980px;
}

.template-project-detail-page .project-detail-head {
  margin: 0;
}

.template-project-detail-page .project-detail-head h1 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.template-project-detail-page .project-detail-summary {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.6;
}

.template-project-detail-page .project-hero-tags {
  margin-top: 16px;
}

.template-project-detail-page .project-hero-actions {
  margin-top: 18px;
}

.template-project-detail-page .project-hero-media img {
  border-radius: 18px;
  border: 1px solid var(--surface-08);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.86) saturate(0.98);
}

.template-project-detail-page .project-hero-media {
  margin-top: 22px;
}

.template-project-detail-page .project-detail-content {
  max-width: 100%;
  border: 1px solid var(--surface-08);
  border-radius: 16px;
  background: var(--surface-02);
  padding: 26px 28px;
  margin-top: 20px;
}

.template-project-detail-page .block-image_block img {
  max-width: 100%;
  height: auto;
}

/* Industry page — Related Projects (2-up half-width cards) */
.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.related-project-card .case-img {
  aspect-ratio: 16/10;
}

@media (max-width: 768px) {
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
}

.template-case-study-listing-page .case-img {
  aspect-ratio: 4/3;
  filter: brightness(0.78) saturate(1.02);
}

.template-case-study-listing-page .case-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  gap: 8px;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-stop) 0%,
    var(--nav-scrim-strong) 56%,
    var(--nav-mobile-bg) 100%
  );
}

.template-case-study-listing-page .case-body h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--white);
  line-height: 1;
}

.template-case-study-listing-page .case-body p {
  color: var(--light);
}

.template-case-study-listing-page .case-outcome {
  color: var(--white);
}

.template-project-list-page .projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .template-project-list-page .projects-grid {
    grid-template-columns: 1fr;
  }
}

.template-project-list-page .page-hero {
  padding-bottom: 24px;
}

.template-project-list-page .projects-list-section {
  padding-top: 24px;
}

.template-project-list-page .case-card {
  min-height: 300px;
}

.template-project-list-page .case-img {
  aspect-ratio: 16/10;
  filter: brightness(0.76) saturate(1.03);
}

.template-project-list-page .case-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  gap: 9px;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0) 22%,
    rgba(2, 6, 23, 0.26) 52%,
    rgba(2, 6, 23, 0.5) 76%,
    rgba(2, 6, 23, 0.72) 100%
  );
}

.template-project-list-page .case-body h3 {
  font-size: clamp(23px, 2.8vw, 33px);
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
}

.template-project-list-page .case-body p {
  color: rgba(248, 250, 252, 0.94);
  font-size: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-project-list-page .project-business-name {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(199, 45, 45, 0.95);
}

.case-pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.case-page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-number,
.page-ellipsis {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--surface-08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.page-number {
  color: var(--light);
}

.page-number:hover {
  border-color: rgba(199, 45, 45, 0.28);
}

.page-number.is-active {
  background: rgba(199, 45, 45, 0.14);
  border-color: rgba(199, 45, 45, 0.35);
  color: var(--white);
}

.page-ellipsis {
  color: var(--slate);
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--surface-08);
  border-radius: 16px;
  background: var(--surface-02);
  padding: 28px;
}

.contact-panel .kicker {
  margin-bottom: 10px;
}

.contact-panel h1 {
  margin-bottom: 10px;
}

.contact-hero-copy {
  text-align: center;
}

.contact-hero-copy .kicker {
  justify-content: center;
}

.contact-hero-copy p {
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.contact-methods-inline {
  max-width: 400px;
  margin: 20px auto 0;
  justify-items: start;
  text-align: left;
}

.contact-methods-inline .contact-method {
  justify-content: flex-start;
}

.contact-method {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-method-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red-light);
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-copy {
  display: block;
}

.contact-method-copy span,
.contact-method-copy a {
  font-size: 17px;
  color: var(--white);
  line-height: 1.4;
}

.contact-method-copy a:hover {
  color: var(--white);
}

.contact-panel .asteriskField {
  display: none;
}

.contact-panel label {
  font-size: 13px;
  color: var(--light);
  margin-bottom: 6px;
  display: inline-block;
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--surface-12);
  background: var(--surface-03);
  color: var(--white);
  padding: 10px 12px;
}

.contact-panel textarea {
  min-height: 150px;
}

.contact-panel-centered {
  text-align: center;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.contact-panel-centered .form-actions {
  justify-content: center;
}

/* =========================================
   Contact Page – Two-Column Layout
========================================= */
.contact-section {
  padding-top: 140px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-left {
  position: sticky;
  top: 100px;
}

.contact-left .kicker {
  margin-bottom: 16px;
}

.contact-left h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-intro {
  color: var(--slate);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--surface-08);
  background: var(--surface-03);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.contact-detail-card:hover {
  border-color: var(--surface-15);
  background: var(--surface-05);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(199, 45, 45, 0.1);
  border: 1px solid rgba(199, 45, 45, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-light);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-label {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact-detail-copy a,
.contact-detail-copy span:not(.contact-detail-label) {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  transition: color 0.15s;
}

.contact-detail-copy a:hover {
  color: var(--red-light);
}

.contact-right .contact-panel {
  max-width: none;
  margin: 0;
  padding: 36px;
  border-radius: 20px;
}

.contact-panel-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-08);
}

/* =========================================
   Enquiry Form
========================================= */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eq-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--surface-06);
}

.eq-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.eq-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.eq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eq-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.eq-required {
  color: var(--red-light);
  margin-left: 2px;
}

.eq-field input,
.eq-field select,
.eq-field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--surface-12);
  background: var(--surface-03);
  color: var(--white);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}

.eq-field input::placeholder,
.eq-field textarea::placeholder {
  color: var(--slate);
  opacity: 0.7;
}

.eq-field input:focus,
.eq-field select:focus,
.eq-field textarea:focus {
  outline: none;
  border-color: rgba(199, 45, 45, 0.5);
  background: var(--surface-04);
}

.eq-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.eq-field textarea {
  min-height: 100px;
  resize: vertical;
}

.eq-field--error input,
.eq-field--error select,
.eq-field--error textarea {
  border-color: var(--red-light);
}

.eq-error {
  font-size: 12px;
  color: var(--red-light);
  margin: 0;
}

/* Group label (for radio / checkbox groups) */
.eq-group-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
  margin: 0;
}

.eq-group-hint {
  font-weight: 400;
  color: var(--surface-15);
  margin-left: 6px;
}

/* Radio pills */
.eq-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eq-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--surface-12);
  background: var(--surface-03);
  cursor: pointer;
  font-size: 13px;
  color: var(--white);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}

.eq-radio-pill:hover {
  border-color: var(--surface-20);
  background: var(--surface-05);
}

.eq-radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.eq-radio-pill:has(input[type="radio"]:checked) {
  border-color: var(--red);
  background: rgba(199, 45, 45, 0.1);
  color: var(--red-light);
}

/* Checkbox chips */
.eq-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eq-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--surface-10);
  background: var(--surface-02);
  cursor: pointer;
  font-size: 13px;
  color: var(--slate);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}

.eq-chip:hover {
  border-color: var(--surface-20);
  color: var(--white);
  background: var(--surface-04);
}

.eq-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.eq-chip:has(input[type="checkbox"]:checked) {
  border-color: var(--red);
  background: rgba(199, 45, 45, 0.1);
  color: var(--red-light);
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 992px) {
  .hero-grid,
  .card-grid-3,
  .about-hero-grid,
  .article-hero-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .cases-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-timeline {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-image-panel {
    min-height: 380px;
  }

  .about-hero-creds {
    gap: 0;
  }

  .template-services-listing-page .page-hero .section-header p:not(.kicker) {
    font-size: 17px;
  }

  .services-grid-modern .service-card h3 {
    font-size: 24px;
  }

  .services-grid-modern .service-card p {
    font-size: 16px;
  }

  .services-cap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .template-services-listing-page .services-rich-content ul,
  .template-services-listing-page .services-rich-content ol {
    grid-template-columns: 1fr;
  }

  .approach-row,
  .approach-row.is-reverse {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .container {
    padding: 0 20px;
  }

  .nav-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--surface-06);
    color: var(--white);
    font-size: 22px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--dark2);
    border-left: 1px solid var(--surface-08);
    padding: 72px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 260px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav-links a {
    display: block;
    min-height: 44px;
    line-height: 44px;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 8px 14px;
    min-height: 44px;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--surface-04, rgba(255,255,255,0.04));
    border-radius: 8px;
    margin-top: 4px;
    padding: 4px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .partnership-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-modern {
    padding-top: 10px;
  }

  .template-services-listing-page .page-hero .section-header h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .services-grid-modern .service-card h3 {
    font-size: 22px;
  }

  .services-grid-modern .service-card p {
    font-size: 15px;
  }

  .services-cap-grid {
    grid-template-columns: 1fr;
  }

  .approach-row-copy {
    padding: 18px 16px 16px;
  }

  .approach-row-copy h4 {
    font-size: 21px;
  }

  .approach-row-copy p {
    font-size: 16px;
  }

  .case-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .case-page-numbers {
    justify-content: center;
  }

  .process-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-track::before {
    display: none;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-lead p {
    margin-left: auto;
    margin-right: auto;
  }

  .actions,
  .hero-pills {
    justify-content: center;
  }

  .hero-card img {
    margin: 0 auto;
    min-height: 360px;
  }

  .float-top {
    right: 10px;
  }

  .float-bottom {
    left: 10px;
  }
}

@media (max-width: 640px) {
  .metrics-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .stack-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stack-logo-card {
    padding: 14px 8px;
    gap: 6px;
  }

  .stack-logo-card img {
    height: 28px;
  }

  .cta-inner {
    padding: 36px 24px;
  }

  .cta-actions {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .contact-panel {
    padding: 22px;
  }

  .contact-panel-grid {
    gap: 18px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-left {
    position: static;
  }

  .contact-section {
    padding-top: 110px;
  }

  .contact-right .contact-panel {
    padding: 24px;
  }

  .eq-grid-2 {
    grid-template-columns: 1fr;
  }

  .template-project-detail-page .project-detail-content {
    padding: 20px;
  }

  .template-article-detail-page .article-detail-content {
    padding: 20px;
  }
}

/* =========================================
   Services Page – Card Enhancements
========================================= */
.service-card-audience {
  font-size: 12px;
  color: var(--slate);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  margin-top: -8px;
}

.service-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--surface-06);
}

/* Make cards flex-column so stack sits at bottom */
.services-grid-modern .service-card {
  display: flex;
  flex-direction: column;
}

.services-grid-modern .service-card p:not(.service-card-audience) {
  flex: 1;
}

/* =========================================
   Services Page – Why Python & Django Strip
========================================= */
.why-strip {
  background: var(--dark2);
  border-top: 1px solid var(--surface-06);
  border-bottom: 1px solid var(--surface-06);
  padding: 40px 0;
}

.why-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.why-strip-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.why-strip-stat {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: block;
}

.why-strip-label {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.4;
}

.why-strip-divider {
  width: 1px;
  height: 48px;
  background: var(--surface-12);
  flex-shrink: 0;
}

/* =========================================
   Approach Page – Vertical Timeline
========================================= */
.approach-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.template-services-listing-page.is-approach-page .page-hero .section-header {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.template-services-listing-page.is-approach-page .page-hero .kicker {
  justify-content: center;
}

.template-services-listing-page.is-approach-page .page-hero .section-header p:not(.kicker) {
  margin-left: auto;
  margin-right: auto;
}

.approach-flow-section {
  padding-top: 8px;
}

.approach-timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 24px;
  position: relative;
}

.approach-step-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-num-label {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--red-light);
  line-height: 1;
  padding: 22px 0 8px;
  display: block;
}

.step-connector {
  flex: 1;
  width: 2px;
  min-height: 32px;
  background: linear-gradient(180deg, var(--red), rgba(14, 165, 233, 0.4));
  border-radius: 1px;
  margin-bottom: 0;
}

.approach-timeline-body {
  border: 1px solid var(--surface-10);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-05) 0%, var(--surface-02) 100%);
  padding: 22px 24px 20px;
  margin-bottom: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.approach-timeline-body:hover {
  border-color: rgba(199, 45, 45, 0.22);
  box-shadow: 0 8px 24px var(--surface-06);
}

.approach-timeline-item--last .approach-step-num {
  /* no connector line for last step */
}

.approach-timeline-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.approach-timeline-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 16px;
  max-width: 64ch;
}

.approach-timeline-content {
  display: block;
}

.approach-timeline-content.has-image {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.approach-step-copy .svc-icon-badge {
  margin-bottom: 14px;
}

.approach-step-copy h3 {
  margin-bottom: 8px;
}

.approach-step-copy p {
  margin-bottom: 14px;
}

.approach-step-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-08);
}

.approach-step-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.9);
}

.approach-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approach-deliverable-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--surface-06);
  border: 1px solid var(--surface-10);
  color: var(--slate);
}

/* =========================================
   Approach / Why Strip – Responsive
========================================= */
@media (max-width: 768px) {
  .why-strip-inner {
    flex-direction: column;
    gap: 24px;
  }

  .why-strip-divider {
    width: 48px;
    height: 1px;
  }

  .approach-timeline-item {
    grid-template-columns: 52px 1fr;
    gap: 0 16px;
  }

  .approach-timeline-content.has-image {
    grid-template-columns: 1fr;
  }

  .step-num-label {
    font-size: 22px;
    padding-top: 18px;
  }

  .approach-timeline-body h3 {
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .approach-timeline-item {
    grid-template-columns: 44px 1fr;
    gap: 0 12px;
  }

  .step-num-label {
    font-size: 18px;
  }

  .approach-timeline-body {
    padding: 16px 16px 14px;
  }
}

/* =========================================
   Services Page – Alternating rows
========================================= */
.svc-section {
  border-top: 1px solid var(--surface-06);
}

.svc-row {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 460px;
  border-bottom: 1px solid var(--surface-06);
  max-width: 1280px;
  margin: 0 auto;
}

.svc-row--reverse {
  grid-template-columns: 52% 48%;
}

.svc-row--reverse .svc-row-media {
  order: 2;
}

.svc-row--reverse .svc-row-content {
  order: 1;
}

.svc-row-media {
  overflow: hidden;
}

.svc-row-media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-06) 0%, var(--surface-03) 100%);
}

.svc-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) saturate(0.7);
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.svc-row:hover .svc-row-media img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(0.85);
}

.svc-row-content {
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--surface-10);
  background: var(--surface-06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.svc-icon-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--red-light);
}

.svc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red-light);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 12px;
}

.svc-row-content h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.svc-row-content > p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 28px;
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--surface-10);
  color: var(--slate);
  background: var(--surface-05);
}

@media (max-width: 900px) {
  .svc-row,
  .svc-row--reverse {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
  }

  .svc-row--reverse .svc-row-media,
  .svc-row--reverse .svc-row-content {
    order: unset;
  }

  .svc-row-content {
    padding: 40px 32px;
  }

  .svc-row-content h3 {
    font-size: 22px;
  }

  .svc-row-content > p {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .svc-row-content {
    padding: 28px 20px;
  }
}

/* =========================================
   Industry Page
========================================= */
.template-industry-page .industry-page-hero {
  min-height: auto;
  padding: 136px 0 56px;
}

.template-industry-page .hero-card {
  max-width: 540px;
  width: 100%;
  margin-left: auto;
}

.template-industry-page .hero-card img {
  width: 100%;
  min-height: 420px;
}

.template-industry-page .industry-hero-placeholder {
  min-height: 420px;
  border-radius: 18px;
}

.template-industry-page .section-header.container {
  margin-bottom: 18px;
}

.industry-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.industry-stat {
  border: 1px solid var(--surface-08);
  border-radius: 16px;
  background: var(--surface-04);
  padding: 22px 24px;
}

.industry-stat-value {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  display: block;
}

.industry-stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--slate);
  display: block;
}

@media (max-width: 980px) {
  .template-industry-page .industry-page-hero {
    padding-top: 116px;
    padding-bottom: 40px;
  }

  .template-industry-page .hero-card img {
    min-height: 320px;
  }

  .industry-stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================
  Motion
========================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* reCAPTCHA badge: tuck it away on mobile */
.grecaptcha-badge {
  z-index: 1;
}

@media (max-width: 860px) {
  .grecaptcha-badge {
    bottom: 60px !important;
  }
}

/* Mobile: bump small text and fix touch targets */
@media (max-width: 860px) {
  .hero-pill {
    font-size: 13px;
    padding: 8px 14px;
  }

  .service-tag {
    font-size: 13px;
    padding: 5px 10px;
  }

  .kicker {
    font-size: 13px;
  }

  /* Single-column article grid on mobile */
  .card-grid.card-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Footer: add more breathing room to links */
  .footer a {
    display: inline-block;
    min-height: 36px;
    line-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    animation: none;
  }
}
