/* The first viewport contains the earth hero (75%) and a services preview (25%). */
.app,
.bg{
  overflow-x: clip;
}

.hero{
  height: 75vh;
  height: 75dvh;
  min-height: 0;
  padding: 132px 0 36px;
}

.hero__container{
  width: min(1180px, 92vw);
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.hero__content{
  min-width: 0;
}

.hero .pill{
  margin-bottom: 12px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero__title{
  max-width: 100%;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero__title span.line-2{
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__subtitle{
  max-width: 64ch;
  margin: 12px auto 18px;
  font-size: 17px;
  line-height: 1.4;
}

.hero__cta,
.hero__creditBtn{
  min-width: 0;
  max-width: 100%;
}

.hero__creditBtn{
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
}

.hero__cta--stacked .hero__creditBtn{
  min-width: 0;
  max-width: 100%;
}

.hero__cta--stacked .btn.hero__examplesBtn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: #f2fafb;
  background: #132732;
  border: 1px solid #63a9bd;
}

.hero__cta--stacked .btn.hero__examplesBtn:hover,
.hero__cta--stacked .btn.hero__examplesBtn:focus-visible {
  color: #fff;
  background: #204352;
}

.hero .scrollCue{
  bottom: 10px;
  font-size: 11px;
}

#projects.section{
  padding-top: 24px !important;
}

#projects .sectionHead{
  gap: 6px;
  margin-bottom: 0;
}

#projects .sectionHead__title{
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

#projects .sectionHead__sub{
  font-size: 14px;
  line-height: 1.35;
}

#projects .projectsGrid{
  margin-top: 18px;
}

.nav__links{
  gap: 8px;
  font-size: 14px;
}

.tray__panel,
.tutorialDialog{
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 1320px){
  .nav{
    grid-template-columns: auto 1fr auto;
  }

  .nav__links{
    display: none;
  }

  .nav__burger{
    display: block;
  }

  .nav__brandLogo{
    height: 48px;
  }
}

/* A compact tutorial strip stays inside the hero, not at the viewport bottom. */
@media (max-width: 1199px), (max-height: 639px){
  .hero{
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .heroTutorials{
    top: auto;
    bottom: 12px;
    left: 16px;
    right: auto;
    display: flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    padding: 6px;
    transform: none;
  }

  .heroTutorials__head{
    display: grid;
    grid-template-columns: 30px;
    width: 30px;
    min-height: 30px;
    padding: 0;
  }

  .heroTutorials__headIcon{
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .heroTutorials__headCopy,
  .heroTutorials__count,
  .heroTutorials__itemCopy,
  .heroTutorials__arrow{
    display: none;
  }

  .heroTutorials__list{
    display: flex;
    gap: 6px;
    padding: 0;
    border: 0;
  }

  .heroTutorials__item{
    display: block;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
  }

  .heroTutorials__thumb{
    width: 54px;
  }

  .hero .scrollCue{
    display: none;
  }

  html[dir="rtl"] .heroTutorials__head,
  html[dir="rtl"] .heroTutorials__list{
    padding: 0;
    border: 0;
  }
}

/* Keep the complete tutorial window beside the hero on ordinary laptops. */
@media (min-width: 1200px) and (max-width: 1599px) and (min-height: 640px),
       (min-width: 1600px) and (min-height: 640px) and (max-height: 760px){
  .hero{
    padding-top: 128px;
    padding-bottom: 24px;
  }

  .hero__container{
    width: calc(100% - 300px);
    margin-left: 276px;
    margin-right: 24px;
  }

  .hero__title{
    font-size: 48px;
  }

  .hero__title span.line-2{
    font-size: 22px;
  }

  .hero__subtitle{
    font-size: 15px;
  }

  .heroTutorials{
    top: 128px;
    bottom: 16px;
    left: 16px;
    right: auto;
    width: 236px;
    height: max-content;
    margin-block: auto;
    padding: 12px;
    transform: none;
  }

  .heroTutorials__head{
    grid-template-columns: 34px minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 9px;
    min-height: 40px;
    padding: 0 4px 10px;
  }

  .heroTutorials__headIcon{
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .heroTutorials__headCopy,
  .heroTutorials__itemCopy{
    display: grid;
  }

  .heroTutorials__headCopy strong{
    font-size: 13px;
  }

  .heroTutorials__headCopy small{
    font-size: 10px;
  }

  .heroTutorials__count,
  .heroTutorials__arrow{
    display: block;
  }

  .heroTutorials__count{
    font-size: 11px;
  }

  .heroTutorials__list{
    gap: 2px;
    padding-top: 6px;
  }

  .heroTutorials__item{
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 52px;
    padding: 6px 3px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .heroTutorials__item:last-child{
    border-bottom: 0;
  }

  .heroTutorials__thumb{
    width: 62px;
  }

  .heroTutorials__play{
    font-size: 15px;
  }

  .heroTutorials__itemCopy small{
    font-size: 9px;
  }

  .heroTutorials__itemCopy strong{
    font-size: 11px;
  }

  .heroTutorials__arrow{
    font-size: 15px;
  }

  .hero .scrollCue{
    display: none;
  }
}

@media (max-width: 900px){
  .hero{
    padding-top: 104px;
  }

  .hero__title{
    font-size: 42px;
  }

  .hero__title span.line-2{
    font-size: 20px;
  }

  .hero__subtitle{
    font-size: 15px;
  }

  #projects.section{
    padding-top: 18px !important;
  }

  #projects .sectionHead__title{
    font-size: 26px;
  }

  #projects .sectionHead__sub{
    font-size: 13px;
  }

  #projects .projectsGrid{
    margin-top: 14px;
  }
}

