:root {
    --fg: #f5f5f5;
    --muted: rgba(255, 255, 255, 0.882);
    --font-main: "Instrument Sans", sans-serif;
    --font-mono: "Instrument Sans", ui-monospace, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: #000;
    color: var(--fg);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
}

h2 {
    background-color: #000000e6;
    color: #ffffff;
    font-weight: 100;
}

#shader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

.signal-flag {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: left;
    z-index: 10;
    pointer-events: none;
}

.signal-text {
    font-size: 36px;
    line-height: 1.5;
    letter-spacing: -1px;
    text-align: left;
    white-space: pre-line;
    z-index: 11;
    margin-left: 32px;
    font-weight: 700;
    margin-top: -13px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    font-family: var(--font-main);
    mix-blend-mode: difference;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 32px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: rotate(180deg);
}

.spin-auto {
    animation: autoSpin 13s linear infinite;
}

@keyframes autoSpin {
    0% { transform: rotate(0deg); }
    4% { transform: rotate(180deg); }
    100% { transform: rotate(180deg); }
}

.brand-name {
    font-size: 14px;
    letter-spacing: 2px;
    color: #fff;
}

.lab-icon {
    height: 32px;
    opacity: 0.9;
}

.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #fff;
    z-index: 20;
    mix-blend-mode: difference;
}

.archive a {
    text-decoration: none;
    color: #fff;
}

.black-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 1;
}

.content-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff01;
    color: #000000;
    padding: 80px 32px;
    z-index: 1;
}

.content-section.alt {
    background: #ffffff06;
    display: flex;
    align-items: right;
    justify-content: right;
    text-align: right;
}

.content-wrapper {
    max-width: 100vw;
}

.content-wrapper h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: -30px;
    letter-spacing: -1px;
}

.content-wrapper p {
    font-size: 20px;
    line-height: 3.6;
    opacity: 0.8;
    color: #ffffff34;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    opacity: 1;
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 720px) {
    .signal-text {
        font-size: 18px;
    }

    .logo {
        height: 44px;
    }

    .content-wrapper h2 {
        font-size: 32px;
    }

    .content-wrapper p {
        font-size: 18px;
    }
}
