.hero-banner {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.9) 0%, rgba(53, 7, 7, 0.72) 44%, rgba(181, 18, 18, 0.52) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.48)),
    url("../img/services/service-paineis-realista.jpg");
  background-size: cover;
  background-position: center;
}

.hero-banner__content {
  position: absolute;
  inset: 0;
}

.hero-banner::before,
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-banner::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.7;
}

.hero-banner::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.44) 38%, rgba(0, 0, 0, 0.12) 100%);
  mix-blend-mode: multiply;
}

.hero-banner__content {
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero-banner__inner {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: clamp(4rem, 9vw, 7rem) 0;
  gap: 1.6rem;
}

.hero-banner__inner.reveal {
  opacity: 1;
  transform: none;
}

.hero-banner__inner h1 {
  max-width: min(22ch, 100%);
  font-size: clamp(2.4rem, 4.2vw, 4.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.005em;
}

.hero-banner__inner p:not(.section-index) {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.about-section,
.services-section,
.form-page-section,
.maintenance-section,
.process-section,
.insight-section,
.article-section,
.blog-index-hero,
.blog-list-section,
.projects-intro-section,
.projects-section,
.capabilities-section,
.cta-section {
  padding: 5.5rem 0;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #202020 0%, #141414 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.services-section {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #f7f7f5 0%, #ececea 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.services-section .section-heading h2,
.services-section .services-header p {
  color: var(--text);
}

.services-section .services-header p {
  color: var(--text-soft);
}

.service-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #111112;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-section {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #f7f7f5 0%, #ececea 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.about-grid--wide {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  margin-top: 0.7rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-heading-inline {
  display: flex;
  flex-direction: column;
}

.about-copy {
  display: grid;
  gap: 1.35rem;
}

.about-heading {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.about-copy .section-index--light,
.about-copy h2,
.about-copy p {
  color: #ffffff;
}

.about-copy p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.8);
}

.about-copy h2 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 0.95;
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
}

.about-brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.about-brand img {
  width: min(100%, 470px);
  height: auto;
  opacity: 0.95;
  display: block;
}


.services-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.services-header p {
  color: #2e3135;
  max-width: 54ch;
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.55rem;
}

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

.process-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.process-grid--simple {
  grid-template-columns: .85fr 1.15fr;
}

.insight-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(181, 18, 18, 0.2), transparent 34%),
    linear-gradient(180deg, #171717 0%, #0d0d0e 100%);
  color: #ffffff;
}

.insight-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.insight-section .container {
  position: relative;
  z-index: 1;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.98fr) minmax(0, 1.08fr);
  gap: 1.7rem;
  align-items: stretch;
}

.insight-copy {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 1.08rem;
  align-content: stretch;
  min-height: 100%;
}

