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

html, body {
    width: 100%; height: 100%;
    background: #000;
    color: #fff;
    font-family: 'VT323', monospace;
    overflow: hidden;
}

/* Film-grain noise */
.noise {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 900;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ── Page Layout ────────────────────────────────────── */
.page {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ── LOGO (Top-Left of Screen) ──────────────────────── */
.logo-wrap {
    position: absolute;
    top: 2.5rem;
    left: 3rem;
    z-index: 100;
}

.brand-logo {
    width: 130px; /* Increased logo size significantly */
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.25));
}

/* ── LEFT COLUMN: Tagline + Socials ─────────────────── */
.left {
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 3rem 0 2.5rem;
    position: relative;
}

.tagline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'VT323', monospace;
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    text-align: right;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.l {
    display: block;
    white-space: nowrap;
    opacity: 0;
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.l1 { animation-delay: 0.05s; padding-right: 10rem; }
.l2 { animation-delay: 0.15s; padding-right: 6rem; }
.l3 { animation-delay: 0.25s; padding-right: 0rem; }
.l4 { animation-delay: 0.35s; padding-right: 3rem; }
.l5 { animation-delay: 0.45s; padding-right: 7rem; }
.l6 { animation-delay: 0.55s; padding-right: 12rem; }

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Social Icons */
.socials {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    padding-right: 6rem;
    opacity: 0;
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.7s;
}

.ico {
    width: 24px; height: 24px;
    color: #777;
    background: none; border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}
.ico svg { width: 100%; height: 100%; fill: currentColor; }
.ico:hover { color: #fff; transform: translateY(-4px); }
.ico:hover svg { filter: drop-shadow(0 0 8px rgba(255,255,255,0.7)); }

/* ── RIGHT COLUMN: Flower Sway Scene ────────────────── */
.right {
    flex: 0 0 54%;
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.flower-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transform-origin: bottom center;
    animation: jittery-sway 5s steps(15) infinite alternate ease-in-out;
}

#main-flower {
    /* Scaled up and shifted to bottom */
    height: 100vh;
    max-height: 100vh;
    width: auto;
    object-fit: contain;
    background: transparent;
    z-index: 2;
    margin-bottom: 0; 
    
    /* Removed filter: drop-shadow which was rendering the shiny box border outline */
    /* Blend mode screen extracts black pixels and makes them fully transparent, removing any grey box borders seamlessly */
    mix-blend-mode: screen; 
}

@keyframes jittery-sway {
    0% { transform: rotate(-1.5deg) translateX(-1px); }
    20% { transform: rotate(1deg) translateX(1px); }
    40% { transform: rotate(-0.5deg) translateX(0px); }
    60% { transform: rotate(2deg) translateX(2px); }
    80% { transform: rotate(-2deg) translateX(-2px); }
    100% { transform: rotate(1.5deg) translateX(1px); }
}

/* ── MODAL ─────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.modal.open { display: flex; }
.modal.open .modal-box { transform: translateY(0); opacity: 1; }

.modal-box {
    background: #060606;
    border: 1px solid #1e1e1e;
    padding: 4rem 3.5rem 3rem;
    text-align: center;
    position: relative;
    transform: translateY(28px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
    box-shadow: 0 30px 80px #000;
    min-width: 380px;
}

.modal-close {
    position: absolute; top: 1rem; right: 1.4rem;
    background: none; border: none; color: #555;
    font-size: 1.8rem; line-height: 1; cursor: pointer;
    transition: color 0.25s, transform 0.25s;
}
.modal-close:hover { color: #fff; transform: rotate(90deg); }

.modal-label {
    font-size: 0.72rem; color: #666;
    text-transform: uppercase; letter-spacing: 0.22em;
    margin-bottom: 1.2rem; font-family: 'Inter', sans-serif;
}

.modal-email {
    font-size: 1.8rem; font-weight: 700;
    color: #fff; margin-bottom: 2.4rem;
    font-family: 'VT323', monospace;
    letter-spacing: 0.04em;
    word-break: break-all;
    text-shadow: 0 0 14px rgba(255,255,255,0.18);
}

#copy-btn {
    background: transparent; color: #fff;
    border: 1px solid #2a2a2a;
    padding: 0.85rem 2.8rem;
    font-size: 0.82rem; font-family: 'Space Mono', monospace;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; cursor: pointer;
    transition: all 0.28s;
}
#copy-btn:hover {
    background: #fff; color: #000;
    border-color: #fff;
    box-shadow: 0 0 24px rgba(255,255,255,0.22);
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 820px) {
    html, body { overflow: auto; }
    .page { flex-direction: column; height: auto; }
    .logo-wrap { position: relative; top: auto; left: auto; padding: 2rem 0 0; text-align: center; }
    .left {
        flex: none; width: 100%;
        align-items: center; padding: 2rem 1.5rem;
    }
    .tagline { align-items: center; text-align: center; font-size: 2.5rem; }
    .l { padding-right: 0 !important; }
    .socials { padding-right: 0; justify-content: center; }
    .right { flex: none; width: 100%; height: 90vh; overflow: hidden; }
    .flower-container { height: 90vh; }
    #main-flower { height: 90vh; }
    .modal-box { min-width: auto; width: 88vw; padding: 3rem 1.5rem 2rem; }
    .modal-email { font-size: 1.3rem; }
}
