/* The artwork is the interface. Keep only two small, legible control instruments. */
.hero-airflow-controls {
  position: absolute;
  z-index: 7;
  left: 50%;
  right: auto;
  bottom: 17px;
  transform: translateX(-50%);
  width: min(90%, 485px);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(23px, 3vw, 43px);
  color: #e6ffff;
  text-shadow: 0 1px 10px rgba(0, 6, 12, .95);
}
.hero-airflow-controls[hidden] { display: none !important; }

/* The hero shader already draws its own title: do not print another over it. */
.hero-stage.has-airflow-controls .stage-label,
.hero-stage.has-airflow-controls .stage-bottom-info,
.hero-stage.has-airflow-controls .stage-side-label { display: none; }
.hero-stage.has-airflow-controls::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 84px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(2, 10, 15, .74), rgba(2, 10, 15, .22) 62%, transparent);
}
.hero-control-group { min-width: 0; display: grid; gap: 4px; }
.hero-control-group--fan { width: 177px; }
.hero-control-group--direction { width: 234px; }
.hero-control-label {
  display: flex;
  justify-content: space-between;
  font: 500 9px var(--mono);
  letter-spacing: .17em;
  color: rgba(192, 226, 228, .78);
  white-space: nowrap;
}
.hero-control-label::after {
  content: ' / LIVE';
  color: rgba(162, 229, 228, .50);
  letter-spacing: .06em;
}
.hero-control-options {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 2px;
}
.hero-control-options::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 194, 204, .35) 10%, rgba(126, 194, 204, .35) 90%, transparent);
  pointer-events: none;
}
.hero-control-options button {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  height: 43px;
  display: grid;
  grid-template-rows: 22px 13px;
  align-items: center;
  justify-items: center;
  gap: 1px;
  padding: 2px 2px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(171, 199, 206, .72);
  font: 500 9px var(--mono);
  letter-spacing: .055em;
  cursor: pointer;
  transition: color .22s ease, transform .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero-control-options button svg {
  width: 33px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 8px rgba(3, 14, 19, .65));
}
.hero-control-group--fan button svg { width: 27px; }
.hero-control-options button::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #9df2ec;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(126, 235, 232, .55);
  transition: width .25s ease;
}
.hero-control-options button:hover { color: #e4ffff; transform: translateY(-2px); }
.hero-control-options button.selected { color: #b6fff6; }
.hero-control-options button.selected::after { width: 22px; }
.hero-control-options button:focus-visible {
  outline: 1px solid rgba(180, 255, 248, .9);
  outline-offset: 1px;
}

@media (max-width: 1100px) {
  /* On narrower screens the artwork, including its controls, comes before copy. */
  .hero-main { margin: 24px 0 32px; gap: 28px; }
  .hero-visual { order: -1; }
  .hero-stage { height: clamp(330px, 52vw, 520px); }
}
@media (max-width: 760px) {
  .hero-main { margin: 19px 0 26px; gap: 24px; }
  .hero-visual { order: -1; }
  .hero-stage { height: clamp(260px, 66vw, 380px); }
  .hero-airflow-controls { left: 50%; right: auto; bottom: 12px; width: calc(100% - 32px); gap: 19px; justify-content: center; }
  .hero-control-group--fan { width: 40%; }
  .hero-control-group--direction { width: 58%; }
  .hero-control-label { font-size: 8px; letter-spacing: .09em; }
  .hero-control-options button { height: 43px; font-size: 9px; }
  .hero-control-options button svg { width: 29px; height: 18px; }
  .hero-control-group--fan button svg { width: 24px; }
  .hero-stage.has-airflow-controls .scene-touchpoint { top: 39%; }
}
@media (max-width: 440px) {
  .hero-airflow-controls { left: 50%; right: auto; width: calc(100% - 20px); gap: 10px; }
  .hero-control-group--fan { width: 40%; }
  .hero-control-group--direction { width: 59%; }
  .hero-control-label { font-size: 7.5px; }
  .hero-control-label::after { content: ''; }
  .hero-control-options button { font-size: 8px; padding-left: 0; padding-right: 0; }
}
@media (max-height: 720px) and (min-width: 1051px) {
  .hero { padding-top: 15px; padding-bottom: 15px; }
  .hero-main { margin: 12px 0; }
  .hero-stage { height: min(64vh, 480px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-control-options button,
  .hero-control-options button::after { transition: none; }
}
