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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
}

.sign-link {
    text-decoration: none;
    cursor: pointer;
}

.flipped-seven {
    display: inline-block;
    transform: scaleX(-1) scaleY(-1);
}

.sign {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 10vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin: 0;
}

.sign-stack {
    position: relative;
    display: inline-block;
}

.sign-layer {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(var(--offset-x), var(--offset-y));
}

.sign-layer.base {
    position: relative;
}

.sign-layer.base .letter {
    text-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.35),
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 0 1px currentColor,
        0 0 2px rgba(255, 255, 255, 0.7),
        0 0 8px rgba(255, 255, 255, 0.3);
}

.sign-layer.base .blue {
    text-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.35),
        0 1px 0 rgba(0, 40, 60, 0.35),
        0 0 1px currentColor,
        0 0 2px rgba(159, 215, 242, 0.9),
        0 0 14px rgba(0, 133, 199, 0.55) !important;
}

.sign-layer.base .amber {
    text-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.35),
        0 1px 0 rgba(60, 30, 0, 0.35),
        0 0 1px currentColor,
        0 0 2px rgba(255, 196, 138, 0.9),
        0 0 14px rgba(255, 179, 71, 0.55) !important;
}

.sign-layer.back {
    opacity: 0.225;
}

.sign-layer.back.back-far {
    opacity: 0.16875;
}

.sign-layer.back .letter {
    text-shadow:
        0 0 1px currentColor,
        0 0 3px currentColor !important;
}

.letter {
    display: inline-block;
    color: #fff;
    text-shadow:
        0 0 1px #fff,
        0 0 2px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.3);
    animation: flicker 6s infinite both;
}

.space {
    display: inline-block;
    width: 0.3em;
}

.spacer-u {
    width: 0.6em;
}

.reflection {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 10vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    transform: scaleY(-1) rotateX(45deg);
    transform-origin: top center;
    margin-top: 10px;
    padding-bottom: 100px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.03) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.03) 60%, transparent 100%);
}

.reflection .letter {
    color: #fff;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.5),
        0 0 4px rgba(255, 255, 255, 0.2);
    opacity: 0.5;
}

.blue {
    color: #9fd7f2 !important;
    text-shadow:
        0 0 1px #9fd7f2,
        0 0 2px rgba(159, 215, 242, 0.95),
        0 0 14px rgba(0, 133, 199, 0.55) !important;
    animation: flickerBlueHint 6.2s infinite both !important;
}

.large {
    font-size: 2em;
    line-height: 0.5;
    vertical-align: middle;
}

.amber {
    color: #ffc48a !important;
    text-shadow:
        0 0 1px #ffc48a,
        0 0 2px rgba(255, 196, 138, 0.95),
        0 0 14px rgba(255, 179, 71, 0.55) !important;
    animation: flickerAmberHint 5.8s infinite both !important;
}

.reflection .blue {
    color: #0085c7 !important;
    text-shadow:
        0 0 1px rgba(0, 133, 199, 0.5),
        0 0 4px rgba(0, 133, 199, 0.2) !important;
}

