@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600&family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap');

:root {
    --lecp-accent: #c80e86;
    --lecp-accent-hover: #e21a9c;
    --lecp-accent-soft: #e6a9d1;
    --lecp-font: 'Hanken Grotesk', 'Zain', system-ui, sans-serif;
}

body {
    margin: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

#stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .6;
}

.layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.nav-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--lecp-line, rgba(255, 255, 255, 0.1));
    padding: var(--lecp-space-6, 2rem) var(--lecp-space-5, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: var(--lecp-space-6, 2rem);
    z-index: 10;
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--lecp-text, #fff);
    text-decoration: none;
}

.brand-dot {
    color: var(--lecp-accent);
}

.nav-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--lecp-line, rgba(255, 255, 255, 0.1));
    border-radius: 4px;
    color: var(--lecp-text, #fff);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-tile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lecp-accent);
}

.nav-tile-index {
    font-size: 0.85rem;
    color: var(--lecp-accent);
    font-family: monospace;
}

.nav-tile-label {
    flex-grow: 1;
    font-size: 1rem;
}

.nav-tile-arrow {
    color: var(--lecp-text-secondary, #888);
    transition: transform 0.2s ease;
}

.nav-tile:hover .nav-tile-arrow {
    transform: translateX(-4px);
    color: var(--lecp-accent-hover);
}

.nav-caption {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--lecp-text-secondary, #888);
    line-height: 1.4;
}

.page {
    margin-right: 280px;
    flex: 1;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--lecp-space-8, 4rem) var(--lecp-space-4, 1rem);
}

.hero-stack {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    place-items: center;
    width: min(78vw, 620px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    perspective: 900px;
}

.hero-stack>* {
    grid-area: stack;
}

.astrolabe {
    width: 100%;
    height: 100%;
    overflow: visible;
    transition: transform .4s var(--lecp-ease-focus, ease-out);
    will-change: transform;
}

.astrolabe .ring-outer {
    transform-origin: 200px 200px;
    animation: spin-cw 90s linear infinite;
}

.astrolabe .ring-mid {
    transform-origin: 200px 200px;
    animation: spin-ccw 60s linear infinite;
}

.astrolabe .ring-needle {
    transform-origin: 200px 200px;
    animation: spin-cw 24s linear infinite;
}

@keyframes spin-cw {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-ccw {
    to {
        transform: rotate(-360deg);
    }
}

.astrolabe circle.ring {
    fill: none;
}

.astrolabe .ring-a {
    stroke: var(--lecp-line, rgba(255, 255, 255, 0.2));
}

.astrolabe .ring-b {
    stroke: var(--lecp-accent);
    opacity: .3;
}

.astrolabe .tick {
    stroke: var(--lecp-text-secondary, #888);
    opacity: .5;
}

.astrolabe .tick-major {
    stroke: var(--lecp-accent);
    opacity: .8;
}

.astrolabe .needle-line {
    stroke: var(--lecp-accent-hover);
    opacity: .9;
}

.astrolabe .needle-dot {
    fill: var(--lecp-accent-hover);
}

.astrolabe .center-dot {
    fill: var(--lecp-accent);
}

.hero-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lecp-space-3, 0.75rem);
    text-align: center;
    padding: var(--lecp-space-5, 1.5rem);
    max-width: 24ch;
}

.coord-badge {
    direction: ltr;
    margin: 0;
    padding: var(--lecp-space-2, 0.5rem) var(--lecp-space-4, 1rem);
}

.coord-badge span {
    color: var(--lecp-accent-hover);
}

.hero-title {
    margin: 0;
    color: var(--lecp-text, #fff);
    font-size: clamp(2.6rem, 9vw, var(--lecp-type-display, 4rem));
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -.01em;
    clip-path: inset(0 0 0 0);
    animation: reveal-rtl 1.1s var(--lecp-ease-enter, ease-out) both;
    animation-delay: .3s;
}

@keyframes reveal-rtl {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0% 0 0);
    }
}

.hero-title .title-sub {
    display: block;
    margin-top: var(--lecp-space-2, 0.5rem);
    font-size: var(--lecp-type-body, 1rem);
    font-weight: 400;
    color: var(--lecp-text-secondary, #888);
}

.hero-lede {
    margin: 0;
    opacity: 0;
    animation: fade-up .8s var(--lecp-ease-enter, ease-out) both;
    animation-delay: 1.05s;
}

.hero-lede strong {
    color: var(--lecp-text, #fff);
    font-weight: 700;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .nav-panel {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        border-bottom: 1px solid var(--lecp-line, rgba(255, 255, 255, 0.1));
    }

    .page {
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .astrolabe .ring-outer,
    .astrolabe .ring-mid,
    .astrolabe .ring-needle {
        animation: none;
    }

    .hero-title {
        animation: none;
        clip-path: inset(0 0 0 0);
    }

    .hero-lede {
        animation: none;
        opacity: 1;
    }
}