/* Home page: hero, capabilities, selected work and process. */

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.hero {
  background: var(--navy);
  color: var(--on-dark);
  padding-top: 64px;
}

.hero-v16-main {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero .eyebrow {
  color: var(--muted-dark);
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.5px;
  margin-bottom: 24px;
}

.hero h1 span {
  white-space: nowrap;
}

.hero .lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 470px;
  color: var(--muted-dark);
}

.hero-actions {
  margin-top: 32px;
  gap: 20px;
}

.hero .button.secondary {
  color: var(--blue-dark);
}

.hero-visual {
  min-width: 0;
}

.hero-showcase {
  display: block;
  position: relative;
  aspect-ratio: 1.15;
  background: var(--charcoal);
  overflow: hidden;
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual figcaption {
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted-dark);
}

.hero-visual figcaption a {
  color: var(--blue-dark);
}

.hero-service-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line-dark);
}

.hero-service-strip a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding-right: 24px;
  font-size: 14px;
}

.hero-service-strip strong {
  font-weight: 400;
}

.hero-service-strip a>span {
  color: var(--muted-dark);
  font-size: 12px;
}

.hero-service-strip a>span:last-child {
  margin-left: auto;
}

.selected-work {
  background: var(--charcoal);
  color: var(--on-dark);
}

.selected-work .eyebrow,
.selected-work .fine,
.selected-work .case-info p {
  color: var(--muted-dark);
}

.selected-work .text-link {
  color: var(--blue-dark);
  flex-shrink: 0;
}

.selected-work .media-disclaimer {
  color: var(--muted-dark);
}

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

.service-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-block: 24px 0;
  border-top: 1px solid var(--line);
}

.service-card h3 {
  font-size: 24px;
  line-height: 1.4;
  margin: 20px 0 14px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}

.service-card .text-link {
  margin-top: auto;
}

.service-arrow {
  display: none;
}

.integration-steps {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 32px;
}

.integration-step {
  position: relative;
}

.integration-step b {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}

.integration-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 34px;
  color: var(--muted);
}

.integration-step h3 {
  font-size: 24px;
  margin: 12px 0;
}

.integration-step p {
  font-size: 14px;
  color: var(--muted);
  max-width: 160px;
}

.integration-proof {
  margin-top: 32px;
}

.process-v16-section {
  background: var(--navy);
  color: var(--on-dark);
}

.process-v16 .eyebrow,
.process-v16 .lead {
  color: var(--muted-dark);
}

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

.process-item {
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.process-item b {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 400;
}

.process-item h3 {
  font-size: 20px;
  margin: 16px 0 8px;
}

.process-item p {
  font-size: 14px;
  color: var(--muted-dark);
}

.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: -.4px;
}

.cta-band .lead {
  margin: 24px auto 32px;
  font-size: 18px;
}

@media (min-width:1441px) {
  .hero h1 {
    font-size: 60px;
  }
}

@media (max-width:1100px) {
  .hero-v16-main {
    gap: 40px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero .lead {
    font-size: 17px;
  }
  .hero-service-strip a {
    font-size: 12px;
    gap: 8px;
    padding-right: 16px;
  }
  .service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 40px;
  }
}

