/* Numbered annotations stay attached to the original product screenshots. */
.annotated-flight {
  padding-top: 72px;
  padding-bottom: 68px;
}

.flight-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 30px 55px;
  align-items: start;
}

.flight-demo-heading {
  grid-column: 2;
  grid-row: 1;
}

.flight-demo-heading .eyebrow {
  margin-bottom: 18px;
}

.annotated-flight .flight-demo-heading h2 {
  font-size: clamp(30px, 2.9vw, 39px);
  line-height: 1.18;
}

.flight-demo-figure {
  grid-column: 1;
  grid-row: 1 / 3;
  min-width: 0;
  align-self: center;
}

.flight-card-art {
  position: relative;
  width: 100%;
  isolation: isolate;
  container-type: inline-size;
}

.flight-card-art picture,
.flight-card-art img {
  display: block;
  width: 100%;
}

.flight-card-art img {
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.flight-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flight-highlight {
  position: absolute;
  display: block;
  border: 2px solid var(--gold);
  border-radius: 9px;
  box-shadow: 0 0 0 3px rgba(233, 185, 73, .07);
}

.flight-highlight > span,
.flight-guide-number {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #16140e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* Each number grows and shrinks with the picture and sits on its box's corner, clear of the words inside. */
.flight-highlight > span {
  position: absolute;
  left: -14px;
  top: -14px;
  width: clamp(19px, 3.8cqi, 24px);
  height: clamp(19px, 3.8cqi, 24px);
  left: calc(clamp(19px, 3.8cqi, 24px) * -0.6);
  top: calc(clamp(19px, 3.8cqi, 24px) * -0.6);
  font-size: clamp(9px, 1.75cqi, 11px);
  box-shadow: 0 0 0 3px #17181c;
}

.highlight-arrival {
  left: 73%;
  top: 4.2%;
  width: 25.4%;
  height: 12.7%;
}

.highlight-work {
  left: .8%;
  top: 26.7%;
  width: 58.8%;
  height: 9.4%;
}

.highlight-cash {
  left: .8%;
  top: 37.8%;
  width: 72.2%;
  height: 8.3%;
}

.highlight-awards {
  left: .8%;
  top: 47.9%;
  width: 97.6%;
  height: 38%;
}

.flight-demo-figure figcaption {
  margin-top: 17px;
  max-width: 520px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.8;
}

.flight-guide {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flight-guide > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.flight-guide-number {
  margin-top: 1px;
}

.flight-guide h3 {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -.015em;
}

.flight-guide p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* The time before work is a heading like the others, its figure in gold. */
.flight-guide-work h3 strong {
  color: var(--gold);
  font-weight: inherit;
}

@media (max-width: 1050px) {
  .flight-demo {
    gap: 27px 34px;
  }
  .annotated-flight .flight-demo-heading h2 {
    font-size: 30px;
  }
  .flight-guide {
    gap: 19px;
  }
  .flight-guide p {
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .annotated-flight {
    padding-top: 60px;
    padding-bottom: 55px;
  }
  .flight-demo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
  }
  .flight-demo-heading,
  .flight-demo-figure,
  .flight-guide {
    grid-column: 1;
    grid-row: auto;
  }
  .annotated-flight .flight-demo-heading h2 {
    font-size: 38px;
  }
  .flight-demo-heading h2 br {
    display: none;
  }
  .flight-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 30px;
  }
  .flight-guide p {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .annotated-flight {
    padding-top: 44px;
    padding-bottom: 42px;
  }
  .flight-demo {
    gap: 27px;
  }
  .flight-demo-heading .eyebrow {
    margin-bottom: 15px;
  }
  .annotated-flight .flight-demo-heading h2 {
    font-size: 32px;
    line-height: 1.2;
  }
  .flight-demo-figure {
    max-width: 440px;
    width: 100%;
    justify-self: center;
  }
  .flight-card-art img {
    border-radius: 10px;
  }
  .flight-highlight {
    border-width: 1.5px;
    border-radius: 7px;
  }
  .flight-highlight > span {
    width: 20px;
    height: 20px;
    font-size: 9px;
    top: -16px;
    left: -9px;
    box-shadow: 0 0 0 2px #17181c;
  }
  /* On the phone picture the trip's length is written above this box's corner, so its number sits halfway down. */
  .highlight-arrival > span {
    top: calc(50% - 10px);
  }
  .highlight-arrival {
    left: 51.7%;
    top: 21.6%;
    width: 42.8%;
    height: 10.2%;
  }
  .highlight-work {
    left: 5.1%;
    top: 39.2%;
    width: 89.8%;
    height: 7.4%;
  }
  .highlight-cash {
    left: 5.1%;
    top: 8%;
    width: 89.8%;
    height: 9.6%;
  }
  .highlight-awards {
    left: 5.1%;
    top: 48.8%;
    width: 89.8%;
    height: 43.4%;
  }
  .flight-demo-figure figcaption {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 13px;
  }
  .flight-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }
  .flight-guide > li {
    gap: 13px;
  }
  .flight-guide h3 {
    font-size: 15px;
  }
  .flight-guide p {
    font-size: 13px;
    line-height: 1.85;
  }
}