@media (max-height: 740px) and (max-width: 900px){
  .hero{
    padding-top: 98px;
    padding-bottom: 64px;
  }

  .hero .pill{
    margin-bottom: 6px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .hero__title{
    font-size: 34px;
  }

  .hero__title span.line-2{
    font-size: 16px;
  }

  .hero__subtitle{
    margin: 8px auto 12px;
    font-size: 13px;
    line-height: 1.3;
  }

  .hero__creditBtn{
    padding: 8px 12px;
    font-size: 12px;
  }

  .heroTutorials__thumb{
    width: 48px;
  }
}

@media (max-height: 620px){
  .nav{
    top: 8px;
    grid-template-columns: auto 1fr auto;
    padding: 8px 10px;
  }

  .nav__links{
    display: none;
  }

  .nav__burger{
    display: block;
  }

  .nav__partners{
    gap: 6px;
  }

  .nav__partner{
    height: 34px;
    padding: 4px 8px;
  }

  .nav__partner img{
    height: 22px;
  }

  .nav__brandLogo{
    height: 40px;
  }

  .hero{
    padding-top: 78px;
    padding-bottom: 56px;
  }

  .hero .pill{
    display: none;
  }

  .hero__title{
    font-size: 30px;
  }

  .hero__title span.line-2{
    font-size: 14px;
  }

  .hero__subtitle{
    margin: 6px auto 10px;
    font-size: 12px;
    line-height: 1.3;
  }

  .hero__creditBtn{
    padding: 7px 10px;
    font-size: 12px;
  }

  .heroTutorials{
    bottom: 8px;
  }

  .heroTutorials__thumb{
    width: 42px;
  }

  #projects.section{
    padding-top: 12px !important;
  }

  #projects .sectionHead__title{
    font-size: 24px;
  }

  #projects .sectionHead__sub{
    font-size: 12px;
  }
}

@media (min-width: 641px) and (max-height: 900px),
       (min-width: 641px) and (max-width: 1199px){
  .welcomeCreditCta{
    right: 20px;
    left: auto;
    bottom: 12px;
    width: 330px;
    min-height: 0;
    gap: 10px;
    padding: 10px;
  }

  .welcomeCreditCta__details{
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .welcomeCreditCta__icon{
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .welcomeCreditCta__title{
    font-size: 13px;
    line-height: 1.3;
  }

  .welcomeCreditCta__eyebrow{
    font-size: 9px;
  }

  .welcomeCreditCta__meta{
    font-size: 11px;
    line-height: 1.2;
  }

  .welcomeCreditCta__action span{
    display: none;
  }
}

@media (max-height: 800px), (max-width: 640px){
  .welcomeCreditCta{
    bottom: 8px;
    min-height: 0;
    gap: 8px;
    padding: 6px;
  }

  .welcomeCreditCta__details{
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .welcomeCreditCta__icon{
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .welcomeCreditCta__eyebrow,
  .welcomeCreditCta__action span{
    display: none;
  }

  .welcomeCreditCta__meta{
    display: block;
    font-size: 10px;
    line-height: 1.2;
  }

  .welcomeCreditCta__title{
    font-size: 12px;
    line-height: 1.25;
  }

  .welcomeCreditCta__actions{
    gap: 6px;
  }

  .welcomeCreditCta__info{
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 18px;
  }
}

@media (max-height: 540px) and (orientation: portrait){
  .hero__title{
    font-size: 26px;
  }

  .hero__title span.line-2{
    font-size: 12px;
  }

}

@media (max-height: 620px) and (orientation: portrait){
  #projects .sectionHead__sub{
    display: none;
  }
}

@media (max-height: 500px) and (orientation: landscape){
  .hero{
    padding-top: 74px;
    padding-bottom: 54px;
  }

  .hero__content{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr);
    gap: 16px;
    align-items: center;
    text-align: start;
  }

  .hero__title{
    font-size: 28px;
  }

  .hero__title span.line-2{
    font-size: 12px;
  }

  .hero__subtitle{
    display: none;
  }

  .hero__cta{
    width: 100%;
  }

  #projects .sectionHead{
    align-items: flex-start;
    text-align: start;
    max-width: calc(100% - 310px);
  }

  .welcomeCreditCta{
    right: 12px;
    left: auto;
    width: 290px;
  }

  html[dir="rtl"] .welcomeCreditCta{
    right: auto;
    left: 12px;
  }
}

@media (max-height: 440px) and (orientation: portrait){
  .hero__subtitle{
    display: none;
  }
}

@media (max-width: 360px) and (orientation: portrait){
  #projects.section{
    padding-top: 12px !important;
  }

  #projects .sectionHead__title{
    font-size: 22px;
  }

  #projects .sectionHead__sub{
    display: none;
  }
}

@media (max-height: 500px) and (orientation: portrait){
  #projects.section{
    padding-top: 8px !important;
  }

  #projects .sectionHead__title{
    font-size: 20px;
  }
}
