.hero {
  position: relative;
  min-height: var(--hero-scroll-height);
  background: var(--cobalt-soft);
}

.hero-stage {
  position: sticky;
  top: 0;
  height: var(--hero-stage-height);
  min-height: 0;
  overflow: clip;
  isolation: isolate;
  border-bottom: 2px solid var(--ink);
  background: var(--cobalt-soft);
}

.hero-stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(21, 24, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 33, 0.08) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.72;
}

.hero-stage::after {
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  z-index: -1;
  pointer-events: none;
  content: "BMENTOR";
  color: rgba(49, 87, 213, 0.24);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(7rem, 18vw, 17rem);
  font-weight: 900;
  line-height: 0.8;
  white-space: nowrap;
  opacity: 1;
}

.hero-halo {
  position: absolute;
  top: 12%;
  left: min(68%, calc(50% + 16rem));
  z-index: 0;
  width: min(34rem, 45vw);
  height: 63%;
  border: 2px solid rgba(21, 24, 33, 0.34);
  pointer-events: none;
  opacity: 1;
  transform: translateX(-50%) rotate(-4deg);
}

.hero-cloud {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: min(77.5rem, 96vw);
  margin: 0 auto;
  contain: layout paint style;
  pointer-events: none;
  opacity: 0.78;
  transition: opacity 320ms ease;
}

.hero-cloud span {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  min-height: 1.875rem;
  max-width: clamp(8rem, 12vw, 10.75rem);
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(21, 24, 33, 0.32);
  border-radius: 4px;
  background: rgba(255, 254, 249, 0.68);
  box-shadow: 2px 2px 0 rgba(21, 24, 33, 0.08);
  color: rgba(21, 24, 33, 0.74);
  backdrop-filter: blur(5px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.65rem, 0.9vw, 0.78rem);
  font-weight: 700;
  line-height: 1.1;
  opacity: 0;
  text-align: center;
  transform: translate3d(-200px, -200px, 0);
  transition:
    opacity 520ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
  will-change: transform;
}

.hero-cloud.is-ready span {
  opacity: var(--cloud-opacity, 0.72);
}

.hero-cloud span.is-unused {
  display: none;
}

.hero-cloud span:nth-child(4n + 2) {
  background: rgba(241, 221, 103, 0.58);
}

.hero-cloud span:nth-child(4n + 3) {
  background: rgba(168, 221, 206, 0.58);
}

.hero-cloud span:nth-child(4n) {
  background: rgba(203, 216, 255, 0.72);
}

.hero-cloud span.is-reacting {
  border-color: rgba(49, 87, 213, 0.52);
  background: rgba(255, 254, 249, 0.86);
  color: var(--ink);
}

