/* Full avatar demonstration ported from bullettrain67. */
@keyframes floatPanel {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes speakingGlow {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(0,229,160,0.18),
      0 0 22px rgba(0,229,160,0.40),
      0 0 50px rgba(0,229,160,0.22),
      inset 0 0 30px rgba(0,229,160,0.06);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(0,229,160,0.30),
      0 0 32px rgba(0,229,160,0.65),
      0 0 70px rgba(0,229,160,0.40),
      inset 0 0 38px rgba(0,229,160,0.12);
  }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.32); }
  50%      { transform: scaleY(1.05); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(0.78); opacity: 0.55; }
}
@keyframes dashRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hav-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hav-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Stage + card */
.hav-stage {
  position: relative;
  padding: 24px 28px;
}

.hav-card {
  background: rgba(8,12,24,0.85);
  border: 1px solid rgba(27,158,255,0.18);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  animation: floatPanel 6s ease-in-out infinite;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(27,158,255,0.07), inset 0 1px 0 rgba(255,255,255,0.04);
}

.hav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 50% 0%, rgba(27,158,255,0.07), transparent 60%);
  pointer-events: none;
}

/* Top bar */
.hav-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hav-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-green);
  letter-spacing: 0.06em;
}

.hav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-green);
  box-shadow: 0 0 8px rgba(0,229,160,0.9);
  animation: pulse 1.4s ease-in-out infinite;
  display: inline-block;
}

.hav-mode-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 20px;
  padding: 3px 12px;
  border: 1px solid rgba(27,158,255,0.30);
  background: rgba(27,158,255,0.18);
  color: #4DCFFF;
  transition: background 0.5s, border-color 0.5s, color 0.5s;
}

/* Avatar rings */
.hav-avatar-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.hav-rings {
  position: relative;
  width: 148px;
  height: 148px;
  margin-bottom: 16px;
}

.hav-ring {
  position: absolute;
  border-radius: 50%;
}

.hav-ring-1 {
  inset: 0;
  border: 2px solid transparent;
  border-top-color: rgba(27,158,255,0.7);
  border-bottom-color: rgba(27,158,255,0.2);
  animation: spin 3s linear infinite;
}

.hav-ring-2 {
  inset: 12px;
  border: 2px solid transparent;
  border-left-color: rgba(0,229,160,0.6);
  border-right-color: rgba(0,229,160,0.15);
  animation: spin 5s linear infinite reverse;
}

.hav-ring-3 {
  inset: 26px;
  border: 2px solid transparent;
  border-top-color: rgba(139,92,246,0.55);
  border-bottom-color: rgba(139,92,246,0.1);
  animation: spin 8s linear infinite;
}

.hav-face {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a2744, #0d1830);
  border: 1px solid rgba(27,158,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(27,158,255,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Waveform */
.hav-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
}

.hav-wave-bar {
  width: 3px;
  height: var(--bar-h, 16px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 50%, var(--signal-green) 100%);
  animation-name: wave;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
  animation-play-state: paused;
  transform-origin: 50% 50%;
  transform: scaleY(0.32);
  opacity: 0.45;
  box-shadow: 0 0 6px rgba(27,158,255,0.45);
  transition: opacity 0.25s;
}
.hav-waveform.is-speaking .hav-wave-bar {
  animation-play-state: running;
  opacity: 0.9;
}

/* Industry label */
.hav-industry-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.4s;
}

/* Conversation (auto-scroll only, user scrolling locked) */
.hav-convo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  height: 138px;
  overflow: hidden;                 /* lock user scroll */
  padding: 12px 12px 12px 12px;
  background: rgba(8,12,24,0.55);
  border: 1px solid rgba(27,158,255,0.16);
  border-radius: 12px;
  scroll-behavior: smooth;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  touch-action: none;               /* block touch scroll on mobile */
  overscroll-behavior: contain;
}

.hav-bubble {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.3s;
  max-width: 88%;
}