.insight-copy .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.insight-copy h2 {
  margin: 0;
  max-width: 14.4ch;
  font-size: clamp(3.9rem, 4.45vw, 5.35rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insight-copy p {
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.72;
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-self: end;
  margin-top: 0.8rem;
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.insight-visual-stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.9rem;
  min-height: 100%;
}

.insight-card {
  min-height: 0;
  display: grid;
  align-content: end;
  gap: 0.75rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.insight-card span {
  color: var(--primary);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.insight-card h3 {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.15;
}

.insight-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.58;
}

.insight-dashboard {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0b0c;
}

.insight-dashboard::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.1), rgba(181, 18, 18, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.insight-dashboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-section {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f6f6f6 0%, #eeeeee 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}

.blog-article {
  display: grid;
  gap: 1.35rem;
}

.blog-article > h2 {
  max-width: 760px;
  margin: 0.8rem 0 0;
  font-size: 2.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.blog-article > p {
  max-width: 820px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.82;
}

.article-highlight,
.article-checklist,
.article-source,
.article-sidebar__block {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.article-highlight {
  max-width: 860px;
  padding: 1.4rem;
  border-left: 5px solid var(--primary);
}

.article-highlight strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.article-highlight p,
.article-source p {
  color: var(--text-soft);
  line-height: 1.7;
}

.article-figure {
  max-width: 900px;
  display: grid;
  gap: 0.75rem;
  margin: 0.3rem 0 0.6rem;
}

.article-figure img {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: var(--shadow-soft);
  background: #111112;
}

.article-figure figcaption {
  max-width: 78ch;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.article-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  max-width: 900px;
}

.article-steps div {
  padding: 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.article-steps span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.article-steps h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  line-height: 1.15;
}

.article-steps p {
  color: var(--text-soft);
  line-height: 1.62;
}

.article-band,
.article-metrics,
.article-chart,
.article-split {
  max-width: 900px;
}

.article-band {
  display: grid;
  gap: 0.75rem;
  padding: 1.45rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.article-band--dark {
  background:
    radial-gradient(circle at 100% 0%, rgba(181, 18, 18, 0.2), transparent 28%),
    linear-gradient(135deg, #171717 0%, #0c0c0d 100%);
  color: #ffffff;
}

.article-band--dark p {
  color: rgba(255, 255, 255, 0.76);
}

.article-band--muted {
  background: #eeeeee;
}

.article-band h3 {
  font-size: 1.35rem;
  line-height: 1.08;
}

.article-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.article-metric {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 0.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.article-metric strong {
  color: var(--primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 0.95;
}

.article-metric span {
  color: var(--text);
  font-weight: 700;
}

.article-metric p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.article-chart {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.article-chart h3 {
  font-size: 1.45rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 86px;
  gap: 0.8rem;
  align-items: center;
}

.chart-row span,
.chart-row strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.chart-row span {
  color: var(--text-soft);
}

.chart-row strong {
  color: var(--primary);
  text-align: right;
}

.chart-track {
  height: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #e8e8e8;
}

.chart-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #151515 100%);
}

.article-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.article-split article {
  min-height: 100%;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.article-split h3 {
  font-size: 1.2rem;
  line-height: 1.12;
}

.article-split p {
  color: var(--text-soft);
  line-height: 1.62;
}

.article-checklist {
  max-width: 900px;
  padding: 1.4rem;
}

.article-checklist h2 {
  margin-bottom: 0.9rem;
  font-size: 1.8rem;
  line-height: 1.05;
}

.article-checklist ul,
.article-sidebar__block ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.article-checklist li,
.article-sidebar__block li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-soft);
}

.article-checklist li::before,
.article-sidebar__block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.42rem;
  height: 2px;
  background: var(--primary);
}

.article-source {
  max-width: 900px;
  padding: 1.15rem;
}

.article-source strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.article-source a {
  display: flex;
  width: fit-content;
  margin-top: 0.6rem;
  color: var(--primary);
  font-weight: 700;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 1rem;
}

.article-sidebar__block {
  padding: 1.2rem;
}

.article-sidebar__block h2 {
  margin: 0.8rem 0 0.6rem;
  font-size: 1.65rem;
  line-height: 1.05;
}

.article-sidebar__block h3 {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.article-sidebar__block p {
  color: var(--text-soft);
  line-height: 1.68;
}

.article-sidebar__block--dark {
  background: #151515;
  color: #ffffff;
}

.article-sidebar__block--dark li {
  color: rgba(255, 255, 255, 0.74);
}

.blog-index-hero {
  background: #050506;
  color: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
}

.blog-index-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 380px;
  align-items: stretch;
  width: 100%;
}

.blog-index-hero__copy {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  justify-self: end;
  width: min(100%, 640px);
  padding: 4.5rem 3rem 4.5rem 1.5rem;
}

.blog-index-hero__copy .eyebrow {
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.blog-index-hero__copy h1 {
  max-width: 13ch;
  font-size: 3.2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.blog-index-hero__copy p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.72;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.7);
}

.blog-index-hero__media {
  min-height: 380px;
}

.blog-index-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-section {
  background: #e9e9e9;
}

.blog-list-heading {
  display: grid;
  gap: 0.9rem;
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.blog-list-heading .eyebrow {
  justify-self: center;
}

.blog-list-heading h2 {
  font-size: 2.7rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.78fr));
  gap: 1.45rem;
  align-items: stretch;
}

.blog-card {
  min-height: 100%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 18, 18, 0.34);
  box-shadow: var(--shadow-card);
}

.blog-card a,
.blog-card__inner {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.blog-card figure {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111112;
}

.blog-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover figure img {
  transform: scale(1.04);
}

.blog-card__body {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1.15rem;
}

.blog-card__body span,
.blog-card__body small {
  color: var(--primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card__body h3 {
  font-size: 1.2rem;
  line-height: 1.12;
}

.blog-card__body p {
  color: var(--text-soft);
  line-height: 1.58;
}

.blog-card--featured {
  grid-row: span 2;
}

.blog-card--featured figure {
  aspect-ratio: 16 / 11;
}

.blog-card--featured .blog-card__body {
  padding: 1.45rem;
}

.blog-card--featured .blog-card__body h3 {
  font-size: 1.75rem;
  line-height: 1.05;
}

.projects-intro-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 22%, rgba(181, 18, 18, 0.24), transparent 30%),
    radial-gradient(circle at 100% 78%, rgba(181, 18, 18, 0.2), transparent 28%),
    linear-gradient(180deg, #161616 0%, #0c0c0d 100%);
  color: #ffffff;
}

.projects-intro-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.projects-intro-section .container {
  position: relative;
  z-index: 1;
}

.projects-intro-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  gap: 2rem;
  align-items: stretch;
}

.projects-intro-copy {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.9rem;
  align-content: start;
  min-height: 100%;
}

.projects-intro-copy h2,
.project-group__header h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.projects-intro-copy h2 {
  max-width: 12.5ch;
  font-size: clamp(3.45rem, 4vw, 4.55rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: #ffffff;
}

.projects-intro-copy p,
.project-group__header p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.74;
}

.projects-intro-copy p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
  line-height: 1.58;
}

.projects-intro-copy .eyebrow {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.projects-intro-list {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.8rem;
  min-height: 100%;
}

.projects-intro-list div {
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  padding: 1rem 1.2rem;
}

.projects-intro-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-size: 1.02rem;
}

.projects-intro-list span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.projects-section {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f6f6f6 0%, #eeeeee 100%);
  background-size: 44px 44px, 44px 44px, auto;
  overflow: hidden;
}

.projects-section > .container {
  display: grid;
  gap: 1.35rem;
}

.project-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 2rem;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 0;
  padding: 2rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: var(--shadow-soft);
}

.project-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.project-group--red {
  background:
    radial-gradient(circle at 0% 16%, rgba(255, 255, 255, 0.11), transparent 28%),
    radial-gradient(circle at 100% 80%, rgba(181, 18, 18, 0.32), transparent 26%),
    linear-gradient(135deg, #8b0b0b 0%, #290404 100%);
  color: #ffffff;
}

.project-group--light {
  background:
    linear-gradient(90deg, rgba(181, 18, 18, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.9);
}

.project-group--dark {
  background:
    radial-gradient(circle at 100% 18%, rgba(181, 18, 18, 0.2), transparent 30%),
    linear-gradient(135deg, #1d1d1f 0%, #0d0d0e 100%);
  color: #ffffff;
}

.project-group--cream {
  background:
    radial-gradient(circle at 100% 0%, rgba(181, 18, 18, 0.1), transparent 28%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f7f7f7 0%, #e8e8e8 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.project-group__header {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.9rem;
  align-content: start;
  min-height: 100%;
  padding-right: 0.4rem;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  min-height: 100%;
}

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

.project-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.85rem;
  padding: 1.55rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.project-group--red .eyebrow,
.project-group--dark .eyebrow {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.project-group--red .project-group__header p,
.project-group--dark .project-group__header p {
  color: rgba(255, 255, 255, 0.76);
}

.project-group--red .project-card,
.project-group--dark .project-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.project-card__number {
  color: var(--primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-card h3 {
  font-size: 1.16rem;
  line-height: 1.16;
}

.project-card p {
  align-self: start;
  color: var(--text-soft);
  line-height: 1.68;
}

.project-card__services {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.9rem;
  margin-top: 0.2rem;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.project-card__services strong {
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card__services ul {
  list-style: none;
  display: grid;
  gap: 0.38rem;
}

.project-card__services li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.project-card__services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.42rem;
  height: 2px;
  background: var(--primary);
}

.capabilities-section {
  background:
    radial-gradient(circle at 0% 18%, rgba(181, 18, 18, 0.24), transparent 30%),
    radial-gradient(circle at 100% 76%, rgba(181, 18, 18, 0.18), transparent 28%),
    linear-gradient(180deg, #151515 0%, #0b0b0c 100%);
  color: #ffffff;
}

.section-heading--light h2 {
  color: #ffffff;
}

.section-heading--light p {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.76);
}

.section-heading--light .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.capability-grid span {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
}

.project-cta-panel {
  align-items: center;
}

.cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 34, 34, 0.08) 0%, rgba(255, 34, 34, 0) 28%),
    linear-gradient(180deg, #2a0606 0%, #3a0808 100%);
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-section::before {
  background:
    radial-gradient(circle at 0% 52%, rgba(255, 28, 28, 0.92) 0 1.4px, transparent 2.8px),
    radial-gradient(circle at 6% 54%, rgba(255, 28, 28, 0.86) 0 1.3px, transparent 2.8px),
    radial-gradient(circle at 12% 56%, rgba(255, 28, 28, 0.74) 0 1.2px, transparent 2.8px),
    radial-gradient(circle at 18% 58%, rgba(255, 28, 28, 0.62) 0 1.1px, transparent 2.8px),
    radial-gradient(circle at 24% 59%, rgba(255, 28, 28, 0.52) 0 1px, transparent 2.8px),
    radial-gradient(circle at 30% 60%, rgba(255, 28, 28, 0.44) 0 1px, transparent 2.8px),
    radial-gradient(circle at 100% 46%, rgba(255, 28, 28, 0.92) 0 1.4px, transparent 2.8px),
    radial-gradient(circle at 94% 44%, rgba(255, 28, 28, 0.86) 0 1.3px, transparent 2.8px),
    radial-gradient(circle at 88% 42%, rgba(255, 28, 28, 0.74) 0 1.2px, transparent 2.8px),
    radial-gradient(circle at 82% 40%, rgba(255, 28, 28, 0.62) 0 1.1px, transparent 2.8px),
    radial-gradient(circle at 76% 39%, rgba(255, 28, 28, 0.52) 0 1px, transparent 2.8px),
    radial-gradient(circle at 70% 38%, rgba(255, 28, 28, 0.44) 0 1px, transparent 2.8px);
  background-size:
    220px 110px,
    260px 120px,
    300px 136px,
    340px 150px,
    380px 170px,
    420px 190px,
    220px 110px,
    260px 120px,
    300px 136px,
    340px 150px,
    380px 170px,
    420px 190px;
  background-position:
    left 50%,
    left 47%,
    left 45%,
    left 43%,
    left 41%,
    left 39%,
    right 50%,
    right 53%,
    right 55%,
    right 57%,
    right 59%,
    right 61%;
  background-repeat: no-repeat;
  opacity: 0.85;
}

.cta-section::after {
  background:
    linear-gradient(90deg, rgba(27, 3, 3, 0.96) 0%, rgba(27, 3, 3, 0.34) 24%, rgba(27, 3, 3, 0.18) 50%, rgba(27, 3, 3, 0.34) 76%, rgba(27, 3, 3, 0.96) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .cta-panel {
  grid-template-columns: .8fr 1.2fr;
}

.cta-section .project-cta-panel {
  grid-template-columns: minmax(0, 1fr) auto;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.timeline-item__media {
  position: relative;
}

.timeline-item__media img {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #f1f1f1;
  display: block;
}

.internal-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.9) 0%, rgba(53, 7, 7, 0.72) 48%, rgba(181, 18, 18, 0.48) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0.5)),
    url("../img/services/service-paineis-realista.jpg");
  background-size: cover;
  background-position: center;
}

.internal-hero__media,
.internal-hero__overlay {
  position: absolute;
  inset: 0;
}

.internal-hero::before,
.internal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.internal-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.72;
}

.internal-hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.14) 100%);
  mix-blend-mode: multiply;
}

.internal-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.internal-hero__overlay {
  display: none;
}

.internal-hero__media {
  display: none;
}

.internal-hero__content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.internal-hero__content h1 {
    margin: 0.75rem 0 0.8rem;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1;
    text-transform: uppercase;
}

.internal-hero__content p:last-child {
    max-width: 58ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.form-layout--contact {
  grid-template-columns: minmax(390px, 0.94fr) minmax(500px, 1.06fr);
  gap: clamp(2rem, 3.4vw, 3rem);
  align-items: stretch;
}

.form-layout--contact .form-copy {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: stretch;
  height: 100%;
  min-height: 100%;
}

.form-copy h2 {
  margin: 0.9rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.form-layout--contact .form-copy h2 {
  max-width: 14.2ch;
  margin: 0.75rem 0 0.65rem;
  font-size: clamp(2.25rem, 2.9vw, 3.32rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.form-copy > p {
  color: var(--text-soft);
}

.form-layout--contact .form-copy > p {
  max-width: 54ch;
  font-size: 0.95rem;
  line-height: 1.62;
}

.form-layout--contact .contact-cards {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.68rem;
  margin-top: 1rem;
}

.form-layout--contact .contact-card {
  align-items: center;
  min-height: 92px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
}

.form-layout--contact .contact-card img {
  width: 22px;
  height: 22px;
  margin-top: 0;
}

.form-layout--contact .contact-card strong {
  margin-bottom: 0.18rem;
  font-size: 0.95rem;
}

.form-layout--contact .contact-card span,
.form-layout--contact .contact-card a {
  font-size: 0.94rem;
  line-height: 1.5;
}

.form-shell {
  padding: 1.8rem;
}

.form-layout--contact .form-shell {
  align-self: stretch;
  display: grid;
  height: 100%;
  min-height: 100%;
  padding: clamp(1.35rem, 1.8vw, 1.65rem);
  background: rgba(255, 255, 255, 0.94);
}

.form-layout--contact .contact-form {
  height: 100%;
  min-height: 100%;
  grid-template-rows: auto auto minmax(150px, 1fr) auto;
  gap: 0.85rem;
}

.form-layout--contact .contact-form .btn {
  width: 100%;
  justify-content: center;
  min-height: 58px;
}

.form-layout--contact .field-grid {
  gap: 0.95rem;
}

.form-layout--contact .field input {
  min-height: 48px;
  padding: 0.82rem 0.9rem;
}

.form-layout--contact .field label {
  font-size: 0.7rem;
}

.form-layout--contact .field--message {
  height: 100%;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.form-layout--contact .field--message textarea {
  height: 100%;
  min-height: 0;
}

.thank-you-section {
  padding-top: 5.5rem;
}

.status-card.is-error .maintenance-badge {
  background: rgba(128, 16, 16, 0.1);
  color: #8b1111;
}

/* ─── Por que a RBB ────────────────────────────────────── */
.why-rbb-section {
  padding: 5.5rem 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f4f4f2 100%);
  background-size: 44px 44px, 44px 44px, auto;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.why-rbb-header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.why-rbb-header h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0.4rem 0 0;
  letter-spacing: -0.01em;
}

.why-rbb-header p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}

.why-rbb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.why-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.65rem;
  border: 1px solid rgba(17, 17, 17, 0.11);
  border-top: 3px solid var(--primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.why-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(181, 18, 18, 0.07);
  border: 1px solid rgba(181, 18, 18, 0.16);
}

.why-card__icon svg {
  width: 34px;
  height: 34px;
}

.why-card h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.why-card p {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.62;
}

@media (max-width: 1140px) {
  .why-rbb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .why-rbb-section {
    padding: 4rem 0;
  }
  .why-rbb-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .why-card {
    padding: 1.35rem;
  }
}

@media (max-width: 420px) {
  .why-rbb-grid {
    gap: 0.75rem;
  }
}

/* ─── Seção de fornecedores ─────────────────────────────── */
.partners-section {
  background: #ffffff;
  padding: 4rem 0 3.5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.partners-inner {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  align-items: center;
}

.partners-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.partners-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.partners-title__sub {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 46ch;
  line-height: 1.5;
}

.partners-row {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  justify-items: center;
  gap: 2.5rem 3.5rem;
  width: 100%;
}

.partners-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
}

.partner-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.28s ease, transform 0.22s ease;
}

.partner-logo:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-3px);
}

/* Escala individual por marca — altere o valor de scale() para ajustar cada logo */
.partner-logo[alt="Siemens"] { transform: scale(2.40); }
.partner-logo[alt="Siemens"]:hover { transform: scale(2.40) translateY(-3px); }
.partner-logo[alt="Allen-Bradley / Rockwell Automation"] { transform: scale(1.00); }
.partner-logo[alt="Allen-Bradley / Rockwell Automation"]:hover { transform: scale(1.00) translateY(-3px); }
.partner-logo[alt="Schneider Electric"] { transform: scale(1.00); }
.partner-logo[alt="Schneider Electric"]:hover { transform: scale(1.00) translateY(-3px); }
.partner-logo[alt="WEG"] { transform: scale(0.80); }
.partner-logo[alt="WEG"]:hover { transform: scale(0.80) translateY(-3px); }
.partner-logo[alt="ABB"] { transform: scale(1.20); }
.partner-logo[alt="ABB"]:hover { transform: scale(1.20) translateY(-3px); }
.partner-logo[alt="Delta"] { transform: scale(1.35); }
.partner-logo[alt="Delta"]:hover { transform: scale(1.35) translateY(-3px); }

@media (max-width: 980px) {
  .partners-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2.5rem;
  }
}

@media (max-width: 720px) {
  .partners-section {
    padding: 3rem 0 2.5rem;
  }
  .partners-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.8rem;
  }
  .partners-row li {
    height: 48px;
  }
  .partner-logo {
    height: 48px;
  }
}
