/* Refinement layer for the map (preview): depth, quieter chrome, light and grain, page transitions. */
:root { --glass: rgba(9, 14, 24, .62); --hair: rgba(255, 255, 255, .07); --hi: inset 0 1px 0 rgba(255, 255, 255, .06); }
body { background: transparent; }
html { background: var(--bg); }

/* light: two slow auroras behind the map, a vignette in front of it, a whisper of film grain on top */
body::before { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 32% at 30% 30%, rgba(0, 208, 216, .10), transparent 70%), radial-gradient(34% 30% at 72% 68%, rgba(167, 139, 250, .09), transparent 70%);
  animation: aurora 38s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(6%, -4%, 0) rotate(8deg); } }
#stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(2, 4, 8, .55)); }
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* tiles: lit from above, hairline edge, a soft lift and a spotlight that follows the cursor */
.nd { background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 42%), rgb(10, 16, 27); border-color: var(--hair);
  box-shadow: var(--hi), 0 24px 60px -30px rgba(0, 0, 0, .95); transition: border-color .35s, box-shadow .35s, opacity .6s, filter .6s, translate .35s var(--ease); }
.nd:hover, .nd.sel { translate: 0 -2px; box-shadow: var(--hi), 0 0 0 4px color-mix(in srgb, var(--c) 10%, transparent), 0 30px 70px -26px rgba(0, 0, 0, .95); }
@media (hover: hover) {
  .nd:not(.focus):not(.t-group)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 13%, transparent), transparent 70%); }
  .nd:hover::after { opacity: 1; }
}
.nd .t { text-wrap: balance; }
.nd .s { text-wrap: pretty; color: #8a98ad; }
.nd.core { background: radial-gradient(120% 90% at 50% 0%, rgba(0, 208, 216, .13), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 40%), rgb(10, 16, 27); border-color: rgba(255, 255, 255, .13); }

/* chrome: one quiet glass material for every control */
.chip, .zoom, #mini, .jump, .skip, .term { background: var(--glass); border-color: var(--hair); box-shadow: var(--hi); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }
.chip:hover, .jump:hover { border-color: var(--line2); }
.chip.hire { background: var(--mob); border-color: transparent; box-shadow: 0 8px 28px -10px rgba(0, 208, 216, .7); }
.brand small { letter-spacing: .06em; opacity: .85; }
.hero { background: rgba(8, 12, 21, .7); border-color: var(--hair); border-radius: 24px; padding: 24px 26px;
  box-shadow: var(--hi), 0 40px 90px -40px rgba(0, 0, 0, .95); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.hero h1 { text-wrap: balance; letter-spacing: -.04em; }
.hero p { text-wrap: pretty; }
.btn { border-color: var(--hair); box-shadow: var(--hi); }
.btn.pri { box-shadow: 0 10px 30px -12px rgba(0, 208, 216, .75); }
.t-bubble, .panel, .pal-box { box-shadow: var(--hi), 0 40px 100px -30px rgba(0, 0, 0, .9); }
.hint { text-wrap: balance; font-size: 10.5px; letter-spacing: .02em; }
::selection { background: rgba(0, 208, 216, .35); }

@media (max-width: 760px), (pointer: coarse) {
  body::before { animation: none; }
  .chip, .zoom, #mini, .jump, .skip, .term, .hero { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .chip, .jump, .skip { background: rgba(9, 14, 24, .94); }
  .hero { background: rgba(8, 12, 21, .95); padding: 15px 17px; border-radius: 20px; }
}

/* page transitions between the map and the classic pages: the logo stays, the page dissolves through */
@view-transition { navigation: auto; }
.logo { view-transition-name: logo; }
::view-transition-old(root) { animation: vt-out .38s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .52s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.015); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } body::before { animation: none; } }
