/* Homepage hero: animated 3D freight yard (assets/js/freight-yard.js). */
.freight-visual { position: relative; min-width: 0; align-self: center; }
.freight-visual__top, .freight-visual__bottom { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.8px; color: #7e9ca9; margin-inline: 35px; }
.freight-visual__top { padding-bottom: 16px; border-bottom: 1px solid #24404c; }
.freight-visual__top span:first-child { color: #b4d5df; display: flex; align-items: center; gap: 9px; }
.freight-visual__top i { width: 5px; height: 5px; border-radius: 50%; background: #70edf3; box-shadow: 0 0 10px #43dfe9; }
.freight-visual__bottom { line-height: 1.8; font-size: 9px; }
.freight-visual__bottom strong { color: #b1cad3; font-weight: 500; }

/* The still image shows until the first 3D frame renders, and stays if WebGL or the script fails. */
.freight-stage { width: 100%; aspect-ratio: 1.08; position: relative; margin: -15px 0 -8px; }
.freight-stage canvas { display: block; width: 100%; height: 100%; position: relative; }
.freight-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.freight-stage[data-ready="true"] .freight-fallback { display: none; }

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.04fr 1fr; gap: 12px; }
  .freight-visual { width: calc(100% + 105px); margin-left: -32px; }
}
@media (max-width: 999px) {
  .freight-visual { max-width: 650px; width: 100%; margin: 12px auto 0; }
  .freight-stage { aspect-ratio: 1.55; margin: 0; }
}
@media (max-width: 540px) {
  .freight-visual__top, .freight-visual__bottom { margin-inline: 4px; font-size: 9.5px; letter-spacing: 1px; }
}