.hero-figure {
  position: absolute;
  top: clamp(4.875rem, 8svh, 6.25rem);
  left: min(68%, calc(50% + 16rem));
  z-index: 3;
  width: min(var(--hero-figure-max), 36vw);
  height: auto;
  max-height: min(88svh, 48.75rem);
  aspect-ratio: 43 / 78;
  pointer-events: none;
  opacity: 1;
  filter: saturate(0.9) contrast(1.03);
  transform: translateX(-50%);
  transition:
    left 620ms cubic-bezier(0.22, 1, 0.36, 1),
    width 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-portrait {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: 74%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
}

.hero-figure img {
  display: block;
  width: var(--mentor-image-width, 68%);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-portrait:hover img:not(.mentor-image-enter):not(.mentor-image-ghost) {
  transform: translateY(-4px);
}

.hero-portrait .mentor-image-ghost {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  transform: translateX(-50%);
  will-change: opacity, transform;
}

.hero-portrait .mentor-image-ghost.is-leaving {
  animation: mentor-image-leave 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-portrait .mentor-image-enter {
  opacity: 0;
  transform: translateX(var(--mentor-enter-x, 0.75rem)) scale(0.99);
  will-change: opacity, transform;
}

.hero-portrait .mentor-image-enter.is-entering {
  animation: mentor-image-arrive 580ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mentor-image-leave {
  from {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(calc(-50% + var(--mentor-exit-x, -0.75rem))) scale(0.985);
  }
}

@keyframes mentor-image-arrive {
  from {
    opacity: 0;
    transform: translateX(var(--mentor-enter-x, 0.75rem)) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.mentor-panel-content.is-mentor-refreshing {
  animation: mentor-content-arrive 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mentor-content-arrive {
  from {
    opacity: 0.5;
    transform: translateY(0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mentor-hint {
  position: absolute;
  right: 3%;
  bottom: 5%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(21, 24, 33, 0.48);
  border-radius: 3px;
  background: rgba(255, 254, 249, 0.86);
  box-shadow: 3px 3px 0 rgba(21, 24, 33, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.mentor-hint span {
  color: var(--cobalt);
  font-size: 1rem;
}

.hero-portrait:hover .mentor-hint {
  transform: translateX(3px);
}

.hero.has-met-mentor .mentor-hint {
  opacity: 0;
  pointer-events: none;
}

.hero.is-mentor-open .hero-figure {
  left: max(22%, calc(50% - 20.75rem));
  width: min(var(--hero-figure-max), 32vw);
}

.hero.is-mentor-open .hero-copy {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-24px);
}

.hero.is-mentor-open .hero-halo {
  left: max(22%, calc(50% - 20.75rem));
  width: min(34rem, 42vw);
}

.hero.is-mentor-open {
  min-height: var(--hero-stage-height);
}

.hero.is-mentor-open .hero-stage {
  position: relative;
}

.hero.is-mentor-open .hero-nameplate {
  font-size: clamp(2.8rem, 4.4vw, 4.4rem);
}

.hero.is-mentor-open .hero-cloud,
.hero.is-mentor-open .hero-stage::after {
  opacity: 0;
}

.mentor-panel {
  position: absolute;
  top: clamp(6rem, 10svh, 7.375rem);
  right: max(1.25rem, calc((100vw - var(--hero-layout-max)) / 2));
  bottom: clamp(1rem, 3svh, 1.75rem);
  z-index: 8;
  display: flex;
  width: min(var(--mentor-panel-max), 54vw);
  min-width: 0;
  flex-direction: column;
  container-name: mentor-panel;
  container-type: inline-size;
  padding: clamp(1.375rem, 2.2vw, 2rem);
  border: 1px solid rgba(21, 24, 33, 0.42);
  border-left: 5px solid var(--ink);
  background: rgba(255, 254, 249, 0.92);
  box-shadow: 9px 9px 0 rgba(21, 24, 33, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  overflow-wrap: break-word;
  pointer-events: none;
  transform: translateX(32px);
  transition:
    opacity 360ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 560ms;
  visibility: hidden;
}

.hero.is-mentor-open .mentor-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 80ms, 0s, 0s;
  visibility: visible;
}

.mentor-panel-head,
.mentor-panel-footer,
.mentor-switcher {
  display: flex;
  align-items: center;
}

.mentor-panel-head {
  justify-content: space-between;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  margin-bottom: clamp(0.625rem, 1svh, 0.875rem);
}

.mentor-panel-head .eyebrow {
  margin: 0;
}

.mentor-close,
.mentor-switcher button {
  border: 1px solid rgba(21, 24, 33, 0.45);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mentor-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  font-size: 0.78rem;
}

.mentor-panel-content {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: clamp(0.375rem, 0.7vw, 0.625rem);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.mentor-name {
  margin: 0 0 4px;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 0.94;
  text-wrap: balance;
}

.mentor-role {
  margin-bottom: clamp(0.875rem, 1.8svh, 1.125rem);
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 850;
}

.mentor-meta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0;
  margin: 0 0 clamp(0.875rem, 1.8svh, 1.125rem);
  border-block: 1px solid var(--line);
}

.mentor-meta div {
  min-width: 0;
  padding: 12px 12px 12px 0;
}

.mentor-meta div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.mentor-meta dt,
.mentor-section h3 {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mentor-meta dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 750;
}

.mentor-section {
  margin-bottom: clamp(0.75rem, 1.6svh, 1rem);
}

.mentor-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
}

.mentor-about {
  margin: 0 0 clamp(0.75rem, 1.6svh, 1rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.45;
}

.mentor-quote {
  margin: 0;
  padding: 12px 0 0 16px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--lemon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}

.mentor-panel-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(0.625rem, 1.2vw, 0.875rem);
  margin-top: auto;
  padding-top: clamp(0.875rem, 1.8svh, 1.125rem);
}

.mentor-switcher {
  flex: 0 0 auto;
  gap: 7px;
}

.mentor-switcher[hidden] {
  display: none;
}

.mentor-switcher button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.mentor-select {
  width: min(11.875rem, 22vw);
  height: 34px;
  min-width: 0;
  padding: 0 28px 0 9px;
  border: 1px solid rgba(21, 24, 33, 0.45);
  border-radius: 3px;
  background: var(--paper-bright);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

.mentor-dots {
  display: flex;
  gap: 6px;
}

.mentor-dots .mentor-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.mentor-dots .mentor-dot[aria-selected="true"] {
  background: var(--ink);
}

.mentor-consultation {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 0.82rem;
}

@container mentor-panel (max-width: 38rem) {
  .mentor-panel-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mentor-switcher {
    width: 100%;
    justify-content: center;
  }

  .mentor-select {
    width: min(14rem, calc(100% - 7.5rem));
  }

  .mentor-consultation {
    width: 100%;
  }
}

.hero-nameplate {
  position: absolute;
  top: 68%;
  left: 50%;
  z-index: 2;
  padding: 0.05em 0.24em 0.1em;
  border: 3px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--lemon);
  color: var(--paper-bright);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%) rotate(-2deg);
}

.hero-copy {
  position: absolute;
  top: clamp(17.5rem, 42%, 24.375rem);
  left: max(var(--page-gutter), calc((100vw - var(--content-max)) / 2));
  z-index: 5;
  width: min(var(--hero-copy-max), 48vw);
  opacity: 1;
  transition:
    opacity 280ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

h1 {
  max-width: 38.125rem;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.6vw, 4.6rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.hero-copy p:not(.eyebrow) {
  width: min(34.375rem, 100%);
  margin-bottom: 0;
  color: #353b49;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  font-weight: 600;
}

