:root {
    --bg-color: #050505;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --cursor-size: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Noise & Gradient */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.05;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 50, 255, 0.15), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(200, 50, 50, 0.1), transparent 40%);
    animation: nebulaMove 20s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes nebulaMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-dot-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-dot-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Header */
.header {
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.05em;
    color: white;
    text-decoration: none;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--bg-color);
    color: var(--text-main);
    padding: 1rem 2rem;
    z-index: 1000;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skip-link:focus {
    top: 0;
}

/* Main Layout */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

section {
    min-height: 90vh;
    /* More breathing room */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 7vw, 9rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: white;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-top: 2rem;
    font-weight: 300;
}

/* Primary CTA Button */
.primary-cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-color);
    background: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--text-main);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.primary-cta:hover {
    color: var(--text-main);
    background: transparent;
}

/* Experiments & Team - Asymmetric Grid */
h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: inline-block;
}

.card-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.card,
.member {
    grid-column: span 6;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

/* Asymmetry */
.card:nth-child(even) {
    transform: translateY(4rem);
}

.member:nth-child(1) {
    grid-column: span 4;
}

.member:nth-child(2) {
    grid-column: span 4;
}

.member:nth-child(3) {
    grid-column: span 4;
}

.card:hover,
.member:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.card h3,
.member .name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.member {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.member .name {
    font-size: 1.5rem;
}

.card p,
.member .role {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.status {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 50px;
}

/* Team Grid List Reset */
.team-grid {
    list-style: none;
}

/* Footer */
.footer {
    padding: 4rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.7;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-dot-outline {
        display: none;
    }

    body::before {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {

    .header,
    main {
        padding: 0 2rem;
    }

    .card,
    .member {
        grid-column: span 12 !important;
        padding: 1.5rem;
    }

    .card {
        display: flex;
        flex-direction: column;
    }

    .card .status {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        align-self: flex-start;
    }

    .card:nth-child(even) {
        transform: none;
    }

    .cursor-dot,
    .cursor-dot-outline {
        display: none;
    }

    /* Hide custom cursor on touch */
    * {
        cursor: auto;
    }
}