.hav-avatar-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.hav-user-bubble {
  background: rgba(27,158,255,0.12);
  border: 1px solid rgba(27,158,255,0.24);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Score row */
.hav-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hav-score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

.hav-score-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.hav-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  width: 0%;
}

.hav-score-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft);
  min-width: 32px;
  text-align: right;
}

/* Floating skill tags */
.hav-tag {
  position: absolute;
  background: rgba(8,12,24,0.92);
  border: 1px solid rgba(27,158,255,0.22);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-soft);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  z-index: 10;
  pointer-events: none;
}

.hav-tag-1 { top: 4px;   left: 10px;  animation: floatTag 5.0s ease-in-out infinite 0.0s; }
.hav-tag-2 { top: 18px;  right: 0px;  animation: floatTag 6.2s ease-in-out infinite 1.1s; }
.hav-tag-3 { bottom: 54px; right: -8px; animation: floatTag 5.8s ease-in-out infinite 0.6s; }
.hav-tag-4 { bottom: 12px; left: 6px;  animation: floatTag 6.6s ease-in-out infinite 1.8s; }

@keyframes floatTag {
  0%,100% { transform: translateY(0)   translateX(0);   }
  33%      { transform: translateY(-7px) translateX(4px);  }
  66%      { transform: translateY(5px)  translateX(-3px); }
}

/* ── Video call window ─────────────────────────────────────── */
.hav-video-window {
  width: 100%;
  height: 290px;
  background: linear-gradient(155deg, #0C1A2E 0%, #071018 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1.5px solid rgba(27,158,255,0.14);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.hav-video-window.is-speaking {
  border-color: rgba(0,229,160,0.85);
  animation: speakingGlow 1.6s ease-in-out infinite;
}

/* Office environment behind person */
.hav-video-env {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% 15%, rgba(255,235,200,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 45% 60% at 10% 85%, rgba(0,0,0,0.45) 0%, transparent 55%);
}
.hav-video-env::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 28%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 20px,
    rgba(255,255,255,0.016) 20px, rgba(255,255,255,0.016) 21px
  );
}