@media (max-width:833px) {
  .hero {
    padding-top: 48px;
  }
  .hero-v16-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-showcase {
    aspect-ratio: 1.8;
  }
  .hero-service-strip {
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-top: 40px;
  }
  .hero-service-strip a {
    min-height: 64px;
    font-size: 14px;
    padding-right: 24px;
  }
  .hero-service-strip a:nth-child(n+3) {
    border-top: 1px solid var(--line-dark);
  }
  .integration-steps {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 32px;
  }
  .integration-step:not(:last-child)::after {
    content: none;
  }
  .process {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .hero {
    padding-top: 40px;
  }
  .hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
  }
  .hero .lead {
    font-size: 16px;
  }
  .hero-actions {
    gap: 12px;
    margin-top: 24px;
  }
  .hero-actions .button {
    font-size: 14px;
    padding-inline: 16px;
  }
  .hero-actions .secondary {
    padding-inline: 0;
  }
  .hero-showcase {
    aspect-ratio: 1.4;
  }
  .hero-visual figcaption {
    font-size: 11px;
  }
  .hero-service-strip {
    margin-top: 32px;
  }
  .hero-service-strip a {
    font-size: 12px;
    min-height: 60px;
    padding-right: 12px;
  }
  .hero-service-strip a>span:first-child {
    display: none;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-card {
    padding-top: 20px;
  }
  .service-card h3 {
    font-size: 22px;
    margin: 12px 0;
  }
  .service-card p {
    margin-bottom: 12px;
  }
  .integration-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .integration-step {
    display: grid;
    grid-template-columns: 28px 100px 1fr;
    gap: 12px;
    align-items: baseline;
    padding-block: 20px;
    border-top: 1px solid var(--line);
  }
  .integration-step h3 {
    font-size: 20px;
    margin: 0;
  }
  .integration-step p {
    max-width: none;
    font-size: 13px;
  }
  .process {
    gap: 28px 24px;
  }
  .process-item h3 {
    font-size: 17px;
    margin: 12px 0 8px;
  }
  .process-item p {
    font-size: 13px;
  }
  .cta-band h2 {
    font-size: 34px;
  }
  .cta-band .lead {
    font-size: 16px;
    margin-block: 20px 24px;
  }
}

@media (max-width:374px) {
  .hero h1 {
    font-size: 30px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding-inline: 12px;
  }
  .hero-service-strip a {
    font-size: 11px;
  }
  .integration-step {
    grid-template-columns: 24px 88px 1fr;
    gap: 8px;
  }
}

.hero-copy {
  min-width: 0;
}

@media (max-width:640px) {
  .hero h1 span {
    white-space: normal;
  }
}

main .home-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #1d1d1f;
  min-height: clamp(600px, 56vw, 820px);
  display: flex;
  flex-direction: column;
}

main .home-hero .container {
  width: 100%;
  max-width: none;
  position: static;
  overflow: visible;
}

main .home-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(60px, 7vw, 100px) 24px 32px;
  text-align: center;
}

main .home-hero h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin: 0 0 22px;
  font-weight: 600;
  color: #1d1d1f;
  text-shadow: none;
}

main .home-hero .lead {
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(29, 29, 31, .72);
  text-shadow: none;
}

main .home-hero .hero-actions {
  justify-content: center;
  margin-top: 28px;
  gap: 12px;
}

main .home-hero .button.primary {
  background: #0057d9;
  color: #fff;
  font-weight: 500;
  border-radius: 100px;
  padding-inline: 24px;
}

main .home-hero .button.primary:hover {
  background: #0046b8;
}

main .home-hero .button.secondary {
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, .22);
  padding-inline: 24px;
  background: transparent;
  border-radius: 100px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

main .home-hero .button.secondary:hover {
  border-color: rgba(0, 0, 0, .4);
  background: rgba(0, 0, 0, .04);
}

main .home-hero .hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #e8f0fb;
}

main .home-hero .hero-scene::before {
  // content: '';
  // position: absolute;
  // inset: 0;
  // z-index: 1;
  // background: linear-gradient(
  //   180deg,
  //   rgba(255, 255, 255, 1) 0%,
  //   rgba(255, 255, 255, .92) 18%,
  //   rgba(255, 255, 255, .5) 32%,
  //   rgba(255, 255, 255, 0) 52%
  // );
  // pointer-events: none;
}

main .home-hero .hero-scene > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

main .home-hero .hero-scene-text-mask {
  display: none;
}

main .home-hero .hero-scene::after {
  // content: '';
  // position: absolute;
  // inset: 0;
  // z-index: 2;
  // background:
  //   linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,.75) 9%, rgba(255,255,255,.1) 17%, transparent 24%),
  //   linear-gradient(to right, rgba(255,255,255,.7) 0%, transparent 15%);
  // pointer-events: none;
}

main .home-hero .hero-service-strip {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 1280px) / 2));
  right: max(24px, calc((100% - 1280px) / 2));
  bottom: 28px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 8px;
  background: rgba(8,24,55,.54);
  box-shadow: 0 18px 50px rgba(5,23,54,.22);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  overflow: hidden;
}

