/* stylelint-disable no-descending-specificity -- Homepage components intentionally group state variants with their base components. */

.el-homepage {
  overflow: clip;
  background: var(--el-color-off-white);
}

.el-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(52rem, calc(100svh - 1rem));
  align-items: center;
  padding-block: clamp(5rem, 8vw, 8rem) var(--el-space-2xl);
  color: var(--el-color-paper);
  background:
    radial-gradient(circle at 92% 8%, rgb(118 87 246 / 38%), transparent 28rem),
    radial-gradient(circle at 68% 88%, rgb(120 232 246 / 14%), transparent 30rem),
    linear-gradient(145deg, var(--el-color-navy-950), var(--el-color-navy-900));
}

.el-home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 82%, transparent);
  content: '';
  opacity: 0.45;
}

.el-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(26rem, 0.97fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.el-home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.el-home-hero .el-eyebrow {
  color: var(--el-color-cyan);
}

.el-home-hero__title {
  max-width: 10ch;
  margin: 0;
  color: var(--el-color-paper);
  font-size: clamp(3.75rem, 6.4vw, 6.75rem);
  font-weight: 690;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-wrap: balance;
}

.el-home-hero__title span {
  color: #a996ff;
}

.el-home-hero__lead {
  max-width: 39rem;
  margin: var(--el-space-l) 0 0;
  color: var(--el-color-slate-300);
  font-size: var(--el-type-lead);
  line-height: 1.55;
}

.el-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--el-space-s);
  margin-top: var(--el-space-l);
}

.el-home-hero__actions .el-button {
  min-height: 3.25rem;
}

.el-home-hero__actions .el-button:not(.el-button--secondary) {
  color: var(--el-color-navy-950);
  background: var(--el-color-paper);
}

.el-home-hero__actions .el-button--secondary {
  color: var(--el-color-paper);
  background: transparent;
  border-color: rgb(255 255 255 / 42%);
}

.el-home-hero__principles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--el-space-xs) var(--el-space-m);
  padding: var(--el-space-l) 0 0;
  margin: var(--el-space-l) 0 0;
  color: var(--el-color-slate-300);
  border-top: var(--el-border-inverse);
  font-size: var(--el-type-small);
  list-style: none;
}

.el-home-hero__principles li {
  display: inline-flex;
  gap: var(--el-space-2xs);
  align-items: center;
}

.el-home-hero__principles li::before {
  width: 0.4rem;
  height: 0.4rem;
  background: var(--el-color-cyan);
  border-radius: 50%;
  content: '';
}

/* A semantic workflow first; motion is an optional enhancement. */
.el-logic-visual {
  --el-logic-shift-x: 0px;
  --el-logic-shift-y: 0px;
  --el-logic-progress: 0;
  position: relative;
  width: 100%;
  max-width: 39rem;
  margin: 0;
  overflow: hidden;
  color: var(--el-color-off-white);
  background:
    linear-gradient(145deg, rgb(16 42 84 / 96%), rgb(8 26 58 / 100%)), var(--el-color-navy-950);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--el-radius-xl);
  box-shadow: var(--el-shadow-raised);
  transform: translate3d(var(--el-logic-shift-x), var(--el-logic-shift-y), 0);
  transition:
    transform var(--el-motion-slow) var(--el-ease-standard),
    opacity var(--el-motion-base) var(--el-ease-standard);
}

.el-logic-visual::after {
  position: absolute;
  inset: auto -20% -45% 20%;
  height: 70%;
  background: radial-gradient(circle, rgb(118 87 246 / 28%), transparent 68%);
  content: '';
  opacity: calc(0.6 + (var(--el-logic-progress) * 0.4));
  pointer-events: none;
  transform: translate3d(0, calc((1 - var(--el-logic-progress)) * 1rem), 0);
}

.el-logic-visual__bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 3.5rem;
  padding-inline: var(--el-space-m);
  border-bottom: 1px solid rgb(245 244 239 / 12%);
}

