/* teaser3d.css: the live 3D detector ([data-t3d], assets/hb/teaser3d.js). The host sets its size and ground. */
.t3d { position: relative; overflow: clip; isolation: isolate; touch-action: pan-y; }
.t3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; z-index: 1; }
.t3d.is-dragging .t3d__canvas { cursor: grabbing; }
.t3d__still { position: absolute; left: 50%; top: 50%; width: auto; height: 100%; max-width: 100%; object-fit: contain; transform: translate(-50%, -50%); transition: opacity .6s; pointer-events: none; }
.t3d.is-drawn .t3d__still { opacity: 0; }

/* tags pinned to the whips: the dot sits on the antenna, the words to one side */
.t3d__tags { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.t3d__tag { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.t3d__tag i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #f4f6fa; box-shadow: 0 0 0 4px rgb(255 255 255 / .14), 0 0 18px rgb(255 255 255 / .35); }
.t3d__tag p { position: absolute; top: 0; margin: 0; transform: translateY(-50%); display: grid; gap: 2px; white-space: nowrap; color: #a3a9b6; font: 400 13px/1.35 var(--font-text); text-align: left; }
.t3d__tag b { color: #f4f6fa; font: 500 16px/1.2 var(--font-text); }
.t3d__tag p::before { content: ""; position: absolute; top: 50%; width: 56px; height: 1px; background: rgb(255 255 255 / .45); }
.t3d__tag.is-left p { right: 14px; padding-right: 62px; text-align: right; }
.t3d__tag.is-left p::before { right: 0; }
.t3d__tag.is-right p { left: 14px; padding-left: 62px; }
.t3d__tag.is-right p::before { left: 0; }
@media (max-width: 639px) { .t3d__tag p span { display: none; } .t3d__tag p { font-size: 12px; } .t3d__tag b { font-size: 14px; } .t3d__tag.is-left p { padding-right: 34px; } .t3d__tag.is-right p { padding-left: 34px; } .t3d__tag p::before { width: 28px; } }

/* the hint: "drag to turn it", fades once someone does */
.t3d__hint { position: absolute; z-index: 2; margin: 0; display: inline-flex; align-items: center; gap: 10px; color: #a3a9b6; font: 500 13px/1.3 var(--font-text); pointer-events: none; transition: opacity .6s; }
.t3d__hint svg { width: 18px; height: 18px; flex: none; }
.t3d.is-touched .t3d__hint { opacity: 0; }
.t3d:not(.is-fine) .t3d__hint .fine, .t3d.is-fine .t3d__hint .coarse { display: none; }
