/* AERIS Halcyon H1 — wersja 3D na żywo: dodatki do ../dron/css/style.css */
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease) 0.1s; }
body.is-ready .gl { opacity: 1; }
body.no-webgl .gl { display: none; }
body.no-webgl .stage { background: radial-gradient(80% 60% at 50% 40%, #0c1a26, #02040a 70%); }
.stage__vignette { background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(2, 4, 8, 0.5) 100%), linear-gradient(180deg, rgba(2, 4, 8, 0.42), transparent 16%, transparent 72%, rgba(2, 4, 8, 0.55)); }

/* sekcja modelu: scena jest tłem, sterowanie na wierzchu */
.ch-model { min-height: calc(var(--svh) * 100); position: relative; display: grid; align-items: end; padding: calc(var(--svh) * 12) var(--pad) calc(var(--svh) * 7); background: none; }
.dragzone { position: absolute; inset: 0; z-index: 2; touch-action: pan-y; cursor: grab; }
.dragzone.grab { cursor: grabbing; }
.model3d { position: relative; z-index: 3; width: 100%; max-width: 78rem; margin: 0 auto; display: grid; gap: 1rem; pointer-events: none; }
.model3d .controls, .model3d .controls * { pointer-events: auto; }
.model3d .model__head { max-width: 34rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(5, 10, 16, 0.5), rgba(3, 6, 10, 0.72)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.model3d .viewer__hint { position: static; justify-self: center; }
.ch-model.touched .viewer__hint { opacity: 0; }
.model3d .controls { justify-items: start; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(5, 10, 16, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: fit-content; max-width: 100%; }
@media (min-width: 900px) {
  .ch-model { align-items: center; }
  .model3d { grid-template-columns: minmax(0, 28rem) 1fr; grid-template-areas: "head ." "ctl ."; align-content: start; gap: 1.2rem; }
  .model3d .model__head { grid-area: head; align-self: end; }
  .model3d .controls { grid-area: ctl; align-self: start; }
  .model3d .viewer__hint { position: absolute; right: 2rem; bottom: 1.2rem; }
}
body.is-model .telemetry { opacity: 0; }
.ch-final { background: linear-gradient(180deg, rgba(3, 6, 10, 0), rgba(3, 6, 10, 0.9) 22%, rgba(3, 6, 10, 0.97)); }
body.no-webgl .model3d .controls, body.no-webgl .model3d .viewer__hint, body.no-webgl .dragzone { display: none; }

/* telefon: sekcja modelu — zwarta */
@media (max-width: 899px) and (orientation: portrait), (max-width: 639px) {
  .ch-model { padding-bottom: calc(env(safe-area-inset-bottom) + 0.8rem); }
  .model3d { gap: 0.6rem; }
  .model3d .model__head { padding: 0.65rem 0.9rem; }
  .model3d .model__head p:not(.num) { display: none; }
  .model3d .model__head h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); margin: 0; }
  .model3d .model__head .num { margin-bottom: 0.2rem; }
  .model3d .viewer__hint { display: none; }
}
