/* Hero: the Ticker Field. Driven by hero-visuals.js; loaded after landing.css,
   which styles the copy itself. Here the copy is centred, and behind it an
   out-of-focus field of instruments drifts in from the left and right edges.
   (The Decision Frame chart this replaced is archived in
   prototypes/archive/2026-09-25-hero-decision-frame/as-shipped.) */

.tf-hero {
  display: flex;
  align-items: center;
  min-height: min(760px, 92vh);
  padding: 96px 0 104px;
}

/* A soft white pool behind the copy keeps it on a clean ground wherever the
   field drifts. */
.tf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 46% 58% at 50% 50%, #ffffff 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.tf-grid {
  justify-items: center;
}

.tf-hero .hero-copy {
  max-width: 1080px;
  text-align: center;
}

.tf-hero .hero-lead {
  max-width: 600px;
  margin-inline: auto;
}

.tf-hero .hero-actions,
.tf-hero .hero-meta {
  justify-content: center;
}

.tf-hero h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  text-wrap: balance;
}

/* The field. Solid at the edges and gone by the middle third, so nothing
   passes under the headline at full strength. */
.tf-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 14%, transparent 40%, transparent 60%, #000 86%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 14%, transparent 40%, transparent 60%, #000 86%, #000 100%);
}

.tf-item {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

.tf-item b {
  font-family: var(--font-main);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.tf-px,
.tf-ch {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tf-px {
  color: #3a3d42;
  transition: color 0.5s ease;
}

.tf-ch {
  font-size: 0.82em;
}

.tf-item.is-up .tf-ch {
  color: var(--teal-deep);
}

.tf-item.is-down .tf-ch {
  color: var(--danger);
}

/* A price that has just moved takes its direction's colour for a moment. */
.tf-item.tick-up .tf-px {
  color: var(--teal);
  transition-duration: 0.08s;
}

.tf-item.tick-down .tf-px {
  color: var(--danger);
  transition-duration: 0.08s;
}

/* Three depths: the farther, the smaller, fainter and softer. */
.tf-l0 {
  font-size: 12px;
  filter: blur(3.2px);
}

.tf-l1 {
  font-size: 15px;
  filter: blur(2px);
}

.tf-l2 {
  font-size: 19px;
  filter: blur(1.6px);
}

@media (max-width: 760px) {
  .tf-hero {
    min-height: 0;
    padding: 72px 0 80px;
  }

  .tf-hero::before {
    background: radial-gradient(ellipse 70% 52% at 50% 50%, #ffffff 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0) 100%);
  }

  .tf-field {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 34%, transparent 66%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 34%, transparent 66%, #000 100%);
  }

  .tf-l0 {
    font-size: 11px;
  }

  .tf-l1 {
    font-size: 13px;
  }

  .tf-l2 {
    font-size: 15px;
  }
}
