/* Homepage globe. The shared authentication modal and page content stay intact. */
.public-home .home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 760px; height: calc(100svh - 76px); padding: 70px 24px;
  display: flex; align-items: center; justify-content: center;
  background: #080c10;
}
.public-home .home-hero::before {
  inset: -15%; opacity: .65; transform: perspective(800px) rotateX(10deg);
  background-image: linear-gradient(rgb(139 190 199 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(139 190 199 / 7%) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse, #000 15%, transparent 72%);
}
.public-home .home-hero::after { background: none; pointer-events: none; }
.public-home .home-globe { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.public-home .home-globe__visual,
.public-home .home-globe__icons,
.public-home .home-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.public-home .home-globe__halo {
  position: absolute; left: 50%; top: 50%; width: min(60vw, 73%); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgb(171 221 240 / 18%);
  box-shadow: 0 0 24px rgb(156 214 238 / 9%), inset 0 0 25px rgb(155 211 232 / 7%);
}
.public-home .home-globe__satellite {
  position: absolute; left: 50%; top: 50%; width: 124px;
  text-align: center; transform: translate(-50%, -50%); visibility: hidden;
}
.public-home .home-globe__satellite > span {
  display: grid; place-items: center; width: 49px; height: 49px; margin: auto;
  border: 1px solid #a9c0ce26; border-radius: 12px; background: #17222a88;
  box-shadow: inset 0 0 18px #beddf009, 0 0 22px #0004;
}
.public-home .home-globe__satellite img { display: block; width: 34px; height: 34px; object-fit: contain; border-radius: 0; }
.public-home .home-globe__satellite small {
  display: block; margin-top: 8px; color: #b4c4cc; font-size: 11px;
  line-height: 1.4; white-space: nowrap; text-shadow: 0 1px 8px #000;
}
.public-home .home-globe__motion {
  display: none;
  position: absolute; right: 24px; bottom: 22px; pointer-events: auto;
  border: 1px solid #b4d4e033; border-radius: 24px; padding: 8px 14px;
  background: #13222a99; color: #b6c7d2; font: inherit; font-size: 12px; cursor: pointer;
}
.public-home .home-globe__motion[hidden] { display: none; }
.public-home .home-globe__motion:focus-visible { outline: 2px solid #b2e9ee; outline-offset: 4px; }
.public-home .hero-copy { position: relative; z-index: 3; margin: 0; max-width: 580px; }
.public-home .hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -50px -60px; pointer-events: none;
  background: radial-gradient(ellipse, rgb(8 12 16 / 95%), rgb(8 12 16 / 65%) 40%, transparent 73%);
}
.public-home .hero-copy h1 { font-size: clamp(40px, 4vw, 62px); line-height: 1.25; }
.public-home .hero-copy h1 span {
  background: linear-gradient(110deg, #edf5fa, #bce9e9 55%, #b5c5ee);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.public-home .hero-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; margin-bottom: 25px; }
.public-home .hero-copy .eyebrow { margin-bottom: 22px; }
.public-home .hero-actions { margin-bottom: 25px; }
.public-home .hero-actions .btn.primary {
  background: linear-gradient(120deg, #20303b, #17202b); border: 1px solid #aacbd74d;
  box-shadow: 0 0 25px #a3cfed12; color: #e0f1f7;
}
.public-home .home-metrics { opacity: .8; }
.public-home .home-metrics span { background: transparent; border-color: #bdd9e01a; }
.public-home .home-metrics strong { font-size: 22px; }
.public-home .hero-model-cards { z-index: 2; }
@media (max-width: 760px) {
  .public-home .home-hero { min-height: 690px; height: auto; padding: 115px 20px; }
  .public-home .hero-copy { width: 100%; }
  .public-home .hero-copy h1 { font-size: clamp(34px, 9vw, 52px); }
  .public-home .hero-copy > p:not(.eyebrow) { font-size: 12px; }
  .public-home .hero-actions { display: flex; gap: 10px; }
  .public-home .hero-actions .btn { width: auto; padding: 0 22px; font-size: 13px; }
  .public-home .home-metrics { display: flex; }
  .public-home .home-metrics span { min-width: 0; font-size: 11px; padding: 0 8px; }
  .public-home .home-metrics strong { font-size: 20px; }
  .public-home .home-globe__satellite { width: 100px; }
  .public-home .home-globe__satellite > span { width: 36px; height: 36px; border-radius: 9px; }
  .public-home .home-globe__satellite img { width: 26px; height: 26px; }
  .public-home .home-globe__satellite small { font-size: 9px; }
  .public-home .home-globe__halo { width: 110vw; }
}

/* Reference-style hero: the globe owns gestures, controls stay clickable. */
body.public-home::after { display: none; }
.public-home .home-hero .model-orbit-stage,
.public-home .home-hero .hero-model-cards,
.public-home .hero-copy .eyebrow,
.public-home .hero-copy > p:not(.eyebrow),
.public-home .hero-copy .home-metrics { display: none; }
.public-home .home-hero::before { pointer-events: none; z-index: 0; }
.public-home .home-globe__visual { pointer-events: none; }
.public-home .home-globe canvas {
  pointer-events: auto; cursor: grab; touch-action: pan-y; user-select: none;
}
.public-home .home-globe canvas.is-dragging { cursor: grabbing; }
.public-home .hero-copy {
  top: auto; left: auto; right: auto; bottom: auto; transform: none;
  display: flex; align-items: center; flex-direction: column; gap: 0;
  pointer-events: none; width: min(580px, 90vw);
}
.public-home .hero-copy h1 {
  margin: 0 0 76px; padding: 0; width: 100%; text-align: center;
  font-size: clamp(32px, 3.3vw, 48px); line-height: 1.25;
}
.public-home .hero-copy h1 span {
  display: block; min-height: 1.3em; margin-top: 8px;
  font-size: clamp(42px, 4.9vw, 72px); font-weight: 800;
}
.public-home .hero-copy h1 span::after { display: none; }
.public-home .hero-actions {
  position: static; transform: none; display: flex; flex-direction: column;
  align-items: center; gap: 9px; margin: 0; padding: 0; width: auto;
}
.public-home .hero-actions .btn { pointer-events: auto; }
.public-home .hero-actions .btn.primary {
  min-width: 132px; width: auto; height: 44px; padding: 0 24px;
  border-radius: 1px; background: #1c272e; border: 1px solid #a4c2d366;
  font-size: 13px; box-shadow: none;
}
.public-home .hero-actions .btn:not(.primary) {
  height: 30px; width: auto; padding: 0 16px; border: 0; background: transparent;
  border-radius: 0; box-shadow: none; color: #b7c2cb; font-size: 11px;
}
.public-home .home-globe__halo { display: none; }
@media (max-width: 760px) {
  .public-home .hero-copy h1 { margin-bottom: 62px; }
  .public-home .hero-copy h1 span { font-size: clamp(40px, 8vw, 58px); }
}

.public-home .home-hero::before { display: block !important; opacity: .7 !important; }
.public-home .home-hero .hero-copy .hero-actions { flex-direction: column !important; }

/* Model spotlights emerge from the globe, alternating sides. */
@media (min-width: 1000px) {
  body.public-home .home-hero .hero-model-cards { display: block; position: absolute; inset: 0; width: 100%; height: 100%; transform: none; pointer-events: none; z-index: 4; visibility: visible; }
  body.public-home .home-hero .hero-model-cards article:first-child {
    display: flex; visibility: visible; top: 50%; left: max(24px, calc((100vw - 1600px) / 2)); right: auto;
    width: clamp(170px, 17vw, 252px); min-height: 260px; padding: 24px 16px;
    flex-direction: column; align-items: center; gap: 24px; border: 0; border-radius: 0;
    background: radial-gradient(ellipse, #101b2299, transparent 75%); box-shadow: none;
    opacity: 0; filter: none; transform: translateY(-50%); animation: none;
  }
  body.public-home .home-hero .hero-model-cards article:first-child.from-right { left: auto; right: max(24px, calc((100vw - 1600px) / 2)); }
  body.public-home .home-hero .hero-model-cards article > img { width: 58px; height: 58px; padding: 10px; box-sizing: content-box; border: 1px solid #bdd9e025; border-radius: 12px; background: #16212966; filter: none; }
  body.public-home .home-hero .hero-model-cards article > div { text-align: center; gap: 20px; }
  body.public-home .home-hero .hero-model-cards strong { color: #d5e8ee; max-width: none; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.5; white-space: normal; text-shadow: none; }
  body.public-home .home-hero .hero-model-cards p { font-size: 13px; line-height: 1.85; font-weight: 400; color: #a9bac5; text-align: center; min-height: 76px; text-shadow: none; }
  body.public-home .home-hero .hero-model-cards article:first-child.from-left.is-active { animation: globeSpotlightLeft 4s ease both; }
  body.public-home .home-hero .hero-model-cards article:first-child.from-right.is-active { animation: globeSpotlightRight 4s ease both; }
}
@keyframes globeSpotlightLeft {
  0% { opacity: 0; transform: translate(18vw,-50%) scale(.35); }
  15%, 82% { opacity: 1; transform: translate(0,-50%) scale(1); }
  100% { opacity: 0; transform: translate(18vw,-50%) scale(.35); }
}
@keyframes globeSpotlightRight {
  0% { opacity: 0; transform: translate(-18vw,-50%) scale(.35); }
  15%, 82% { opacity: 1; transform: translate(0,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-18vw,-50%) scale(.35); }
}
@media (prefers-reduced-motion: reduce) {
  body.public-home .home-hero .hero-model-cards article:first-child.is-active { animation: none; opacity: 1; transform: translateY(-50%); }
}

/* Fade content without interpolating the continuously projected position. */
.public-home .home-globe__satellite { will-change: transform; transition: none; }
.public-home .home-globe__satellite > span, .public-home .home-globe__satellite > small { transition: opacity .4s ease; }
.public-home .home-globe__satellite.is-changing > span, .public-home .home-globe__satellite.is-changing > small { opacity: 0; }

/* Reveal copy after the icon arrives; fold it before the icon returns. */
@media (min-width: 1000px) {
  body.public-home .home-hero .hero-model-cards article.is-active > div { animation: globeSpotlightCopy 4s ease both; transform-origin: top center; }
}
@keyframes globeSpotlightCopy {
  0%, 10.5% { opacity: 0; transform: translateY(-12px) scaleY(.92); }
  22.5%, 73% { opacity: 1; transform: none; }
  85%, 100% { opacity: 0; transform: translateY(-12px) scaleY(.92); }
}
@media (prefers-reduced-motion: reduce) {
  body.public-home .home-hero .hero-model-cards article.is-active > div { animation: none; transform: none; opacity: 1; }
}
