/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --hot-pink: #e8368f;
    --berry: #8a1a52;
    --teal: #18b5a0;
    --deep-teal: #0d6b5e;
    --bg-light: #faf5f0;
    --bg-dark: #1a0e24;
    --surface-light: #f5e8ef;
    --surface-dark: #2b1a33;
    --gold: #d4a843;
    --text-primary: #2b1a33;
    --text-inverse: #f0e6f5;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.25rem);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* === NOISE OVERLAY === */
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    filter: url(#mcbling-noise);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* === HERO === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 0;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: clip-path 0.8s ease-out;
}

.mountain-1 {
    height: 60%;
    background: var(--surface-dark);
    clip-path: polygon(50% 100%, 0% 100%, 100% 100%);
}
.mountain-1.risen {
    clip-path: polygon(20% 0%, 0% 100%, 50% 100%, 35% 30%, 60% 60%, 75% 20%, 100% 100%, 50% 100%);
}

.mountain-2 {
    height: 45%;
    background: var(--berry);
    opacity: 0.7;
    clip-path: polygon(50% 100%, 0% 100%, 100% 100%);
}
.mountain-2.risen {
    clip-path: polygon(10% 40%, 0% 100%, 100% 100%, 90% 30%, 70% 60%, 50% 10%, 30% 50%);
}

.mountain-3 {
    height: 35%;
    background: var(--deep-teal);
    opacity: 0.5;
    clip-path: polygon(50% 100%, 0% 100%, 100% 100%);
}
.mountain-3.risen {
    clip-path: polygon(0% 100%, 15% 50%, 40% 70%, 55% 20%, 75% 55%, 95% 35%, 100% 100%);
}

.hero-title {
    font-family: 'Bungee', sans-serif;
    font-size: clamp(4rem, 12vw + 1rem, 10rem);
    color: var(--hot-pink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 0 40px rgba(232, 54, 143, 0.3);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-title.visible {
    opacity: 1;
}

.sparkle-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 6px 2px rgba(212, 168, 67, 0.5);
    animation: sparkle-fall linear forwards;
    opacity: 0;
}

@keyframes sparkle-fall {
    0% { opacity: 0; transform: rotate(45deg) scale(0.5); }
    10% { opacity: 1; transform: rotate(45deg) scale(1); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) scale(0.8) translateY(100vh); }
}

.scroll-chevron {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: pulse-chevron 2s ease-in-out infinite;
}

@keyframes pulse-chevron {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.15); }
}

/* === MASONRY === */
.masonry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    margin-bottom: 0;
}

/* === TILES === */
.tile {
    break-inside: avoid;
    border-radius: 16px;
    border: 3px solid var(--gold);
    padding: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.tile.visible {
    opacity: 1;
    transform: translateY(0);
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    border-radius: 13px;
}

.tile:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.15);
}

.tile-light {
    background: var(--surface-light);
    color: var(--text-primary);
    border-color: var(--hot-pink);
}

.tile-dark {
    background: var(--surface-dark);
    color: var(--text-inverse);
    border-color: var(--teal);
}

.tile-teal {
    background: var(--deep-teal);
    color: var(--text-inverse);
    border-color: var(--gold);
}

.tile-tall { min-height: 280px; }
.tile-medium { min-height: 200px; }

.tile-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}

.tile-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw + 0.5rem, 3rem);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.tile-quote {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.5;
}

.tile-icon {
    margin-bottom: 0.75rem;
}

.tile-icon svg {
    animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.tile p + p {
    margin-top: 0.75rem;
}

/* === INTERSTITIALS === */
.interstitial {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.interstitial-dark {
    background: var(--bg-dark);
}

.interstitial-pink {
    background: var(--hot-pink);
}

.interstitial-text {
    font-family: 'Bungee', sans-serif;
    font-size: clamp(2.5rem, 7vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    max-width: 900px;
    z-index: 2;
}

.interstitial-dark .interstitial-text {
    color: var(--text-inverse);
}

.interstitial-pink .interstitial-text {
    color: var(--bg-dark);
}

.ridge-top, .ridge-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
}
.ridge-top { top: 0; }
.ridge-bottom { bottom: 0; }

/* === NAV PILL === */
.nav-pill {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--hot-pink);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: pulse-pill 2s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(232, 54, 143, 0.4);
}

.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%);
}

@keyframes pulse-pill {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 54, 143, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(232, 54, 143, 0); }
}

.nav-radial {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-radial.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-item {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--surface-dark);
    color: var(--text-inverse);
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    transition: background 0.2s;
}

.nav-item:hover {
    background: var(--hot-pink);
}

/* === RESPONSIVE === */
@media (max-width: 1023px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 16px;
    }
}

@media (max-width: 767px) {
    .masonry-grid {
        column-count: 1;
    }
    .tile {
        margin-bottom: 16px;
    }
    .interstitial {
        min-height: 60vh;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .sparkle { display: none; }
    .mountain { clip-path: none; }
    .mountain-1 { clip-path: polygon(20% 0%, 0% 100%, 50% 100%, 35% 30%, 60% 60%, 75% 20%, 100% 100%, 50% 100%); }
    .mountain-2 { clip-path: polygon(10% 40%, 0% 100%, 100% 100%, 90% 30%, 70% 60%, 50% 10%, 30% 50%); }
    .mountain-3 { clip-path: polygon(0% 100%, 15% 50%, 40% 70%, 55% 20%, 75% 55%, 95% 35%, 100% 100%); }
    .hero-title { opacity: 1; }
    .tile { opacity: 1; transform: none; }
    .scroll-chevron { animation: none; }
    .nav-pill { animation: none; }
    .tile-icon svg { animation: none; opacity: 1; }
}
