/* Homepage hero: one scene, one offer, one project path. */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  width: var(--container);
  min-height: clamp(500px, 64svh, 620px);
  max-height: none;
  margin: 18px auto 0;
  padding: clamp(54px, 6vw, 92px) clamp(28px, 5vw, 76px) 108px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 0;
  background: #edf2f5;
  box-shadow: none;
}

.page-home .home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  height: auto;
  content: "";
  background: linear-gradient(90deg, rgba(247, 250, 252, .99) 0%, rgba(247, 250, 252, .96) 34%, rgba(247, 250, 252, .76) 49%, rgba(247, 250, 252, .08) 72%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: none !important;
  animation: none !important;
}

.page-home .home-hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  width: min(100%, 720px);
  align-self: center;
  padding-bottom: 4px;
}

.home-hero-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-home .home-hero h1 {
  max-width: none;
  margin: 0;
  color: #101820;
  font-size: clamp(45px, 4.35vw, 72px);
  font-weight: 650;
  line-height: .97;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: initial;
}

.page-home .home-hero h1 span {
  display: block;
  white-space: nowrap;
}

.page-home .home-hero p {
  max-width: 610px;
  margin-top: 24px;
  color: #3f4d58;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.48;
  text-wrap: pretty;
}

.page-home .home-hero .hero-actions {
  margin-top: 30px;
}

.page-home .home-hero .button.primary {
  min-height: 50px;
  padding-inline: 22px;
}

.page-home .home-hero .page-hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf2f5;
  box-shadow: none;
}

.page-home .home-hero .page-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: saturate(.9) contrast(1.02);
  transform: scale(1.005);
  animation: home-hero-image-settle 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.home-hero-stages {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 72px;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, .14);
  background: rgba(247, 250, 252, .9);
  backdrop-filter: blur(16px) saturate(120%);
}

.home-hero-stages::after {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 0;
  width: calc(100% / 6);
  height: 3px;
  background: var(--accent);
  content: "";
  animation: home-stage-scan 12s ease-in-out infinite alternate;
}

.home-hero-stages ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 72px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hero-stages li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #26343d;
  border-left: 1px solid rgba(15, 23, 42, .1);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.home-hero-stages li:first-child {
  border-left: 0;
}

.page-home .home-hero + .home-priority-section {
  margin-top: 18px;
}

.page-home .home-priority-head {
  margin-bottom: clamp(4px, .6vw, 8px);
}

.page-home .home-priority-head h2 {
  max-width: 760px;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
}

/* Keep the desktop CTA clear of the absolute project-stage rail. */
@media (min-width: 761px) {
  html[data-view-mode="current"] .page-home .home-hero {
    min-height: clamp(500px, 64svh, 620px);
    padding-bottom: 108px;
  }
}

html[data-view-mode="kinetic"] .page-home .home-hero {
  min-height: clamp(500px, 64svh, 620px);
  max-height: none;
  padding: clamp(54px, 6vw, 92px) clamp(28px, 5vw, 76px) 108px;
  border-color: #2c3028;
  background: #090b0c;
}

html[data-view-mode="kinetic"] .page-home .home-hero::before {
  inset: 0;
  height: auto;
  background: linear-gradient(90deg, rgba(7, 9, 10, .99) 0%, rgba(7, 9, 10, .96) 34%, rgba(7, 9, 10, .76) 51%, rgba(7, 9, 10, .12) 76%);
}

html[data-view-mode="kinetic"] .page-home .home-hero h1 {
  color: #f7f8f3;
  font-size: clamp(45px, 4.35vw, 72px);
  font-weight: 620;
  line-height: .97;
  text-transform: none;
}

html[data-view-mode="kinetic"] .page-home .home-hero p {
  color: #c3c8bf;
}

html[data-view-mode="kinetic"] .page-home .home-hero .page-hero-media {
  border: 0;
  background: #090b0c;
  box-shadow: none;
}

html[data-view-mode="kinetic"] .page-home .home-hero .page-hero-media img {
  content: url("assets/visuals/client-home/client-hero-command-center-empty.webp");
  filter: saturate(.82) contrast(1.06);
}

html[data-view-mode="kinetic"] .page-home .home-hero .home-hero-kicker {
  color: #c9f54a;
}

html[data-view-mode="kinetic"] .home-hero-stages {
  border-top-color: rgba(218, 255, 103, .22);
  background: rgba(12, 14, 12, .86);
}

html[data-view-mode="kinetic"] .home-hero-stages::after {
  background: #c9f54a;
}

html[data-view-mode="kinetic"] .home-hero-stages li {
  color: #dce0d5;
  border-left-color: rgba(218, 255, 103, .14);
}

html[data-view-mode="kinetic"] .page-home .home-priority-head h2 {
  color: #f5f6ee;
}

.page-home .solution-navigator-home {
  padding-block: 34px 44px !important;
}

.page-home .solution-navigator-home .section-head {
  max-width: none;
  margin: 0 0 14px;
}

.page-home .solution-navigator-home .section-head h2 {
  max-width: 760px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.12;
}

.page-home .solution-navigator-home .solution-axis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #d5dad7;
  border-left: 1px solid #d5dad7;
}

.page-home .solution-axis-card-home {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 14px;
  min-height: 126px;
  padding: 20px;
  align-content: center;
  align-items: start;
  color: var(--ink);
  border: 0;
  border-right: 1px solid #d5dad7;
  border-bottom: 1px solid #d5dad7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease;
}

.page-home .solution-axis-card-home:hover,
.page-home .solution-axis-card-home:focus-visible {
  color: var(--ink);
  border-color: #d5dad7;
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
  outline: none;
  transform: none;
}

