:root {
  --night: #05040d;
  --violet: #7b2db3;
  --orange: #ff8a09;
  --gold: #dfbd66;
  --gold-soft: #ffe6a2;
  --ivory: #f6eddc;
  --muted: #aaa9b5;
  --line: rgba(223, 189, 102, .28);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100svh;
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 18% 48%, rgba(123,45,179,.32), transparent 33rem),
    radial-gradient(circle at 82% 48%, rgba(255,112,0,.28), transparent 33rem),
    radial-gradient(circle at 50% 44%, rgba(223,189,102,.08), transparent 20rem),
    var(--night);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .8s ease;
}
body[data-program="chandra"] { background-color: #10051e; }
body[data-program="surya"] { background-color: #260b02; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(circle, rgba(255,230,162,.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.38) 0 1px, transparent 1.5px);
  background-position: 0 0, 35px 52px;
  background-size: 92px 92px, 131px 131px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 6px; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; border-radius: 999px; color: var(--night); background: var(--gold-soft); }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; z-index: 20; padding-top: 1.25rem; }
.nav { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.nav-side, .nav-other { color: var(--muted); font-size: .84rem; text-decoration: none; }
.nav-side { justify-self: start; }
.nav-other { justify-self: end; }
.nav-side:hover, .nav-other:hover { color: var(--gold-soft); }
.brand { justify-self: center; display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 52px; aspect-ratio: 1; object-fit: contain; }
.brand span { color: var(--gold-soft); font-size: .83rem; font-weight: 760; letter-spacing: .2em; }
.celestial-stage { min-height: calc(100svh - 78px); padding: 1.5rem 0 3rem; }
.portal-copy { position: relative; z-index: 8; max-width: 780px; text-align: center; }
.eyebrow { margin: 0 0 .7rem; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, p { margin-top: 0; }
h1 { margin-bottom: .8rem; font-family: var(--serif); font-size: clamp(2.8rem, 6.5vw, 5.8rem); font-weight: 400; line-height: .93; letter-spacing: -.05em; text-wrap: balance; }
.portal-copy > p:last-child { max-width: 700px; margin: 0 auto; color: #c6c2cc; }
.dual-world { position: relative; height: min(650px, 66svh); min-height: 520px; isolation: isolate; }
.celestial-axis { position: absolute; z-index: -2; top: 50%; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(192,101,255,.65) 23%, var(--gold) 50%, rgba(255,132,19,.7) 77%, transparent); }
.dual-core, .choice-orb { position: absolute; top: 50%; aspect-ratio: 1; border-radius: 50%; }
.dual-core { z-index: 6; left: 50%; width: clamp(230px, 27vw, 330px); transform: translate(-50%, -50%); }
.dual-core-shell { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: visible; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, filter .6s ease; }
.dual-core:hover .dual-core-shell, .dual-core:focus-visible .dual-core-shell { filter: drop-shadow(-22px 0 34px rgba(157,67,222,.28)) drop-shadow(22px 0 34px rgba(255,119,0,.3)); }
.dual-core-logo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 55px rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(223,189,102,.15)); }
.dual-orbit { position: absolute; border: 1px solid rgba(223,189,102,.36); border-radius: 50%; pointer-events: none; animation: orbit 22s linear infinite; }
.dual-orbit--one { inset: -9%; }
.dual-orbit--two { inset: -18%; border-style: dashed; opacity: .55; animation-duration: 38s; animation-direction: reverse; }
.choice-orb { z-index: 3; left: 50%; width: clamp(205px, 23vw, 280px); display: grid; place-items: center; border: 1px solid rgba(223,189,102,.34); text-decoration: none; opacity: .08; filter: blur(3px); transform: translate(-50%, -50%) scale(.42); transition: left .8s cubic-bezier(.16,1,.3,1), opacity .5s ease, filter .5s ease, transform .8s cubic-bezier(.16,1,.3,1), box-shadow .5s ease; }
.choice-orb::before, .choice-orb::after { content: ""; position: absolute; border: 1px solid rgba(223,189,102,.25); border-radius: 50%; animation: orbit 25s linear infinite; }
.choice-orb::before { inset: 8%; }
.choice-orb::after { inset: 17%; border-style: dashed; animation-direction: reverse; }
.choice-orb--chandra { background: radial-gradient(circle at 35% 28%, rgba(203,110,255,.54), transparent 37%), radial-gradient(circle, #3a105b, #10051f 74%); }
.choice-orb--surya { background: radial-gradient(circle at 35% 28%, rgba(255,217,99,.52), transparent 35%), radial-gradient(circle, #bb4207, #2c0a01 74%); }
.dual-world:has(.dual-core:hover) .choice-orb,
.dual-world:has(.dual-core:focus-visible) .choice-orb,
.dual-world:has(.choice-orb:hover) .choice-orb,
.dual-world:has(.choice-orb:focus-visible) .choice-orb { opacity: 1; filter: none; }
.dual-world:has(.dual-core:hover) .choice-orb--chandra,
.dual-world:has(.dual-core:focus-visible) .choice-orb--chandra,
.dual-world:has(.choice-orb:hover) .choice-orb--chandra,
.dual-world:has(.choice-orb:focus-visible) .choice-orb--chandra { left: 17%; transform: translate(-50%, -50%) scale(1); }
.dual-world:has(.dual-core:hover) .choice-orb--surya,
.dual-world:has(.dual-core:focus-visible) .choice-orb--surya,
.dual-world:has(.choice-orb:hover) .choice-orb--surya,
.dual-world:has(.choice-orb:focus-visible) .choice-orb--surya { left: 83%; transform: translate(-50%, -50%) scale(1); }
.choice-orb:hover, .choice-orb:focus-visible { box-shadow: 0 0 0 25px rgba(223,189,102,.035), 0 35px 90px rgba(0,0,0,.5); }
.celestial { position: relative; display: block; width: 48%; aspect-ratio: 1; }
.celestial--moon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c9, #ffd46f 64%, #a86bea); box-shadow: 0 0 24px #ffe48d, 0 0 70px rgba(169,78,244,.95); }
.celestial--moon::after { content: ""; position: absolute; width: 100%; aspect-ratio: 1; left: 37%; top: -10%; border-radius: 50%; background: #270b3d; }
.celestial--sun::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; background: radial-gradient(circle, #fffbd0, #ffd34f 38%, #ff8a00 74%); box-shadow: 0 0 22px #ffe66e, 0 0 72px rgba(255,112,0,1); }
.celestial--sun::after { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg, #ffc13b 0 2deg, transparent 2deg 15deg); mask-image: radial-gradient(circle, transparent 0 39%, #000 41% 65%, transparent 67%); animation: orbit 26s linear infinite; }
.portal-hint { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); width: max-content; margin: 0; color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.guidance { padding: 1.2rem 0 3rem; text-align: center; }
.guidance p { margin-bottom: .45rem; color: var(--muted); }
.guidance a { color: var(--gold-soft); text-underline-offset: 5px; }
footer { padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 850px) {
  .portal-copy { padding-top: 2.5rem; }
  .dual-world { height: auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; padding-top: 3.5rem; }
  .celestial-axis { display: none; }
  .dual-core { position: relative; top: auto; left: auto; grid-column: 1 / -1; width: min(58vw, 290px); margin: 0 auto 3rem; transform: none; }
  .choice-orb { position: relative; top: auto; left: auto; width: min(40vw, 275px); justify-self: center; opacity: 1; filter: none; transform: none; }
  .dual-world:has(.dual-core:hover) .choice-orb--chandra,
  .dual-world:has(.dual-core:focus-visible) .choice-orb--chandra,
  .dual-world:has(.choice-orb:hover) .choice-orb--chandra,
  .dual-world:has(.choice-orb:focus-visible) .choice-orb--chandra,
  .dual-world:has(.dual-core:hover) .choice-orb--surya,
  .dual-world:has(.dual-core:focus-visible) .choice-orb--surya,
  .dual-world:has(.choice-orb:hover) .choice-orb--surya,
  .dual-world:has(.choice-orb:focus-visible) .choice-orb--surya { left: auto; transform: scale(1.04); }
  .portal-hint { position: relative; left: auto; bottom: auto; grid-column: 1 / -1; transform: none; width: auto; margin-top: 1.3rem; text-align: center; }
}
@media (max-width: 560px) {
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav-side, .nav-other { font-size: 0; }
  .nav-side::after { content: "←"; font-size: 1.05rem; }
  .nav-other::after { content: "Services"; font-size: .75rem; }
  .brand span { display: none; }
  .portal-copy { padding-top: 2rem; }
  .portal-copy > p:last-child { font-size: .92rem; }
  .dual-world { gap: .75rem; padding-top: 2.8rem; }
  .dual-core { width: min(66vw, 270px); }
  .choice-orb { width: min(43vw, 220px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
