/*
 * Hero telemetry and controls
 *
 * A monochrome liquid-glass instrument for the measured result, paired with
 * quiet white hero navigation. Typography, opacity, and motion establish state
 * without blue accents, numbered steps, or progress underlines.
 */

.result-readout {
  position: absolute;
  right: auto;
  bottom: clamp(22px, 3.4vw, 48px);
  left: 50%;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(520px, calc(100% - 96px));
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
  box-shadow: none;
  backdrop-filter: blur(10px) saturate(1.02);
  -webkit-backdrop-filter: blur(10px) saturate(1.02);
  transform: translateX(-50%);
}

.result-readout::before,
.result-readout::after {
  display: none;
}

.result-readout .result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  padding: 10px 14px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.result-readout .result + .result {
  border-left: 0;
}

.result-readout .result + .result::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.result-readout .result span {
  grid-column: 1 / -1;
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-readout .result strong {
  align-self: end;
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Inter Tight", var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: none;
}

.result-readout .result em {
  align-self: end;
  margin-left: 6px;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

/* Hero stage index: white typography only, with a dash instead of numbers. */
.stage-index {
  width: 142px;
  row-gap: 7px;
}

.stage-item {
  grid-template-columns: 1fr;
  min-height: 32px;
  color: rgb(255, 255, 255);
  opacity: 0.4;
  transition:
    opacity 180ms ease-out,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-item::before {
  display: none;
}

.stage-item span {
  display: none;
}

.stage-item strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.stage-item strong::before {
  content: "—";
  color: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.stage-item:hover,
.stage-item:focus-visible {
  color: rgb(255, 255, 255);
  opacity: 0.72;
  transform: translateX(-2px);
}

.stage-item.is-active {
  color: rgb(255, 255, 255);
  opacity: 1;
  transform: translateX(-5px);
}

.stage-item.is-active::before {
  display: none;
  width: 0;
}

.stage-item:focus-visible {
  outline-color: rgba(255, 255, 255, 0.88);
}

/* Scroll prompt: the text, track, and moving highlight are monochrome white. */
.scroll-cue {
  color: rgba(255, 255, 255, 0.56);
}

.scroll-cue i {
  background: rgba(255, 255, 255, 0.18);
}

.scroll-cue i::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.96),
    transparent
  );
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.32));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .result-readout {
    background: rgba(16, 17, 20, 0.35);
  }
}

@media (max-width: 820px) {
  .result-readout {
    bottom: clamp(16px, 2.8vw, 28px);
    width: min(460px, calc(100% - 48px));
    padding: 2px;
    border-radius: 14px;
  }

  .result-readout .result {
    padding: 9px 12px 8px;
  }

  .result-readout .result + .result::before {
    top: 10px;
    bottom: 10px;
  }

  .result-readout .result span {
    margin-bottom: 4px;
    font-size: 6.5px;
  }

  .result-readout .result strong {
    font-size: clamp(18px, 3.8vw, 24px);
  }

  .result-readout .result em {
    margin-left: 5px;
    font-size: 6px;
  }

  .stage-index {
    width: min(390px, calc(100vw - 48px));
  }

  .stage-item {
    justify-items: center;
    min-height: 34px;
    text-align: center;
  }

  .stage-item:hover,
  .stage-item:focus-visible,
  .stage-item.is-active {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .result-readout {
    width: calc(100% - 28px);
    padding: 2px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
  }

  .result-readout .result {
    min-height: 0;
    padding: 8px 8px 7px;
    border-radius: 0;
  }

  .result-readout .result + .result::before {
    top: 8px;
    bottom: 8px;
  }

  .result-readout .result span {
    margin-bottom: 3px;
    font-size: 5.8px;
    letter-spacing: 0.1em;
  }

  .result-readout .result strong {
    font-size: clamp(16px, 5vw, 20px);
    letter-spacing: -0.04em;
  }

  .result-readout .result em {
    margin-left: 3px;
    padding-bottom: 1px;
    font-size: 5.5px;
    letter-spacing: 0.1em;
  }

  .stage-index {
    width: calc(100vw - 36px);
  }

  .stage-item strong {
    gap: 6px;
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-readout,
  .stage-item {
    transition: none;
  }
}