.page-home .solution-axis-card-home.is-brief {
  background: #e9f2ee;
}

.page-home .solution-axis-index {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .solution-axis-home-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.page-home .solution-axis-card-home .solution-axis-home-copy > strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.page-home .solution-axis-home-copy > span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.42;
}

.page-home .solution-axis-arrow {
  align-self: center;
  color: var(--accent-strong);
  font-size: 17px;
  line-height: 1;
  transition: transform .2s ease;
}

.page-home .solution-axis-card-home:hover .solution-axis-arrow,
.page-home .solution-axis-card-home:focus-visible .solution-axis-arrow {
  transform: translate(2px, -2px);
}

html[data-view-mode="kinetic"] .page-home .solution-navigator-home .section-head h2,
html[data-view-mode="kinetic"] .page-home .solution-axis-card-home .solution-axis-home-copy > strong {
  color: #f5f6ee;
}

html[data-view-mode="kinetic"] .page-home .solution-navigator-home .solution-axis-grid {
  border-color: #3b3e34;
}

html[data-view-mode="kinetic"] .page-home .solution-axis-card-home {
  color: #f5f6ee;
  border-color: #3b3e34;
  background: transparent;
}

html[data-view-mode="kinetic"] .page-home .solution-axis-card-home.is-brief {
  background: #20251a;
}

html[data-view-mode="kinetic"] .page-home .solution-axis-card-home:hover,
html[data-view-mode="kinetic"] .page-home .solution-axis-card-home:focus-visible {
  color: #f5f6ee;
  border-color: #3b3e34;
  background: #1b1d18;
}

html[data-view-mode="kinetic"] .page-home .solution-axis-home-copy > span {
  color: #b9bdaf;
}

html[data-view-mode="kinetic"] .page-home :is(.solution-axis-index, .solution-axis-arrow) {
  color: #c9f54a;
}

@media (max-width: 1080px) {
  .page-home .solution-navigator-home .solution-axis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes home-stage-scan {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(500%, 0, 0); }
}

@keyframes home-hero-image-settle {
  from { opacity: .2; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1.005); }
}

@media (max-width: 1100px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    min-height: 620px;
    padding-inline: 42px;
  }

  .page-home .home-hero h1,
  html[data-view-mode="kinetic"] .page-home .home-hero h1 {
    font-size: clamp(42px, 5.4vw, 58px);
  }

  .page-home .home-hero::before {
    background: linear-gradient(90deg, rgba(247, 250, 252, .99) 0%, rgba(247, 250, 252, .96) 48%, rgba(247, 250, 252, .28) 82%);
  }

  html[data-view-mode="kinetic"] .page-home .home-hero::before {
    background: linear-gradient(90deg, rgba(7, 9, 10, .99) 0%, rgba(7, 9, 10, .96) 48%, rgba(7, 9, 10, .3) 82%);
  }
}

@media (max-width: 760px) {
  html[data-view-mode="current"] .page-home .home-hero,
  html[data-view-mode="kinetic"] .page-home .home-hero {
    display: block;
    width: calc(100% - 24px);
    min-height: 610px;
    margin-top: 10px;
    padding: 44px 22px 142px;
  }

  .page-home .home-hero h1 span {
    white-space: normal;
  }

  html[data-view-mode="current"] .page-home .home-hero h1,
  html[data-view-mode="kinetic"] .page-home .home-hero h1 {
    max-width: 13ch;
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 1;
  }

  html[data-view-mode="current"] .page-home .home-hero p,
  html[data-view-mode="kinetic"] .page-home .home-hero p {
    display: block;
    max-width: 34ch;
    overflow: visible;
    font-size: 16px;
    -webkit-line-clamp: initial;
  }

  .page-home .home-hero .page-hero-media img {
    object-position: 67% center;
  }

  .page-home .home-hero::before {
    background: linear-gradient(90deg, rgba(247, 250, 252, .99) 0%, rgba(247, 250, 252, .94) 67%, rgba(247, 250, 252, .24) 100%);
  }

  html[data-view-mode="kinetic"] .page-home .home-hero::before {
    background: linear-gradient(90deg, rgba(7, 9, 10, .99) 0%, rgba(7, 9, 10, .94) 67%, rgba(7, 9, 10, .28) 100%);
  }

  .home-hero-stages {
    min-height: 114px;
  }

  .home-hero-stages ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 114px;
  }

  .home-hero-stages li {
    min-height: 57px;
    padding-inline: 6px;
    font-size: 10.5px;
  }

  .home-hero-stages li:nth-child(4) {
    border-left: 0;
  }

  .home-hero-stages li:nth-child(n + 4) {
    border-top: 1px solid rgba(15, 23, 42, .1);
  }

  html[data-view-mode="kinetic"] .home-hero-stages li:nth-child(n + 4) {
    border-top-color: rgba(218, 255, 103, .14);
  }

  .home-hero-stages::after {
    width: calc(100% / 3);
  }

  .page-home .home-priority-head {
    margin-bottom: 4px;
  }

  .page-home .home-priority-head h2 {
    max-width: none;
    font-size: 28px;
  }

  .page-home .solution-navigator-home {
    padding-block: 28px 36px !important;
  }

  .page-home .solution-navigator-home .section-head {
    margin-bottom: 10px;
  }

  .page-home .solution-navigator-home .section-head h2 {
    font-size: 28px;
  }

  .page-home .solution-navigator-home .solution-axis-grid {
    grid-template-columns: 1fr;
  }

  .page-home .solution-axis-card-home {
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    min-height: 0;
    padding: 17px 14px;
  }

  .page-home .solution-axis-card-home .solution-axis-home-copy > strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero .page-hero-media img,
  .home-hero-stages::after {
    animation: none;
  }
}