.el-logic-visual__bar > span {
  width: 0.45rem;
  height: 0.45rem;
  background: rgb(245 244 239 / 32%);
  border-radius: 50%;
}

.el-logic-visual__bar strong {
  margin-left: auto;
  color: var(--el-color-slate-300);
  font-size: var(--el-type-label);
  font-weight: 570;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.el-logic-visual__canvas {
  position: relative;
  aspect-ratio: 6 / 4.4;
  min-height: 25rem;
}

.el-logic-visual svg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.el-logic-line {
  fill: none;
  stroke: rgb(183 194 200 / 36%);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.el-logic-line--three,
.el-logic-line--four {
  stroke: rgb(120 232 246 / 56%);
}

.el-logic-node {
  position: absolute;
  z-index: 1;
  display: grid;
  min-width: 8.75rem;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  background: rgb(16 42 84 / 92%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--el-radius-m);
  box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--el-motion-slow) var(--el-ease-standard),
    opacity var(--el-motion-base) var(--el-ease-standard);
}

.el-logic-node span {
  color: var(--el-color-slate-300);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.el-logic-node strong {
  color: var(--el-color-off-white);
  font-size: var(--el-type-small);
  font-weight: 580;
}

.el-logic-node--process {
  top: 11%;
  left: 4%;
}

.el-logic-node--data {
  bottom: 10%;
  left: 4%;
}

.el-logic-node--logic {
  top: 50%;
  left: 50%;
  background: rgb(81 54 201 / 62%);
  border-color: rgb(169 150 255 / 72%);
  transform: translate3d(-50%, -50%, 0);
}

.el-logic-node--control {
  top: 11%;
  right: 4%;
}

.el-logic-node--improve {
  right: 4%;
  bottom: 10%;
}

.el-logic-visual.is-enhanced .el-logic-node--process,
.el-logic-visual.is-enhanced .el-logic-node--data {
  transform: translate3d(
    calc(var(--el-logic-shift-x) * -0.6),
    calc(var(--el-logic-shift-y) * -0.6),
    0
  );
}

.el-logic-visual.is-enhanced .el-logic-node--control,
.el-logic-visual.is-enhanced .el-logic-node--improve {
  transform: translate3d(
    calc(var(--el-logic-shift-x) * 0.55),
    calc(var(--el-logic-shift-y) * 0.55),
    0
  );
}

.el-logic-visual.is-enhanced .el-logic-node--logic {
  transform: translate3d(
    calc(-50% + (var(--el-logic-shift-x) * 0.2)),
    calc(-50% + (var(--el-logic-shift-y) * 0.2)),
    0
  );
}

.el-home-section-index {
  margin: 0;
  color: var(--el-color-indigo);
  font-size: var(--el-type-label);
  font-weight: 650;
  letter-spacing: 0.1em;
}

.el-home-problem {
  position: relative;
  background: var(--el-color-paper);
  border-top: var(--el-border-subtle);
}

.el-home-problem__grid {
  display: grid;
  grid-template-columns: minmax(3rem, 2fr) minmax(0, 10fr);
  gap: var(--el-grid-gutter);
}

.el-home-problem__grid > div {
  max-width: 57rem;
}

.el-home-problem__title {
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.el-home-section-heading {
  max-width: 46rem;
}

.el-home-section-heading h2 {
  margin: 0;
  font-size: var(--el-type-h2);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.el-home-section-heading .el-lead {
  margin: var(--el-space-s) 0 0;
}

.el-home-division-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--el-grid-gutter);
  margin-top: var(--el-space-xl);
}

.el-home-division {
  --el-division-accent: var(--el-color-services);
  position: relative;
  display: flex;
  min-height: 26rem;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  background: var(--el-color-paper);
  border: 1px solid rgb(8 26 58 / 16%);
  border-top: 0.3rem solid var(--el-division-accent);
  border-radius: var(--el-radius-l);
  transition:
    transform var(--el-motion-base) var(--el-ease-standard),
    opacity var(--el-motion-base) var(--el-ease-standard);
}

.el-home-division::after {
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--el-division-accent) 18%, transparent),
    transparent 68%
  );
  content: '';
  opacity: 0.8;
  pointer-events: none;
  transform: scale(1);
  transition:
    transform var(--el-motion-slow) var(--el-ease-standard),
    opacity var(--el-motion-base) var(--el-ease-standard);
}

