/* VibeScience. Dark only, system fonts, no JavaScript. */

:root {
    color-scheme: dark;
    --bg: #000;
    --surface: #0c0c0e;
    --surface-2: #151518;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --dim: #6e6e73;
    --warm: #ff7a59;
    --cool: #5b8cff;
    --poles: linear-gradient(90deg, var(--warm), #c77dff 50%, var(--cool));
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
    --wide: 1080px;
    --gutter: clamp(16px, 5vw, 40px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.5 var(--sans);
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(91, 140, 255, .35); }

:focus-visible {
    outline: 2px solid var(--cool);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wide) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 16px;
    top: 12px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
}

/* Navigation */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 52px;
    background: rgba(0, 0, 0, .62);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}

.nav .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.025em;
}

.nav ul {
    display: flex;
    gap: clamp(16px, 4vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.nav ul a {
    color: var(--muted);
    transition: color .2s;
}
.nav ul a:hover { color: var(--text); }

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 120px 0 96px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -3%;
    z-index: -1;
    width: 106%;
    height: 106%;
    max-width: none;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 15%, transparent 75%);
    opacity: .7;
}

.hero-glow {
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
    background:
        radial-gradient(40% 50% at 28% 70%, rgba(255, 122, 89, .22), transparent 70%),
        radial-gradient(45% 55% at 74% 32%, rgba(91, 140, 255, .24), transparent 70%),
        radial-gradient(30% 40% at 55% 55%, rgba(199, 125, 255, .12), transparent 70%);
    filter: blur(20px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 50% 42% at 50% 52%, rgba(0, 0, 0, .78), transparent 72%);
}

.hero-inner {
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 600;
    color: var(--muted);
    letter-spacing: -.01em;
}

.hero h1 {
    max-width: 21ch;
    margin: 0 auto;
    font-size: clamp(36px, 5.4vw, 76px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -.038em;
    background: linear-gradient(180deg, #fff 30%, #9a9aa2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: .08em;
    text-wrap: balance;
}

.hero h1 .dot {
    background: var(--poles);
    -webkit-background-clip: text;
    background-clip: text;
}

.lede {
    max-width: 36ch;
    margin: 28px auto 0;
    font-size: clamp(19px, 2.2vw, 25px);
    line-height: 1.35;
    color: var(--muted);
    letter-spacing: -.02em;
    text-wrap: balance;
}

.ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 36px;
    font-size: clamp(17px, 1.8vw, 19px);
}

.more {
    color: var(--cool);
    white-space: nowrap;
}
.more::after {
    content: "\203A";
    display: inline-block;
    margin-left: .3em;
    transition: transform .25s var(--ease);
}
.more:hover { text-decoration: underline; text-underline-offset: .2em; }
.more:hover::after { transform: translateX(3px); }

/* Sections */

section { position: relative; }

.section {
    padding: clamp(88px, 14vw, 168px) 0;
}

.section-head {
    margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -.045em;
}

.section-head p {
    margin: 14px 0 0;
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--muted);
    letter-spacing: -.02em;
}

/* Papers */

.papers {
    display: grid;
    gap: 20px;
}

.paper {
    position: relative;
    padding: clamp(28px, 5.5vw, 60px);
    border-radius: 30px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    transition: border-color .4s;
}

.paper:hover { border-color: var(--line-strong); }

.paper::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -260px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow), transparent);
    opacity: .16;
    transition: opacity .6s var(--ease), transform .8s var(--ease);
}

.paper:hover::before {
    opacity: .26;
    transform: translate(-24px, 24px);
}

.paper:nth-child(odd) { --glow: var(--cool); }
.paper:nth-child(even) { --glow: var(--warm); }

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dim);
}

.meta .venue { color: var(--muted); }

.tag {
    padding: 3px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
}

.paper h3 {
    max-width: 26ch;
    margin: 0;
    font-size: clamp(26px, 3.6vw, 40px);
    line-height: 1.1;
    font-weight: 650;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.paper .summary {
    max-width: 52ch;
    margin: 18px 0 0;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.45;
    color: var(--muted);
}

.paper .authors {
    max-width: 70ch;
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dim);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--line-strong);
    color: var(--text);
    transition: background .25s, border-color .25s, color .25s;
}

.pill:first-child {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.pill:hover { border-color: var(--text); }
.pill:first-child:hover { background: #fff; }

/* Contact */

.contact {
    text-align: center;
    border-top: 1px solid var(--line);
}

.contact h2 {
    margin: 0;
    font-size: clamp(44px, 8vw, 96px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.05em;
}

.contact p {
    margin: 18px 0 0;
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--muted);
}

.mail {
    display: inline-block;
    margin-top: 40px;
    font-size: clamp(18px, 3.4vw, 34px);
    font-weight: 600;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    background: linear-gradient(var(--text), var(--text)) left 100% / 100% 2px no-repeat,
                var(--poles) left 100% / 0 2px no-repeat;
    padding-bottom: 6px;
    transition: background-size .5s var(--ease);
}

.mail:hover {
    background-size: 0 2px, 100% 2px;
}

/* Footer */

.footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--dim);
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}

.footer p { margin: 0; }

/* 404 */

.lost {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 96px 0;
}

.lost h1 {
    margin: 0;
    font-size: clamp(96px, 22vw, 240px);
    line-height: .9;
    font-weight: 700;
    letter-spacing: -.06em;
    background: var(--poles);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lost p {
    margin: 20px 0 32px;
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--muted);
}

/* Motion: CSS only, and only when the reader allows it. */

@media (prefers-reduced-motion: no-preference) {
    .hero-bg { animation: drift 40s ease-in-out infinite alternate; }

    .hero-inner > * {
        animation: rise 1.1s var(--ease) both;
    }
    .hero-inner > :nth-child(2) { animation-delay: .08s; }
    .hero-inner > :nth-child(3) { animation-delay: .18s; }
    .hero-inner > :nth-child(4) { animation-delay: .28s; }

    @supports (animation-timeline: view()) {
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
    }
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}


@media (max-width: 560px) {
    .nav ul { gap: 18px; }
    .paper { border-radius: 24px; }
}
