.fm-automation-hero .fm-sol-project-copy h1,
.fm-automation-intro .fm-sol-project-copy h2 { color: #F4F6F8; }
.fm-automation-card img[src$="automation-loading.webp"] {
  background: #f4f6f8;
  object-fit: contain;
}
.fm-automation-hero .fm-sol-project-copy > p,
.fm-automation-intro .fm-sol-project-copy > p,
.fm-automation-request .fm-sol-project-copy > p { color: #dce8f2; }
.fm-sol-projects:is(.fm-automation-intro,.fm-automation-hero) {
  background: linear-gradient(132deg,transparent 62%,#365a711f 62% 73%,transparent 73%),
    linear-gradient(120deg,#091a29,#0e3a5b 64%,#10212d);
}
:is(.fm-automation-intro,.fm-automation-hero) .fm-sol-project-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(430px,39vw,590px);
  grid-template-columns: minmax(0,42%) minmax(0,1fr);
  gap: 0;
  border: 1px solid #8db7cf78;
  border-radius: 22px 6px 22px 6px;
  background: #0a1d2c;
  box-shadow: 0 28px 65px #020b126b, inset 0 1px #e2f0f32e;
}
:is(.fm-automation-intro,.fm-automation-hero) .fm-sol-project-inner::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: var(--fm-edge-beam) 100% 0 / 200% 100% no-repeat;
  clip-path: polygon(0 0, 28% 0, 28% 2px, 0 2px, 0 0,
    100% 0, 100% 100%, 74% 100%, 76% calc(100% - 3px), 100% calc(100% - 3px), 100% 0);
}
@media (prefers-reduced-motion: no-preference) {
  :is(.fm-automation-intro,.fm-automation-hero) .fm-sol-project-inner::after {
    animation: fm-interior-header-light 13s linear infinite;
  }
}
:is(.fm-automation-intro,.fm-automation-hero) .fm-sol-project-copy {
  position: relative;
  z-index: 1;
  padding: clamp(22px,4vw,66px);
}
:is(.fm-automation-intro,.fm-automation-hero) .fm-sol-project-copy .fm-sol-kicker {
  color: #b4d7ea;
  font: 600 12px/1.4 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fm-automation-feature-media {
  position: absolute;
  inset: 0 0 0 27%;
}
.fm-automation-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#0a1d2c 1%,#0a1d2cf7 13%,#0a1d2c8c 25%,transparent 48%),
    linear-gradient(0deg,#06131e99,transparent 26%);
  pointer-events: none;
}
.fm-sol-project-inner .fm-automation-feature-media img {
  height: 100%;
  aspect-ratio: auto;
  object-position: right center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.fm-automation-detail #brx-content.wordpress {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}
.fm-automation-page {
  --fm-automation-gutter: clamp(24px,5vw,76px);
  width: 100%;
}
.fm-automation-page > section { padding-inline: var(--fm-automation-gutter); }
.fm-automation-section { padding-block: clamp(56px,7vw,108px); }
.fm-automation-inner { width: 100%; max-width: var(--fm-content-width,1600px); margin-inline: auto; }
.fm-automation-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: clamp(16px,2vw,28px);
  margin-top: 24px;
}
.fm-automation-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c7d8e4;
  border-radius: 14px;
  background: linear-gradient(148deg,#fff,#e9f1f6);
  box-shadow: inset 0 1px #fff,0 10px 24px #0e3a5b14;
}
.fm-automation-card { grid-column: span 2; scroll-margin-top: calc(var(--fm-header-height,80px) + 16px); }
.fm-automation-card:nth-last-child(-n+2) { grid-column: span 3; }
.fm-automation-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fm-automation-card > div { padding: clamp(16px,2vw,26px); }
.fm-automation-card a { display: block; width: fit-content; margin-top: 12px; color: #0e3a5b; font-weight: 600; }
.fm-automation-method {
  background: linear-gradient(135deg,transparent 42%,#85acc416 42% 53%,transparent 53%),
    linear-gradient(135deg,#edf4f8,#dce9f1 75%,#eaf3f8);
}
.fm-automation-method h2 { max-width: 26ch; text-wrap: balance; }
.fm-automation-method > div > p { max-width: 68ch; }
.fm-automation-flow { margin-block: clamp(28px,4vw,60px); }
.fm-automation-flow-stage { display: none; }
.fm-automation-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fm-automation-steps li {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0,1.3fr);
  gap: clamp(18px,3vw,40px);
  padding-block: 24px;
  border-top: 1px solid #a5bed0;
}
.fm-automation-steps img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 14px 4px 14px 4px;
}
.fm-automation-steps h3 { margin: 0 0 10px; color: #0e3a5b; }
.fm-automation-steps p { margin: 0; }
.fm-automation-method-note {
  max-width: 76ch;
  border-inline-start: 2px solid #558ead;
  padding-inline-start: 20px;
}
.fm-automation-request {
  scroll-margin-top: var(--fm-header-height,80px);
  background: linear-gradient(90deg,#091a29 8%,#0c2435f5 48%,#0e3a5b5e 100%),
    #0b2639 url("assets/automation-project-cta.webp") right center / cover no-repeat;
}
.fm-automation-request .fm-automation-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(16px,4vw,64px);
  padding-inline-end: clamp(44px,5vw,90px);
}
.fm-automation-request .fm-sol-project-copy { max-width: 75ch; }
.fm-automation-request h2 { color: #f4f6f8; }
#brx-content .fm-automation-request a.fm-button {
  width: fit-content;
  border: 1px solid #b0d3e6;
  background: #f4f6f8;
  color: #0e3a5b !important;
  box-shadow: 0 6px 16px #020b1266;
}
#brx-content .fm-automation-request a.fm-button:is(:hover,:focus-visible) {
  background: #d5eaf7;
  color: #0a2539 !important;
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .fm-automation-flow[data-motion] {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    gap: clamp(30px,5vw,88px);
  }
  .fm-automation-flow[data-motion] .fm-automation-steps { padding-inline-end: 32px; }
  .fm-automation-flow[data-motion] .fm-automation-flow-stage {
    display: block;
    position: sticky;
    align-self: start;
    top: calc(var(--fm-header-height,80px) + 36px);
    border: 1px solid #829fb5;
    border-radius: 20px 5px 20px 5px;
    overflow: hidden;
    background: #091a29;
    box-shadow: 0 24px 55px #0a294c35;
  }
  .fm-automation-flow-scenes { position: relative; aspect-ratio: 16/10; max-height: 58svh; overflow: hidden; }
  .fm-automation-flow-scenes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.02; }
  .fm-automation-flow-progress { height: 3px; background: #284a60; }
  .fm-automation-flow-progress span {
    display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left;
    background: linear-gradient(90deg,#3d88b7,#b4e8ff);
  }
  .fm-automation-flow[data-motion] li { grid-template-columns: minmax(0,1fr); min-height: clamp(190px,30svh,330px); }
  .fm-automation-flow[data-motion] li img { display: none; }
  .fm-automation-flow[data-motion] li[data-current] { border-top-color: #367fa9; }
}
.fm-automation-form-guide { width: 100%; color: #0e3a5b; }
.fm-automation-form-guide summary { cursor: pointer; font-weight: 650; }
.fm-automation-form-guide p { margin: 8px 0 0; }
@media (max-width: 1023px) {
  .fm-automation-card { grid-column: span 3; }
  .fm-automation-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .fm-automation-grid,.fm-automation-steps li,.fm-automation-request .fm-automation-inner { grid-template-columns: minmax(0,1fr); }
  .fm-automation-card:nth-child(n) { grid-column: auto; }
  .fm-automation-intro,.fm-automation-page > section { padding-inline-end: 64px; }
  .fm-automation-request .fm-automation-inner { padding-inline-end: 0; }
  :is(.fm-automation-intro,.fm-automation-hero) .fm-sol-project-inner {
    min-height: 0;
    grid-template-columns: minmax(0,1fr);
  }
  .fm-automation-feature-media { position: relative; inset: auto; }
  .fm-automation-feature-media::after {
    background: linear-gradient(180deg,#0a1d2c42,transparent 20%,transparent 81%,#06131e54);
  }
  .fm-sol-project-inner .fm-automation-feature-media img { height: auto; }
}