.el-home-division:has(a:hover),
.el-home-division:has(a:focus-visible) {
  box-shadow: var(--el-shadow-raised);
  transform: translateY(-0.25rem);
}

.el-home-division:has(a:hover)::after,
.el-home-division:has(a:focus-visible)::after {
  opacity: 1;
  transform: scale(1.18);
}

.el-home-division__number {
  margin: 0 0 auto;
  color: var(--el-color-graphite-600);
  font-size: var(--el-type-small);
}

.el-home-division:nth-child(2) {
  --el-division-accent: var(--el-color-products);
}

.el-home-division:nth-child(3) {
  --el-division-accent: var(--el-color-embedded);
}

.el-home-division h3 {
  margin: var(--el-space-xl) 0 var(--el-space-s);
  font-size: var(--el-type-h3);
  letter-spacing: -0.03em;
}

.el-home-division h3 a {
  color: inherit;
  text-decoration: none;
}

.el-home-division h3 a::after,
.el-home-card h3 a::after {
  position: absolute;
  inset: 0;
  content: '';
}

.el-home-division > p:not(.el-home-division__number) {
  max-width: 25ch;
  margin: 0;
  color: var(--el-color-text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.el-home-division .el-home-division__promise {
  margin-bottom: var(--el-space-s);
  color: var(--el-division-accent);
  font-size: var(--el-type-small);
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.el-home-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  gap: var(--el-space-xs);
  align-items: center;
  margin-top: var(--el-space-l);
  color: var(--el-color-navy-950);
  font-size: var(--el-type-small);
  font-weight: 620;
  text-decoration: none;
}

a.el-home-text-link {
  position: relative;
  z-index: 1;
}

.el-home-text-link span {
  color: var(--el-color-indigo);
}

.el-home-values {
  background: var(--el-color-paper);
}

.el-home-values__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.el-home-values__list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: var(--el-border-strong);
}

.el-home-values__list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--el-space-s);
  align-items: start;
  min-height: 7.5rem;
  padding-block: var(--el-space-m);
  border-bottom: var(--el-border-subtle);
}

.el-home-values__list span {
  color: var(--el-color-indigo);
  font-size: var(--el-type-label);
}

.el-home-values__list strong {
  font-size: var(--el-type-h3);
  font-weight: 540;
  letter-spacing: -0.025em;
}

.el-home-values__list p {
  max-width: 36rem;
  margin: var(--el-space-2xs) 0 0;
  color: var(--el-color-text-muted);
  line-height: 1.6;
}

.el-home-applications {
  background: var(--el-color-off-white);
}

.el-home-applications__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.el-home-applications h2 {
  max-width: 13ch;
  margin: 0;
  font-size: var(--el-type-h2);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.el-home-applications .el-lead {
  margin: var(--el-space-s) 0 0;
}

.el-home-applications ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  border-top: var(--el-border-strong);
  list-style: none;
}

.el-home-applications li {
  display: grid;
  min-height: 7.5rem;
  gap: var(--el-space-m);
  align-content: space-between;
  padding: var(--el-space-m);
  border-right: var(--el-border-subtle);
  border-bottom: var(--el-border-subtle);
  font-size: var(--el-type-step);
  font-weight: 560;
  letter-spacing: -0.025em;
}

.el-home-applications li:nth-child(2n) {
  border-right: 0;
}

.el-home-applications li span {
  color: var(--el-color-indigo-dark);
  font-size: var(--el-type-label);
  font-weight: 680;
}

.el-home-cases,
.el-home-insights {
  background: var(--el-color-paper);
}

.el-home-featured {
  background: var(--el-color-off-white);
}

