.home-hero .hero-ground {
  overflow: hidden;
  background: #9faab0;
}

/* The two exposures occupy the top and bottom halves of one image. */
.home-hero .hero-ground img {
  position: relative;
  inset: auto;
  left: 50%;
  width: max(100%, 900px);
  max-width: none;
  height: auto;
  transform: translate(-50%, -6.13%);
  clip-path: inset(0 0 50%);
  mask-image: linear-gradient(to bottom, black 46%, transparent 50%);
}

.hero-quote-comparison {
  display: grid;
  gap: .5rem;
  padding-top: .9rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.hero-trade-quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .65rem;
  margin: 0;
}

.hero-trade-quotes > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-trade-quotes dt {
  color: #c9d4e3;
  font: 400 .89rem/1.3 var(--sans);
}

.hero-trade-quotes dd {
  margin: .18rem 0 0;
  color: white;
  font: 600 1.16rem/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
}

.hero-bank-quote {
  text-align: right;
}

.hero-quote-rail {
  --rail-edge: .4rem;
  position: relative;
  block-size: 1.18rem;
  border-radius: .2rem;
  background:
    repeating-linear-gradient(to right, rgb(188 206 229 / 26%) 0 1px, transparent 1px 12.5%) center / calc(100% - .8rem) .82rem no-repeat,
    linear-gradient(#46556b, #46556b) center / calc(100% - .8rem) 1px no-repeat;
}

.hero-quote-spread {
  position: absolute;
  inset: calc(50% - 1px) var(--rail-edge) auto;
  block-size: 2px;
  background: var(--orange);
  transform-origin: left center;
}

.hero-market-marker,
.hero-bank-marker {
  position: absolute;
  inset-block-start: calc(50% - .25rem);
  inline-size: .5rem;
  block-size: .5rem;
  border-radius: 50%;
}

.hero-market-marker {
  inset-inline-start: calc(var(--rail-edge) - .25rem);
  background: #dce8f5;
}

.hero-bank-marker {
  inset-inline-end: calc(var(--rail-edge) - .25rem);
  background: #ff9c5a;
}

.hero-spread-result {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .55rem;
  color: #c9d4e3;
  font-size: .95rem;
}

.hero-spread-result b {
  color: #ff9c5a;
  font: 700 1.22rem/1.2 var(--sans);
}

/* The figures stay in the document and reserve their space throughout the reveal. */
.hero-markup {
  position: relative;
  justify-self: start;
  line-height: 1;
}

.hero-markup b { display: block; }

.hero-amount-cloud {
  position: absolute;
  top: -10px;
  left: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 20px);
  visibility: hidden;
  pointer-events: none;
}

.hero-example-note {
  display: block;
  margin-top: .3rem;
  color: #b9c4d2;
  font-size: .8rem;
}

@media (prefers-reduced-motion: no-preference) {
  .is-tracing .hero-quote-spread { transform: scaleX(var(--spread, 0)); }
  .is-tracing .hero-markup b {
    color: rgb(255 102 0 / var(--markup-fill-alpha, .24));
    -webkit-text-stroke: 1px #ffb47f;
  }
  .is-tracing.forming-amount .hero-amount-cloud { visibility: visible; }
  .is-tracing .hero-spread-result,
  .is-tracing .slip-scale { opacity: 0; }
}

.home-hero .first-light { display: none; }

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .home-hero .first-light {
    display: block;
    background: #0e1c2b;
    mask-image: linear-gradient(to right, black 40%, transparent 60%);
    mask-repeat: no-repeat;
    mask-size: 300% 100%;
    animation: first-light-sweep 3.6s cubic-bezier(.28,.34,.63,1) both;
  }

  .home-hero .first-light img {
    transform: translate(-50%, -56.13%);
    clip-path: inset(50% 0 0);
    mask-image: linear-gradient(to bottom, black 96%, transparent);
  }

  .home-hero.sweep-paused .first-light { animation-play-state: paused; }
  .home-hero.page-away .first-light { display: none; }
}

/* Start with the feather already on screen. At 10% the whole hero is warm. */
@keyframes first-light-sweep {
  from { mask-position: 76% 0; }
  to { mask-position: 10% 0; }
}
