/* --- Homepage Layout Styles --- */

.home-page main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: calc(20vh + 100px) var(--screen-pad) 0; /* Pushed exactly 100px further down */
    text-align: center;
}

.home-page h1 {
    font-size: 9.5rem; /* Massive, bold headline */
    font-weight: 700;
    line-height: 1; /* Removes invisible font padding to allow tight clustering */
    letter-spacing: -0.06em; /* Tighter kerning to match reference */
    margin-bottom: 1.25rem; /* Balanced equal spacing above subtitle */
    color: var(--text-main);
    z-index: 2;
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: -20px; /* Shifts the subtitle exactly 20px upward */
    margin-bottom: calc(1.25rem + 5px); /* Restores spacing below so the button stays perfectly in place */
    position: relative;
    z-index: 2;
}

.home-page h2 {
    font-size: 1.15rem; /* Slightly smaller to contrast with huge H1 */
    font-weight: 500;
    letter-spacing: 0.35em; /* Wider tracking */
    text-transform: uppercase;
    color: var(--text-main);
}

/* --- Call To Action Button --- */
.home-page .btn-large {
    font-size: 1.35rem;
    font-weight: 600;
    padding: 1.2rem 3.8rem;
    margin-top: 0; /* Margin handled entirely by subtitle-container to ensure exact centering */
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.25); /* Solid grey-ish glassy block */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-page .btn-large:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* --- Handwriting Accent Graphic --- */
.accent-text {
    position: absolute;
    right: -240px; /* Pushed much further right */
    bottom: -90px; /* Adjusted to align with the new, tighter button position */
    transform: rotate(-12deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.9;
}

.accent-text span {
    font-family: 'Ephesis', cursive;
    font-size: 3.8rem; /* Slightly scaled down so it fits gracefully */
    color: #eeeeee; /* Brighter to match reference */
    line-height: 1;
}

.accent-text svg {
    width: 110px; /* Scaled down underline graphic */
    height: auto;
    margin-top: -10px;
}


/* --- CRITICAL FIXES FOR BACKGROUND VISIBILITY & SCROLL LOCK --- */

/* 1. Prevent solid body background, lock height, and completely kill scrolling */
body.home-page {
    background-color: transparent !important;
    overflow: hidden !important; 
    height: 100vh;
    width: 100vw;
}

/* 2. Ensure the video container has full brightness */
.home-page .video-container {
    opacity: 1; /* Full brightness */
    z-index: -2;
}

/* 3. Lighten the global dark overlay specifically for the homepage */
.home-page .video-overlay {
    background: rgba(0, 0, 0, 0.3); /* Just a light 30% shadow to keep the white text readable */
    z-index: -1;
}

/* 4. Ensure the main content stays on top of the overlays */
.home-page main, .home-page header {
    position: relative;
    z-index: 10;
}


/* --- Responsive Adjustments (Mobile & Tablet) --- */
@media (max-width: 1024px) {
    .home-page h1 {
        font-size: 7rem;
    }
    .accent-text {
        right: -160px;
        bottom: -70px;
        transform: scale(0.85) rotate(-12deg);
    }
}

@media (max-width: 768px) {
    .home-page main {
        padding-top: calc(10vh + 100px); /* Applied the exact same 100px downward push to mobile */
    }
    .home-page h1 {
        font-size: 4.5rem;
        letter-spacing: -0.04em;
        margin-bottom: 0.75rem; /* Balanced spacing for mobile */
    }
    .subtitle-container {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0; /* Reset negative margin on mobile */
        margin-bottom: 0.75rem; /* Balanced spacing for mobile */
    }
    .home-page h2 {
        font-size: 0.9rem;
        letter-spacing: 0.25em;
    }
    .home-page .btn-large {
        font-size: 1.15rem;
        padding: 1rem 3rem;
        margin-top: 0;
    }
    /* Restructure the signature to flow normally under the text on small screens */
    .accent-text {
        position: relative;
        right: auto;
        bottom: auto;
        transform: rotate(-5deg);
        margin-top: 1rem;
    }
}