/* Homepage hero (#2016, Hugo 27 Nov: "the scroll story"): from the #232 motion lab, direction C (platform/motion-232
   @ 0a1edd97, lab.css), with the live copy. The visitor at the centre ("This is you", a sample), the things that
   matter to them on an orbit round a dot globe, with lines from the centre to each. Without JS: the copy, still. */
.ml-scrolly { position: relative; }
.st-js .ml-scrolly { height: 360vh; }
.ml-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.st-js .ml-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
html:not(.st-js) .ml-final { display: none; }
.ml-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ml-layer { position: absolute; inset: 0; pointer-events: none; }
.ml-hero { position: absolute; z-index: 8; left: 0; right: 0; top: clamp(84px, 13vh, 132px); text-align: center; padding: 0 var(--pad); pointer-events: none; }
html:not(.st-js) .ml-hero:not(.ml-final) { position: relative; top: auto; padding: clamp(84px, 13vh, 132px) var(--pad) 64px; }
.ml-hero h1 { margin: 0 auto; max-width: 15ch; font-size: clamp(38px, 6vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.ml-hero .lead { margin: 18px auto 0; max-width: 46ch; color: var(--ash); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; }
.ml-hero .ctas { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; margin-top: 24px; pointer-events: auto; }
.ml-hero .oh-link { color: var(--bone); font-weight: 600; text-decoration: none; }
.ml-hero .oh-co-line, .ml-hero .powered, .ml-hero .cta-note { pointer-events: auto; }
.ml-hero .cta-note { margin-top: 14px; line-height: 1.45; min-height: 1.45em; }
/* The invite note (#253) is filled after load: its line is held, so the copy never moves (as on the live hero). */
.ml-hero .cta-note[hidden] { display: block; visibility: hidden; }
.ml-hero .powered { margin-top: 16px; }
.ml-final h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.035em; margin: 0; }
.ml-final p { color: var(--ash); margin: 12px 0 0; max-width: 46ch; }

/* Cards */
.ml-o { position: absolute; left: 0; top: 0; z-index: 4; will-change: transform, opacity; transform-origin: 0 0; opacity: 0; }
.ml-card { position: relative; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 9px 15px 9px 9px; border-radius: 16px; background: rgba(22, 24, 28, .92); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); white-space: nowrap; font-size: 13px; line-height: 1.35; color: var(--ash); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.ml-card b { display: block; color: var(--bone); font-weight: 600; }
.ml-card small { display: block; font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1px; }
.ml-card img, .ml-card .mk { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; background: var(--raised); }
.ml-card .mk { display: grid; place-items: center; border-radius: 10px; font: 700 12px var(--sans); color: var(--night); background: var(--c, var(--accent-soft)); }
.ml-card .mk.dt { display: grid; place-content: center; line-height: 1; font: 700 14px var(--sans); color: var(--bone); background: var(--raised); text-align: center; }
.ml-card .mk.dt small { margin: 2px 0 0; font-size: 9px; }
.ml-card .mk.q { background: rgba(93, 204, 255, .14); color: var(--accent-soft); font-size: 18px; }
.ml-card.disc { white-space: normal; width: 214px; align-items: flex-start; }
.ml-card.disc b { font-size: 13.5px; line-height: 1.3; }
.ml-card .meta { display: block; margin-top: 4px; color: var(--mist); font-size: 12px; }
.ml-card .more { display: none; color: var(--mist); font-size: 12px; }
@keyframes ml-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* The visitor */
.ml-you { z-index: 6; }
.ml-you .ml-card { padding: 12px 20px 12px 12px; border-radius: 20px; border-color: rgba(93, 204, 255, .55); background: rgba(16, 22, 30, .96); box-shadow: 0 0 0 6px rgba(93, 204, 255, .07), 0 0 70px rgba(0, 175, 255, .35), 0 18px 40px rgba(0, 0, 0, .45); }
.ml-you .av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #f2f2f0; border: 1px dashed rgba(93, 204, 255, .6); }
/* #261 (Hugo) the visitor is one of the illustrated people (Jonas: shown nowhere else on the homepage), like the other faces. */
.ml-you .av img { width: 100%; height: 100%; display: block; }
.ml-you b { font-size: 17px; }
.ml-you small { color: #9fe0ff; }
.ml-tag { position: absolute; left: 50%; top: -13px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--night); font: 700 11px var(--sans); letter-spacing: .02em; white-space: nowrap; }

/* Hover lift */
@media (hover: hover) {
  .ml-o.ml-hov { pointer-events: auto; }
  .ml-o.ml-hov:hover { z-index: 7; }
  .ml-o.ml-hov:hover .ml-card { transform: translate(-50%, -50%) translateY(-6px) scale(1.04); border-color: rgba(93, 204, 255, .5); box-shadow: 0 0 40px rgba(0, 175, 255, .28), 0 20px 40px rgba(0, 0, 0, .45); }
  .ml-o.ml-hov:hover .more { display: block; animation: ml-in .4s var(--ease) both; }
}

/*
 * Desktop: the copy on the left, the orbit on the right.
 * #260 (Hugo's laptop, 1280x552): the copy column starts on the header's edge (.wrap is 1200 px with --pad inside,
 * the same edge as .rail), and sits in the part of the stage you can see, centred there with air under the nav. At
 * the top of the page the stage starts under the 73 px header, so its last 73 px are below the fold: the opening copy
 * stays above them. The closing copy shows once the stage is pinned under the header, so it stays below the nav.
 */
@media (min-width: 1150px) {
  .ml-stage { --edge: max(var(--pad), calc((100% - 1200px) / 2 + var(--pad))); --nav-h: 73px; }
  .ml-hero { top: 0; bottom: var(--nav-h); left: var(--edge); right: auto; width: clamp(380px, 32vw, 470px); padding: 28px 0 24px; text-align: left; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; align-items: flex-start; }
  .ml-hero.ml-final { top: var(--nav-h); bottom: 0; }
  /* 6.9em keeps the break as designed: Space / connected, / noise free. (the cap scales with the font). */
  .ml-hero h1 { margin: 0; max-width: 6.9em; font-size: min(clamp(44px, 4.6vw, 72px), 10.5vh); }
  .ml-hero .lead { margin-left: 0; font-size: min(clamp(16px, 1.5vw, 20px), 3.1vh); }
  .ml-hero .ctas { justify-content: flex-start; }
  html:not(.st-js) .ml-hero:not(.ml-final) { display: block; top: auto; bottom: auto; left: auto; width: auto; max-width: 560px; margin-left: var(--edge); padding-left: 0; padding-right: 0; }
}
/* A short laptop screen: the company line and Powered by step aside (as on phones), so the rest fits under the nav. */
@media (min-width: 1150px) and (max-height: 760px) {
  .ml-hero .oh-co-line, .ml-hero .powered { display: none; }
}

/* Phones: the copy at the bottom, the orbit above it; one call to action (Hugo #1395). Six cards and two faces. */
@media (max-width: 1149px) {
  .ml-card { font-size: 12px; padding: 7px 11px 7px 7px; gap: 8px; border-radius: 13px; }
  .ml-card img, .ml-card .mk { width: 28px; height: 28px; }
  .ml-card .line2 { display: none; }
  .ml-card.disc { width: 176px; }
  .ml-card.disc b { font-size: 12.5px; }
  .ml-you .ml-card { padding: 10px 16px 10px 10px; }
  .ml-you .av { width: 40px; height: 40px; }
  .ml-you b { font-size: 15px; }
  .ml-o.ml-wide { display: none; }
  .ml-o.ml-face .ml-card { padding: 3px; border-radius: 50%; }
  .ml-o.ml-face .ml-card > span { display: none; }
  .st-js .ml-hero { top: auto; bottom: 46px; }
  .ml-hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .ml-hero .lead { font-size: 15.5px; margin-top: 12px; }
  .ml-hero .ctas { margin-top: 16px; gap: 14px; }
  .ml-hero .oh-co-line, .ml-hero .oh-link, .ml-hero .powered { display: none; }
  /* #274 QA: the closing line sits centred under its heading (left-aligned only in the desktop column). */
  .ml-final p { margin-left: auto; margin-right: auto; }
}
/* #274 QA: tablets have the desktop header (73 px, not the phone's 57), and the stage starts under it, so the opening
   copy sits 16 px higher to keep its last line above the fold, as on a phone. */
@media (min-width: 721px) and (max-width: 1149px) {
  .st-js .ml-hero:not(.ml-final) { bottom: 62px; }
}
/* #274 QA: tall tablets have room under the orbit for the company line and "Powered by", as on desktop. */
@media (min-width: 721px) and (max-width: 1149px) and (min-height: 900px) {
  .st-js .ml-hero:not(.ml-final) { bottom: 76px; }
  .ml-hero:not(.ml-final) .oh-co-line { display: block; margin-top: 14px; }
  .ml-hero:not(.ml-final) .powered { display: inline-flex; margin-top: 12px; }
  /* #274 option A (Luna #2884): "What Orbiteer can do for me" beside Join, as on desktop. */
  .ml-hero:not(.ml-final) .oh-link { display: inline; }
}
/* Small phones: the cards a little smaller, so eight fit round the visitor at 360. */
@media (max-width: 380px) {
  .ml-card { transform: translate(-50%, -50%) scale(.86); }
  .ml-you .ml-card { transform: translate(-50%, -50%) scale(.9); }
}