main .home-hero .hero-service-strip a {
  min-width: 0;
  min-height: 86px;
  padding: 0 24px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.2);
  transition: background-color .2s ease;
}

main .home-hero .hero-service-strip a:last-child {
  border-right: 0;
}

main .home-hero .hero-service-strip a:hover {
  background: rgba(255,255,255,.12);
}

main .home-hero .hero-service-strip a > span {
  flex: 0 0 auto;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

main .home-hero .hero-service-strip strong {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main .home-hero .hero-service-strip i {
  margin-left: auto;
  font-style: normal;
  color: rgba(255,255,255,.74);
}

main .selected-work {
  background: var(--main-soft);
  color: #1d1d1f;
}

main .selected-work .section-title {
  color: #1d1d1f;
}

main .selected-work .centered-head .text-link {
  justify-content: center;
  color: #0066cc;
}

main .selected-work .case-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

main .selected-work .case-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
}

main .selected-work .case-card-media {
  aspect-ratio: 1.55;
  border-radius: 11px;
}

main .selected-work .case-card-media img {
  transition: transform 420ms cubic-bezier(.22,.61,.36,1);
}

@media (hover:hover) {
  main .selected-work .case-card:hover .case-card-media img {
    transform: scale(1.055);
  }
}

main .selected-work .case-info {
  padding: 16px 2px 4px;
}

main .selected-work .case-info .fine {
  color: #86868b;
}

main .selected-work .case-info h3 {
  color: #1d1d1f;
  font-size: 18px;
}

main .selected-work .case-info h3 span {
  color: #0066cc;
}

main .selected-work .case-info p {
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.6;
}

main .selected-work .media-disclaimer {
  color: #86868b;
  text-align: center;
}

main .home-services {
  background: var(--main-dark);
  color: #f5f5f7;
}

main .home-services .section-title {
  color: #f5f5f7;
}

main .home-services .lead {
  color: #a1a1a6;
}

main .home-services .service-grid {
  gap: 14px;
}

main .home-services .service-card {
  min-height: 270px;
  padding: 26px;
  border: 0;
  border-radius: 11px;
  background: #2c2c2e;
}

main .home-services .service-card .num,
main .home-services .service-card p,
main .home-services .service-card .tag {
  color: #a1a1a6;
}

main .home-services .service-card h3 {
  color: #f5f5f7;
  font-size: 22px;
  margin: 18px 0 12px;
}

main .home-services .service-card .tag-row {
  margin-top: auto;
}

main .home-services .service-card .text-link {
  min-height: 32px;
  margin-top: 8px;
  color: #2997ff;
}

main .integration-v16 {
  background: #fff;
}

main .integration-steps {
  gap: 24px;
}

main .integration-step {
  text-align: center;
}

main .integration-step:not(:last-child)::after {
  right: -17px;
  top: 54px;
  color: #c7c7cc;
}

main .integration-step b {
  display: block;
  color: #86868b;
  font-size: 11px;
}

main .integration-step .step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 12px auto 14px;
  border-radius: 50%;
  background: var(--main-soft);
  position: relative;
}

main .integration-step .step-icon img {
  display: block;
  width: 38px;
  height: 38px;
}

main .integration-step h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

main .integration-step p {
  font-size: 12px;
  line-height: 1.55;
  max-width: 180px;
  margin-inline: auto;
}

main .chain-visual {
  display: block;
  position: relative;
  max-width: 1000px;
  aspect-ratio: 2.25;
  margin: 54px auto 0;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: rgba(0,0,0,.22) 3px 5px 30px;
}

main .chain-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main .chain-visual span {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  color: #2997ff;
  font-size: 13px;
}

main .process-v16-section {
  background: var(--main-soft);
  color: #1d1d1f;
}

main .process-v16 .section-title {
  color: #1d1d1f;
}

main .process-v16 .lead {
  color: #6e6e73;
}

