* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated starfield background */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform; /* Promote to GPU layer for smoother animation */
}

.stars {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAwIiBoZWlnaHQ9IjIwMDAiPjxyZWN0IGZpbGw9IiMwYTBhMGEiIHdpZHRoPSIyMDAwIiBoZWlnaHQ9IjIwMDAiLz48Y2lyY2xlIGZpbGw9IiNmZmYiIGN4PSIyMDAiIGN5PSIzMDAiIHI9IjEiLz48Y2lyY2xlIGZpbGw9IiNmZmYiIGN4PSI2MDAiIGN5PSIxMDAiIHI9IjEiLz48Y2lyY2xlIGZpbGw9IiNmZmYiIGN4PSIxMDAwIiBjeT0iNTAwIiByPSIxIi8+PGNpcmNsZSBmaWxsPSIjZmZmIiBjeD0iMTQwMCIgY3k9IjIwMCIgcj0iMSIvPjxjaXJjbGUgZmlsbD0iI2ZmZiIgY3g9IjE4MDAiIGN5PSI4MDAiIHI9IjEiLz48Y2lyY2xlIGZpbGw9IiNmZmYiIGN4PSI0MDAiIGN5PSIxNDAwIiByPSIxIi8+PGNpcmNsZSBmaWxsPSIjZmZmIiBjeD0iODAwIiBjeT0iMTgwMCIgcj0iMSIvPjxjaXJjbGUgZmlsbD0iI2ZmZiIgY3g9IjEyMDAiIGN5PSIxNjAwIiByPSIxIi8+PGNpcmNsZSBmaWxsPSIjZmZmIiBjeD0iMTYwMCIgY3k9IjEyMDAiIHI9IjEiLz48L3N2Zz4=') repeat;
    opacity: 0.4;
    /* Animation applied via prefers-reduced-motion media query */
}

.stars2 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTAwIiBoZWlnaHQ9IjE1MDAiPjxyZWN0IGZpbGw9IiMwYTBhMGEiIHdpZHRoPSIxNTAwIiBoZWlnaHQ9IjE1MDAiLz48Y2lyY2xlIGZpbGw9IiNmZmYiIGN4PSIzMDAiIGN5PSI0MDAiIHI9IjEuNSIvPjxjaXJjbGUgZmlsbD0iI2ZmZiIgY3g9IjkwMCIgY3k9IjYwMCIgcj0iMS41Ii8+PGNpcmNsZSBmaWxsPSIjZmZmIiBjeD0iMTIwMCIgY3k9IjMwMCIgcj0iMS41Ii8+PGNpcmNsZSBmaWxsPSIjZmZmIiBjeD0iNjAwIiBjeT0iMTIwMCIgcj0iMS41Ii8+PC9zdmc+') repeat;
    opacity: 0.3;
    /* Animation applied via prefers-reduced-motion media query */
}

.stars3 {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAwIiBoZWlnaHQ9IjEwMDAiPjxyZWN0IGZpbGw9IiMwYTBhMGEiIHdpZHRoPSIxMDAwIiBoZWlnaHQ9IjEwMDAiLz48Y2lyY2xlIGZpbGw9IiNmZmYiIGN4PSIyMDAiIGN5PSI3MDAiIHI9IjIiLz48Y2lyY2xlIGZpbGw9IiNmZmYiIGN4PSI4MDAiIGN5PSI0MDAiIHI9IjIiLz48L3N2Zz4=') repeat;
    opacity: 0.2;
    /* Animation applied via prefers-reduced-motion media query */
}

