/* NEXUS//04 landing */
.lx { background: #02030a; overflow-x: hidden; }
.lx-locked, .lx-briefing { overflow: hidden; }
#lx-sky { position: fixed; inset: 0; z-index: 0; }
#lx-sky canvas { display: block; width: 100%; height: 100%; }
.lx-no3d #lx-sky { background: radial-gradient(75% 65% at 80% 40%, #152337, transparent 78%), #02030a; }
.lx-no3d .lx-hero { background: url(../textures/cosmic/earth-globe.webp) 93% 40% / min(57vw, 700px) auto no-repeat; }
.lx-static-note, .lx-no3d .lx-sky-note { display: none; }
.lx-no3d .lx-static-note { display: block; }
@media(max-width:720px) { .lx-no3d .lx-hero { background-position: 90% 40%; background-size: 76vw; } }
.lx main, .lx-foot { position: relative; z-index: 2; }
.lx-top { justify-content: space-between; }
.lx-nav { display: flex; gap: 20px; } .lx-nav a { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; } .lx-nav a:hover { color: var(--ink); }
.lx-play { color: #0a0a0e; background: var(--acc); border-color: var(--acc); }

/* intro: cinematic orbital sunrise rendered by the 3D sky behind this layer */
.lx-intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 18%, rgba(2,3,10,.55), transparent 60%), linear-gradient(180deg, rgba(2,3,10,.65) 0%, rgba(2,3,10,0) 34%, rgba(2,3,10,0) 70%, rgba(2,3,10,.35) 100%);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.lx-intro::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
.lx-intro.is-out { opacity: 0; transform: scale(1.035); pointer-events: none; }
.lx-intro__in { position: relative; z-index: 2; text-align: center; padding: 20px; margin-top: -14vh; }
.lx-intro__k { font: 500 11px var(--mono); letter-spacing: .42em; text-transform: uppercase; color: #c9d6f2; animation: lx-up 1.2s .3s both; margin: 0; }
.lx-logo { position: relative; margin: 14px 0 8px; font-weight: 800; font-stretch: 125%; font-size: clamp(70px, 15vw, 236px); line-height: .82; letter-spacing: -.03em; white-space: nowrap; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.lx-logo span { display: inline-block; animation: lx-drop 1.3s cubic-bezier(.2,.8,.2,1) both;
  background: linear-gradient(100deg, #8ea3cf 0%, #f4f7ff 22%, #ffffff 30%, #b9c8ea 45%, #eef2ff 62%, #ffd9b0 78%, #9fb4e0 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-logo span { animation: lx-drop 1.3s cubic-bezier(.2,.8,.2,1) both, lx-sheen 7s 1.6s ease-in-out infinite; }
.lx-logo span:nth-child(2) { animation-delay: .1s, 1.7s; } .lx-logo span:nth-child(3) { animation-delay: .2s, 1.8s; } .lx-logo span:nth-child(4) { animation-delay: .3s, 1.9s; } .lx-logo span:nth-child(5) { animation-delay: .4s, 2s; }
.lx-logo em { font-style: italic; font-size: .36em; color: #ff7a3d; vertical-align: top; display: inline-block; margin-left: .04em; text-shadow: 0 0 28px rgba(255,122,61,.55); animation: lx-up 1.2s .9s both; }
.lx-intro__t { font: 500 13px var(--mono); letter-spacing: .62em; text-transform: uppercase; margin: 16px 0 6px; color: #eef2ff; animation: lx-up 1.2s 1s both; }
.lx-intro__s { font-style: italic; color: #b9c3dc; letter-spacing: .22em; margin: 0; animation: lx-up 1.2s 1.15s both; }
.lx-intro__m { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; padding: 0; max-width: 720px; }
.lx-intro__m li { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(6,9,20,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); animation: lx-up 1s both; }
.lx-intro__m li:nth-child(1) { animation-delay: 1.3s; } .lx-intro__m li:nth-child(2) { animation-delay: 1.4s; } .lx-intro__m li:nth-child(3) { animation-delay: 1.5s; } .lx-intro__m li:nth-child(4) { animation-delay: 1.6s; }
.lx-intro__m li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); align-self: center; }
.lx-intro__m b { font: 600 11px var(--mono); letter-spacing: .14em; color: #fff; } .lx-intro__m span { font-size: 12px; color: #aab4cc; }
.lx-enter { position: relative; margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; font: 600 13px var(--mono); letter-spacing: .22em; text-transform: uppercase; padding: 16px 18px 16px 30px; border-radius: 999px; border: 1px solid #ff7a3d;
  background: linear-gradient(180deg, rgba(255,122,61,.22), rgba(255,122,61,.06)); color: #fff; cursor: pointer; animation: lx-up 1.2s 1.8s both; transition: background .3s, color .3s, box-shadow .3s, transform .3s;
  box-shadow: 0 0 0 0 rgba(255,122,61,.5), 0 10px 40px rgba(255,122,61,.25); }
.lx-enter::before { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid rgba(255,122,61,.4); animation: lx-ping 2.4s 3s infinite; }
.lx-enter kbd { font: 600 12px var(--mono); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ff7a3d; color: #0a0a0e; }
.lx-enter:hover, .lx-enter:focus-visible { background: #ff7a3d; color: #0a0a0e; transform: translateY(-2px); box-shadow: 0 14px 50px rgba(255,122,61,.45); outline: none; }
.lx-enter:hover kbd, .lx-enter:focus-visible kbd { background: #0a0a0e; color: #ff7a3d; }
/* HUD */
.lx-hud { position: absolute; inset: clamp(14px, 3vw, 34px); z-index: 2; pointer-events: none; animation: lx-fade 2s .6s both; }
.lx-hud p { position: absolute; margin: 0; font: 500 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(225,232,248,.78); display: flex; align-items: center; gap: 8px; }
.lx-hud b { color: #fff; font-weight: 600; }
.lx-hud__tl { left: 26px; top: 6px; } .lx-hud__tr { right: 26px; top: 6px; } .lx-hud__bl { left: 26px; bottom: 6px; } .lx-hud__br { right: 26px; bottom: 6px; font-variant-numeric: tabular-nums; }
.lx-hud__c { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(225,232,248,.45); }
.lx-hud__c--tl { left: 0; top: 0; border-right: 0; border-bottom: 0; } .lx-hud__c--tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.lx-hud__c--bl { left: 0; bottom: 0; border-right: 0; border-top: 0; } .lx-hud__c--br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.lx-live { width: 7px; height: 7px; border-radius: 50%; background: #ff7a3d; box-shadow: 0 0 8px #ff7a3d; animation: lx-blink 1.6s infinite; }
/* lens flare: positioned each frame from the Sun's screen position */
.lx-flare { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(var(--fl, 0)); mix-blend-mode: screen; }
.lx-flare i { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.lx-flare__sun { width: 70vmax; height: 70vmax; background: radial-gradient(circle, rgba(255,250,235,.95) 0, rgba(255,214,150,.55) 3%, rgba(255,150,70,.18) 12%, rgba(255,120,60,0) 40%),
  linear-gradient(90deg, transparent 0, rgba(255,220,180,.0) 30%, rgba(255,230,200,.55) 49.6%, rgba(255,255,255,.9) 50%, rgba(255,230,200,.55) 50.4%, rgba(255,220,180,0) 70%, transparent 100%) center / 100% 2px no-repeat; }
.lx-flare i:nth-child(2) { width: 90px; height: 90px; background: radial-gradient(circle, rgba(120,170,255,.25), rgba(120,170,255,0) 70%); }
.lx-flare i:nth-child(3) { width: 34px; height: 34px; background: radial-gradient(circle, rgba(255,190,120,.45), rgba(255,190,120,0) 70%); }
.lx-flare i:nth-child(4) { width: 160px; height: 160px; background: radial-gradient(circle, rgba(160,120,255,0) 55%, rgba(160,120,255,.18) 66%, rgba(160,120,255,0) 72%); }
.lx-flare i:nth-child(5) { width: 60px; height: 60px; background: radial-gradient(circle, rgba(110,220,200,.3), rgba(110,220,200,0) 70%); }
.lx-flare i:nth-child(6) { width: 240px; height: 240px; background: radial-gradient(circle, rgba(255,140,90,0) 60%, rgba(255,140,90,.14) 68%, rgba(255,140,90,0) 76%); }
@keyframes lx-drop { from { opacity: 0; transform: translateY(-35px) scale(1.12); } }
@keyframes lx-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes lx-fade { from { opacity: 0; } }
@keyframes lx-sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes lx-ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes lx-blink { 50% { opacity: .25; } }
@media (max-width: 640px) {
  .lx-intro__in { margin-top: -18vh; } .lx-intro__t { letter-spacing: .4em; font-size: 11px; }
  .lx-hud p { font-size: 9px; letter-spacing: .14em; } .lx-hud .lx-hud__tr, .lx-hud .lx-hud__bl { display: none; }
  .lx-intro__m { gap: 6px; } .lx-intro__m li { padding: 6px 10px; } .lx-intro__m span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lx-intro *, .lx-intro *::before { animation: none !important; } }

/* type */
.lx-k { font: 500 11px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--acc); margin: 0 0 14px; display: flex; gap: 12px; align-items: center; }
.lx-k::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.lx h2 { font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(36px, 5vw, 78px); line-height: .95; margin: 0 0 18px; text-wrap: balance; }
.lx-lede { font-size: clamp(16px, 1.3vw, 19px); color: #d8d4cc; max-width: 54ch; }
.lx-rule { color: #d8d4cc; }
.lx-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lx-btn { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8,9,14,.6); color: var(--ink); text-decoration: none; transition: border-color .25s, transform .25s; }
.lx-btn:hover { border-color: var(--acc); transform: translateY(-1px); }
.lx-btn--go { background: var(--acc); color: #0a0a0e; border-color: var(--acc); }
.lx-src { font: 10px var(--mono); color: var(--acc); }

/* hero */
.lx-hero { min-height: 100vh; padding: 130px var(--pad) 60px; display: grid; grid-template-rows: 1fr auto; position: relative; }
.lx-hero__copy { max-width: 640px; align-self: center; }
.lx-bodies { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 46px); }
.lx-bodies a { display: grid; text-decoration: none; color: var(--ink); }
.lx-bodies span { font-weight: 300; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; color: var(--acc); }
.lx-bodies b { font-weight: 800; font-stretch: 112%; letter-spacing: .02em; } .lx-bodies em { font: 10px var(--mono); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }
.lx-scale { font: 10px var(--mono); color: var(--muted); margin: 14px 0 0; }
.lx-scrollcue { position: absolute; right: var(--pad); bottom: 40px; font: 10px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.lx-scrollcue::after { content: ''; display: block; width: 1px; height: 50px; margin: 12px auto 0; background: linear-gradient(var(--muted), transparent); animation: lx-up 2s infinite; }

/* chapters */
.lx-ch { min-height: 120vh; padding: 20vh var(--pad); position: relative; display: grid; align-content: center; }
.lx-ch__copy { max-width: 560px; padding: 26px; border-radius: 18px; background: linear-gradient(120deg, rgba(4,5,10,.82), rgba(4,5,10,.35)); backdrop-filter: blur(4px); border-left: 3px solid var(--acc); position: relative; z-index: 2; }
.lx-ch__name { font-weight: 800; font-stretch: 115%; font-size: 20px; letter-spacing: .04em; margin: 0 0 10px; color: var(--acc); } .lx-ch__name span { font: 11px var(--mono); color: var(--muted); letter-spacing: .1em; }
.lx-ch h2 { font-size: clamp(30px, 3.8vw, 56px); }
.lx-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lx-facts li { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.lx-facts b { font-weight: 800; font-stretch: 110%; font-size: 22px; white-space: nowrap; } .lx-facts .lx-src { overflow-wrap: anywhere; } .lx-facts span { font-size: 12px; color: #cfcbc3; }
.lx-giant { position: absolute; right: var(--pad); bottom: 8vh; margin: 0; font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(64px, 13vw, 210px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,.35); pointer-events: none; }

/* how */
.lx-how, .lx-archive, .lx-judges { padding: 16vh var(--pad); position: relative; background: linear-gradient(rgba(2,3,10,0), rgba(2,3,10,.88) 14%, rgba(2,3,10,.88) 86%, rgba(2,3,10,0)); }
.lx-steps { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lx-steps li { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-top: 2px solid var(--acc); }
.lx-steps b { font-weight: 800; font-stretch: 112%; text-transform: uppercase; } .lx-steps p { margin: 8px 0 0; font-size: 14px; color: #cfcbc3; }
.lx-math ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; font-size: 14px; color: #cfcbc3; }
.lx-math code { font: 13px var(--mono); color: var(--ink); background: rgba(255,255,255,.06); padding: 3px 7px; border-radius: 6px; margin-right: 8px; }

/* archive */
.lx-arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.lx-arch__m { display: grid; gap: 8px; align-content: start; }
.lx-arch__m h3 { margin: 0; font-weight: 800; font-stretch: 112%; color: var(--acc); } .lx-arch__m h3 small { display: block; font: 10px var(--mono); color: var(--muted); font-weight: 400; }
.lx-arch article { padding: 12px; border-radius: 12px; border: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.lx-arch article.on { border: 1px solid var(--acc); color: #e6e1d8; background: color-mix(in srgb, var(--acc) 10%, transparent); }
.lx-arch article b { display: block; color: var(--ink); } .lx-arch article p { margin: 4px 0 6px; }

/* judges */
.lx-jgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.lx-jgrid article { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.lx-jgrid h3, .lx-teamh { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.lx-jgrid p { margin: 0; color: #d8d4cc; }
.lx-teamh { margin-top: 30px; scroll-margin-top: 90px; }
.lx-team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lx-team li { display: grid; padding: 16px; border-radius: 12px; border: 1px solid var(--line); } .lx-team b { font-weight: 800; font-size: 18px; } .lx-team span { font-size: 13px; color: #cfcbc3; }
.lx-team li { grid-template-rows: auto 1fr auto; }
.lx-team-web { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: #e6e2da; font-size: 13px; line-height: 1.45; }
.lx-team-web strong { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.lx-foot { padding: 30px var(--pad); font: 11px var(--mono); color: var(--muted); border-top: 1px solid var(--line); background: #02030a; }
.lx-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; }

@media (max-width: 1000px) {
  .lx-nav { display: none; }
  .lx-steps, .lx-arch, .lx-team { grid-template-columns: 1fr 1fr; }
  .lx-jgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lx-steps, .lx-arch, .lx-team, .lx-facts { grid-template-columns: 1fr; }
  .lx-ch { min-height: 100vh; padding: 12vh var(--pad); }
  .lx-giant { font-size: 18vw; bottom: 3vh; }
}

.lx-stats { list-style: none; padding: 0; margin: 24px 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lx-stats li { display: grid; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.lx-stats b { font-weight: 800; font-stretch: 112%; font-size: 30px; line-height: 1; } .lx-stats span { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.lx-achs { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-achs span { font: 11px var(--mono); letter-spacing: .08em; padding: 7px 11px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); }
.lx-achs span.on { border: 1px solid #ffb35c; color: var(--ink); background: rgba(255,179,92,.1); }
@media (max-width: 640px) { .lx-stats { grid-template-columns: 1fr 1fr; } }
/* lighter headings (redesign brief) */
.lx h2 { font-weight: 650; font-stretch: 104%; text-transform: none; font-size: clamp(32px, 4vw, 60px); line-height: 1.04; letter-spacing: -.02em; }
.lx-steps b { font-weight: 700; text-transform: none; font-stretch: 104%; }
.lx-ch h2 { font-size: clamp(28px, 3vw, 46px); }

/* eight-planet labels */
.lx-plabels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .6s; }
.lx-plabels.on { opacity: 1; }
.lx-plabels span { position: absolute; left: 0; top: 0; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(242,239,233,.8); white-space: nowrap; text-shadow: 0 1px 6px #000; }
/* handoff + dashboard */
.lx-handoff { min-height: 90vh; }
.lx-dash { padding: 16vh var(--pad); position: relative; z-index: 2; background: linear-gradient(rgba(2,3,10,0), rgba(2,3,10,.9) 18%); }
.lx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.lx-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; border: 1px solid var(--line); border-top: 3px solid var(--acc); background: rgba(10,12,18,.75); backdrop-filter: blur(6px); }
.lx-card h3 { margin: 0; font-weight: 700; font-size: 22px; color: var(--ink); }
.lx-card p { margin: 0; color: #d8d4cc; font-size: 14px; }
.lx-card__k { font: 500 10px var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; display: flex; align-items: center; gap: 8px; }
.lx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc2, var(--acc)) 35%, transparent); }
.lx-card__meta { display: flex; justify-content: space-between; font: 11px var(--mono) !important; color: var(--muted) !important; }
@media (max-width: 1000px) { .lx-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .lx-cards { grid-template-columns: 1fr; } }

/* keep hero text readable over the orbits */
.lx-hero__copy { position: relative; }
.lx-hero__copy::before { content: ''; position: absolute; inset: -60px -120px -60px -80px; z-index: -1; background: radial-gradient(closest-side, rgba(2,3,10,.82), rgba(2,3,10,0)); pointer-events: none; }

/* ---- locked design handoff: stops, target names, readable sources ---- */
.lx-ch__name { text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.lx-sub { margin: 0 0 16px; font-size: clamp(15px, 1.2vw, 18px); color: #d8d4cc; max-width: 46ch; }
.lx-facts li { align-content: start; }
.lx-facts .lx-src { display: block; margin-top: 6px; font: 12px/1.35 var(--sans, inherit); color: #cfe2ff; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.lx-facts .lx-src:hover { color: #fff; }
.lx-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); max-width: 52ch; }
.lx-target { position: fixed; left: 0; top: 0; z-index: 1; margin: 0; pointer-events: none; font-weight: 700; font-stretch: 112%; font-size: clamp(34px, 5.2vw, 76px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: #f2efe9; text-shadow: 0 2px 18px rgba(0,0,0,.85); opacity: 0; transition: opacity .5s; white-space: nowrap; }
.lx-target::after { content: ''; display: block; width: 46px; height: 3px; margin-top: 8px; background: var(--acc); border-radius: 2px; }
.lx-target.on { opacity: 1; }
.lx-marklbl { position: fixed; left: 0; top: 0; z-index: 1; margin: 0; pointer-events: none; font: 600 11px var(--mono); letter-spacing: .06em; color: #e8f2ff; background: rgba(4,6,14,.78); border: 1px solid rgba(169,212,255,.5); padding: 4px 8px; border-radius: 6px; opacity: 0; transition: opacity .4s; white-space: nowrap; }
.lx-marklbl.on { opacity: 1; }
.lx-giant { display: none; }
.lx-hero__copy h2 { font-size: clamp(34px, 4.4vw, 66px); }
.lx-hero__copy .lx-lede { font-size: clamp(17px, 1.5vw, 22px); color: #e6e2da; }
@media (max-width: 640px) { .lx-facts .lx-src { font-size: 11.5px; } .lx-target { font-size: 40px; } }

/* while the intro plays, only the 3D sky shows behind it; the page fades in as the camera pulls back */
main, .lx-top { transition: opacity 1.4s .7s; }
.lx-locked main, .lx-locked .lx-top { opacity: 0; transition: none; }

/* ---- hero, second pass: clear lane for the copy, mission cards with real planet maps ---- */
.lx-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(2,3,10,.92) 0%, rgba(2,3,10,.78) 26%, rgba(2,3,10,.35) 46%, rgba(2,3,10,0) 62%), linear-gradient(0deg, rgba(2,3,10,.8) 0%, rgba(2,3,10,0) 30%); }
.lx-hero > * { position: relative; z-index: 1; }
.lx-hero__copy h2 { text-transform: none; letter-spacing: -.02em; font-stretch: 100%; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.lx-hero__copy .lx-lede { position: relative; padding-left: 16px; }
.lx-hero__copy .lx-lede::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 2px; background: linear-gradient(#4aa8ff, #a78bfa, #9fe0ea, #d0674c); }
.lx-bodies { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 12px; }
.lx-bodies li { min-width: 0; display: flex; } .lx-bodies li > a { flex: 1; align-content: start; }
.lx-bodies a { position: relative; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 14px 14px 14px 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s; }
.lx-bodies a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(.18); transform-origin: left; transition: transform .45s; }
.lx-bodies a:hover, .lx-bodies a:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 18px 50px color-mix(in srgb, var(--acc) 22%, transparent); outline: none; }
.lx-bodies a:hover::after, .lx-bodies a:focus-visible::after { transform: scaleX(1); }
.lx-orb { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 50%; background-size: 200% 100%; background-position: 0 50%; animation: lx-spin 40s linear infinite;
  box-shadow: inset -12px -6px 18px rgba(0,0,0,.85), inset 3px 2px 6px rgba(255,255,255,.18), 0 0 18px color-mix(in srgb, var(--acc) 40%, transparent); }
.lx-orb--astra { border-radius: 46% 54% 42% 58% / 55% 44% 56% 45%; filter: sepia(.55) saturate(1.2) brightness(.9); transform: scale(.82) rotate(-18deg); }
.lx-orb--lunaris { filter: grayscale(.2) brightness(1.05); }
@keyframes lx-spin { to { background-position: -200% 50%; } }
.lx-bodies .lx-card__n { font: 500 10px var(--mono); color: var(--acc); letter-spacing: .2em; grid-column: 2; line-height: 1; }
.lx-bodies b { grid-column: 2; font-size: 15px; letter-spacing: .03em; line-height: 1.2; }
.lx-bodies em { grid-column: 2; margin-top: -2px; }
.lx-bodies small { grid-column: 1 / -1; margin-top: 10px; font-size: 12px; line-height: 1.35; color: #c9c4bb; }
@media (max-width: 900px) { .lx-bodies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .lx-bodies small { display: none; } .lx-bodies a { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .lx-orb { animation: none; } }
.lx-plabels span { padding: 3px 8px 3px 14px; border-radius: 999px; background: rgba(4,6,14,.55); border: 1px solid rgba(255,255,255,.1); }
.lx-plabels span::before { content: ''; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: .7; }
main, .lx-top { transition: opacity 1.6s 1.3s; }

/* mission preview sheet */
body.lx-pick { cursor: pointer; }
.lx-sheet { position: fixed; right: 16px; top: 84px; bottom: 16px; z-index: 45; width: min(400px, calc(100vw - 32px)); overflow: auto; padding: 26px 24px; border-radius: 20px;
  background: linear-gradient(170deg, rgba(14,18,30,.94), rgba(6,8,14,.94)); border: 1px solid color-mix(in srgb, var(--acc) 40%, rgba(255,255,255,.1)); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); transform: translateX(30px); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.lx-sheet.on { transform: none; opacity: 1; }
.lx-sheet::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--acc); }
.lx-sheet__x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); font-size: 20px; cursor: pointer; }
.lx-sheet__x:hover { border-color: var(--acc); }
.lx-sheet__k { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 0 0 8px; }
.lx-sheet h3 { font-weight: 800; font-stretch: 115%; font-size: 30px; letter-spacing: .02em; margin: 0 0 10px; outline: none; }
.lx-sheet__q { font-size: 19px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; } .lx-sheet__sub { color: #cfcbc3; margin: 0 0 16px; }
.lx-sheet h4 { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lx-sheet__obj { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.lx-sheet__obj li { padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; }
.lx-sheet__obj li::before { content: '◎ '; color: var(--acc); }
.lx-sheet__meta { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.lx-sheet .lx-row { margin-top: 14px; }
/* briefing and countdown */
.lx-brief { position: fixed; inset: 0; z-index: 60; display: grid; place-items: safe center; overflow-y:auto; padding: 16px; background: rgba(2,3,8,.86); animation: lx-fade .23s both; }
.lx-brief__card { position: relative; width: min(620px, 100%); padding: 28px; border-radius: 20px; background: linear-gradient(170deg, rgba(14,18,30,.97), rgba(6,8,14,.97)); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 60px color-mix(in srgb, var(--acc) 18%, transparent); animation: lx-up .4s both; overflow: hidden; }
.lx-brief__card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px); }
.lx-brief__k { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 0 0 10px; }
.lx-brief__k i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: lx-blink 1s infinite; }
.lx-brief h3 { font-weight: 800; font-stretch: 115%; font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; } .lx-brief h3 span { color: var(--muted); font-weight: 500; }
.lx-brief__txt { min-height: 5.2em; font: 15px/1.6 var(--mono); color: #e6e2da; margin: 0 0 16px; }

.lx-brief__kv { display: grid; gap: 8px; margin: 0 0 18px; } .lx-brief__kv div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.lx-brief__kv dt { font: 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; } .lx-brief__kv dd { margin: 0; }
.lx-btn:active, .lx-enter:active { transform: translateY(1px) scale(.98); }
@media (max-width: 640px) { .lx-sheet { top: auto; left: 10px; right: 10px; width: auto; max-height: 76vh; bottom: 10px; transform: translateY(30px); } .lx-brief__kv div { grid-template-columns: 1fr; gap: 2px; } }

.lx-cosmic { position: relative; isolation: isolate; overflow: hidden; width: calc(100% - var(--pad) * 2); max-width: 1350px; margin: 0 auto; min-height: 360px; padding: clamp(2rem, 6vw, 6rem); border: 1px solid var(--line); border-radius: 20px; background: #090d18; display: flex; align-items: center; }
.lx-cosmic > img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 74%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.lx-cosmic::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #090d18 14%, #090d18db 38%, #090d1810 78%),linear-gradient(0deg,#090d18c9,transparent 25%); }
.lx-cosmic__copy { max-width: 530px; }
.lx-cosmic__copy h2 { font-size: clamp(2.5rem,6vw,5.3rem); letter-spacing: -.055em; line-height: .94; margin: 0 0 1rem; }
.lx-cosmic__copy p { max-width: 41ch; color: #e2e8f4; line-height: 1.55; margin-bottom: 1.2rem; }
.lx-cosmic__credit { position: absolute; right: 1rem; bottom: .75rem; color: #ebeff7; font: 10px var(--mono); }
@media(max-width:720px) {
  .lx-cosmic { min-height: 420px; align-items: flex-end; padding-bottom: 3.25rem; }
  .lx-cosmic > img { width: 100%; object-position: 55% 30%; }
  .lx-cosmic::before { background: linear-gradient(0deg,#090d18 9%,#090d18e8 33%,#090d1800 83%); }
}

@media (prefers-reduced-motion:reduce) {
  .lx-intro { transition:none; }
  .lx-brief,.lx-brief__card { animation:none; }
}

/* the 3D sky fades in on its first frame; the static Earth is only for browsers without 3D (no flash on load) */
#lx-sky canvas { opacity: 0; transition: opacity .8s ease; }
.lx-ready #lx-sky canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #lx-sky canvas { transition: none; } }
.lx-hero { overflow-x: clip; }
/* Five destinations: four missions + Cosmic Explorer */
.lx-intro__m { max-width: 900px; }
.lx-intro__m li:nth-child(5) { animation-delay: 1.7s; }
.lx-bodies { grid-template-columns: repeat(5, minmax(0, 196px)); gap: 10px; }
.lx-bodies a { grid-template-columns: 40px 1fr; padding: 12px 12px 12px 10px; }
.lx-orb { width: 40px; height: 40px; }
.lx-orb--cosmic { background-size: cover; background-position: center; animation: none; box-shadow: 0 0 16px rgba(233,176,74,.35); filter: saturate(1.15); }
.lx-bodies small { font-size: 11.5px; }
@media (max-width: 1180px) { .lx-bodies { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; } }
@media (max-width: 900px) { .lx-bodies { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lx-bodies li:last-child { grid-column: 1 / -1; } }
.lx-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lx-card { padding: 16px; }
.lx-card h3 { font-size: 19px; }
.lx-card p { font-size: 13px; }
.lx-card .lx-row { flex-wrap: wrap; gap: 6px; }
.lx-card .lx-btn { padding-inline: 12px; }
.lx-card--cosmic { background: linear-gradient(160deg, rgba(233,176,74,.10), rgba(167,139,250,.08) 60%, rgba(10,12,18,.8)); }
@media (max-width: 1240px) { .lx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lx-card--cosmic { grid-column: 1 / -1; } }
@media (max-width: 480px) { .lx-cards { grid-template-columns: 1fr; } }

/* keep the hero buttons clear of the mission cards on shorter laptop screens */
.lx-hero { row-gap: clamp(28px, 4.5vh, 52px); }
.lx-hero__copy { align-self: end; }
@media (min-height: 860px) { .lx-hero__copy { align-self: center; } }
@media (max-width: 720px) { .lx-hero { padding-bottom: 76px; } }