.el-home-section-head {
  display: flex;
  gap: var(--el-space-l);
  align-items: end;
  justify-content: space-between;
}

.el-home-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--el-grid-gutter);
  margin-top: var(--el-space-xl);
}

.el-home-card {
  position: relative;
  display: flex;
  min-height: 26rem;
  flex-direction: column;
  overflow: hidden;
  background: var(--el-color-off-white);
  border: var(--el-border-subtle);
  border-radius: var(--el-radius-l);
  transition:
    transform var(--el-motion-base) var(--el-ease-standard),
    opacity var(--el-motion-base) var(--el-ease-standard);
}

.el-home-card:has(a:hover),
.el-home-card:has(a:focus-visible) {
  transform: translateY(-0.25rem);
}

.el-home-card__media {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--el-color-mist);
}

.el-home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform var(--el-motion-slow) var(--el-ease-standard),
    opacity var(--el-motion-base) var(--el-ease-standard);
}

.el-home-card:has(a:hover) .el-home-card__media img {
  transform: scale(1.025);
}

.el-home-card__signal {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 8;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--el-color-navy-900), var(--el-color-graphite-800)),
    var(--el-color-navy-950);
}

.el-home-card__signal::before,
.el-home-card__signal::after {
  position: absolute;
  width: 55%;
  height: 1px;
  background: rgb(34 211 238 / 35%);
  content: '';
  transform: rotate(25deg);
}

.el-home-card__signal::after {
  transform: rotate(-25deg);
}

.el-home-card__signal span {
  z-index: 1;
  width: 0.5rem;
  height: 0.5rem;
  margin: 1rem;
  background: var(--el-color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0.4rem rgb(34 211 238 / 10%);
}

.el-home-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--el-space-m);
}

.el-home-card__meta {
  display: flex;
  gap: var(--el-space-s);
  justify-content: space-between;
  margin: 0 0 var(--el-space-l);
  color: var(--el-color-graphite-600);
  font-size: var(--el-type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.el-home-card h3 {
  margin: 0;
  font-size: var(--el-type-step);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.el-home-card h3 a {
  color: inherit;
  text-decoration: none;
}

.el-home-card__body > p:not(.el-home-card__meta) {
  margin: var(--el-space-s) 0 0;
  color: var(--el-color-text-muted);
  line-height: 1.6;
}

.el-home-card .el-home-text-link {
  margin-top: auto;
  padding-top: var(--el-space-l);
}

.el-home-process .el-home-section-heading {
  margin-bottom: var(--el-space-xl);
}

.el-home-process__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: var(--el-border-inverse);
}

.el-home-process__steps li {
  position: relative;
  min-height: 15rem;
  padding: var(--el-space-m) var(--el-space-s);
  border-right: var(--el-border-inverse);
}

.el-home-process__steps li::after {
  position: absolute;
  right: -0.25rem;
  bottom: calc(var(--el-space-m) + 0.25rem);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--el-color-cyan);
  border-radius: 50%;
  content: '';
}

.el-home-process__steps li:last-child {
  border-right: 0;
}

.el-home-process__steps li:last-child::after {
  display: none;
}

.el-home-process__steps span {
  color: var(--el-color-cyan);
  font-size: var(--el-type-label);
}

.el-home-process__steps strong {
  position: absolute;
  right: var(--el-space-s);
  bottom: var(--el-space-m);
  left: var(--el-space-s);
  font-size: var(--el-type-step);
  font-weight: 520;
  letter-spacing: -0.02em;
}

.el-logic-visual__bar > span:first-child {
  background: var(--el-color-cyan);
}

.el-home-final {
  background: var(--el-color-paper);
}

.el-home-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--el-space-xl);
  align-items: end;
  padding: clamp(2rem, 6vw, 5rem);
  color: var(--el-color-off-white);
  background:
    radial-gradient(circle at 90% 10%, rgb(118 87 246 / 40%), transparent 24rem),
    radial-gradient(circle at 70% 120%, rgb(120 232 246 / 18%), transparent 20rem),
    var(--el-color-navy-950);
  border-radius: var(--el-radius-xl);
}

