.universe {
    position: relative;
    min-height: 100svh;
    padding: clamp(2.25rem, 8vh, 6.5rem) 0 6rem clamp(1.5rem, 5vw, 5.5rem);
    isolation: isolate;
    z-index: 1;
    transition: padding-left .35s cubic-bezier(.3, .5, .25, 1);
}

.identity {
    position: relative;
    width: min(36rem, 40vw);
    animation: home-arrive .9s cubic-bezier(.2,.7,.2,1) both;
}

.moon-wrap {
    position: relative;
    width: clamp(12rem, 19vw, 18rem);
    aspect-ratio: 1;
    isolation: isolate;
}

.moon-wrap::before {
    position: absolute;
    inset: -38%;
    z-index: -1;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(132, 45, 192, .25) 0, rgba(91, 26, 132, .12) 38%, transparent 70%);
    filter: blur(1.1rem);
    pointer-events: none;
    transition: background .55s ease;
}

.moon {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 65%, rgba(39, 13, 59, .34) 0 5%, transparent 5.5%),
        radial-gradient(circle at 48% 23%, rgba(255,255,255,.17) 0 8%, transparent 8.7%),
        radial-gradient(circle at 25% 42%, rgba(51, 15, 75, .3) 0 12%, transparent 12.8%),
        linear-gradient(130deg, #d69aff 4%, #8530c6 45%, #40105f 100%);
    -webkit-mask: radial-gradient(circle at 65% 43%, transparent 0 49.5%, #000 50.2%);
    mask: radial-gradient(circle at 65% 43%, transparent 0 49.5%, #000 50.2%);
    filter: drop-shadow(0 0 1.5rem rgba(158, 69, 224, .3));
    opacity: 1;
    scale: 1;
    transition: opacity .55s ease, scale .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}

.sun {
    position: absolute;
    inset: 12%;
    z-index: 1;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    scale: .72;
    transition: opacity .55s ease, scale .55s cubic-bezier(.2,.8,.2,1);
}

.sun::before {
    position: absolute;
    inset: -10%;
    z-index: -1;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 83, 180, .2), transparent 68%);
    filter: blur(.8rem);
}

.sun::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    border: 1px solid rgba(130, 74, 166, .25);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #f3e8ff 0, #d8b8f1 38%, #b17acb 72%, #8751a4 100%);
    box-shadow: inset 0 .1rem .35rem rgba(255, 255, 255, .2), 0 0 1.6rem rgba(111, 54, 150, .2);
}

.moon-glint {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    background: rgba(235, 209, 255, .38);
    transition: opacity .35s ease;
}

.glint-one { width: .45rem; height: .45rem; left: 16%; top: 49%; }
.glint-two { width: .25rem; height: .25rem; left: 31%; top: 76%; }

.identity h1 {
    position: absolute;
    top: 48%;
    left: 66%;
    z-index: 3;
    margin: 0;
    translate: -50% -50%;
    color: var(--ink);
    font-size: clamp(2.15rem, 3.4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.055em;
    text-shadow: 0 2px 1.5rem rgba(0, 0, 0, .85);
}

.introduction {
    max-width: 32rem;
    margin-top: clamp(1rem, 2vh, 1.75rem);
}

.about {
    margin: 0 0 0 .25rem;
    color: #c6becb;
    font-size: clamp(.82rem, 1.1vw, 1rem);
    line-height: 1.8;
    text-wrap: pretty;
}

.about p {
    margin: 0 0 .75rem;
}

.about a {
    color: var(--violet-light);
    text-underline-offset: .18em;
}

.profile-links {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 1.35rem 0 0 .25rem;
}

.profile-link {
    position: relative;
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid rgba(240, 236, 243, .28);
    border-radius: .4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(82, 32, 113, .16));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 .55rem 1.35rem rgba(0, 0, 0, .2);
    color: var(--ink);
    text-decoration: none;
    transition: translate .25s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}

