/* Home cover. One surface, one destination. The instrument and its controls
   have no independent card background; the planets only preview the services. */
/* Fixed photograph-like plate below the real orbit. No parallax or animated
   backdrop on the page or header; only the physical models move. */
.hero-orbit {
  --orb-ink:#b6d9ff; --orb-ice:#9fdfff; --orb-line:rgb(170 198 229 / .13);
  --orb-pad-x:clamp(25px,2.86vw,55px); --orb-pad-y:clamp(23px,2.14vw,42px);
  position:relative; display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
  column-gap:clamp(15px,2.5vw,42px); isolation:isolate; contain:paint; z-index:1;
  min-width:0; min-height:clamp(308px,21.12vw,414px); padding:clamp(21px,1.91vw,38px) var(--orb-pad-x) var(--orb-pad-y);
  border:1px solid rgb(174 200 230 / .12); border-radius:clamp(16px,1.12vw,22px); color:#f4f7fc; background:#030912;
  box-shadow:inset 0 1px 0 #d5e4ff06;
}
.hero-orbit::before,.hero-orbit::after {content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none}
.hero-orbit::before {background:url('/observatory/midnight-dust.webp') center center / cover no-repeat}
.hero-orbit::after {background:linear-gradient(90deg,#030912a8 0%,#03091286 24%,#07101d11 49%,transparent 72%),linear-gradient(0deg,#040b167a,transparent 26%)}
.orb-story, .orb-figure {min-width:0; display:grid; position:relative}
.orb-story {grid-template-rows: auto 1fr auto; align-items:center; container-type:inline-size}
.orb-kicker, .orb-index {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.orb-kicker {
  display:flex; align-items:center; gap:8px; margin:0; color:#c1cfdf;
  font-size:10px; line-height:16px; text-transform:uppercase; letter-spacing:.11em;
}
.orb-kicker b {font-weight:700; color:#f7efff; letter-spacing:.16em}
.orb-kicker i {color:#8796ab; font-style:normal}
.orb-sign {position:relative; flex:0 0 17px; height:17px; margin-right:1px; color:var(--orb-ink)}
.orb-sign::before {content:""; position:absolute; inset:0; background:currentColor; clip-path:polygon(50% 0, 61% 37%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%)}
.orb-copy {min-width:0; margin:20px 0 23px}
.orb-title {
  margin:0; font:650 clamp(30px, 11.83cqi, 83px)/1.09 var(--font-display); letter-spacing:-.052em;
  color:#f6f9fd; -webkit-text-fill-color:currentColor; text-wrap:nowrap; text-shadow:0 1px 16px #c4e4ff0e;
}
/* Measure the longest wrap in the actual font/column, including browser zoom.
   Selecting a different service must never move the button or reflow a scrolled page. */
.orb-desc-slot {display:grid}
.orb-desc-slot>.orb-description {grid-area:1/1;align-self:start}
.orb-measure {visibility:hidden;pointer-events:none;user-select:none}
.orb-description {
  margin:12px 0 0; max-width:36ch; color:#d1dae5;
  font:400 clamp(14.5px, 1.03vw, 18px)/1.5 var(--font-body); text-wrap:pretty;
}
.hero-orbit .orb-open {
  position:relative; display:inline-flex;align-items:center;justify-content:space-between;gap:9px;justify-self:start;
  width:14.22em;max-width:100%;min-height:clamp(41px,2.41vw,46px);padding:9px 15px;white-space:nowrap;border-radius:13px;
  font:700 clamp(13px,.78vw,15px)/1.3 var(--font-body);letter-spacing:-.015em;text-decoration:none;color:#0c1b2c;
  border:1px solid #ecf7ffc2;background:linear-gradient(108deg,#eff4ff 0%,#e0edff 55%,#b6ddfa 100%);
  box-shadow:inset 0 1px 0 #ffffff80,0 2px 8px #050b183d;
}
.orb-open svg {width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; transition:transform .18s}
.hero-orbit .orb-open:hover {color:#071523}
.orb-open:hover svg {transform:translateX(2px)}
.hero-orbit :is(a,button):focus-visible, .home-filter select:focus-visible {outline:2px solid #e1d7ff; outline-offset:3px}

/* The entire model is a single radio group in a perspective camera. The SVG
   track uses exactly the projection used for the moving hit targets. */
.orb-figure {grid-template-rows:minmax(162px,1fr) 40px}
.orb-field {position:relative; min-width:0; min-height:0; isolation:isolate; cursor:grab; user-select:none; -webkit-user-select:none; touch-action:pan-y pinch-zoom}
.hero-orbit:is([data-motion="hold"],[data-motion="drag"]) .orb-field {cursor:grabbing}
.orb-field::before {content:""; position:absolute; pointer-events:none; width:82%; height:78%; left:9%; top:6%; border-radius:50%; background:radial-gradient(ellipse at 52% 48%, #92b3ff14, #45659c07 46%, transparent 70%)}
.orb-sky {position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; overflow:visible}
.orb-sky {contain:strict;transform:translateZ(0);z-index:0}
.orb-worlds {position:absolute;inset:0;isolation:isolate;z-index:1;overflow:clip}
.orb-emblem {color:#c6d6ff;filter:drop-shadow(0 0 6px #c2adff77)}
.orb-nucleus text {font-family:var(--font-display);font-weight:650;letter-spacing:.15em;fill:#f6f9ff}
.orb-planet {appearance:none; display:block; position:absolute; inset:0 auto auto 0; width:100px; height:100px; border:0; border-radius:50%; background:transparent; color:white; cursor:inherit; padding:0; margin:0; transform-origin:0 0; -webkit-tap-highlight-color:transparent; user-select:none; transition:none; will-change:transform; touch-action:pan-y pinch-zoom}
.orb-planet:hover {background:transparent}.hero-orbit .orb-planet:focus-visible {outline:3px dotted #faf6ff; outline-offset:5px}
.orb-ball {display:block; width:100px; height:100px; position:absolute; left:50%; top:50%; transform-origin:center; pointer-events:none; isolation:isolate}
.p-skin {display:block; position:absolute; inset:0; z-index:2; border-radius:50%; background:radial-gradient(circle at 32% 24%, var(--p-air),var(--p-base) 39%, #302544 77%, var(--p-air) 106%); box-shadow:0 0 13px color-mix(in srgb,var(--p-air) 10%,transparent)}
.p-skin canvas {width:100%; height:100%; display:block}
.hero-orbit[data-renderer="surface"] .p-skin {background:none}
.orb-planet[aria-checked="true"] .p-skin {box-shadow:-1.7px -.9px 7px color-mix(in srgb,var(--p-air) 48%,transparent),0 0 22px color-mix(in srgb,var(--p-air) 20%,transparent)}
.p-skin::after {content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 2.05px 1.35px 1.65px color-mix(in srgb,var(--p-air) 82%,white);opacity:0;transition:opacity .18s}
.orb-planet[aria-checked="true"] .p-skin::after,.orb-planet:focus-visible .p-skin::after {opacity:.95}
.hero-orbit[data-fast] .p-skin::after {opacity:0}
.p-ring {display:block; position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none}.p-ring.p-far {z-index:1}.p-ring.p-near {z-index:3}
.orb-ball .p-glyph {position:absolute; z-index:5; left:32%; top:32%; width:36%; height:36%; stroke:#fff; stroke-width:1.65; fill:none; opacity:.32; filter:drop-shadow(0 1.5px 1.8px #18162a) drop-shadow(0 0 3px #232446ae); transition:opacity .18s}
/* The compact mark uses the centred hit target (min 44px), not the shrinking
   sphere. At full depth it remains at least 15.4 CSS pixels, without another
   per-frame write, an enlarged planet or any change to the hit area. */
.orb-planet > .p-glyph {position:absolute; z-index:5; left:32.5%; top:32.5%; width:35%; height:35%; color:#fff; stroke:currentColor; stroke-width:1.8; fill:none; opacity:.8; pointer-events:none; filter:drop-shadow(0 1.8px 1.6px #0b0c17) drop-shadow(0 0 2.4px #201622); transition:opacity .18s}
.orb-planet[aria-checked="true"] .p-glyph,.orb-planet:focus-visible .p-glyph {opacity:1; stroke-width:1.65}
@media (hover:hover) {.hero-orbit:not([data-motion="drag"]):not([data-motion="coast"]) .orb-planet:hover .p-glyph {opacity:1}}

.orb-transport {display:flex; align-items:center; justify-content:space-between; min-width:0; gap:10px; border-top:1px solid var(--orb-line); align-self:end; min-height:40px}
.orb-index {display:inline-flex; align-items:center; gap:6px; color:#abb0c8; font-size:11px; line-height:1; letter-spacing:.065em; white-space:nowrap}
.orb-index b {color:#faf4ff; font-weight:700}.orb-index i {color:#868199; font-style:normal}
.orb-ruler {flex:1; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:4px; min-width:30px; max-width:184px; margin-right:auto}
.orb-ruler > span {display:block; position:relative; height:3px; border-radius:3px; overflow:hidden; background:rgb(236 227 255 / .17)}
.orb-ruler > .orb-now {background:color-mix(in srgb,var(--orb-ink) 44%, #302c42)}
.orb-ruler i {display:block; width:100%; height:100%; transform-origin:left center; background:var(--orb-ice)}
.orb-hint {display:inline-flex; align-items:center; justify-content:flex-end; gap:7px; flex:none; color:#d3dfed; white-space:nowrap; font:550 11.5px/1.3 var(--font-body); user-select:none}
.orb-hint svg {width:19px; height:16px; fill:none; stroke:var(--orb-ice); stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round}
.hero-orbit:is([data-motion="drag"],[data-motion="coast"]) .orb-hint {color:#f3effa}
.orb-sr {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; white-space:nowrap; clip-path:inset(50%); border:0}

/* The next thing on the homepage is playable content, not a second launcher. */
.home-discover {margin-top:clamp(24px,2.4vw,38px)}
.home-shelf-head {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 18px; margin-bottom:12px}
.home-shelf-head h2 {margin:0; color:var(--paper); font:650 clamp(21px,2vw,30px)/1.15 var(--font-display); letter-spacing:-.045em}
.home-filter {margin:0; position:relative; display:inline-grid; align-items:center; max-width:100%}
.home-filter select {appearance:none; width:auto; min-height:38px; max-width:100%; margin:0; padding:6px 30px 6px 12px; background:#171222; color:#dbd2e8; border:1px solid rgb(210 194 238 / .23); border-radius:10px; font:550 13px/1.35 var(--font-body); cursor:pointer}
.home-filter .i {position:absolute; right:9px; pointer-events:none; width:14px; height:14px; color:#bfb4cd}

/* Reserve an instrument bay independently of the live headline and hints. */
.orb-field {overflow:clip;overflow-anchor:none;contain:layout paint}
.hero-orbit {overflow-anchor:none}
@supports (scrollbar-gutter:stable){html:has(body[data-scene=home]) {scrollbar-gutter:stable}}
@media (min-width:661px){
  .orb-figure {display:block;align-self:start;height:calc(clamp(308px,21.12vw,414px) - clamp(21px,1.91vw,38px) - var(--orb-pad-y) - 2px)}
  .orb-field {position:absolute;inset:0 0 40px}
  .orb-transport {position:absolute;inset:auto 0 0;height:40px}
}
@media (max-width:1120px) and (min-width:981px), (max-width:800px) and (min-width:661px) {
  .orb-transport {gap:5px}.orb-ruler {gap:3px}.orb-hint {font-size:11px}
  .orb-kicker {gap:7px; font-size:10px}
}
@media (max-width:660px) {
  .hero-orbit {--orb-pad-x:clamp(18px,5.3vw,30px);grid-template-columns:minmax(0,1fr);grid-template-areas:"kicker" "field" "copy" "action" "controls";padding:20px var(--orb-pad-x) 4px;min-height:0;border-radius:18px;container-type:inline-size;background:#050d19}
  .hero-orbit::before {inset:0 0 auto;height:65%;background-image:url('/observatory/midnight-dust-compact.webp');background-position:60% 40%;mask-image:linear-gradient(#000 0%,#000 67%,transparent)}
  .hero-orbit::after {background:linear-gradient(180deg,#030b1540,transparent 20%,transparent 48%,#050d1933 69%,#050d1973)}
  .orb-story, .orb-figure {display:contents; container-type:normal}
  .orb-kicker {grid-area:kicker; font-size:10px; gap:8px}
  .orb-field {grid-area:field; height:clamp(170px,54cqi,227px); margin:6px calc(-.49 * var(--orb-pad-x)) 6px}
  .orb-copy {grid-area:copy; margin:0 0 16px; align-self:start}
  .orb-title {font-size:clamp(29px,12.9cqi,49px)}
  .orb-description {max-width:38ch; margin:8px 0 0; font-size:15px; line-height:1.45; min-height:2.9em}
  .hero-orbit .orb-open {grid-area:action; min-height:44px; font-size:14px}
  .orb-transport {grid-area:controls; margin-top:19px; min-height:44px; gap:5px}
  .orb-hint {font-size:11px;gap:5px}.orb-hint svg {width:16px}.orb-index {gap:4px; font-size:10px}.orb-ruler {gap:3px}
  .home-shelf-head {gap:8px; margin-bottom:8px}.home-shelf-head h2 {font-size:clamp(19px,5.5vw,24px)}
}
@media (max-width:360px) {
  .orb-description {min-height:4.35em}.orb-ruler {gap:2px}.orb-index {gap:3px}
  .home-shelf-head h2 {font-size:18px}.home-filter select {width:119px; font-size:12px; padding-left:9px; min-height:36px}
}