.floor-glow {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Animation delays for each letter - more spread out */
.l1 { animation-delay: 0s; }
.l2 { animation-delay: 0.8s; animation-name: flickerDim; }
.l3 { animation-delay: 2.2s; }
.l4 { animation-delay: 0.4s; }
.l5 { animation-delay: 1.6s; }
.l6 { animation-delay: 3s; animation-name: flickerDim; }
.l7 { animation-delay: 0.6s; }
.l8 { animation-delay: 1.8s; }
.l9 { animation-delay: 1.2s; animation-name: flickerDim; }
.l10 { animation-delay: 2.6s; }
.l11 { animation-delay: 0.3s; }

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    1% {
        opacity: 0.1;
        text-shadow: none;
    }
    2% {
        opacity: 0.9;
        text-shadow: 0 0 1px #fff, 0 0 4px rgba(255, 255, 255, 0.5);
    }
    2.5% {
        opacity: 0.05;
        text-shadow: none;
    }
    3% {
        opacity: 0.7;
        color: #ffe8d0;
        text-shadow: 0 0 1px #ffe8d0, 0 0 3px rgba(255, 220, 180, 0.4);
    }
    3.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    4% {
        opacity: 0.85;
        text-shadow: 0 0 1px #fff, 0 0 4px rgba(255, 255, 255, 0.5);
    }
    4.5% {
        opacity: 0.2;
        text-shadow: none;
    }
    5.5% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    35% {
        opacity: 1;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    35.5% {
        opacity: 0.6;
        color: #ffd8b0;
        text-shadow: 0 0 1px rgba(255, 200, 150, 0.5);
    }
    36% {
        opacity: 0.9;
        color: #fff;
        text-shadow: 0 0 1px #fff, 0 0 4px rgba(255, 255, 255, 0.5);
    }
    36.5% {
        opacity: 0.08;
        text-shadow: none;
    }
    37% {
        opacity: 0.5;
        color: #ffe0c0;
        text-shadow: 0 0 1px rgba(255, 210, 170, 0.4);
    }
    37.5% {
        opacity: 0.15;
        text-shadow: none;
    }
    38% {
        opacity: 0.7;
        text-shadow: 0 0 1px #fff, 0 0 2px rgba(255, 255, 255, 0.5);
    }
    38.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    39% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
}

/* Dim variant - stays mostly off, occasionally flickers on */
@keyframes flickerDim {
    0%, 100% {
        opacity: 0.15;
        color: #888;
        text-shadow: none;
    }
    30% {
        opacity: 0.15;
        text-shadow: none;
    }
    30.5% {
        opacity: 0.6;
        color: #fff;
        text-shadow: 0 0 1px #fff, 0 0 2px rgba(255, 255, 255, 0.5);
    }
    31% {
        opacity: 0.1;
        text-shadow: none;
    }
    31.5% {
        opacity: 0.8;
        color: #fff;
        text-shadow: 0 0 1px #fff, 0 0 4px rgba(255, 255, 255, 0.6);
    }
    32% {
        opacity: 0.05;
        text-shadow: none;
    }
    32.5% {
        opacity: 0.15;
        color: #888;
        text-shadow: none;
    }
    70% {
        opacity: 0.15;
        text-shadow: none;
    }
    70.5% {
        opacity: 0.4;
        color: #ccc;
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
    }
    71% {
        opacity: 0.15;
        color: #888;
        text-shadow: none;
    }
}

@keyframes flickerAmber {
    /* White for ~67% of the time */
    0%, 65% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    1% {
        opacity: 0.1;
        text-shadow: none;
    }
    2% {
        opacity: 0.9;
        text-shadow: 0 0 1px #fff, 0 0 4px rgba(255, 255, 255, 0.5);
    }
    2.5% {
        opacity: 0.05;
        text-shadow: none;
    }
    3% {
        opacity: 0.7;
        text-shadow: 0 0 1px #fff, 0 0 3px rgba(255, 255, 255, 0.4);
    }
    3.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    4% {
        opacity: 0.85;
        text-shadow: 0 0 1px #fff, 0 0 4px rgba(255, 255, 255, 0.5);
    }
    4.5% {
        opacity: 0.2;
        text-shadow: none;
    }
    5.5% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    35% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    35.5% {
        opacity: 0.6;
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    }
    36% {
        opacity: 0.9;
        text-shadow: 0 0 1px #fff, 0 0 4px rgba(255, 255, 255, 0.5);
    }
    36.5% {
        opacity: 0.08;
        text-shadow: none;
    }
    37% {
        opacity: 0.5;
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
    }
    37.5% {
        opacity: 0.15;
        text-shadow: none;
    }
    38% {
        opacity: 0.7;
        text-shadow: 0 0 1px #fff, 0 0 2px rgba(255, 255, 255, 0.5);
    }
    38.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    39% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    /* Transition to amber */
    68% {
        opacity: 1;
        color: #ffd699;
        text-shadow:
            0 0 1px #ffd699,
            0 0 2px rgba(255, 214, 153, 0.8),
            0 0 8px rgba(255, 214, 153, 0.3);
    }
    72% {
        opacity: 1;
        color: #ffb347;
        text-shadow:
            0 0 1px #ffb347,
            0 0 2px rgba(255, 179, 71, 0.8),
            0 0 8px rgba(255, 179, 71, 0.3);
    }
    /* Amber for ~33% of the time */
    90% {
        opacity: 1;
        color: #ffb347;
        text-shadow:
            0 0 1px #ffb347,
            0 0 2px rgba(255, 179, 71, 0.8),
            0 0 8px rgba(255, 179, 71, 0.3);
    }
    /* Transition back to white */
    95% {
        opacity: 1;
        color: #ffd699;
        text-shadow:
            0 0 1px #ffd699,
            0 0 2px rgba(255, 214, 153, 0.8),
            0 0 8px rgba(255, 214, 153, 0.3);
    }
    100% {
        opacity: 1;
        color: #fff;
        text-shadow:
            0 0 1px #fff,
            0 0 2px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
}

@keyframes flickerBlue {
    0%, 100% {
        opacity: 1;
        color: #0085c7;
        text-shadow:
            0 0 1px #0085c7,
            0 0 2px rgba(0, 133, 199, 0.8),
            0 0 8px rgba(0, 133, 199, 0.3);
    }
    1% {
        opacity: 0.1;
        text-shadow: none;
    }
    2% {
        opacity: 0.9;
        text-shadow: 0 0 1px #0085c7, 0 0 4px rgba(0, 133, 199, 0.5);
    }
    2.5% {
        opacity: 0.05;
        text-shadow: none;
    }
    3% {
        opacity: 0.7;
        color: #40a0d0;
        text-shadow: 0 0 1px #40a0d0, 0 0 3px rgba(64, 160, 208, 0.4);
    }
    3.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    4% {
        opacity: 0.85;
        text-shadow: 0 0 1px #0085c7, 0 0 4px rgba(0, 133, 199, 0.5);
    }
    4.5% {
        opacity: 0.2;
        text-shadow: none;
    }
    5.5% {
        opacity: 1;
        color: #0085c7;
        text-shadow:
            0 0 1px #0085c7,
            0 0 2px rgba(0, 133, 199, 0.8),
            0 0 8px rgba(0, 133, 199, 0.3);
    }
    35% {
        opacity: 1;
        text-shadow:
            0 0 1px #0085c7,
            0 0 2px rgba(0, 133, 199, 0.8),
            0 0 8px rgba(0, 133, 199, 0.3);
    }
    35.5% {
        opacity: 0.6;
        color: #40a0d0;
        text-shadow: 0 0 1px rgba(64, 160, 208, 0.5);
    }
    36% {
        opacity: 0.9;
        color: #0085c7;
        text-shadow: 0 0 1px #0085c7, 0 0 4px rgba(0, 133, 199, 0.5);
    }
    36.5% {
        opacity: 0.08;
        text-shadow: none;
    }
    37% {
        opacity: 0.5;
        color: #40a0d0;
        text-shadow: 0 0 1px rgba(64, 160, 208, 0.4);
    }
    37.5% {
        opacity: 0.15;
        text-shadow: none;
    }
    38% {
        opacity: 0.7;
        text-shadow: 0 0 1px #0085c7, 0 0 2px rgba(0, 133, 199, 0.5);
    }
    38.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    39% {
        opacity: 1;
        color: #0085c7;
        text-shadow:
            0 0 1px #0085c7,
            0 0 2px rgba(0, 133, 199, 0.8),
            0 0 8px rgba(0, 133, 199, 0.3);
    }
}

/* Pale blue - mostly white with hint of blue */
@keyframes flickerBlueHint {
    0%, 100% {
        opacity: 1;
        color: #9fd7f2;
        text-shadow:
            0 0 1px #9fd7f2,
            0 0 2px rgba(159, 215, 242, 0.95),
            0 0 14px rgba(0, 133, 199, 0.55);
    }
    1% {
        opacity: 0.1;
        text-shadow: none;
    }
    2% {
        opacity: 0.9;
        text-shadow: 0 0 1px #9fd7f2, 0 0 4px rgba(159, 215, 242, 0.75);
    }
    2.5% {
        opacity: 0.05;
        text-shadow: none;
    }
    3.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    4% {
        opacity: 0.85;
        text-shadow: 0 0 1px #9fd7f2, 0 0 4px rgba(159, 215, 242, 0.75);
    }
    4.5% {
        opacity: 0.2;
        text-shadow: none;
    }
    7% {
        opacity: 1;
        color: #9fd7f2;
        text-shadow:
            0 0 1px #9fd7f2,
            0 0 2px rgba(159, 215, 242, 0.95),
            0 0 14px rgba(0, 133, 199, 0.55);
    }
    12% {
        opacity: 0.4;
        text-shadow: none;
    }
    12.5% {
        opacity: 0.95;
        text-shadow: 0 0 1px #9fd7f2, 0 0 3px rgba(159, 215, 242, 0.65);
    }
    35% {
        opacity: 1;
        text-shadow:
            0 0 1px #9fd7f2,
            0 0 2px rgba(159, 215, 242, 0.95),
            0 0 14px rgba(0, 133, 199, 0.55);
    }
    35.5% {
        opacity: 0.6;
        text-shadow: 0 0 1px rgba(159, 215, 242, 0.75);
    }
    36% {
        opacity: 0.9;
        text-shadow: 0 0 1px #9fd7f2, 0 0 4px rgba(159, 215, 242, 0.75);
    }
    36.5% {
        opacity: 0.08;
        text-shadow: none;
    }
    37% {
        opacity: 0.5;
        text-shadow: 0 0 1px rgba(159, 215, 242, 0.65);
    }
    37.5% {
        opacity: 0.15;
        text-shadow: none;
    }
    38% {
        opacity: 0.7;
        text-shadow: 0 0 1px #9fd7f2, 0 0 2px rgba(159, 215, 242, 0.75);
    }
    38.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    39% {
        opacity: 1;
        color: #9fd7f2;
        text-shadow:
            0 0 1px #9fd7f2,
            0 0 2px rgba(159, 215, 242, 0.95),
            0 0 14px rgba(0, 133, 199, 0.55);
    }
}

/* Pale amber - mostly white with hint of warmth */
@keyframes flickerAmberHint {
    0%, 100% {
        opacity: 1;
        color: #ffc48a;
        text-shadow:
            0 0 1px #ffc48a,
            0 0 2px rgba(255, 196, 138, 0.95),
            0 0 14px rgba(255, 179, 71, 0.55);
    }
    1% {
        opacity: 0.1;
        text-shadow: none;
    }
    2% {
        opacity: 0.9;
        text-shadow: 0 0 1px #ffc48a, 0 0 4px rgba(255, 196, 138, 0.75);
    }
    2.5% {
        opacity: 0.05;
        text-shadow: none;
    }
    3.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    4% {
        opacity: 0.85;
        text-shadow: 0 0 1px #ffc48a, 0 0 4px rgba(255, 196, 138, 0.75);
    }
    4.5% {
        opacity: 0.2;
        text-shadow: none;
    }
    6% {
        opacity: 1;
        color: #ffc48a;
        text-shadow:
            0 0 1px #ffc48a,
            0 0 2px rgba(255, 196, 138, 0.95),
            0 0 14px rgba(255, 179, 71, 0.55);
    }
    22% {
        opacity: 0.25;
        text-shadow: none;
    }
    22.5% {
        opacity: 0.9;
        text-shadow: 0 0 1px #ffc48a, 0 0 3px rgba(255, 196, 138, 0.65);
    }
    35% {
        opacity: 1;
        text-shadow:
            0 0 1px #ffc48a,
            0 0 2px rgba(255, 196, 138, 0.95),
            0 0 14px rgba(255, 179, 71, 0.55);
    }
    35.5% {
        opacity: 0.6;
        text-shadow: 0 0 1px rgba(255, 196, 138, 0.75);
    }
    36% {
        opacity: 0.9;
        text-shadow: 0 0 1px #ffc48a, 0 0 4px rgba(255, 196, 138, 0.75);
    }
    36.5% {
        opacity: 0.08;
        text-shadow: none;
    }
    37% {
        opacity: 0.5;
        text-shadow: 0 0 1px rgba(255, 196, 138, 0.65);
    }
    37.5% {
        opacity: 0.15;
        text-shadow: none;
    }
    38% {
        opacity: 0.7;
        text-shadow: 0 0 1px #ffc48a, 0 0 2px rgba(255, 196, 138, 0.75);
    }
    38.5% {
        opacity: 0.1;
        text-shadow: none;
    }
    39% {
        opacity: 1;
        color: #ffc48a;
        text-shadow:
            0 0 1px #ffc48a,
            0 0 2px rgba(255, 196, 138, 0.95),
            0 0 14px rgba(255, 179, 71, 0.55);
    }
}
