/* Iron Elite — athlete development lab identity (HUD, telemetry, blueprint) */

:root {
  --lab-mono: "Barlow Condensed", "SF Mono", ui-monospace, monospace;
  --hud-blue: rgba(61, 96, 136, 0.7);
  --hud-orange: rgba(242, 140, 0, 0.95);
  --grid-line: rgba(255, 255, 255, 0.06);
}

/* Blueprint grid overlay */
.lab-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, #000 20%, transparent 72%);
}

.lab-grid--dense {
  background-size: 24px 24px;
  opacity: 0.22;
}

/* Scan line (section accent) */
.lab-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud-orange), rgba(242, 242, 242, 0.35), transparent);
  opacity: 0.55;
  z-index: 3;
  pointer-events: none;
}

.home-flow .page-section {
  position: relative;
  overflow: hidden;
}

.hero--lab .lab-grid {
  z-index: 2;
}
.hero--lab .hero-hud {
  z-index: 4;
}
.hero--lab .hero-layout {
  z-index: 5;
}

/* Layered surfaces — avoid flat black blocks */
.about--lab {
  background:
    linear-gradient(180deg, rgba(242, 140, 0, 0.05) 0%, transparent 40%),
    var(--surface-dark, #111111);
}
.about--lab::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.programs--lab {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 160, 60, 0.06), transparent 55%),
    #08080a;
}

.proof--lab {
  background:
    linear-gradient(135deg, rgba(242, 140, 0, 0.04) 0%, transparent 50%),
    #080808;
}

.facility--lab {
  background: linear-gradient(180deg, #0c0c0e 0%, #050505 100%);
}

.cta--lab .cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* HUD corner brackets */
.hud-frame {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 3;
  border: 1px solid transparent;
}
.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(0, 174, 239, 0.45);
  border-style: solid;
}
.hud-frame::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.hud-frame::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-color: rgba(255, 160, 60, 0.45);
}

/* Telemetry readout chip */
.hud-readout {
  font-family: var(--lab-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-blue);
  padding: 6px 10px;
  border: 1px solid rgba(0, 174, 239, 0.35);
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  line-height: 1.3;
}
.hud-readout strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  margin-top: 2px;
}
.hud-readout--orange {
  color: var(--hud-orange);
  border-color: rgba(255, 160, 60, 0.35);
}
.hud-readout--orange strong {
  color: var(--orange-hi);
}

.hero-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-hud .hud-readout--tl {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  left: clamp(16px, 4vw, 40px);
}
.hero-hud .hud-readout--tr {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  right: clamp(16px, 4vw, 40px);
  text-align: right;
}
.hero-hud .hud-readout--br {
  position: absolute;
  bottom: 72px;
  right: clamp(16px, 4vw, 40px);
  text-align: right;
}

/* Hero telemetry rail */
.telemetry-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.telemetry-chip {
  font-family: var(--lab-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.65);
  color: var(--w85);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 calc(50% - 4px);
}
.telemetry-chip__axis {
  color: var(--muted, #9a9a9a);
  font-size: 8px;
}
.telemetry-chip__val {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.telemetry-chip--orange .telemetry-chip__axis {
  color: var(--hud-orange);
}
.telemetry-chip--orange .telemetry-chip__val {
  color: var(--orange-hi);
}

/* Metric progress bar */
.metric-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.metric-bar__fill {
  display: block;
  height: 100%;
  width: var(--val, 70%);
  background: linear-gradient(90deg, var(--orange), var(--orange-hi));
  box-shadow: 0 0 12px rgba(0, 174, 239, 0.35);
  transition: width 1.2s var(--ease-out, ease);
}
.reveal.is-in .metric-bar__fill {
  animation: metricPulse 2.5s ease-in-out infinite alternate;
}
@keyframes metricPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.15); }
}

/* Development pathway rail */
.pathway-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.pathway-rail__step {
  font-family: var(--lab-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w40);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.pathway-rail__step.is-active {
  color: var(--orange-hi);
  border-color: rgba(255, 160, 60, 0.45);
  background: rgba(255, 160, 60, 0.08);
  box-shadow: 0 0 20px rgba(255, 160, 60, 0.12);
}
.pathway-rail__step + .pathway-rail__step::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(242, 140, 0, 0.45);
  transform: translate(-100%, -50%);
}

/* Program / proof card lab accents */
.proof-card .hud-metric {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  font-size: 1.5rem;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 10, 18, 0.75);
  backdrop-filter: blur(4px);
}
.prog-card .telemetry-chip {
  margin-bottom: 10px;
}
.prog-card .pathway-phase {
  font-family: var(--lab-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-orange);
  margin-bottom: 6px;
  display: block;
}

.hud-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Oswald", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
}
.hud-metric__unit {
  font-family: var(--lab-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted, #9a9a9a);
}
.proof-card:nth-child(even) .hud-metric__unit {
  color: var(--orange-hi);
}

/* Facility diagnostics overlay */
.facility-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.facility-hud .hud-readout {
  position: absolute;
  font-size: 8px;
}
.facility-hud .hud-readout:nth-child(1) {
  top: 12px;
  left: 12px;
}
.facility-hud .hud-readout:nth-child(2) {
  bottom: 12px;
  right: 12px;
  text-align: right;
}

/* CTA development map */
.cta-lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lab-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-orange);
  border: 1px solid rgba(242, 140, 0, 0.35);
  padding: 6px 14px;
  margin-bottom: 12px;
  background: rgba(0, 20, 40, 0.4);
}
.cta-lab-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: hudBlink 2s ease-in-out infinite;
}
@keyframes hudBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Accent label variant */
.lbl--lab {
  color: var(--orange-hi);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lbl--lab::before {
  content: "//";
  color: var(--orange);
  opacity: 0.9;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #fff 0%, var(--orange-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .metric-bar__fill,
  .cta-lab-badge::before {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero-hud .hud-readout--tr,
  .hero-hud .hud-readout--br {
    display: none;
  }
  .telemetry-chip {
    flex: 1 1 calc(50% - 4px);
  }
  .pathway-rail__step {
    padding: 6px 10px;
    font-size: 8px;
  }
}