main .process {
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

main .process-item {
  min-height: 160px;
  padding: 24px;
  border: 0;
  border-radius: 11px;
  background: #fff;
}

main .process-item b {
  color: #1d1d1f;
  font-size: 28px;
  font-weight: 600;
}

main .process-item h3 {
  color: #1d1d1f;
  margin: 8px 0;
  font-size: 17px;
}

main .process-item p {
  color: #86868b;
  font-size: 12px;
  line-height: 1.55;
}

main .cta-section {
  background: var(--main-dark);
  color: #f5f5f7;
}

main .cta-band h2 {
  color: #f5f5f7;
  font-size: clamp(34px,4vw,52px);
}

main .cta-band .lead {
  color: #a1a1a6;
}

@media (max-width: 960px) {
  main .selected-work .case-grid {
    grid-template-columns: repeat(2,1fr);
  }
  main .home-services .service-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 720px) {
  main .home-hero {
    padding: 0;
    min-height: 0;
    display: block;
  }
  main .home-hero .hero-copy {
    position: relative;
    z-index: 2;
  }
  main .home-hero .hero-scene {
    position: relative;
    inset: auto;
    width: 100%;
    height: 340px;
    z-index: 0;
  }
  main .home-hero .hero-service-strip {
    position: relative;
    inset: auto;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    z-index: 2;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  main .home-hero .hero-scene-text-mask {
    display: none;
  }
  main .home-hero .hero-scene {
    background: #fff;
  }
  main .home-hero .hero-scene::after {
    // background: linear-gradient(to right, rgba(255,255,255,.6) 0%, transparent 14%);
  }
  main .home-hero .hero-bottom-fade {
    display: none;
  }
  main .home-hero .hero-scene {
    min-height: 0;
  }
  main .home-hero .hero-scene > img {
    object-position: 30% 30%;
  }
  main .home-hero .hero-service-strip {
    left: 0;
    right: 0;
    bottom: auto;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  main .home-hero .hero-copy {
    padding: 52px 20px 34px;
  }
  main .home-hero h1 {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -.035em;
  }
  main .home-hero .lead {
    font-size: 16px;
    line-height: 1.65;
  }
  main .home-hero .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }
  main .home-hero .hero-actions .button {
    width: auto;
    flex: 1 1 0;
    padding-inline: 12px;
  }
  main .home-hero .hero-scene > img {
    object-position: 30% 30%;
  }
  main .home-hero .hero-service-strip {
    left: 0;
    right: 0;
    bottom: auto;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  main .home-hero .hero-service-strip::-webkit-scrollbar {
    display: none;
  }
  main .home-hero .hero-service-strip a {
    flex: 0 0 190px;
    min-height: 74px;
    padding: 0 18px;
    scroll-snap-align: start;
  }
  main .selected-work .case-grid,
  main .home-services .service-grid {
    grid-template-columns: 1fr;
  }
  main .selected-work .case-card {
    padding: 12px;
  }
  main .home-services .service-card {
    min-height: 0;
  }
  main .integration-steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 460px;
    margin-inline: auto;
  }
  main .integration-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    text-align: left;
    padding: 22px 0;
    border-top: 1px solid #e5e5e7;
  }
  main .integration-step b {
    grid-column: 1;
  }
  main .integration-step .step-icon {
    grid-column: 1;
    grid-row: 2/4;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  main .integration-step h3,
  main .integration-step p {
    grid-column: 2;
    margin: 0;
    max-width: none;
  }
  main .integration-step h3 {
    font-size: 18px;
  }
  main .integration-step p {
    margin-top: 5px;
  }
  main .integration-step:not(:last-child)::after {
    content: none;
  }
  main .chain-visual {
    aspect-ratio: 1.55;
    margin-top: 34px;
  }
  main .process {
    grid-template-columns: 1fr;
  }
  main .process-item {
    min-height: 0;
  }
}

@media (max-width: 390px) {
  main .home-hero h1 {
    font-size: 38px;
  }
  main .home-hero .hero-service-strip a {
    font-size: 12px;
    padding-inline: 16px;
  }
}

@media (max-width: 360px) {
  main .home-hero .hero-copy {
    padding: 42px 16px 28px;
  }
  main .home-hero h1 {
    font-size: 31px;
  }
  main .home-hero .lead {
    font-size: 15px;
  }
  main .home-hero .hero-actions .button {
    font-size: 12px;
    min-height: 44px;
  }
  main .home-hero .hero-scene {
    min-height: 410px;
  }
}