@keyframes starsFloat {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-2000px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

/* Logo icon */
.logo-mark {
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

.logo-mark svg {
    transform: translateY(-5px); /* Start at midpoint to prevent CLS */
    will-change: transform;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Opacity-only fade for elements with existing transforms (prevents CLS) */
@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main title */
.main-title {
    font-size: 3rem; /* Fallback for browsers without clamp() */
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.1em; /* Reduced from 0.15em to minimize text selection issues */
    margin-bottom: 2rem;
    text-align: center;
}

.company-name {
    color: #8b7bc7; /* Fallback for browsers without gradient text support */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.2); /* Restored glow effect */
}

/* Override fallback color only when gradient text is supported */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .company-name {
        color: transparent;
    }
}

/* Tagline with typing effect */
.tagline {
    font-size: 1.5rem; /* Fallback for browsers without clamp() */
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: #a0a0a0;
    margin-bottom: 4rem;
    text-align: center;
    min-height: 3rem;
}

.typing-text {
    display: inline-block;
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%; /* Default: fully visible */
    border-right: none; /* Default: no cursor */
}

@keyframes typing {
    from {
        max-width: 0;
    }
    to {
        max-width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes cursorHide {
    to {
        border-color: transparent;
    }
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    color: #8a8a8a; /* 5.9:1 contrast ratio on #0a0a0a - passes WCAG AA */
    font-size: 0.875rem;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .logo-mark svg {
        width: 50px;
        height: 50px;
    }

    .main-title {
        letter-spacing: 0.08em;
        margin-bottom: 1.5rem;
    }

    .tagline {
        margin-bottom: 3rem;
    }

    .footer {
        font-size: 0.75rem;
    }

    .contact-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        letter-spacing: 0.05em;
    }

    .container {
        padding: 1rem;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 500;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Ventures Section */
.ventures-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.ventures-heading {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #667eea;
    text-align: center;
    margin-bottom: 2rem;
}

.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Reduced from 260px to fit 320px screens */
    gap: 1.25rem;
}

.venture-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: #e0e0e0;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.venture-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.venture-card:focus-visible {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.venture-card--paused {
    opacity: 0.6;
    cursor: default;
}

.venture-card--paused:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(102, 126, 234, 0.15);
}

.venture-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    background: rgba(118, 75, 162, 0.3);
    color: #a78bfa;
    border-radius: 4px;
}

.venture-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

.venture-name {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.venture-description {
    font-size: 0.875rem;
    color: #8a8a8a;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.venture-domain {
    font-size: 0.75rem;
    color: #7b93f5; /* Brightened from #667eea to meet 4.5:1 contrast on dark background */
}

@media (max-width: 768px) {
    .ventures-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .venture-card {
        padding: 1.25rem;
    }
}

/* Contact link */
.contact-link {
    display: block;
    color: #8a8a8a;
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
    color: #667eea;
}

.contact-link:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/*
 * Progressive Enhancement: Animations
 * Default: Content is fully visible immediately (no animations)
 * Enhanced: Animations applied only for users who haven't requested reduced motion
 */
@media (prefers-reduced-motion: no-preference) {
    /* Starfield animation */
    .stars {
        animation: starsFloat 200s linear infinite;
    }
    .stars2 {
        animation: starsFloat 150s linear infinite;
    }
    .stars3 {
        animation: starsFloat 100s linear infinite;
    }

    /* Logo float animation - uses opacity-only fade to prevent CLS */
    .logo-mark {
        opacity: 0;
        animation: fadeInOpacity 0.6s ease-out 0.1s forwards;
    }
    .logo-mark svg {
        animation: gentleFloat 6s ease-in-out infinite;
    }

    /* Staggered fade-in for content */
    .main-title {
        opacity: 0;
        animation: fadeIn 0.6s ease-out 0.2s forwards;
    }

    .tagline {
        opacity: 0;
        animation: fadeIn 0.6s ease-out 0.4s forwards;
    }

    /* Typing effect with cursor - 42 characters in tagline */
    .typing-text {
        max-width: 0;
        border-right: 2px solid #667eea;
        animation:
            typing 3.5s steps(42) 0.8s forwards,
            blink 0.75s step-end 0.8s 6,
            cursorHide 0s linear 5.8s forwards;
    }

    .ventures-section {
        opacity: 0;
        animation: fadeIn 0.6s ease-out 0.6s forwards;
    }

    .venture-card {
        opacity: 0;
        animation: fadeIn 0.4s ease-out forwards;
    }

    .venture-card:nth-child(1) { animation-delay: 0.7s; }
    .venture-card:nth-child(2) { animation-delay: 0.8s; }
    .venture-card:nth-child(3) { animation-delay: 0.9s; }
    .venture-card:nth-child(4) { animation-delay: 1.0s; }
    .venture-card:nth-child(5) { animation-delay: 1.1s; }
    .venture-card:nth-child(6) { animation-delay: 1.2s; }

    .contact-link {
        opacity: 0;
        animation: fadeInOpacity 0.6s ease-out 1.4s forwards;
    }

    .footer {
        opacity: 0;
        animation: fadeInOpacity 0.6s ease-out 1.5s forwards;
    }
}

/* Belt-and-suspenders: Explicitly disable for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
