/*
  DES WADE | Planetary Universe navigation
  Seven real buttons, seven destinations. All planets and rings are CSS,
  no images, external libraries or rotating hit areas.
*/
#universe.universe {
  --sky-ink:#fff2ff;
  --sky-muted:#eccde6;
  background:
    radial-gradient(ellipse at 52% 45%,rgba(115,66,131,.42),transparent 53%),
    radial-gradient(circle at 17% 22%,rgba(143,85,163,.22),transparent 38%),
    radial-gradient(circle at 84% 81%,rgba(110,67,141,.22),transparent 40%),
    linear-gradient(150deg,#150c24 2%,#2a193d 52%,#100b1c 100%) !important;
  color:var(--sky-ink);
  display:flex !important;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:clamp(72px,10svh,102px) clamp(12px,3vw,36px) 24px;
  isolation:isolate;
  overflow:hidden;
}
#universe.universe::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  box-shadow:none;
  pointer-events:none;
  background:
    radial-gradient(circle at 8% 18%,#fff9 0 1px,transparent 2px),
    radial-gradient(circle at 28% 72%,#f7d7f2a6 0 1px,transparent 2px),
    radial-gradient(circle at 67% 11%,#fff9 0 1px,transparent 2px),
    radial-gradient(circle at 92% 62%,#ffe0f3a8 0 1px,transparent 2px),
    radial-gradient(circle at 49% 86%,#fffc 0 1px,transparent 2px),
    radial-gradient(circle at 15% 91%,#f1d5faac 0 1px,transparent 2px),
    radial-gradient(circle at 82% 35%,#fffa 0 1px,transparent 2px);
  opacity:.75;
}
#universe.universe .universe-title {
  position:absolute !important;
  top:clamp(74px,10svh,118px) !important;
  left:clamp(22px,6vw,100px) !important;
  right:auto !important;
  max-width:min(74vw,650px);
  margin:0;
  text-align:left !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  pointer-events:none;
  z-index:2;
  line-height:1.12;
}
#universe .universe-kicker {
  display:block;
  margin-bottom:8px;
  font:750 clamp(10px,1.3vw,12px)/1.3 'DM Sans',sans-serif;
  text-transform:uppercase;
  letter-spacing:.2em;
  color:#f2bddf;
}
#universe .universe-title strong {
  display:block;
  font:500 clamp(28px,3.6vw,55px)/1.03 'Playfair Display',Georgia,serif;
  letter-spacing:-.045em;
  color:#fff0fb;
}
#universe .universe-title em {color:#f4aedb;font-style:italic}
#universe .universe-intro {
  display:block;
  margin-top:9px;
  color:#f2dce9;
  font:500 clamp(11px,1.25vw,14px)/1.4 'DM Sans',sans-serif;
  letter-spacing:.025em;
}
#universe.universe .close {
  position:absolute;
  z-index:10;
  top:max(22px,env(safe-area-inset-top,0px)) !important;
  right:max(21px,env(safe-area-inset-right,0px)) !important;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:43px;
  padding:9px 15px;
  border:1px solid rgba(250,218,244,.59);
  border-radius:99px;
  background:rgba(255,242,252,.09);
  color:#fff3fc;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  font:700 12px/1 'DM Sans',sans-serif;
  letter-spacing:.025em;
  cursor:pointer;
}
#universe .close svg {width:17px;height:17px;flex:none;stroke:currentColor}
#universe .close:hover {background:rgba(255,239,255,.2)}
#universe .close:focus-visible,
#universe .planet:focus-visible {
  outline:3px solid #ffcfed !important;
  outline-offset:5px !important;
}
#universe .solar-system {
  position:relative;
  z-index:1;
  width:min(92vw,940px);
  height:min(72svh,610px);
  min-height:420px;
  margin:clamp(36px,6svh,65px) auto 0;
  display:block;
  flex:none;
  filter:none;
}
#universe .solar-system::before,
#universe .solar-system::after {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  top:50%;
  left:50%;
  border:1px solid rgba(247,191,232,.16);
  border-radius:50%;
  transform:translate(-50%,-50%) rotate(-16deg);
}
#universe .solar-system::before {
  width:85%;
  height:62%;
  box-shadow:0 0 44px rgba(234,156,216,.06);
}
#universe .solar-system::after {
  width:62%;
  height:44%;
  border-style:dashed;
  border-color:rgba(243,194,235,.18);
  transform:translate(-50%,-50%) rotate(23deg);
}
#universe .planet {
  --orb-light:#e4a4e2;
  --orb-mid:#865a9e;
  --orb-dark:#342148;
  --orb-halo:rgba(215,135,222,.3);
  position:absolute;
  left:var(--x);
  top:var(--y);
  width:clamp(114px,13vw,150px);
  min-width:0;
  height:clamp(142px,15vw,165px);
  padding:7px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  border:0;
  border-radius:22px;
  background:transparent !important;
  color:#fff0fb;
  text-align:center;
  transform:translate(-50%,-50%);
  cursor:pointer;
  isolation:isolate;
  box-shadow:none !important;
  filter:none !important;
  transition:transform .24s ease;
}
#universe .planet::before,
#universe .planet::after {
  content:none !important;
}
#universe .planet:hover {transform:translate(-50%,-50%) translateY(-4px)}
#universe .planet-sphere {
  position:relative;
  flex:0 0 auto;
  width:clamp(78px,9.7vw,105px);
  height:clamp(78px,9.7vw,105px);
  display:block;
  border-radius:50%;
  background:
    radial-gradient(ellipse at 28% 22%,rgba(255,255,255,.82) 0%,transparent 24%),
    radial-gradient(ellipse at 36% 33%,var(--orb-light) 0%,var(--orb-mid) 45%,var(--orb-dark) 77%,#110c20 100%);
  border:1px solid rgba(255,226,252,.7);
  box-shadow:inset -12px -15px 20px rgba(16,8,32,.38),
    inset 5px 5px 17px rgba(255,255,255,.24),
    0 0 22px var(--orb-halo),
    0 12px 27px rgba(7,3,16,.34);
  transition:box-shadow .24s ease,transform .24s ease;
}
#universe .planet-sphere::after {
  content:"";
  position:absolute;
  inset:10%;
  border-radius:50%;
  background:
    linear-gradient(160deg,transparent 38%,rgba(255,255,255,.14) 48%,transparent 58%),
    radial-gradient(ellipse at 58% 63%,rgba(255,255,255,.1),transparent 55%);
  opacity:.65;
  transform:rotate(-24deg);
}
#universe .planet-sphere[data-ring]::before {
  content:"";
  position:absolute;
  z-index:2;
  left:-27%;
  right:-27%;
  top:38%;
  height:27%;
  border:5px solid rgba(246,208,245,.68);
  border-left-color:rgba(244,187,225,.32);
  border-bottom-color:rgba(251,222,252,.86);
  border-radius:50%;
  transform:rotate(-24deg);
  box-shadow:0 0 14px rgba(238,159,232,.28);
  pointer-events:none;
}
#universe .planet:hover .planet-sphere,
#universe .planet:focus-visible .planet-sphere {
  box-shadow:inset -12px -15px 20px rgba(16,8,32,.38),
    inset 5px 5px 17px rgba(255,255,255,.35),
    0 0 28px var(--orb-halo),
    0 0 58px var(--orb-halo),
    0 12px 27px rgba(7,3,16,.34);
  transform:scale(1.045);
}
#universe .planet-info {
  display:flex;
  flex-direction:column;
  gap:3px;
  justify-content:center;
  align-items:center;
  min-width:0;
}
#universe .planet-index {
  color:#ffe4f6;
  font:750 10px/1 'DM Sans',sans-serif;
  letter-spacing:.15em;
}
#universe .planet strong {
  font:750 clamp(12px,1.25vw,15px)/1.16 'DM Sans',sans-serif;
  color:#fff0fc;
  text-shadow:0 2px 12px rgba(0,0,0,.8);
  white-space:normal;
  max-width:142px;
}
#universe .planet--arrival {--x:15%;--y:30%;--orb-light:#ffd9e7;--orb-mid:#b96e9e;--orb-dark:#4b275d;--orb-halo:rgba(250,159,207,.29)}
#universe .planet--work {--x:37%;--y:17%;--orb-light:#f9d9af;--orb-mid:#b77a98;--orb-dark:#533464;--orb-halo:rgba(244,190,140,.24)}
#universe .planet--cases {--x:65%;--y:22%;--orb-light:#c9c0ff;--orb-mid:#7160bb;--orb-dark:#312657;--orb-halo:rgba(159,149,248,.3)}
#universe .planet--story {--x:87%;--y:47%;--orb-light:#a8d5ed;--orb-mid:#5084aa;--orb-dark:#233b65;--orb-halo:rgba(132,200,242,.3)}
#universe .planet--approach {--x:75%;--y:79%;--orb-light:#d6b9ef;--orb-mid:#a56dbb;--orb-dark:#482955;--orb-halo:rgba(202,145,229,.28)}
#universe .planet--lab {--x:43%;--y:73%;--orb-light:#d6dbba;--orb-mid:#829b80;--orb-dark:#2e5148;--orb-halo:rgba(166,211,161,.25)}
#universe .planet--contact {--x:16%;--y:76%;--orb-light:#ffc9bb;--orb-mid:#c77788;--orb-dark:#5f3452;--orb-halo:rgba(240,151,171,.26)}
#universe.universe .universe-footnote {
  position:absolute;
  left:50%;
  bottom:max(15px,env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  z-index:2;
  width:max-content;
  max-width:90vw;
  margin:0;
  color:#eed1e8;
  text-align:center;
  font:600 10px/1.4 'DM Sans',sans-serif;
  text-transform:uppercase;
  letter-spacing:.15em;
  opacity:.86;
}
html[data-theme="light"] #universe.universe {
  --sky-ink:#352442;
  background:
    radial-gradient(ellipse at 48% 47%,rgba(255,238,254,.87),transparent 58%),
    radial-gradient(ellipse at 9% 20%,rgba(209,161,214,.33),transparent 45%),
    linear-gradient(155deg,#e9d5ea 0%,#e5d7f1 52%,#f5e4ef 100%) !important;
}
html[data-theme="light"] #universe .universe-kicker {color:#79426f}
html[data-theme="light"] #universe .universe-title strong {color:#40264c}
html[data-theme="light"] #universe .universe-title em {color:#975483}
html[data-theme="light"] #universe .universe-intro,
html[data-theme="light"] #universe .universe-footnote {color:#5c4365}
html[data-theme="light"] #universe.universe .close {
  background:rgba(255,255,255,.58);
  border-color:rgba(122,84,126,.5);
  color:#4a2d50;
}
html[data-theme="light"] #universe .solar-system::before,
html[data-theme="light"] #universe .solar-system::after {border-color:rgba(120,67,129,.24)}
html[data-theme="light"] #universe .planet-index {color:#65375e}
html[data-theme="light"] #universe .planet strong {color:#47234e;text-shadow:0 1px 0 rgba(255,255,255,.85)}
html[data-theme="light"] #universe .planet:focus-visible {outline-color:#7d327b!important}
@media(max-width:850px) and (orientation:portrait) {
  #universe.universe {padding:100px 12px 35px}
  #universe.universe .universe-title {
    top:max(72px,env(safe-area-inset-top,0px)) !important;
    left:24px!important;right:18px!important;max-width:calc(100% - 45px);
  }
  #universe .universe-title strong {font-size:clamp(27px,7vw,38px)}
  #universe .universe-intro {font-size:12px}
  #universe .solar-system {
    position:relative;
    width:min(100%,610px);
    height:min(65svh,605px);
    min-height:0;
    margin:clamp(80px,12svh,116px) auto 0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(4,minmax(0,1fr));
    align-items:stretch;
    justify-items:center;
    gap:3px 10px;
  }
  #universe .solar-system::before {width:90%;height:82%}
  #universe .solar-system::after {width:73%;height:66%}
  #universe .planet {
    position:relative;
    left:auto!important;top:auto!important;
    transform:none!important;
    width:100%;max-width:150px;
    height:100%;
    min-height:0;
    border-radius:18px;
    padding:4px 5px;
    gap:5px;
    justify-content:center;
  }
  #universe .planet:hover {transform:translateY(-3px)!important}
  #universe .planet-sphere {width:clamp(56px,8svh,87px);height:clamp(56px,8svh,87px)}
  #universe .planet-info {gap:3px}
  #universe .planet strong {font-size:clamp(11px,3.1vw,14px)}
  #universe .planet-index {font-size:9px}
  #universe .planet--contact {grid-column:1/-1;width:min(100%,180px)}
  #universe .universe-footnote {display:none}
}
@media(max-width:460px) and (orientation:portrait) {
  #universe.universe .universe-title {
    top:max(76px,env(safe-area-inset-top,0px)) !important;
    left:20px!important;
  }
  #universe.universe .close {
    top:max(17px,env(safe-area-inset-top,0px))!important;
    right:max(16px,env(safe-area-inset-right,0px))!important;
    min-height:40px;
    font-size:11px;
  }
  #universe .solar-system {
    height:min(64svh,570px);
    margin-top:clamp(72px,11svh,105px);
    gap:1px 6px;
  }
  #universe .planet-sphere {width:clamp(50px,7.7svh,76px);height:clamp(50px,7.7svh,76px)}
  #universe .planet {gap:4px}
  #universe .planet strong {font-size:clamp(11px,3vw,13px)}
}
@media(orientation:landscape) and (max-height:650px) {
  #universe.universe {padding:48px 12px 6px;justify-content:center}
  #universe.universe .universe-title {
    top:clamp(9px,2svh,20px)!important;
    left:clamp(20px,4vw,48px)!important;
    right:auto!important;
    max-width:56vw;
  }
  #universe .universe-kicker {font-size:9px;margin-bottom:3px}
  #universe .universe-title strong {font-size:clamp(21px,3vw,34px)}
  #universe .universe-intro {display:none}
  #universe.universe .close {top:8px!important;right:14px!important;min-height:36px;padding:6px 11px}
  #universe .solar-system {
    display:grid;
    position:relative;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    align-items:center;
    justify-items:center;
    gap:0 8px;
    width:min(96vw,830px);
    height:calc(100svh - 102px);
    min-height:0;
    margin:36px 0 0;
  }
  #universe .solar-system::before {width:86%;height:78%}
  #universe .solar-system::after {width:65%;height:56%}
  #universe .planet {
    position:relative;
    left:auto!important;top:auto!important;
    width:100%;max-width:158px;
    height:100%;
    min-height:0;
    transform:none!important;
    gap:3px;
    padding:2px 0;
    justify-content:center;
  }
  #universe .planet:hover {transform:translateY(-2px)!important}
  #universe .planet-sphere {
    width:clamp(42px,13svh,73px);
    height:clamp(42px,13svh,73px);
  }
  #universe .planet-index {font-size:9px}
  #universe .planet strong {font-size:clamp(11px,1.35vw,14px)}
  #universe.universe .universe-footnote {display:none}
}
@media(orientation:landscape) and (max-height:360px) {
  #universe .solar-system {height:calc(100svh - 100px);margin-top:34px}
  #universe .planet-sphere {width:38px;height:38px}
  #universe .planet {gap:0}
  #universe .planet strong {font-size:11px;line-height:1.08}
}
@media(prefers-reduced-motion:reduce) {
  #universe .planet,#universe .planet-sphere {transition:none!important}
}
