:root {
    --clr-bg-light: hsl(0, 0%, 98%);
    --clr-text-light: hsl(220, 10%, 15%);
    --clr-border-light: hsl(0, 0%, 85%);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --bg-current: var(--clr-bg-light);
    --text-current: var(--clr-text-light);
    --border-current: var(--clr-border-light);
}

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

body {
    background-color: var(--bg-current);
    color: var(--text-current);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }

/* Vault Overlay Cinematic CSS Transition */
#vault-door-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('/assets/images/vault.png');
    background-size: cover;
    background-position: center;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* This creates the beautiful "slow opening back" fade and scale out effect */
    transition: transform 3.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 3s ease;
}
#vault-door-overlay::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5); z-index: -1;
}
.overlay-text {
    color: white;
    font-size: 4rem;
    font-family: var(--font-heading);
    pointer-events: none;
    transition: opacity 1s ease;
}
.overlay-text span {
    display: block;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

#vault-door-overlay.door-open {
    transform: scale(1.08); /* Slow move backward effect */
    opacity: 0; /* Slow fade out */
    pointer-events: none;
}
#vault-door-overlay.door-open .overlay-text {
    opacity: 0;
}

/* Island Hero Section */
.section-hero {
    position: relative; height: 100vh; display: flex;
    align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.bg-video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%); z-index: -2;
    object-fit: cover; opacity: 1;
}
.hero-content {
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem 4rem; border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
}
.main-title { font-size: 5rem; letter-spacing: 2px; margin-bottom: 1rem; color: var(--text-current); }
.subtitle { font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-current); opacity: 0.8; }

/* Sections */
.section-authority, .section-vetting { padding: 8rem 2rem; max-width: 1200px; margin: 0 auto; }

/* Metrics Grid */
.metrics-grid { display: flex; justify-content: space-around; gap: 2rem; text-align: center; flex-wrap: wrap; }
.metric .number { display: block; font-size: 5rem; font-family: var(--font-heading); color: var(--text-current); margin-bottom: 0.5rem; }
.metric .label { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 3px; opacity: 0.6; }

/* White Intake Form */
.form-container {
    max-width: 650px; margin: 0 auto; background: white;
    border: 1px solid var(--border-current); padding: 4rem;
    border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.form-container h2 { font-size: 3rem; margin-bottom: 1rem; text-align: center; }
.form-container p { text-align: center; margin-bottom: 3rem; opacity: 0.7; font-size: 1.1rem; }
.input-group { margin-bottom: 2rem; }
.input-group label { display: block; margin-bottom: 0.8rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; }
.input-group input, .input-group textarea {
    width: 100%; padding: 1.2rem; background: transparent; border: 0;
    border-bottom: 1px solid var(--border-current); color: var(--text-current);
    font-family: var(--font-body); font-size: 1rem; transition: all 0.3s ease;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-bottom-color: var(--text-current); }
.form-container .btn-primary {
    width: 100%; padding: 1.2rem; font-family: var(--font-body); font-size: 1rem; letter-spacing: 2px;
    text-transform: uppercase; background: transparent; color: var(--text-current);
    border: 1px solid var(--border-current); margin-top: 1rem; cursor: pointer; transition: all 0.3s ease;
}
.form-container .btn-primary:hover { background: var(--text-current); color: white; }

.confidentiality-notice {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-current);
    padding-top: 1.5rem;
}
.confidentiality-notice p {
    margin-bottom: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 2s ease 2.5s; /* Fades in smoothly 2.5s after the vault begins opening */
    z-index: 5;
    pointer-events: none;
}
#vault-door-overlay.door-open + .section-hero .scroll-indicator {
    opacity: 1;
}
.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    opacity: 0.6;
}
.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: currentColor;
    opacity: 0.4;
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Mobile Support */
@media (max-width: 768px) {
    .main-title, .overlay-text { font-size: 3rem; }
    .hero-content { padding: 2rem; }
    .metrics-grid { flex-direction: column; gap: 4rem; }
    .metric .number { font-size: 4rem; }
    .section-authority, .section-vetting { padding: 4rem 1.5rem; }
    .form-container { padding: 2rem; }
    .form-container h2 { font-size: 2rem; }
}
