* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    background: #1a1a1a;
    color: white;
    overflow-x: hidden;
}

/* HERO SECTION - JUNNI STYLE */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #1a1a1a;
}

/* Big background text - visible through tiles */
.hero-text-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    pointer-events: none;
    width: 100%;
}

.hero-text-bg h1 {
    font-size: clamp(90px, 15vw, 220px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 0.9;
    color: white;
    margin-bottom: 30px;
}

.hero-text-bg .subtitle {
    font-size: clamp(22px, 3.5vw, 42px);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.85);
}

/* Tiles grid - fills entire screen */
.tiles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 120px;
    perspective: 1500px;
    z-index: 2;
}

.tile {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.tile-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 0.5px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Front face - transparent to show big text behind */
.tile-front {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(0px);
}

/* Back face - yellow with message */
.tile-back {
    background: #d4e157;
    transform: rotateY(180deg);
}

.tile-back p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0,0,0,0.8);
    text-align: center;
    font-weight: 400;
}

.tile.flip {
    transform: rotateY(180deg);
}

/* CURSOR FOLLOWER */
.cursor-follow {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s;
    transform: translate(-50%, -50%);
}

.cursor-follow.show {
    opacity: 1;
}

.cursor-follow svg {
    animation: rotateCursor 10s linear infinite;
}

@keyframes rotateCursor {
    to { transform: rotate(360deg); }
}

.cursor-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    fill: rgba(255,255,255,0.9);
    font-family: 'Oswald', sans-serif;
}

/* YELLOW TEXT SECTION - Pure scroll-driven reveal */
.yellow {
    min-height: 200vh;
    background: #d4e157;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 150px 60px;
}

.yellow p {
    font-size: clamp(35px, 6vw, 90px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 1400px;
}

/* Each word starts as low-contrast yellow */
.yellow p span {
    color: rgba(212, 225, 87, 1);
    transition: none;
}

/* FORM SECTION */
.flipped-bg {
    min-height: 100vh;
    background: #d4e157;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
}

.glass {
    max-width: 580px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 55px 50px;
    box-shadow: 
        0 8px 40px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.glass h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 45px;
    color: rgba(0,0,0,0.9);
}

.form-group {
    margin-bottom: 18px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 14px;
    padding: 18px 22px;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    color: rgba(0,0,0,0.9);
    font-weight: 400;
    outline: none;
    transition: all 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0,0,0,0.45);
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-btn {
    width: 100%;
    background: rgba(0,0,0,0.9);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    transition: all 0.35s;
    margin-top: 8px;
}

.form-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    background: rgba(0,0,0,1);
}

.form-msg {
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-msg.show {
    opacity: 1;
}

.form-msg.success {
    background: rgba(34,197,94,0.2);
    color: rgba(0,100,0,1);
    border: 1px solid rgba(34,197,94,0.4);
}

.form-msg.error {
    background: rgba(239,68,68,0.2);
    color: rgba(150,0,0,1);
    border: 1px solid rgba(239,68,68,0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .tiles {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 100px;
    }

    .hero-text-bg h1 {
        font-size: clamp(70px, 13vw, 160px);
    }

    .yellow p {
        font-size: clamp(22px, 4.5vw, 55px);
    }

    .yellow {
        padding: 120px 40px;
    }

    .glass {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .tiles {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        grid-auto-rows: 80px;
    }

    .hero-text-bg h1 {
        font-size: clamp(50px, 11vw, 120px);
    }

    .tile-back p {
        font-size: 12px;
    }

    .yellow p {
        font-size: clamp(30px, 6vw, 80px);
    }

    .yellow {
        padding: 100px 30px;
    }

    .glass {
        padding: 35px 25px;
    }
}