/* heyorb.ai, the first screen: the words on the left, the app itself on the right, and
   beside the phone a few named stars: what "see your mind" means. */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px)); overflow: hidden; touch-action: pan-y; }
.hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#heroStars { z-index: 0; }
.hero-map { z-index: 1; }
.hero-fly { z-index: 3; pointer-events: none; }
.hero.can-grab { cursor: grab; } .hero.grabbing { cursor: grabbing; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 36px 8px; pointer-events: none; }
.hero-copy, .phone, .film-row { pointer-events: auto; }
.hero-copy { display: grid; justify-items: start; gap: 22px; }
.kind { margin: 0; font: 500 var(--t-body)/1.3 var(--f-display); color: var(--ink-2); }
.h-hero { margin: 0; font: 700 var(--t-hero)/1 var(--f-display); letter-spacing: -0.03em; }
.h-hero .ln { display: block; white-space: nowrap; }
.wd { display: inline-block; }
.h-hero .gold { color: var(--ember-hi); }
.hero-sub { margin: 0; max-width: 29em; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero-copy .join { margin-top: 6px; }
.hero-copy > .fine, .hero-copy > .note { margin-top: -6px; }

/* the phone: a quiet frame around the real app */
.device { position: relative; justify-self: center; display: grid; grid-template-areas: "phone" "cap"; justify-items: center; row-gap: 14px; }
.constellation { display: none; grid-area: sky; align-self: stretch; justify-self: stretch; }
.phone { --pw: min(70vw, 300px); position: relative; width: var(--pw); padding: calc(var(--pw) * .028); border-radius: calc(var(--pw) * .175); background: linear-gradient(145deg, #3A3842, #17161C 30%, #0D0C11 70%, #2C2A33); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(245, 216, 154, .16), 0 40px 90px -30px rgba(0, 0, 0, .9); }
.screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .148); overflow: hidden; background: var(--sky-deep); }
.screen img, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* the glass meets the frame in a hairline, as on a real phone */
.screen::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }
.screen video { opacity: 0; transition: opacity var(--ui) var(--ease); }
.screen video.on { opacity: 1; }
.device .phone { grid-area: phone; }
.film-row { grid-area: cap; display: flex; align-items: center; gap: 10px; min-height: 32px; }
.film-cap { margin: 0; font-size: var(--t-small); color: var(--ink-2); transition: opacity var(--ui) var(--ease); }
.film-cap.swap { opacity: 0; }
.film-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-hi); cursor: pointer; transition: color var(--touch), background-color var(--touch); }
.film-toggle:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.film-toggle svg { display: block; }
.film-toggle .i-play, .film-toggle.paused .i-pause { display: none; }
.film-toggle.paused .i-play { display: block; }

@media (max-width: 859px) {
  .hero { align-items: start; min-height: 0; }
  .hero-copy { gap: 18px; }
  .h-hero { font-size: clamp(30px, 10.4vw, 76px); }
}
/* Two columns: the words keep the page's left edge, the phone sits on the right. */
@media (min-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 72px); padding-block: 28px 44px; }
  .device .phone { --pw: clamp(248px, 33svh, 316px); }
}
/* With room to spare, the phone moves to the right edge and its stars appear beside it. */
@media (min-width: 1060px) {
  .hero-in { max-width: none; padding-left: max(var(--gl), calc((100vw - 1240px) / 2 + var(--gl))); padding-right: max(28px, calc((100vw - 1720px) / 2)); }
  .device { grid-template-columns: auto clamp(200px, 17vw, 300px); grid-template-areas: "phone sky" "cap sky"; }
  .constellation { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .screen video, .film-cap { transition: none; }
}