.el-home-final__inner h2 {
  max-width: 18ch;
  margin: 0;
  font-size: var(--el-type-h2);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.el-home-final__inner p:not(.el-eyebrow) {
  max-width: 42rem;
  margin: var(--el-space-s) 0 0;
  color: var(--el-color-slate-300);
  font-size: var(--el-type-lead);
}

.el-home-final__inner .el-button {
  white-space: nowrap;
}

@media (width < 64rem) {
  .el-home-hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .el-home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
    gap: var(--el-space-l);
  }

  .el-home-hero__title {
    font-size: clamp(3.25rem, 7.8vw, 5.25rem);
  }

  .el-home-division-grid,
  .el-home-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where(.el-home-division:last-child, .el-home-content-grid .el-home-card:last-child) {
    grid-column: 1 / -1;
  }

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

  .el-home-process__steps li:nth-child(3) {
    border-right: 0;
  }

  .el-home-process__steps li:nth-child(3)::after {
    display: none;
  }

  .el-home-process__steps li:nth-child(n + 4) {
    border-top: var(--el-border-inverse);
  }
}

@media (width < 48rem) {
  .el-home-hero {
    padding-block: 6.5rem var(--el-space-xl);
  }

  .el-home-hero__grid,
  .el-home-applications__grid,
  .el-home-values__grid,
  .el-home-final__inner {
    grid-template-columns: 1fr;
  }

  .el-home-hero__grid {
    gap: var(--el-space-xl);
  }

  .el-home-hero__content {
    max-width: 40rem;
  }

  .el-home-hero__title {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .el-logic-visual {
    max-width: 34rem;
  }

  .el-logic-visual__canvas {
    min-height: 22rem;
  }

  .el-home-problem__grid {
    grid-template-columns: 1fr;
  }

  .el-home-problem__title {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }

  .el-home-values__grid {
    gap: var(--el-space-l);
  }

  .el-home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .el-home-section-head > .el-home-text-link {
    margin-top: 0;
  }

  .el-home-process__steps {
    grid-template-columns: 1fr;
  }

  .el-home-process__steps li,
  .el-home-process__steps li:nth-child(3) {
    min-height: 6rem;
    border-top: 0;
    border-right: 0;
    border-bottom: var(--el-border-inverse);
  }

  .el-home-process__steps li::after {
    display: none;
  }

  .el-home-process__steps strong {
    position: static;
    display: block;
    margin-top: var(--el-space-s);
  }

  .el-home-final__inner {
    align-items: start;
  }

  .el-home-final__inner .el-button {
    justify-self: start;
  }
}

@media (width < 36rem) {
  .el-home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .el-home-hero__actions .el-button {
    justify-content: center;
  }

  .el-logic-visual__canvas {
    aspect-ratio: auto;
    min-height: 25rem;
  }

  .el-logic-visual svg {
    display: none;
  }

  .el-logic-node {
    position: static;
    min-width: 0;
    margin: var(--el-space-s);
    transform: none !important;
  }

  .el-home-division-grid,
  .el-home-content-grid {
    grid-template-columns: 1fr;
  }

  :where(.el-home-division:last-child, .el-home-content-grid .el-home-card:last-child) {
    grid-column: auto;
  }

  .el-home-division {
    min-height: 20rem;
  }

  .el-home-values__list li {
    min-height: 5rem;
  }

  .el-home-applications ul {
    grid-template-columns: 1fr;
  }

  .el-home-applications li {
    min-height: 6rem;
    border-right: 0;
  }

  .el-home-card {
    min-height: 0;
  }

  .el-home-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .el-logic-visual,
  .el-logic-node,
  .el-home-division,
  .el-home-division::after,
  .el-home-card,
  .el-home-card__media img {
    opacity: 1;
    transform: none;
  }

  .el-logic-node--logic {
    transform: translate3d(-50%, -50%, 0);
  }
}
