/* Iteration 12 · visible constellation bridges above a fixed planet stage. */
:root {
  --bg:#fbfcfd; --surface:#fff; --surface2:#f5f6f7;
  --ink:#17181a; --muted:#646a73; --line:#e5e8ec; --strong:#cdd3da;
  --accent:#0a7ee8; --accent-hover:#006bd1; --text-accent:#006bd1; --pale:#eaf4ff;
  --radius:8px; --scene-accent:#a9d9ff;
  --sans:Inter,Manrope,"SF Pro Display","Segoe UI Variable","Segoe UI",Arial,sans-serif;
}
[data-theme=graphite] {
  --bg:#101722; --surface:#151e2b; --surface2:#1d2838; --ink:#f3f6fa;
  --muted:#a2afc1; --line:#2a3546; --strong:#3a4b63; --accent:#83baff;
  --accent-hover:#b5d6ff; --text-accent:#a9cfff; --pale:#213248; --radius:8px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:28px; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 var(--sans); -webkit-font-smoothing:antialiased; }
button,a { font:inherit; }
button { cursor:pointer; color:inherit; }
button:disabled { cursor:default; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
svg { display:block; }
h1,h2,h3,p { margin:0; }
[hidden] { display:none!important; }
.wrap { width:min(1280px,calc(100% - 96px)); margin-inline:auto; }
.sr-only,.view-changed { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip { position:fixed; top:-100px; left:16px; z-index:20; padding:12px 16px; background:#e9f4ff; color:#101722; }
.skip:focus { top:12px; }
.arrow { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

/* A text wordmark sits within the opening scene. */
.site-header { position:absolute; z-index:5; top:0; left:50%; transform:translateX(-50%); height:94px; display:flex; align-items:center; justify-content:space-between; gap:32px; color:#edf4ff; border-bottom:1px solid #adccf21a; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-name { font-size:13px; font-weight:500; line-height:1.4; letter-spacing:-.015em; }
.brand-name span { display:block; }
.header-nav { margin-left:auto; display:flex; align-items:center; gap:31px; font-size:12px; }
.nav-button,.nav-link { background:none; border:0; padding:10px 0; color:#b6c4d8; }
.nav-button:hover,.nav-link:hover { color:#fff; }
.login { display:flex; align-items:center; gap:22px; min-height:39px; padding:8px 13px; border:1px solid #b4d4ff40; border-radius:5px; color:#e9f4ff; background:#111e333b; }
.login:hover { background:#a9cfff16; border-color:#a9cfff8c; }
.login .arrow { width:16px; height:16px; }
.site-header :is(a,button):focus-visible { outline-color:#a9d9ff; }

/* Two familiar theme controls, shared by both pages. */
.site-header { --theme-control-ink:#b6c4d8; --theme-control-active:#edf4ff; --theme-control-border:#b4d4ff40; --theme-control-fill:#b4d4ff18; }
.theme-switch { display:inline-flex; align-items:center; gap:2px; flex-shrink:0; padding:3px; border:1px solid var(--theme-control-border); border-radius:8px; }
.theme-button { display:grid; place-items:center; width:34px; height:34px; padding:7px; border:0; border-radius:5px; color:var(--theme-control-ink); background:transparent; }
.theme-button:hover { color:var(--theme-control-active); background:var(--theme-control-fill); }
.theme-button[aria-pressed=true] { color:var(--theme-control-active); background:var(--theme-control-fill); }
.theme-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

.cosmos-hero { position:relative; isolation:isolate; width:100%; height:auto; overflow:visible; color:#f3f7ff; background:#02050e; }
.cosmos-stage { position:relative; isolation:isolate; width:100%; height:100svh; min-height:740px; max-height:1100px; overflow:hidden; }
body .cosmic-scene[data-neon-logo][data-neon-size=hero] { position:absolute; inset:0; display:block; width:100%; height:100%; min-height:0; max-width:none; margin:0; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:radial-gradient(ellipse at 57% 52%,#112142 0%,#070c1a 42%,#02050e 78%); }
body .cosmic-scene[data-neon-size=hero] .neon-fallback { left:57%; top:54%; width:min(107vw,121svh); height:auto; max-width:none; transform:translate(-50%,-50%); opacity:.8; }
.cosmos-shade { position:absolute; z-index:1; inset:0 0 auto; height:clamp(480px,58%,650px); pointer-events:none; background:linear-gradient(90deg,#02050eda,transparent 48%); mask-image:linear-gradient(#000 75%,transparent); }
.hero-overlay { position:absolute; z-index:2; top:0; bottom:0; left:50%; transform:translateX(-50%); pointer-events:none; }
.hero-copy { position:absolute; top:clamp(145px,20svh,205px); left:0; width:350px; max-width:34%; pointer-events:auto; }
.eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:24px; color:#aabbd0; font-size:9px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; }
.eyebrow::before { content:""; width:22px; height:1px; background:var(--scene-accent); }
.hero-copy h1 { color:#f1f5fc; font-size:clamp(38px,3.3vw,47px); font-weight:450; line-height:1.12; letter-spacing:-.045em; }
.hero-copy h1 span { color:var(--scene-accent); }
.hero-description { margin-top:24px; max-width:32ch; color:#b0bdd0; font-size:14px; line-height:1.85; }
.hero-cta { display:inline-flex; align-items:center; gap:26px; min-height:44px; margin-top:29px; border-bottom:1px solid #a9cfff5e; color:#e7f2ff; font-size:12px; }
.hero-cta .arrow { width:17px; height:17px; color:var(--scene-accent); transition:transform .2s; }
.hero-cta:hover { border-color:#c4e4ff; }
.hero-cta:hover .arrow { transform:translateY(3px); }
.hero-cta:focus-visible { outline-color:#a9d9ff; }
.scene-guidance { position:absolute; z-index:2; right:max(48px,calc((100% - 1280px)/2)); bottom:35px; display:flex; flex-direction:column; align-items:flex-end; gap:6px; pointer-events:none; color:#7f94af; font-size:9px; letter-spacing:.025em; }
.scene-guidance-title { color:#b4c7de; font-size:11px; letter-spacing:.005em; }
.scene-down { position:absolute; z-index:3; left:50%; bottom:27px; transform:translateX(-50%); width:40px; height:40px; display:grid; place-items:center; border:1px solid #a8d4ff26; border-radius:50%; color:#b6d5f7; }
.scene-down:hover { border-color:#a8d4ff70; background:#a8d4ff0b; }
.scene-down .arrow { width:16px; height:16px; }
body .cosmic-scene .neon-tools { left:max(48px,calc((100% - 1280px)/2)); bottom:31px; gap:8px; }
body .cosmic-scene :is(.neon-pause,.neon-attach,.neon-clear) { min-height:34px; padding:8px 10px; border-color:#8cb4e032; border-radius:4px; background:#0811218c; color:#b1c5df; font-size:10px; backdrop-filter:blur(5px); }
body .cosmic-scene :is(.neon-pause,.neon-attach,.neon-clear):hover { color:#edf7ff; border-color:#a5d7ff8c; }
body .cosmic-scene .neon-count { padding-left:5px; font-size:9px; color:#91a5c1; }
@media (min-width:1201px) {
  .hero-copy { top:clamp(135px,16svh,165px); }
  .eyebrow { margin-bottom:20px; }
  .hero-copy h1 { font-size:40px; }
  .hero-description { margin-top:18px; max-width:33ch; font-size:13px; line-height:1.75; }
  .hero-cta { margin-top:20px; min-height:40px; }
  body .cosmic-scene[data-neon-size=hero] .neon-fallback { left:50%; width:min(107vw,107svh); }
}

/* Three quiet, fully clickable directions. */
.directions { padding-top:64px; padding-bottom:65px; }
.section-top { margin-bottom:27px; }
.section-top h2 { font-size:18px; font-weight:500; letter-spacing:-.025em; }
.direction-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--strong); }
.direction-card { display:flex; flex-direction:column; align-items:stretch; gap:16px; width:100%; text-align:left; min-height:190px; margin:0; padding:30px; border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:transparent; transition:background .18s; }
.direction-card:first-child { padding-left:0; }
.direction-card:last-child { border-right:0; padding-right:0; }
.direction-card:hover { background:var(--surface2); }
.direction-card:hover .card-heading { color:var(--text-accent); }
.card-heading { display:block; max-width:24ch; min-height:2.6em; font-size:23px; font-weight:450; line-height:1.3; letter-spacing:-.025em; }
.card-description { display:block; max-width:32ch; font-size:12px; line-height:1.85; color:var(--muted); }

.site-footer { border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:25px 28px; color:var(--muted); font-size:10px; }
.footer-brand { display:flex; align-items:center; gap:10px; }
.footer-links { display:flex; align-items:center; gap:25px; }
.footer-button { padding:5px 0; border:0; background:none; color:var(--muted); font-size:10px; }
.footer-links a:hover,.footer-button:hover { color:var(--text-accent); }

dialog { width:min(530px,calc(100% - 32px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid var(--strong); border-radius:10px; color:var(--ink); background:var(--bg); box-shadow:0 24px 80px #0003; }
dialog::backdrop { background:#02050ec4; backdrop-filter:blur(5px); }
.modal-head { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 28px; border-bottom:1px solid var(--line); color:var(--muted); font-size:10px; letter-spacing:.07em; text-transform:uppercase; }
.close { width:32px; height:32px; flex-shrink:0; display:grid; place-items:center; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--surface); font-size:20px; line-height:1; }
.modal-body { padding:32px 28px; }
.modal-body h2 { margin-bottom:18px; font-size:29px; font-weight:500; line-height:1.2; letter-spacing:-.04em; }
.modal-body p { font-size:14px; line-height:1.8; color:var(--muted); }
.modal-tag { display:inline-block; margin-bottom:16px; padding:6px 10px; border-radius:4px; background:var(--pale); color:var(--text-accent); font-size:10px; }
.modal-list { margin:23px 0 0; padding:0; border-top:1px solid var(--line); list-style:none; }
.modal-list li { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); font-size:12px; }
.modal-list li::before { content:"↗"; color:var(--accent); }
.modal-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:26px; }
.modal-primary,.modal-secondary { display:inline-flex; align-items:center; min-height:42px; padding:12px 17px; border-radius:6px; font-size:12px; }
.modal-primary { background:var(--accent-hover); color:var(--bg); border:0; }
.modal-secondary { border:1px solid var(--strong); background:none; }
.modal-note { margin-top:20px!important; font-size:11px!important; }

@media (max-width:1100px) {
  .wrap { width:calc(100% - 64px); }
  .hero-copy { width:310px; max-width:37%; }
  .hero-copy h1 { font-size:39px; }
  .scene-guidance { right:32px; }
  body .cosmic-scene .neon-tools { left:32px; }
  .direction-card { padding-inline:23px; }
  .card-heading { font-size:20px; }
}
@media (min-width:721px) and (max-width:1000px) {
  .hero-copy { top:130px; width:325px; max-width:48%; }
  .hero-description { font-size:13px; }
  .cosmos-shade { background:linear-gradient(110deg,#02050ee8,transparent 55%); }
  body .cosmic-scene[data-neon-size=hero] .neon-fallback { left:58%; top:62%; width:min(103.5vw,97svh); }
  .scene-guidance { bottom:83px; }
}
@media (max-width:720px) {
  html { scroll-padding-top:20px; }
  .wrap { width:calc(100% - 44px); }
  .site-header { height:auto; min-height:108px; flex-wrap:wrap; gap:8px 16px; padding-block:14px 12px; }
  .brand { gap:9px; }
  .brand-name { font-size:11px; }
  .header-nav { order:1; flex-basis:100%; justify-content:space-between; gap:16px; }
  .theme-switch { margin-left:auto; }
  .nav-link { display:inline-flex; font-size:10px; }
  .nav-link-about { display:inline-flex; font-size:10px; }
  .nav-button { font-size:10px; }
  .login { gap:9px; min-height:36px; padding:7px 10px; font-size:11px; }
  .cosmos-stage { height:100svh; min-height:780px; max-height:1100px; }
  body .cosmic-scene[data-neon-logo][data-neon-size=hero] { display:block; width:100%; height:100%; aspect-ratio:auto; max-width:none; margin:0; }
  body .cosmic-scene[data-neon-size=hero] .neon-fallback { left:50%; top:64%; width:124vw; }
  .cosmos-shade { height:42%; background:linear-gradient(#02050ec9,#02050e45); }
  .hero-copy { top:140px; left:0; width:100%; max-width:350px; }
  .eyebrow { margin-bottom:17px; font-size:8px; letter-spacing:.14em; }
  .eyebrow::before { width:17px; }
  .hero-copy h1 { font-size:35px; line-height:1.1; }
  .hero-description { max-width:33ch; margin-top:17px; font-size:12px; line-height:1.8; color:#b6c4d7; }
  .hero-cta { gap:24px; min-height:38px; margin-top:15px; font-size:11px; }
  .hero-cta .arrow { width:15px; height:15px; }
  .scene-guidance { right:auto; left:22px; bottom:106px; align-items:flex-start; gap:5px; font-size:8px; }
  .scene-guidance-title { font-size:10px; }
  .scene-down { left:auto; right:22px; bottom:27px; transform:none; width:34px; height:34px; }
  body .cosmic-scene .neon-tools { left:22px; bottom:28px; right:68px; gap:6px; max-width:calc(100% - 90px); }
  body .cosmic-scene :is(.neon-pause,.neon-attach,.neon-clear) { min-height:34px; padding:8px; font-size:9px; }
  body .cosmic-scene .neon-count { padding-left:1px; font-size:8px; min-width:43px; }
  .directions { padding-top:37px; padding-bottom:39px; }
  .section-top { display:block; margin-bottom:21px; }
  .section-top h2 { font-size:17px; }
  .section-top p { margin-top:6px; font-size:10px; }
  .direction-grid { display:block; }
  .direction-card,.direction-card:first-child,.direction-card:last-child { width:100%; min-height:0; gap:12px; padding:25px 0; border-right:0; }
  .card-heading { min-height:0; max-width:none; font-size:23px; }
  .card-description { max-width:38ch; }
  .site-footer { flex-direction:column; align-items:flex-start; gap:15px; padding-block:22px 26px; }
  .footer-links { width:100%; justify-content:space-between; }
  .modal-head { padding:16px 20px; }
  .modal-body { padding:25px 20px; }
  .modal-body h2 { font-size:26px; }
}
@media (max-width:380px) {
  .header-nav { gap:10px; }
  .hero-copy h1 { font-size:32px; }
  .hero-description { max-width:32ch; }
  body .cosmic-scene :is(.neon-pause,.neon-attach,.neon-clear) { padding-inline:6px; font-size:8px; }
  body .cosmic-scene .neon-count { min-width:38px; font-size:7px; }
}
/* Each graph keeps its own full title; narrow screens have room above and below the globe. */
@media (min-width:1201px) {
  .cosmos-stage { min-height:900px; }
  body .cosmic-scene[data-neon-size=hero] .neon-fallback { left:50%; top:54%; width:auto; height:90.8621%; transform:translate(-50%,-48.5294118%); }
}
@media (min-width:721px) and (max-width:1200px) {
  .cosmos-stage { height:1250px; min-height:1250px; max-height:none; }
  body .cosmic-scene[data-neon-size=hero] .neon-fallback { left:50%; top:58%; width:86.2069vw; height:auto; transform:translate(-50%,-48.5294118%); }
}
@media (max-width:720px) {
  .cosmos-stage { height:1600px; min-height:1600px; max-height:none; }
  .cosmos-shade { height:420px; }
  body .cosmic-scene[data-neon-size=hero] .neon-fallback { left:50%; top:40.625%; width:min(124.1379vw,517.2414px); height:auto; transform:translate(-50%,-48.5294118%); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .hero-cta .arrow,.direction-card { transition:none; }
  .hero-cta:hover .arrow { transform:none; }
}
@media print {
  .site-header,.cosmic-scene,.cosmos-shade,.scene-guidance,.scene-down,.footer-links,dialog { display:none!important; }
  body { background:#fff; color:#111; }
  .wrap { width:100%; }
  .cosmos-hero,.cosmos-stage { height:auto; min-height:0; background:#fff; color:#111; overflow:visible; }
  .hero-overlay { position:static; transform:none; padding-block:25px; }
  .hero-copy { position:static; max-width:100%; width:100%; }
  .hero-copy h1,.hero-copy h1 span,.hero-description,.eyebrow { color:#111; }
  .hero-cta { display:none; }
  .direction-card { break-inside:avoid; }
}