.profile-link::after {
    position: absolute;
    bottom: calc(100% + .55rem);
    left: 50%;
    padding: .35rem .45rem;
    border: 1px solid rgba(213, 167, 255, .24);
    border-radius: .25rem;
    background: rgba(12, 7, 16, .96);
    color: var(--ink);
    content: attr(aria-label);
    font-size: .62rem;
    letter-spacing: .05em;
    opacity: 0;
    pointer-events: none;
    translate: -50% .3rem;
    transition: opacity .2s ease, translate .2s ease;
    white-space: nowrap;
}

.profile-link:hover,
.profile-link:focus-visible {
    translate: 0 -.16rem;
    border-color: var(--violet-light);
    background: linear-gradient(145deg, rgba(213, 167, 255, .2), rgba(104, 47, 139, .24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 .7rem 1.5rem rgba(0, 0, 0, .3), 0 0 1rem rgba(174, 94, 231, .2);
    color: #fff;
    outline: none;
}

.profile-link:hover::after,
.profile-link:focus-visible::after {
    opacity: 1;
    translate: -50% 0;
}

.profile-link-mark {
    display: grid;
    width: 1.1rem;
    height: 1.1rem;
    place-items: center;
}

.profile-link-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.profile-link-fallback {
    font-family: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
    font-size: 1.1rem;
    line-height: 1;
}

.observations {
    position: fixed;
    inset: 0 0 auto;
    z-index: 5;
    height: 100svh;
    pointer-events: none;
}

.observation {
    --star-size: .58rem;
    position: absolute;
    display: block;
    width: var(--line-length);
    height: 3rem;
    color: var(--ink);
    text-decoration: none;
    transform: rotate(var(--angle));
    transform-origin: 0 50%;
    outline: none;
    pointer-events: auto;
    will-change: transform, translate;
}

.observation-blog {
    --star-delay: .04s;
    --line-delay: .24s;
    top: 20%;
    left: 57%;
    animation: observation-drift-blog 11s ease-in-out -2.5s infinite;
}

.observation-links {
    --star-delay: .18s;
    --line-delay: .38s;
    top: 66%;
    left: 54%;
    animation: observation-drift-links 13s ease-in-out -7s infinite;
}

.observation-projects {
    --star-delay: .32s;
    --line-delay: .52s;
    top: 64%;
    left: 76%;
    animation: observation-drift-projects 10.5s ease-in-out -4s infinite;
}

.star {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: var(--star-size);
    height: var(--star-size);
    translate: -50% -50%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 .35rem .1rem rgba(255, 255, 255, .72), 0 0 .9rem .22rem rgba(203, 142, 255, .5);
    transition: scale .35s ease, box-shadow .35s ease;
}

.star-destination {
    left: 100%;
    animation: star-pop .4s var(--star-delay) cubic-bezier(.18,.88,.28,1.32) both;
}

.star-line {
    position: absolute;
    top: calc(50% - 1px);
    left: 0;
    width: calc(100% - 1.45rem);
    height: 1.5px;
    border-radius: 999px;
    opacity: .86;
    background: #f0ecf3;
    transform: scaleX(0);
    transform-origin: 100% 50%;
    animation: line-extend .72s var(--line-delay) cubic-bezier(.18,.72,.22,1) both;
    transition: opacity .3s ease, box-shadow .3s ease;
}

.label-anchor {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 3;
    width: 0;
    height: 0;
    transform: rotate(var(--counter-angle));
    transform-origin: center;
}

.link-label {
    position: absolute;
    right: .75rem;
    bottom: -.75rem;
    width: max-content;
    padding: 0 .05rem .28rem;
    border-bottom: 1px solid rgba(248, 242, 255, .72);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 500;
    letter-spacing: .035em;
    white-space: nowrap;
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    animation: label-reveal .34s calc(var(--line-delay) + .62s) ease-out both;
    transition: color .3s ease, translate .3s ease;
}

.skip-home-intro .identity,
.skip-home-intro .star-destination,
.skip-home-intro .star-line,
.skip-home-intro .link-label {
    animation: none;
}

.skip-home-intro .star-line { transform: scaleX(1); }
.skip-home-intro .link-label { opacity: 1; clip-path: inset(0); }

.observation:hover .star,
.observation:focus-visible .star {
    scale: 1.5;
    box-shadow: 0 0 .45rem .12rem rgba(255, 255, 255, .9), 0 0 1.2rem .32rem rgba(203, 142, 255, .72);
}

.observation:hover .star-line,
.observation:focus-visible .star-line {
    opacity: 1;
    box-shadow: 0 0 .7rem rgba(213, 167, 255, .8);
}

.observation:hover .link-label,
.observation:focus-visible .link-label {
    color: var(--violet-light);
    translate: 0 -.2rem;
}

.observation:focus-visible .link-label {
    outline: 1px solid var(--violet-light);
    outline-offset: .4rem;
}

@keyframes home-arrive { from { opacity: 0; translate: 0 1.25rem; } }
@keyframes line-extend { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes star-pop { from { opacity: 0; transform: scale(.12); } to { opacity: 1; transform: scale(1); } }
@keyframes label-reveal {
    from { opacity: 0; clip-path: inset(0 0 0 100%); }
    to { opacity: 1; clip-path: inset(0); }
}
@keyframes observation-drift-blog {
    0%, 100% { translate: 0 0; }
    30% { translate: 3px -4px; }
    65% { translate: -3px -2px; }
    82% { translate: -1px 3px; }
}
@keyframes observation-drift-links {
    0%, 100% { translate: 0 0; }
    25% { translate: -3px 2px; }
    55% { translate: 1px 4px; }
    80% { translate: 4px -1px; }
}
@keyframes observation-drift-projects {
    0%, 100% { translate: 0 0; }
    32% { translate: 4px 1px; }
    60% { translate: 1px -4px; }
    85% { translate: -3px -1px; }
}

@media (min-width: 761px) {
    body:not(.destination-page) .universe {
        padding-left: calc(clamp(1.5rem, 5vw, 5.5rem) + 5rem);
    }

    body.site-sidebar-expanded:not(.destination-page) .universe {
        padding-left: calc(16rem + clamp(1.5rem, 5vw, 5.5rem));
    }
}

@media (max-width: 760px) {
    .universe {
        display: flex;
        flex-direction: column;
        min-height: 100svh;
        padding: 2.25rem 1.35rem 5rem;
    }

    .identity {
        position: relative;
        width: 100%;
    }

    .moon-wrap {
        width: 11rem;
        margin-inline: auto;
    }

    .identity h1 {
        left: 65%;
        font-size: 2.35rem;
    }

    .about {
        max-width: 31rem;
        font-size: .86rem;
        line-height: 1.65;
    }

    .profile-links {
        margin-top: 1.15rem;
    }

    .observations {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 2.85rem;
        width: min(100%, 19rem);
        height: auto;
        margin: 4.5rem auto 0;
        padding: .5rem 1rem 1rem;
    }

    .observation {
        position: relative;
        inset: auto;
        width: clamp(8.75rem, 43vw, 10.5rem);
        height: 2.5rem;
    }

    .observation-blog {
        --angle: -5deg !important;
        --counter-angle: 5deg !important;
        align-self: flex-end;
        margin-right: .35rem;
    }

    .observation-links {
        --angle: 6deg !important;
        --counter-angle: -6deg !important;
        align-self: flex-start;
        margin-left: 1.4rem;
    }

    .observation-projects {
        --angle: -4deg !important;
        --counter-angle: 4deg !important;
        align-self: flex-end;
        margin-right: 1.35rem;
    }

    .observation .star { --star-size: .65rem; }
    .observation .star-line { width: calc(100% - 1.6rem); height: 1px; }
    .observation .link-label {
        right: .65rem;
        bottom: -.62rem;
        padding-bottom: .2rem;
        font-size: .92rem;
        letter-spacing: .075em;
        text-transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-link,
    .profile-link::after {
        transition: none;
    }
}
