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

:root {
    --crimson: #a8244f;
    --void-black: #0d0d1a;
    --gold: #d4a017;
    --lavender-mist: #9b95a8;
    --deep-teal: #1a6e5c;
    --purple: #7b2d8e;
    --navy: #1a3a6e;
    --ghost-white: #e8e4f0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--void-black);
    color: var(--ghost-white);
    font-family: 'DM Sans', sans-serif;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#constellation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.panel {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    padding: 2rem;
}

/* Typography */
.display-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(6rem, 15vw, 14rem);
    letter-spacing: 0.05em;
    color: var(--ghost-white);
    text-shadow: 0 0 60px rgba(168, 36, 79, 0.4), 0 0 120px rgba(123, 45, 142, 0.2);
    line-height: 0.85;
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--lavender-mist);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1rem;
    opacity: 0.8;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--gold);
    line-height: 0.9;
    margin-bottom: 1rem;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--ghost-white);
    opacity: 0.85;
    max-width: 40ch;
}

.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--deep-teal);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Hero */
#hero {
    flex-direction: column;
    text-align: center;
}

/* Broken Grid Layout */
.broken-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.grid-item {
    padding: 2rem;
    background: rgba(13, 13, 26, 0.6);
    border: 1px solid rgba(155, 149, 168, 0.1);
    backdrop-filter: blur(4px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.grid-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.offset-left {
    grid-column: 1 / 6;
    transform: translateY(2rem);
}

.offset-right {
    grid-column: 7 / 12;
    transform: translateY(-1rem);
}

.span-wide {
    grid-column: 2 / 9;
}

.offset-diagonal {
    grid-column: 8 / 12;
    transform: translate(1rem, -3rem);
}

.center-float {
    grid-column: 4 / 10;
    text-align: center;
}

/* Scroll Indicator */
#scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#scroll-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(155, 149, 168, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

#scroll-indicator .dot.active {
    background: var(--gold);
    transform: scale(1.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel .display-text,
.panel .subtitle,
.panel .grid-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.panel.visible .display-text {
    animation-delay: 0.2s;
}

.panel.visible .subtitle {
    animation-delay: 0.5s;
}

.panel.visible .grid-item:nth-child(1) {
    animation-delay: 0.3s;
}

.panel.visible .grid-item:nth-child(2) {
    animation-delay: 0.5s;
}

/* First panel visible by default */
#hero .display-text,
#hero .subtitle {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

#hero .subtitle {
    animation-delay: 0.4s;
}