/* ── Pixar-style person figure ──────────────────────────────── */
.hav-person-wrap {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* Head group - contains ears, hair, face as layered siblings */
.hav-head-group {
  width: 110px;
  height: 130px;
  position: relative;
  flex-shrink: 0;
}

/* Ears */
.hav-ear {
  position: absolute;
  width: 17px; height: 24px;
  background: linear-gradient(160deg, var(--av-skin-2, #E8A870) 0%, var(--av-skin-3, #C97A48) 100%);
  border-radius: 60% 60% 50% 50% / 55% 55% 45% 45%;
  top: 64px;
  z-index: 1;
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.20), 0 2px 4px rgba(0,0,0,0.30);
}
.hav-ear-l { left: -5px; }
.hav-ear-r { right: -5px; }
/* Inner ear */
.hav-ear::after {
  content: '';
  position: absolute;
  inset: 5px 4px 5px 4px;
  background: rgba(0,0,0,0.14);
  border-radius: 50%;
}

/* Hair - single continuous shape, sits behind the face-ball */
.hav-hair-cap {
  position: absolute;
  top: -2px; left: -4px; right: -4px;
  height: 76px;
  background:
    radial-gradient(ellipse 65% 70% at 50% 18%, rgba(255,255,255,0.05) 0%, transparent 60%),
    linear-gradient(170deg, var(--av-hair-1, #2A1808) 0%, var(--av-hair-2, #0E0703) 60%, var(--av-hair-1, #2A1808) 100%);
  border-radius: 58% 58% 38% 38% / 60% 60% 40% 40%;
  z-index: 2;
  box-shadow: 0 8px 16px rgba(0,0,0,0.55);
}
/* No separate side flaps for male - single shape only */
.hav-hair-cap::before,
.hav-hair-cap::after {
  content: none;
}

/* Female: same continuous shape, just taller and wider so it flows past the
   shoulders. The face-ball (higher z-index) cuts through it cleanly. */
.hav-person-wrap.is-female .hav-hair-cap {
  top: -4px;
  left: -10px;
  right: -10px;
  height: 144px;
  border-radius: 52% 52% 36% 36% / 28% 28% 72% 72%;
  background:
    radial-gradient(ellipse 70% 40% at 50% 12%, rgba(255,255,255,0.06) 0%, transparent 60%),
    linear-gradient(170deg, var(--av-hair-1, #1A0E05) 0%, var(--av-hair-2, #0E0703) 80%, var(--av-hair-2, #0E0703) 100%);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.55),
    inset -4px -8px 16px rgba(0,0,0,0.30),
    inset  4px -8px 16px rgba(0,0,0,0.30);
}

/* Face sphere - Pixar-style warm skin, more vertical / less smushed */
.hav-face-ball {
  position: absolute;
  bottom: 0; left: 4px; right: 4px;
  height: 116px;
  background: radial-gradient(
    ellipse 60% 58% at 40% 32%,
    var(--av-skin-1, #F4CC9A) 0%,
    var(--av-skin-2, #E2A66A) 28%,
    var(--av-skin-3, #CA7E46) 58%,
    var(--av-skin-4, #A65A26) 100%
  );
  border-radius: 44% 44% 46% 46% / 46% 46% 50% 50%;
  z-index: 3;                         /* sits in front of the continuous hair shape */
  overflow: hidden;
  box-shadow:
    inset -8px -6px 18px rgba(0,0,0,0.26),
    inset  6px 8px 14px rgba(255,206,150,0.28);
}

/* Subtle chin shadow inside face-ball */
.hav-face-ball::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 18px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
}

/* Eyebrows */
.hav-eyebrow {
  position: absolute;
  width: 22px; height: 4px;
  background: linear-gradient(180deg, var(--av-brow, #2A1808) 0%, var(--av-brow-deep, #1C0E04) 100%);
  border-radius: 4px 4px 2px 2px;
  top: 53px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.hav-ebrow-l { left: 13px;  transform: rotate(-7deg);  transform-origin: right center; }
.hav-ebrow-r { right: 13px; transform: rotate(7deg);   transform-origin: left center; }

/* Eye sockets - proportional, slightly smaller */
.hav-eye-socket {
  position: absolute;
  width: 23px; height: 19px;
  background: linear-gradient(180deg, #FAFAFA 0%, #ECECE8 100%);
  border-radius: 50%;
  top: 60px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.20), 0 1px 2px rgba(0,0,0,0.25);
}
.hav-eye-l { left: 13px;  }
.hav-eye-r { right: 13px; }

/* Iris */
.hav-iris {
  position: absolute;
  width: 14px; height: 15px;
  background: radial-gradient(circle at 36% 32%, var(--av-iris-1, #6FBCFF) 0%, var(--av-iris-2, #1A72D4) 48%, var(--av-iris-3, #0A4490) 100%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -42%);
  box-shadow: 0 1px 3px rgba(0,0,80,0.35);
}

/* Pupil */
.hav-pupil {
  position: absolute;
  width: 7px; height: 7px;
  background: #080808;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Specular highlight */
.hav-shine {
  position: absolute;
  width: 2.5px; height: 2.5px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  top: 1px; right: 1.5px;
}

/* Nose - visible bridge with shadow + warm highlight */
.hav-nose-btn {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 14px;
  background: linear-gradient(170deg, rgba(255,210,160,0.45) 0%, rgba(180,90,40,0.30) 100%);
  border-radius: 50% 50% 60% 60% / 50% 50% 60% 60%;
  box-shadow:
    -1px 2px 3px rgba(0,0,0,0.20),
     2px 0 4px rgba(0,0,0,0.10);
}
/* Nostril hint */
.hav-nose-btn::before,
.hav-nose-btn::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 2px; height: 1.5px;
  background: rgba(0,0,0,0.30);
  border-radius: 50%;
}
.hav-nose-btn::before { left: 1.5px; }
.hav-nose-btn::after  { right: 1.5px; }

/* Mouth */
.hav-mouth {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 7px;
  background: linear-gradient(180deg, #8E4525 0%, #5C2A14 100%);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  transition: height 0.07s, width 0.07s, border-radius 0.07s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.30);
}
.hav-mouth.open {
  height: 16px;
  width: 22px;
  border-radius: 5px 5px 14px 14px;
}
.hav-teeth {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(180deg, #FBF8F1 0%, #E8E4DC 100%);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.07s;
}
.hav-mouth.open .hav-teeth { opacity: 1; }

/* Blush cheeks */
.hav-blush {
  position: absolute;
  width: 22px; height: 11px;
  background: radial-gradient(ellipse, rgba(255,120,90,0.30) 0%, transparent 80%);
  border-radius: 50%;
  bottom: 30px;
}
.hav-blush-l { left: 4px;  }
.hav-blush-r { right: 4px; }

/* Front bangs / forehead hair - sits in front of face-ball. Matches the
   top position, side widths, and top-corner curvature of .hav-hair-cap so
   there's no visible seam between the front and back hair shapes. */
.hav-bangs {
  position: absolute;
  /* Match .hav-hair-cap exactly on the top + sides */
  top: -2px;
  left: -4px;
  right: -4px;
  height: 64px;
  background:
    radial-gradient(ellipse 65% 70% at 50% 18%, rgba(255,255,255,0.05) 0%, transparent 60%),
    linear-gradient(170deg, var(--av-hair-1, #2A1808) 0%, var(--av-hair-2, #0E0703) 60%, var(--av-hair-1, #2A1808) 100%);
  /* Top corners match .hav-hair-cap (58%/60%); bottom corners are softer
     since this is just the cutoff above the forehead. */
  border-radius: 58% 58% 50% 50% / 60% 60% 40% 40%;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
  pointer-events: none;
}

/* Female: matches the female .hav-hair-cap top/sides, just a shorter
   height so it stops at the forehead. */
.hav-person-wrap.is-female .hav-bangs {
  top: -4px;
  left: -10px;
  right: -10px;
  height: 70px;
  /* Female hair-cap uses 52%/28% on the top corners. Recompute the y-radius
     percentage so the absolute pixel curve matches: hair-cap is 144px tall
     and uses 28% vertical = 40px; bangs at 70px need 57% to also be 40px. */
  border-radius: 52% 52% 50% 50% / 57% 57% 43% 43%;
}

/* Neck */
.hav-neck {
  width: 32px; height: 16px;
  background: linear-gradient(180deg, var(--av-skin-3, #B86832) 0%, var(--av-skin-4, #9A5226) 100%);
  flex-shrink: 0;
  margin-top: -3px;
  z-index: 2;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.30);
}

/* Torso / jacket */
.hav-torso {
  width: 168px; height: 80px;
  background:
    linear-gradient(175deg, var(--av-shirt-1, #1E3A5E) 0%, var(--av-shirt-2, #102240) 60%, var(--av-shirt-3, #081428) 100%);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: inset 0 8px 18px rgba(0,0,0,0.40);
}
/* White shirt collar */
.hav-collar {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 22px;
  background: linear-gradient(160deg, #F5F2EC 0%, #E2DED7 100%);
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.20);
}

/* ── macOS window chrome ────────────────────────────────────── */
.hav-vc-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(0,0,0,0.60), transparent);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  z-index: 10;
}
.hav-vc-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.hav-vc-dots i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.hav-vc-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.06em;
}
.hav-vc-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.hav-vc-bars i {
  display: block;
  width: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 1px;
}
.hav-vc-bars i:nth-child(1) { height: 4px; }
.hav-vc-bars i:nth-child(2) { height: 7px; }
.hav-vc-bars i:nth-child(3) { height: 11px; }

/* Name plate */
.hav-vc-nameplate {
  position: absolute;
  bottom: 9px; left: 9px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.hav-vc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: inline-block;
  transition: background 0.3s, box-shadow 0.3s;
}
.hav-vc-dot.active {
  background: var(--signal-green);
  box-shadow: 0 0 7px rgba(0,229,160,0.9);
  animation: pulse 0.9s ease-in-out infinite;
}

/* PiP self-view */
.hav-pip {
  position: absolute;
  bottom: 9px; right: 9px;
  z-index: 10;
}
.hav-pip-inner {
  width: 84px; height: 70px;
  background: linear-gradient(145deg, #0D1B2A, #071018);
  border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,0.16);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.50);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.hav-pip-inner.is-speaking {
  border-color: rgba(0,229,160,0.85);
  animation: speakingGlow 1.6s ease-in-out infinite;
}
/* PiP self-view - Pixar-style mini bust */
.hav-pip-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 10%, rgba(255,240,200,0.06) 0%, transparent 55%),
    linear-gradient(165deg, #1a2a3a 0%, #0a1520 100%);
}

/* Full bust wrapper */
.hav-pip-person {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* Head */
.hav-pip-head {
  position: relative;
  width: 30px; height: 34px;
  flex-shrink: 0;
}

/* Ears */
.hav-pip-ear {
  position: absolute;
  width: 5px; height: 7px;
  background: linear-gradient(160deg, #F0C490 0%, #C97A48 100%);
  border-radius: 60% 60% 50% 50% / 55% 55% 45% 45%;
  top: 16px;
  z-index: 1;
  box-shadow: inset 1px 0 1px rgba(0,0,0,0.22);
}
.hav-pip-ear-l { left: -2px; }
.hav-pip-ear-r { right: -2px; }

/* Black hair */
.hav-pip-hair {
  position: absolute;
  top: 0; left: -1px; right: -1px;
  height: 15px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(170deg, #1A0E05 0%, #0A0403 60%, #1A0E05 100%);
  border-radius: 60% 60% 28% 28% / 80% 80% 22% 22%;
  z-index: 3;
  box-shadow:
    -1px 1px 0 rgba(0,0,0,0.30),
     1px 1px 0 rgba(0,0,0,0.20),
     0 2px 4px rgba(0,0,0,0.55),
    inset 0 -1px 2px rgba(0,0,0,0.50);
}
.hav-pip-hair::before,
.hav-pip-hair::after {
  content: '';
  position: absolute;
  bottom: -3px;
  width: 4px; height: 5px;
  background: linear-gradient(180deg, #0A0403, #050201);
  border-radius: 50% 50% 40% 40% / 30% 30% 70% 70%;
}
.hav-pip-hair::before { left: 1px; }
.hav-pip-hair::after  { right: 1px; }

/* Face */
.hav-pip-face {
  position: absolute;
  bottom: 0; left: 1px; right: 1px;
  height: 30px;
  background: radial-gradient(
    ellipse 60% 58% at 40% 32%,
    #F4CC9A 0%,
    #E2A66A 32%,
    #C97A46 65%,
    #A65A26 100%
  );
  border-radius: 44% 44% 46% 46% / 46% 46% 50% 50%;
  z-index: 2;
  overflow: hidden;
  box-shadow:
    inset -2px -2px 5px rgba(0,0,0,0.24),
    inset 2px 2px 4px rgba(255,210,160,0.20);
}

/* Eyebrows - symmetric whole-pixel positioning */
.hav-pip-brow {
  position: absolute;
  width: 4px; height: 1px;
  background: rgba(28, 14, 4, 0.60);
  border-radius: 1px;
  top: 15px;
}
.hav-pip-brow-l { left: 6px;  }
.hav-pip-brow-r { right: 6px; }

/* Eyes - small friendly dark dots, whole-pixel for even rendering */
.hav-pip-eye {
  position: absolute;
  width: 4px; height: 4px;
  background: #1A0E05;
  border-radius: 50%;
  top: 18px;
  z-index: 3;
}
.hav-pip-eye::after {
  content: '';
  position: absolute;
  width: 1px; height: 1px;
  background: rgba(255,255,255,0.90);
  border-radius: 50%;
  top: 1px;
  right: 1px;
}
.hav-pip-eye-l { left: 6px; }
.hav-pip-eye-r { right: 6px; }

/* Nose - barely-there hint */
.hav-pip-nose {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.8px; height: 2px;
  background: rgba(140, 70, 30, 0.30);
  border-radius: 50%;
}

/* Mouth - subtle smile curve */
.hav-pip-mouth {
  position: absolute;
  bottom: 4.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 2.5px;
  background: transparent;
  border-bottom: 1.3px solid #6A2A10;
  border-radius: 0 0 50% 50%;
  transition: height 0.07s, width 0.07s, border-radius 0.07s, background 0.07s, border 0.07s;
}
.hav-pip-mouth.open {
  height: 3.5px;
  width: 4.5px;
  border-radius: 1.2px 1.2px 2.5px 2.5px;
  background: #4A1A08;
  border-bottom: none;
}

/* Neck */
.hav-pip-neck {
  width: 9px; height: 4px;
  background: linear-gradient(180deg, #C97A46 0%, #A65A26 100%);
  flex-shrink: 0;
  margin-top: -1px;
  z-index: 2;
  box-shadow: inset -1px 0 1px rgba(0,0,0,0.30);
}

/* Burgundy/wine torso (different from primary navy) */
.hav-pip-torso {
  width: 64px; height: 32px;
  background: linear-gradient(175deg, #7A2E2E 0%, #4F1818 60%, #2D0A0A 100%);
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.40);
}
.hav-pip-lbl {
  position: absolute;
  bottom: 3px; right: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  z-index: 2;
}

/* ── Full-card dashboard popup (shown between scenarios) ─────── */
.hav-dash-popup {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,229,160,0.10) 0%, transparent 60%),
    linear-gradient(165deg, rgba(8, 12, 24, 0.97) 0%, rgba(4, 8, 15, 0.99) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  border-radius: 24px;
  overflow: hidden;
}
.hav-dash-popup.visible {
  opacity: 1;
  pointer-events: auto;
}
.hav-dash-popup.visible > * {
  animation: dashRise 0.55s cubic-bezier(.16,1,.3,1) backwards;
}
.hav-dash-popup.visible > *:nth-child(1) { animation-delay: 0.05s; }
.hav-dash-popup.visible > *:nth-child(2) { animation-delay: 0.18s; }
.hav-dash-popup.visible > *:nth-child(3) { animation-delay: 0.30s; }

/* Top eyebrow + headline */
.hav-dash-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hav-dash-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--signal-green);
}
.hav-dash-headline {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Overall score block */
.hav-dash-overall {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0,229,160,0.10) 0%, rgba(27,158,255,0.06) 100%);
  border: 1px solid rgba(0,229,160,0.22);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.hav-dash-overall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0,229,160,0.10), transparent 50%);
  pointer-events: none;
}
.hav-dash-overall-score {
  display: flex;
  align-items: baseline;
  position: relative;
}
.hav-dash-overall-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #00E5A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hav-dash-overall-pct {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: rgba(0,229,160,0.85);
  margin-left: 3px;
}
.hav-dash-overall-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.hav-dash-overall-grade {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--signal-green);
  letter-spacing: -0.01em;
}
.hav-dash-overall-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Categories container */
.hav-dash-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

/* One category card */
.hav-dash-cat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.hav-dash-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.hav-dash-cat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}
.hav-dash-cat-score {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-soft);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.hav-dash-cat-bar-wrap {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.hav-dash-cat-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #1B9EFF 0%, #00E5A0 100%);
  width: 0%;
  transition: width 0.85s cubic-bezier(.16,1,.3,1);
}
.hav-dash-cat-feedback {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 1px;
}

/* ── Status bar below video ─────────────────────────────────── */
.hav-statusbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 6px 0;
}

/* Microphone icon - animates when the user is speaking */
.hav-mic {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  flex-shrink: 0;
  transition: color 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hav-mic svg {
  width: 14px;
  height: 14px;
}
.hav-mic.is-active {
  color: var(--signal-green);
  background: rgba(0,229,160,0.12);
  border-color: rgba(0,229,160,0.55);
  box-shadow: 0 0 14px rgba(0,229,160,0.45);
  animation: micPulse 0.85s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 12px rgba(0,229,160,0.40); }
  50%      { transform: scale(1.10); box-shadow: 0 0 22px rgba(0,229,160,0.70); }
}

/* Responsive */
@media (max-width: 960px) {
  .hav-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hav-text-col { align-items: center; text-align: center; }
  .hav-text-col .hero-cta { justify-content: center; }
  .hav-stage { width: 100%; max-width: 440px; margin: 0 auto; box-sizing: border-box; }
  .hero h1 { max-width: none; }
}

.avatar-demo{min-width:0;width:100%;max-width:460px;flex:0 1 460px}.avatar-demo .hav-stage{padding:0}.avatar-demo .hav-card{padding:18px;border-radius:20px;animation:none}.avatar-demo .hav-video-window{height:270px;margin-bottom:12px}.avatar-demo .hav-person-wrap{bottom:-2px;transform:translateX(-50%)}.avatar-demo .hav-convo{height:150px;min-height:150px;max-height:150px;overflow:auto;scroll-behavior:auto}.avatar-demo .hav-statusbar{margin-bottom:12px}.demo-caption,.demo-controls{display:flex;justify-content:space-between;align-items:center;gap:8px}.demo-caption{margin-bottom:12px;color:var(--muted);font-size:10px}.demo-controls{padding:8px 2px}.demo-controls button{font-size:11px}.demo-disclaimer{font-size:10px!important;line-height:1.5!important;color:var(--muted);margin:0!important}.avatar-demo .hav-dash-popup{overflow:auto}.avatar-demo .hav-dash-cat-feedback{font-size:11px}.avatar-demo .hav-dash-headline{font-size:19px}.avatar-demo .hav-live{color:#65c4ff}.avatar-demo .hav-live-dot{background:#1b9eff}.hero.split>.avatar-demo{flex:0 1 460px}.auth-story .avatar-demo{max-width:460px;margin-top:28px}.avatar-demo.demo-paused *{animation-play-state:paused!important}.avatar-demo .hav-vc-title{font-size:9px}.avatar-demo .hav-bubble{font-size:12px}.avatar-demo .hav-pip{max-width:30%}
@media(max-width:980px){.hero.split{align-items:flex-start}.hero.split>.avatar-demo{flex-basis:380px}.avatar-demo .hav-card{padding:14px}.avatar-demo .hav-video-window{height:250px}}
@media(max-width:700px){.hero.split{display:block}.hero.split>.avatar-demo{margin:24px auto 0;max-width:440px}.auth-story .avatar-demo{display:none}.avatar-demo .hav-video-window{height:270px}.avatar-demo .hav-convo{height:130px;min-height:130px;max-height:130px}.avatar-demo .hav-pip{width:72px;height:92px}.demo-caption{flex-wrap:wrap}.avatar-demo .hav-dash-popup{padding:20px}.avatar-demo .hav-dash-overall-num{font-size:44px}}
@media(prefers-reduced-motion:reduce){.avatar-demo *{animation:none!important;transition:none!important}}
.avatar-demo .hav-bubble{opacity:1}.avatar-demo .hav-convo{touch-action:pan-y}.avatar-demo .hav-dash-popup{touch-action:pan-y}
