/* Unified hero stage: one animated canvas prevents network/chat drift at browser zoom. */
.hero-advisor {
  min-height: auto;
  padding: clamp(52px, 6vw, 88px) 0 clamp(60px, 7vw, 104px);
  overflow: clip;
}

.hero-advisor .hero-advisor-inner {
  width: min(1240px, calc(100% - clamp(48px, 8vw, 144px))) !important;
  max-width: 1240px !important;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}

.hero-advisor .hero-advisor-copy-column {
  width: auto;
  max-width: 590px;
  transform: none;
}

.hero-advisor h1 {
  max-width: 13.5em;
  margin-bottom: clamp(26px, 2.4vw, 36px);
  font-size: clamp(38px, 2.75vw, 48px);
  line-height: 1.2;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-advisor h1 .hero-title-line {
  white-space: normal;
}

.hero-advisor-stage {
  position: relative;
  isolation: isolate;
  align-self: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.15 / 1;
  overflow: visible;
  container-type: inline-size;
}

.hero-stage-animation {
  position: absolute;
  z-index: 2;
  inset: -1% -13% -2% -16%;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.38) 10%, #000 23%, #000 98%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.38) 10%, #000 23%, #000 98%);
}

.hero-stage-animation img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.hero-stage-action {
  position: absolute;
  z-index: 6;
  left: 67%;
  top: 67%;
  width: 25%;
  height: 10%;
  border-radius: 999px;
}

.hero-stage-action:focus-visible {
  outline: 3px solid rgba(255,96,61,.3);
  outline-offset: 5px;
}

.hero-advisor h1 .hero-title-line em {
  position: relative;
  z-index: 0;
  text-shadow: 0 0 18px rgba(255,96,61,.22), 0 8px 26px rgba(255,119,71,.15);
}

.hero-advisor h1 .hero-title-line em::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -9% -18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,126,73,.22), rgba(255,165,113,.08) 48%, transparent 74%);
  filter: blur(11px);
  pointer-events: none;
}

.hero-advisor-stage::before {
  inset: 5% -5% -8% -8% !important;
  width: auto !important;
  height: auto !important;
  background: radial-gradient(ellipse at 53% 48%, rgba(255, 158, 106, .2) 0%, rgba(255, 198, 166, .11) 34%, rgba(255, 231, 217, .04) 54%, rgba(255, 255, 255, 0) 74%) !important;
}

.hero-advisor-stage::after {
  inset: 8% 2% 8% 2%;
}

.hero-advisor .hero-network-art {
  content: url("assets/hero-network-neutral.png");
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  opacity: .66;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.3) 5%, #000 18%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.3) 5%, #000 18%, #000 94%, transparent 100%);
}

.hero-advisor-stage > .hero-network-art,
.hero-advisor-stage > .hero-advisor-chat,
.hero-advisor-stage > .hero-owl-trigger { display: none !important; }

.hero-advisor .hero-advisor-chat {
  left: 13%;
  top: 28%;
  width: 80%;
  max-width: none;
}

.hero-advisor .hero-owl-trigger {
  left: 10.5%;
  top: 25.5%;
  width: clamp(66px, 12cqi, 88px);
  height: clamp(66px, 12cqi, 88px);
}

.hero-advisor .hero-advisor-greeting {
  min-height: clamp(46px, 8cqi, 54px);
  margin: 0 0 clamp(22px, 4cqi, 34px) 19%;
  padding: 0 clamp(16px, 3.2cqi, 24px);
  border-radius: 999px;
  font-size: clamp(12px, 2.25cqi, 14px);
  white-space: nowrap;
}

.hero-advisor .hero-advisor-composer {
  min-height: clamp(152px, 27cqi, 178px);
  padding: clamp(20px, 4cqi, 28px) clamp(22px, 4.5cqi, 32px) clamp(14px, 2.6cqi, 18px);
  border-radius: clamp(20px, 4cqi, 24px);
}

.hero-advisor .hero-advisor-prompt {
  min-height: clamp(72px, 14cqi, 92px);
  font-size: clamp(14px, 2.6cqi, 17px);
}

@media (max-width: 1180px) {
  .hero-advisor .hero-advisor-inner {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 24px;
  }

  .hero-advisor h1 { font-size: clamp(36px, 3.6vw, 43px); }
  .hero-advisor-types { font-size: clamp(20px, 2.3vw, 27px); }
  .hero-advisor-copy { font-size: 16px; }
}

@media (max-width: 1050px) {
  .hero-advisor { padding: 64px 0 80px; }

  .hero-advisor .hero-advisor-inner {
    width: min(760px, calc(100% - 48px)) !important;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-advisor .hero-advisor-copy-column {
    max-width: 690px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-advisor h1 { max-width: 100%; }
  .hero-advisor-types { justify-content: center; }
  .hero-advisor-stage { width: min(680px, 100%); margin-inline: auto; }
  .hero-stage-animation { inset: -3% -9% -4%; }
}

@media (max-width: 620px) {
  .hero-advisor { padding: 48px 0 64px; }

  .hero-advisor .hero-advisor-inner {
    width: calc(100% - 32px) !important;
    gap: 36px;
  }

  .hero-advisor h1 {
    margin-bottom: 24px;
    font-size: clamp(32px, 9.2vw, 40px);
    line-height: 1.22;
  }

  .hero-advisor-types { margin-bottom: 18px; font-size: 19px; }
  .hero-advisor-copy { font-size: 14px; line-height: 1.75; }
  .hero-primary-cta { width: 176px; height: 52px; margin-top: 28px; font-size: 16px; }

  .hero-advisor-stage {
    width: 100%;
    aspect-ratio: .94 / 1;
  }

  .hero-stage-animation { inset: -2% -15% -3%; }

  .hero-advisor .hero-network-art {
    opacity: .5;
    object-fit: cover;
    object-position: 55% center;
  }

  .hero-advisor .hero-advisor-chat { left: 4%; top: 34%; width: 92%; }
  .hero-advisor .hero-owl-trigger { left: 3%; top: 21%; width: 64px; height: 64px; }
  .hero-advisor .hero-advisor-greeting {
    box-sizing: border-box;
    width: calc(100% - 52px);
    min-height: 48px;
    margin-left: 52px;
    margin-bottom: 22px;
    padding: 8px 12px;
    font-size: 10.5px;
    line-height: 1.45;
    white-space: normal;
  }
  .hero-advisor .hero-advisor-composer { min-height: 164px; padding: 22px 18px 14px; }
  .hero-advisor .hero-advisor-prompt { min-height: 88px; font-size: 14px; }
  .hero-advisor .hero-advisor-submit { min-width: 126px; min-height: 46px; padding-inline: 16px; font-size: 13px; }
  .hero-advisor .hero-advisor-attach { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-advisor-stage::before,
  .hero-advisor-stage::after { animation: none; }
}
