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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: #050510;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    position: fixed;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

canvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.center {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-mix-blend-mode: screen;
    mix-blend-mode: screen;
}

.logo {
    width: 220px;
    width: clamp(180px, 28vw, 320px);
    height: auto;
    -webkit-filter: invert(1);
    filter: invert(1);
    opacity: 0;
    -webkit-animation: logoIn 1.5s ease-out 0.2s forwards;
    animation: logoIn 1.5s ease-out 0.2s forwards;
}

@-webkit-keyframes logoIn {
    0% { opacity: 0; -webkit-transform: scale(0.95); }
    100% { opacity: 1; -webkit-transform: scale(1); }
}
@keyframes logoIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Letter-by-letter reveal */
.investments {
    display: -webkit-flex;
    display: flex;
    gap: 0.35em;
    margin-top: 0.5rem;
}

/* Flex gap fallback for older Safari */
@supports not (gap: 0.35em) {
    .investments span {
        margin-left: 0.175em;
        margin-right: 0.175em;
    }
}

.investments span {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 1.1rem;
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    letter-spacing: 0.3em;
    color: rgba(200, 200, 210, 0);
    opacity: 0;
    -webkit-transform: translateY(40px) scaleY(0.3) rotateX(90deg);
    transform: translateY(40px) scaleY(0.3) rotateX(90deg);
    -webkit-filter: blur(8px);
    filter: blur(8px);
    -webkit-animation: letterIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards, wave 3.5s ease-in-out infinite, glow 2.5s ease-in-out infinite;
    animation: letterIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards, wave 3.5s ease-in-out infinite, glow 2.5s ease-in-out infinite;
    -webkit-animation-delay: var(--d, 1s), var(--w, 3s), var(--g, 3s);
    animation-delay: var(--d, 1s), var(--w, 3s), var(--g, 3s);
}

.investments span:nth-child(1)  { --d: 0.6s;  --w: 3.0s; --g: 3.0s; }
.investments span:nth-child(2)  { --d: 0.72s; --w: 3.3s; --g: 3.2s; }
.investments span:nth-child(3)  { --d: 0.84s; --w: 3.6s; --g: 3.4s; }
.investments span:nth-child(4)  { --d: 0.96s; --w: 3.9s; --g: 3.6s; }
.investments span:nth-child(5)  { --d: 1.08s; --w: 4.2s; --g: 3.8s; }
.investments span:nth-child(6)  { --d: 1.20s; --w: 4.5s; --g: 4.0s; }
.investments span:nth-child(7)  { --d: 1.32s; --w: 4.8s; --g: 4.2s; }
.investments span:nth-child(8)  { --d: 1.44s; --w: 5.1s; --g: 4.4s; }
.investments span:nth-child(9)  { --d: 1.56s; --w: 5.4s; --g: 4.6s; }
.investments span:nth-child(10) { --d: 1.68s; --w: 5.7s; --g: 4.8s; }
.investments span:nth-child(11) { --d: 1.80s; --w: 6.0s; --g: 5.0s; }

@-webkit-keyframes letterIn {
    0% {
        opacity: 0;
        color: rgba(200, 200, 210, 0);
        -webkit-transform: translateY(40px) scaleY(0.3) rotateX(90deg);
        -webkit-filter: blur(8px);
    }
    30% {
        opacity: 1;
        color: rgba(108, 99, 255, 1);
        -webkit-filter: blur(2px);
        text-shadow: 0 0 30px rgba(108, 99, 255, 0.8), 0 0 60px rgba(0, 212, 170, 0.5);
    }
    50% {
        color: rgba(0, 212, 170, 1);
        -webkit-transform: translateY(-6px) scaleY(1.15) rotateX(0deg);
        text-shadow: 0 0 40px rgba(0, 212, 170, 0.8), 0 0 80px rgba(108, 99, 255, 0.4);
        -webkit-filter: blur(0px);
    }
    70% {
        -webkit-transform: translateY(2px) scaleY(0.95) rotateX(0deg);
    }
    100% {
        opacity: 1;
        color: rgba(200, 200, 210, 0.8);
        -webkit-transform: translateY(0) scaleY(1) rotateX(0deg);
        -webkit-filter: blur(0px);
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.15);
    }
}
@keyframes letterIn {
    0% {
        opacity: 0;
        color: rgba(200, 200, 210, 0);
        transform: translateY(40px) scaleY(0.3) rotateX(90deg);
        filter: blur(8px);
    }
    30% {
        opacity: 1;
        color: rgba(108, 99, 255, 1);
        filter: blur(2px);
        text-shadow: 0 0 30px rgba(108, 99, 255, 0.8), 0 0 60px rgba(0, 212, 170, 0.5);
    }
    50% {
        color: rgba(0, 212, 170, 1);
        transform: translateY(-6px) scaleY(1.15) rotateX(0deg);
        text-shadow: 0 0 40px rgba(0, 212, 170, 0.8), 0 0 80px rgba(108, 99, 255, 0.4);
        filter: blur(0px);
    }
    70% {
        transform: translateY(2px) scaleY(0.95) rotateX(0deg);
    }
    100% {
        opacity: 1;
        color: rgba(200, 200, 210, 0.8);
        transform: translateY(0) scaleY(1) rotateX(0deg);
        filter: blur(0px);
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.15);
    }
}

@-webkit-keyframes wave {
    0%, 100% { -webkit-transform: translateY(0); }
    50% { -webkit-transform: translateY(-8px); }
}
@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@-webkit-keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.1);
        color: rgba(200, 200, 210, 0.6);
    }
    50% {
        text-shadow: 0 0 30px rgba(108, 99, 255, 0.7), 0 0 60px rgba(0, 212, 170, 0.4), 0 0 100px rgba(108, 99, 255, 0.2);
        color: rgba(255, 255, 255, 1);
    }
}
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.1);
        color: rgba(200, 200, 210, 0.6);
    }
    50% {
        text-shadow: 0 0 30px rgba(108, 99, 255, 0.7), 0 0 60px rgba(0, 212, 170, 0.4), 0 0 100px rgba(108, 99, 255, 0.2);
        color: rgba(255, 255, 255, 1);
    }
}

/* Respect OS-level reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .logo {
        -webkit-animation: none;
        animation: none;
        opacity: 1;
    }

    .investments span {
        -webkit-animation: none;
        animation: none;
        opacity: 1;
        color: rgba(200, 200, 210, 0.8);
        -webkit-transform: none;
        transform: none;
        -webkit-filter: none;
        filter: none;
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.15);
    }
}

.notice {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 0.816rem;
    color: #ffffff;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo {
        width: 160px;
        width: clamp(140px, 50vw, 200px);
    }

    .investments {
        gap: 0.2em;
    }

    .investments span {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .notice {
        font-size: 0.65rem;
        bottom: 1.25rem;
    }
}

@media (max-width: 360px) {
    .investments {
        gap: 0.12em;
    }

    .investments span {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }
}
