
:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #4a4a3a;
    --accent-red: #c94e34;
    --icon-grey: #666666;
    --text-light: #6b7280;

    --font-main: 'Geologica', sans-serif;
    --font-code: 'Source Code Pro', monospace;

    --section-text: #ffffff;
    --caption-text: #e0e0e0;
    --button-bg: #000000;

    --text-dark: #ffffff;
    --text-muted: #b0b0b0;

    --bg-surface: #ffffff;
    --bg-surface-hover: #fcfcfc;
    --text-color: #000000;
    --blog-text-color: #000000;
    --border-primary: #000000;
    --border-light: #eeeeee;
    --border-light-hover: #dddddd;
    --text-subtle: #999999;
    --text-body-secondary: #4a4a4a;
    --text-vibe: #666666;
    --bg-vibe: #f7f7f7;
    --text-project-num: #bbbbbb;
    --progress-bar-bg: #e5e5e5;
    --progress-bar-fill: #000000;
    --text-active-num: #000000;
    --text-muted-num: #d1d1d1;
    --scroll-indicator: #9ca3af;
    --preview-box-bg: #d1d5db;
    --preview-box-bg-alt: #9ca3af;
    --btn-hover-bg: #000000;
    --btn-hover-text: #ffffff;
    --flash-bg: #000000;
    --flash-text: #ffffff;
    --flash-error: #c63d2f;
}

[data-theme="dark"] {
    --bg-color: #111111;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a090;
    --accent-red: #c94e34;
    --icon-grey: #999999;
    --text-light: #9ca3af;
    --button-bg: #e8e8e8;
    --section-text: #ffffff;
    --caption-text: #e0e0e0;
    --text-muted: #b0b0b0;
    --bg-surface: #1a1a1a;
    --bg-surface-hover: #222222;
    --text-color: #e8e8e8;
    --blog-text-color: #e8e8e8;
    --border-primary: #e8e8e8;
    --border-light: #333333;
    --border-light-hover: #444444;
    --text-subtle: #777777;
    --text-body-secondary: #b0b0a8;
    --text-vibe: #999999;
    --bg-vibe: #222222;
    --text-project-num: #666666;
    --progress-bar-bg: #333333;
    --progress-bar-fill: #e8e8e8;
    --text-active-num: #e8e8e8;
    --text-muted-num: #555555;
    --scroll-indicator: #777777;
    --preview-box-bg: #333333;
    --preview-box-bg-alt: #444444;
    --btn-hover-bg: #e8e8e8;
    --btn-hover-text: #111111;
    --flash-bg: #e8e8e8;
    --flash-text: #111111;
    --flash-error: #c63d2f;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #111111;
        --text-primary: #e8e8e8;
        --text-secondary: #a0a090;
        --accent-red: #c94e34;
        --icon-grey: #999999;
        --text-light: #9ca3af;
        --button-bg: #e8e8e8;
        --section-text: #ffffff;
        --caption-text: #e0e0e0;
        --text-muted: #b0b0b0;
        --bg-surface: #1a1a1a;
        --bg-surface-hover: #222222;
        --text-color: #e8e8e8;
        --blog-text-color: #e8e8e8;
        --border-primary: #e8e8e8;
        --border-light: #333333;
        --border-light-hover: #444444;
        --text-subtle: #777777;
        --text-body-secondary: #b0b0a8;
        --text-vibe: #999999;
        --bg-vibe: #222222;
        --text-project-num: #666666;
        --progress-bar-bg: #333333;
        --progress-bar-fill: #e8e8e8;
        --text-active-num: #e8e8e8;
        --text-muted-num: #555555;
        --scroll-indicator: #777777;
        --preview-box-bg: #333333;
        --preview-box-bg-alt: #444444;
        --btn-hover-bg: #e8e8e8;
        --btn-hover-text: #111111;
        --flash-bg: #e8e8e8;
        --flash-text: #111111;
        --flash-error: #c63d2f;
    }
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 200vh;
    overflow-x: hidden; 
    font-weight: 300;
}

/*this is a comment */

body.noscroll {
    overflow: hidden;
}

html {
     scroll-behavior: smooth;
}

.hidden-el { opacity: 0; pointer-events: none; }
.visible-el { opacity: 1; pointer-events: auto; transition: opacity 0.5s ease; }


/*----------------------------------------------------------------------------------------------------*/

 .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 12vw; 
   
    position: absolute; 
    width: 100%;
    z-index: 10002; 
    animation: fadeIn 1s var(--ease-out-expo) forwards 0.5s;
    pointer-events: none; 
}

.logo {
    height: 80px;
    padding-top: 0.75rem;
   
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4rem; 
    pointer-events: auto; 
}

.nav-link {
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.4s var(--ease-out-expo), color 0.3s ease;
    text-transform: lowercase;
    position: relative;
    padding: 2px 0;
    display: inline-block;
    min-width: 60px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

body.batch0-active .logo,
body.batch0-active .apply-btn,
body.batch0-active .theme-toggle,
body.batch0-active .nav-link:not(#nav-batch0) {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

body.about-active .logo,
body.about-active .apply-btn,
body.about-active .theme-toggle,
body.about-active .nav-link:not(#nav-about) {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Hide navbar when blog-wrapper (after hours) is in full-screen mode */
.blog-wrapper.page-active ~ .navbar,
body:has(.blog-wrapper.page-active) .navbar {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease;
}

body.batch0-active #page-batch0, 
body.about-active #page-about {
    pointer-events: auto;
    visibility: visible;
    clip-path: inset(0 0 0 0);
}

/* Ensure the About page wipes down when active */
body.about-active #page-about {
    pointer-events: auto;
    visibility: visible;
    clip-path: inset(0 0 0 0); /* This removes the crop and shows the content */
}

/* Ensure the text inside About follows the same entrance rules as Batch 0 */
body.about-active #page-about .subpage-content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}

/* Make sure the Title 'about us' contrasts the background */
#page-about .subpage-title {
    color: var(--text-primary);
}


body.batch0-active #nav-batch0::after { opacity: 0; }

#nav-batch0 { transition: opacity 0.8s var(--ease-out-expo), color 0.3s ease; }


/* --- THE EXPANDING LINE --- */
#transition-line {
    position: fixed;
    height: 1px;
    background-color: var(--border-primary);
    z-index: 10001;
    top: 0;
    left: 0;
    width: 0;
    opacity: 1;
    pointer-events: none;
    transition: width 0.6s var(--ease-in-out-expo), 
                left 0.6s var(--ease-in-out-expo), 
                opacity 0.8s var(--ease-out-expo);
}

body.batch0-active #transition-line {
    width: 100vw;
    left: 0;
    transition: width 0.8s var(--ease-in-out-expo), 
                left 0.8s var(--ease-in-out-expo), 
                opacity 0.8s var(--ease-out-expo);
}

/* --- HERO --- */

body.batch0-active .hero-container,
body.about-active .hero-container { 
    opacity: 0; 
    transform: scale(0.98);
    pointer-events: none;
}
/* --- BATCH 0 SUBPAGE --- */
.subpage-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9990;
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
    background: var(--bg-surface);
    clip-path: inset(0 0 100% 0);

    transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

body.batch0-active .subpage-wrapper {
    pointer-events: auto;
    visibility: visible;
    clip-path: inset(0 0 0 0); 
}

.subpage-inner {
    width: 100%;
    min-height: 100vh;
    padding: 22vh 0 10vh 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    
}

.subpage-content-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
    text-align: left;
    opacity: 0;
    z-index: 2;
    position: relative;
    transform: translateY(-40px); 
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



.header-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.subpage-title {
    font-size: 5rem;
    line-height: 0.85;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
    margin-left: -4px;
}

/* SHUFFLE BUTTON STYLE - MINIMALIST REDESIGN */
.shuffle-btn {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-subtle);
    background: transparent;
    border: none; /* Removed border */
    padding: 0;   /* Removed padding */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: -5px; /* Align with title */
    margin-bottom: 2rem;
}

.shuffle-btn:hover {
    color: var(--accent-red); /* Darken on hover */
}

.shuffle-btn i {
    font-size: 0.8rem;
    transition: transform 0.5s ease;
}

.shuffle-btn:hover i {
    transform: rotate(180deg);
}

/* --- SINGLE CARD CONTAINER --- */
.team-display-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    /* Container height matches card height to reserve space */
    height: 680px; 
    width: 550px;
}

.team-card {
    width: 100%; 
    height: 100%; 
    
    position: relative;
    border-radius: 0; 
    overflow: hidden;
    background: var(--bg-surface);
    border: none; 
    cursor: default;
    
    display: flex;
    flex-direction: column;
    padding: 0; 
}

.card-video {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0; 
    background-color: var(--bg-surface);
    min-height: 1px;           /* Prevents collapse to 0px height */
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.member-content {
    width: 100%;
    flex: 1; 
    
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
    transition: padding-top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card.revealed .card-video {
    height: 40%; 
    opacity: 1;
}

.team-card.revealed .member-content {
    padding-top: 2rem; 
}

.team-card:not(.revealed) .card-video {
    height: 0; 
    opacity: 0;
}

.team-card:not(.revealed) .member-content {
    padding-top: 304px;
}

.member-role, .member-bio, .vibe-check, .card-footer-row {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:not(.revealed) .member-role,
.team-card:not(.revealed) .member-bio,
.team-card:not(.revealed) .vibe-check,
.team-card:not(.revealed) .card-footer-row {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.team-card.revealed .member-role,
.team-card.revealed .member-bio,
.team-card.revealed .vibe-check,
.team-card.revealed .card-footer-row {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.1s;
}

.member-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    width: 100%;
}


.member-info-group {
    align-items: flex-start; 
}

.member-name {
    font-family: var(--font-main);
    font-size: 2.5rem; 
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: var(--text-primary);

    min-height: 2em; 
    display: flex;       
    align-items: end;
}

.member-role {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.member-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
    max-width: 90%;
}

.vibe-check {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-vibe);
    background: var(--bg-vibe);
    padding: 14px 16px;
    border-radius: 0; 
    border-left: 2px solid var(--accent-red);
    margin-bottom: 0.5rem;
    width: fit-content;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;

    padding-right: 10px;
    padding-bottom: 10px;
}

.signature {
    height: 45px;
    width: auto;
    filter: none; 
    opacity: 0.8;
}

.linkedin-link {
    color: var(--text-primary);
    font-size: 1.2rem; /* Adjusted for text + icon */
    text-decoration: none;
    cursor: pointer;
    
    /* NEW: Flexbox to align icon and text */
    display: flex;
    align-items: center;
    gap: 8px; 
    
    /* NEW: Force it to sit on top of everything else */
    position: relative;
    z-index: 100;
    pointer-events: auto !important; /* Force clickability */
    
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: var(--accent-red);
}

/* Mobile Responsive */
@media (max-width: 786px) {
    .navbar { padding: 2rem 5vw; }
    .logo { height: 60px; }
    .nav-right { gap: 0; justify-content: flex-end; }
    
    .subpage-content-wrapper {
        gap: 2rem;
        padding-top: 6rem; 
        width: 100%;
        max-width: 100%;
        align-items: flex-start; 
    }

    .header-group {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .subpage-title {
        font-size: 4.5rem;
        margin-bottom: 0;
        text-align: left;
        margin-left: 0;
        line-height: 1.5;
    }

    .shuffle-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .team-display-container {
        width: 100%;
        justify-content: center; 
        height: 600px;
    }

    .team-card {
        width: 100%; 
        max-width: 90vw;
        height: 600px;
    }

    .team-card:not(.revealed) .card-video { height: 100%; }
    .team-card.revealed .card-video { 
        height: 60%;
    }

    .team-card:not(.revealed) .member-content {
        padding-top: 200px;
    }

    .member-name {
        min-height: 2.5em !important; 
        font-size: 2rem !important; 
    }

    .member-bio {
        min-height: 7.5em !important; 
        font-size: 0.95rem;   
        margin-bottom: 0;      
    }

    .member-content {
        justify-content: flex-start !important; 
        gap: 1rem;

        
    }
    
    .card-footer-row {
        margin-top: 0rem !important; 
        padding-bottom: 20px;
    }

}

/* --- DESKTOP CLOSE BUTTON FIX --- */
@media (min-width: 787px) {
    body.about-active #nav-about,
    body.batch0-active #nav-batch0 {
        position: fixed !important;
        top: 2.5rem;
        right: 12vw;
        z-index: 10005;
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        text-align: right;
    }
}


@media (max-width: 786px) {
/* 1. Force the nav link to appear on the top RIGHT when subpage is active */
body.about-active #nav-about,
body.batch0-active #nav-batch0 {
display: block !important;
opacity: 1 !important;
pointer-events: auto !important;
visibility: visible !important;

position: fixed;
top: 2rem;
right: 5vw;
left: auto;
z-index: 10005;

text-align: right;

color: var(--text-primary);
background: transparent;
font-family: var(--font-code);
font-weight: 600;
}

/* 2. Ensure the Logo and other nav items stay hidden when About is open */
body.about-active .logo, 
body.about-active .apply-btn, 
body.about-active #nav-batch0 {
opacity: 0 !important;
pointer-events: none !important;
}
}




body.batch0-active .subpage-content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.blog-text-style {
    font-size: 0.95rem; 
    line-height: 1.8;
    font-weight: 300; 
    color: var(--blog-text-color); 
    margin-bottom: 2rem;
}

/* Projects Grid */

/* --- STATIC INFO CARDS (Old Style for Vision/Venue) --- */

.info-card {
    border: 1px solid var(--border-light);
    padding: 30px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: default;
    background: var(--bg-surface);
}

.info-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-light-hover);
}

/* Ensure text inside these cards stays visible and styled correctly */
.info-card .project-num {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-project-num);
}

.info-card .project-name {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--text-primary);
}

.info-card .project-cat {
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin: 4rem 0;
    width: 100%;
}

.project-card {
    position: relative;
    aspect-ratio: 1/1;
    border: 1px solid rgba(152, 152, 152, 0.1); /* Subtle border */
    overflow: hidden;
    cursor: pointer;
    background: #000; 
}

.card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.4s ease;
}

.card-overlay {
    position: absolute;
    inset: 0; /* Stretches to fill the square */
    background: rgba(0, 0, 0, 0.136); /* Darkens image so white text pops */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
}

/* 3. Text Styling */
.project-num { 
    font-family: var(--font-code); 
    font-size: 0.8rem; 
    color: rgba(255, 255, 255, 0.6); 
    letter-spacing: 1px;
}

.card-text-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    transform: translateY(20px); /* Text slides up on hover */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-name { 
    font-size: 1.8rem; 
    font-weight: 600; 
    text-transform: lowercase; 
    color: #fff; /* White text on hover */
    line-height: 1.1;
}

.project-cat { 
    font-family: var(--font-code); 
    font-size: 0.7rem; 
    color: var(--accent-red); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* --- HOVER EFFECTS --- */

/* Reveal Overlay */
.project-card:hover .card-overlay {
    opacity: 1;
}

/* Slide Text Up */
.project-card:hover .card-text-group {
    transform: translateY(0);
}

/* Zoom Image Slightly */
.project-card:hover .card-bg-img {
    transform: scale(1.05);
    filter: grayscale(100%) brightness(0.6); /* Optional: makes it moody B&W on hover */
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
    .card-overlay { opacity: 1; background: rgba(0,0,0,0.3); }
    .card-text-group { transform: translateY(0); }
}

/* --- SCROLL REVEAL ANIMATION --- */

/* Initial hidden state for blog elements */
.blog-text, .blog-image, .builder-box, .blog-text-style, .project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Visible state triggered by JavaScript */
.blog-text.reveal-active, 
.blog-image.reveal-active, 
.builder-box.reveal-active,
.blog-text-style.reveal-active,
.project-card.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Extra logic for staggered project cards if they appear in pairs */
.project-card:nth-child(even) {
    transition-delay: 0.1s;
}

.project-num { font-family: var(--font-code); font-size: 0.7rem; color: var(--text-project-num); }
.project-name { font-size: 1.5rem; font-weight: 600; text-transform: lowercase; }
.project-cat { font-family: var(--font-code); font-size: 0.65rem; color: var(--accent-red); text-transform: uppercase; letter-spacing: 1px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.subpage-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 3rem;
    transition: transform 0.6s ease, font-size 0.6s ease;
}

#meet-the-team {
    margin-top: 10rem;
}

.subpage-wrapper .floating-img {
    filter: none !important;
}

@media (max-width: 786px) {
    .subpage-wrapper .floating-img {
        filter: grayscale(100%) brightness(0.5) contrast(1.2) !important;
    }
}

@media (max-width: 768px) {
    #page-batch0 .floating-img {
        filter: brightness(1) contrast(1) !important;
        pointer-events: none;
    }

    #page-batch0 .pos-3 {
        width: 50vw !important;   
        top: 10% !important;       
        left: -15% !important;     
        right: auto !important;
    }

    #page-batch0 .pos-4 {
        width: 45vw !important;
        top: 45% !important;
        right: -15% !important;   
        left: auto !important;
    }

    #page-batch0 .pos-5 {
        width: 50vw !important;
        top: 80% !important;
        left: -10% !important;
        right: auto !important;
    }
}


@media (max-width: 786px) {
/* 1. Basic Layout Adjustments */
.navbar { padding: 2rem 5vw; }
.logo { height: 60px; }
.nav-right { gap: 0; justify-content: flex-end; }
.projects-grid { grid-template-columns: 1fr; }

/* 2. Hide "about" link */
.nav-link:first-child { 
display: none !important; 
}

.subpage-title {
font-size: 3rem; /* Slightly smaller for mobile screens */
margin-bottom: 4rem;
}

/* 3. The Asymmetric Button Base Style */
#nav-batch0 {
position: relative;
padding: 10px 20px 10px 60px !important; /* Asymmetric padding */
border-radius: 50px;
background: transparent;
display: inline-block;
min-width: 140px;
text-align: right;
text-decoration: none !important;
color: var(--text-primary) !important;
/* We make the real border transparent so we don't get double borders */
border: 1px solid transparent; 
transition: opacity 0.4s ease;
z-index: 1;
}

/* 4. The "Circle" (Border) using Pseudo-element for the Draw effect */
#nav-batch0::before {
content: '';
position: absolute;
inset: 0; /* Align to the very edges of the button */
border: 1px solid var(--border-primary);
border-radius: 50px;
pointer-events: none;
z-index: -1;

/* Initial State: A full rectangle clip-path covering the border */
/* Using values slightly outside 0-100% ensures corners aren't clipped */
clip-path: polygon(0% -20%, 120% -20%, 120% 120%, 0% 120%);

/* Smooth easing for a drawing feeling */
transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5. The "Undo" Animation: Collapse all points to the top-right corner */
body.batch0-active #nav-batch0::before {
/* By setting all polygon points to the same top-right coordinate, 
   the shape collapses into that corner */
clip-path: polygon(100% 0%, 100% 0%, 100% 0%, 100% 0%);
}

/* 6. Hover state: No black fill, just slight fade */
#nav-batch0:hover {
background: transparent !important;
opacity: 0.7;
}

/* 7. Strip all lines and desktop underline animations */
#nav-batch0::after, 
#transition-line {
display: none !important;
content: none !important;
width: 0 !important;
opacity: 0 !important;
visibility: hidden !important;
}

/* 8. Active state cleanup for the main element */
body.batch0-active #nav-batch0 {
background: transparent !important;
border-color: transparent !important;
}
}

.apply-btn {
    font-family: var(--font-code);
    border: 1px solid var(--border-primary);
    padding: 10px 30px 10px 100px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: var(--bg-color);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: var(--text-primary);
}

.apply-btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); }


/*----------------------------------------------------------------------------------------------------*/


.live-indicator {
    position: relative;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    
    width: 0px;
    height: 10px;
    margin: 0; 
    opacity: 0; 
    transform: scale(0);
    
    vertical-align: middle; 
    bottom: 1px; 
    
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1),
                margin 1.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1.5s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.5s ease;
}

.live-indicator.is-live {
    width: 10px;
    margin: 0 6px 0 0; 
    opacity: 1;
    transform: scale(1);
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444; 
    border-radius: 50%;
    z-index: 2;
    flex-shrink: 0;
}

.live-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(239, 68, 68, 0.5);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}


.hero-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw; 
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.description-text {
    font-size: 1.2rem;
    max-width: 450px;
    margin-bottom: 2rem;
    margin-top: 6rem; 
    line-height: 1.5;
    font-weight: 200;
    opacity: 0; 
    animation: fadeIn 1s ease-out forwards 1s;
}


.dynamic-display {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
}


.title-wrapper {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease;
    opacity: 0; 
    animation: fadeIn 1.2s ease-out forwards 0.2s;
}

h1 {
    font-size: 166px; 
    line-height: 165px;
    letter-spacing: -0.01em;
    font-weight: 700;
    text-transform: lowercase;
    margin: 0;
    height: 330px; 
    white-space: pre-wrap; 
    display: block;
}

.cursor { display: none; }

.timer-wrapper {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    opacity: 0; 
    gap: 5rem;
    transition: opacity 0.8s ease;
}

.timer-line {
    width: 0px;
    height: 2px;
    background-color: var(--text-primary);
    margin-right: 1rem;
    margin-bottom: 45px; 
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(0);
}

.timer-line.draw-active { width: 600px; }
.timer-line.fast-draw {
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.timer-line.shifted { transform: translateX(16px); }

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1; 
}

.digit-row { display: flex; justify-content: center; gap: 0px; }

.ticker-wrapper {
    height: 7rem;
    width: 3.5rem; 
    overflow: hidden;
    position: relative;
    display: block;
    margin: 0 -2px;
    opacity: 0;
    transform: translateY(10px); 
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-wrapper.typed-visible {
    opacity: 1;
    transform: translateY(0);
}

.ticker-strip {
    display: flex;
    flex-direction: column;
    transform: translateY(-50%); 
    width: 100%;
}

.ticker-strip span {
    font-size: 7rem;
    font-weight: 700; 
    letter-spacing: -3px;
    line-height: 7rem;
    height: 7rem;
    display: block;
    text-align: center;
}

.time-block .label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300; 
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.time-block .label.typed-visible { opacity: 1; }

/* Bottom UI */
.bottom-ui {
    position: absolute;
    bottom: 6rem;
    left: 0;
    width: 100%;
    padding: 0 12rem;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    z-index: 50;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards 2s;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s infinite ease-in-out;
    color: var(--scroll-indicator);
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.pagination {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.pagination span {
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.pagination span:hover { color: var(--accent-red); }

.progress-bar {
    width: 50px;
    height: 3px;
    background: var(--progress-bar-bg);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar .fill {
    width: 50%;
    height: 100%;
    background: var(--progress-bar-fill);
    transition: width 0.5s ease;
}

.muted { color: var(--text-muted-num); }
.active-num { color: var(--text-active-num); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

@media (max-width: 1200px) {
    h1 { font-size: 7rem; line-height: 1; min-height: 160px; }
    .ticker-strip span { font-size: 5rem; line-height: 5rem; height: 5rem; }
    .ticker-wrapper { height: 5rem; width: 3.5rem; }
    .timer-wrapper { gap: 2rem; }
    .timer-line.draw-active { width: 100px; }
    .hero-container { padding: 0 12vw; } 
}

@media (min-width: 1200px) {
    h1 { font-size: 9rem; line-height: 1; min-height: 160px; }
    .ticker-strip span { font-size: 6rem; line-height: 5rem; height: 5rem;  }
    .ticker-wrapper { height: 5rem; width: 4rem; }
    .timer-wrapper { gap: 2rem; }
    .timer-line.draw-active { width: 200px; }
    .hero-container { padding: 2.5rem 12vw; } 
}

@media (max-width: 768px) {
    .navbar { padding: 1.5rem; margin-top: 1.5rem;}
    .description-text {font-size: 1rem; margin-top: 2rem;  }
    .hero-container { padding-top: 1rem;}
    .hero-container { padding: 0 1.5rem; }
    h1 { font-size: 4rem; line-height: 1; min-height: 80px; padding-top: 60px; }
    .timer-wrapper { gap: 1rem; }
    .ticker-strip span { font-size: 2.5rem; line-height: 2.5rem; height: 2.5rem; }
    .ticker-wrapper { height: 2.5rem; width: 1.8rem; }
    .timer-line { display: none; }
    .bottom-ui { padding: 0 1.5rem; margin-bottom: 5rem;}
    .dynamic-display { height: 200px; }
    .batch-pill { padding: 8px 24px; }
}



/* ---------------------------------------------------- */
/* --- AFTER HOURS SECTION (INTERACTIVE PAGE) --- */
/* ---------------------------------------------------- */



/* --- AFTER HOURS FLOATING BACKGROUND IMAGES --- */

    .floating-bg-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0; 
        pointer-events: none; 

    }

    .floating-img {
        position: absolute;
        max-width: 25vw;
        filter: brightness(0.7) contrast(1.5);
        pointer-events: none;
        border: none !important;    /* Removes standard CSS borders */
        outline: none !important;   /* Removes focus outlines */
        box-shadow: none !important;
    }

    .floating-img {
        height: auto !important;
        object-fit: contain !important;
    }

    @media (min-width: 786px) {
        .pos-1 {
            top: 10%;
            left: 5%;
            max-width: 400px;

        }
        .pos-2 {
            top: 35%;
            right: 5%;  
            max-width: 300px;                 
        }
        .pos-3 {
            top: 45%;
            left: 5%;
            max-width: 400px;
        }
        .pos-4 {
            top: 70%;
            left: 8%;
            max-width: 400px;
        }
        .pos-5 {
            top: 80%;
            right: 8%;
            max-width: 400px;
        }
    }

    @media (max-width: 786px) {
        .blog-content-wrapper {
            padding: 0 2.5rem; 
            max-width: 100%;
            box-sizing: border-box;
        }
        
        .blog-wrapper.page-active .content-left {
            padding: 0 2.5rem;
        }

        .floating-img {
            filter: grayscale(100%) brightness(0.8) contrast(1.2) !important;
            opacity: 0.5 !important;
            max-width: 50vw; 
        }
        .pos-1 {
            top: 15%;
            left: -15% !important; 
        }
        .pos-2 {
            top: 35%;
            right: -15% !important; 
        }
        .pos-3 {
            top: 55%;
            left: -10% !important;
        }
        .pos-4 {
            top: 80%;
            left: -20% !important;
        }
        .pos-5 {
            top: 90%;
            right: -10% !important;
        }
    }



.blog-wrapper {
    position: relative;
    width: 96vw;
    max-width: 1920px;
    margin: 0 auto; 
    cursor: pointer;
    border-radius: 40px; 
    overflow: hidden; 
    transform: translateZ(0); 
    z-index: 2; 
    
    transition: border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    background-color: #000; 
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.blog-wrapper.page-active {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0px !important;
    z-index: 9999; 
    cursor: default;
    transform: none !important; 
    overflow-y: auto; 
}

.section-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none;
}

.after-hours-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../images/background.png'); 
    background-size: cover;
    background-position: center center;
    filter: grayscale(100%) brightness(1) contrast(1.1); 
    transform: scale(1);
    transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 3s cubic-bezier(0.19, 1, 0.22, 1); 
}

.blog-wrapper:hover .after-hours-bg {
     transform: scale(1.05);
}

.blog-wrapper.page-active .after-hours-bg {
    filter: grayscale(100%) brightness(0.6) contrast(1.2); 
    transform: scale(1.3); 
    height: 120%; 
}

.back-button {
    position: fixed; 
    top: 30px; 
    right: 30px; 
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(10px);    
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;            
    padding: 8px 16px; 
    color: #fff;
    font-family: var(--font-code);
    font-size: 0.75rem; 
    text-transform: capitalize;
    letter-spacing: 0.5px;
    
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.back-button-arrow {
    width: 60px; 
    height: 8px; 
    overflow: visible;
    stroke: #fff;
    stroke-width: 0.5; 
    fill: none;
}

.back-button:hover, 
.back-button:active {
    background: rgba(0, 0, 0, 0.5); 
    border-color: rgba(255, 255, 255, 0.4);
}

.back-button:hover .back-button-arrow {
    transform: none; 
}

.blog-wrapper.page-active .back-button.visible {
    opacity: 1;
    pointer-events: auto;
}

.blog-wrapper.page-active .back-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.after-hours-section {
    position: relative;
    height: 96vh; 
    width: 100%; 
    border-radius: 0; 
    overflow: visible; 
    transition: height 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; 
    z-index: 10;

}

.blog-wrapper.page-active .after-hours-section {
     min-height: 50vh; 
     align-items: flex-end; 
     padding-bottom: 2rem;
     padding-top: 10vh;
}

.after-hours-content {
    position: relative;
    z-index: 2; 
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: flex-start; 
    width: 76vw; 
    max-width: 1600px; 
    height: 100%;
    padding-bottom: 4rem; 
    pointer-events: none; 
    transition: all 0.8s ease;

}

.blog-wrapper.page-active .after-hours-content {
    width: 100%;
    align-items: center; 
    padding-top: 0; 
    height: auto;
}

.content-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start;
    width: 100%;
    max-width: 1000px; 
    padding: 0 5vw;
    transition: all 0.8s ease;
}

.blog-wrapper.page-active .content-left {
    align-items: flex-start; 
    text-align: left;        
    max-width: 600px;        
    padding: 0;              
}

.after-hours-title {
    font-size: 13rem; 
    line-height: 0.8;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--section-text);
    margin: 0;
    margin-bottom: 1rem; 
    padding-top: 0.25rem; 
    transition: transform 0.6s ease, font-size 0.6s ease;
}

.blog-wrapper.page-active .after-hours-title {
    font-size: 6rem; 
    line-height: 0.9;
}

.after-hours-button {
    display: inline-flex;
    align-items: center;
    position: relative; 
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--section-text);
    background: transparent;
    border: 1px solid rgba(255,255,255, 0.4);
    padding: 12px 30px 12px 100px; 
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: padding 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
                border 0.3s ease,
                margin 0.6s ease; 
    margin-top: 2rem; 
    width: fit-content;
    min-width: 260px; 
    overflow: hidden; 
    pointer-events: auto; 
}

.after-hours-button.auto-active {
    padding: 12px 150px 12px 30px;
    border-color: rgba(255,255,255, 0.8);
}

.blog-wrapper.page-active .after-hours-button {
     margin-top: 2rem;
     margin-bottom: 2rem;
     padding: 12px 30px 12px 100px !important;
     border-color: rgba(255,255,255, 0.4);
}


.arrow-svg {
    position: absolute;
    right: 40px; 
    width: 100px; 
    height: 12px;
    overflow: visible;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.arrow-line {
    stroke: currentColor;
    stroke-width: 0.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100; 
    transition: stroke-dashoffset 0.6s ease; 
}

.arrow-head {
    stroke: currentColor;
    stroke-width: 0.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0;
    transition: opacity 0.3s ease; 
}

.after-hours-button.auto-active .arrow-svg {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}
.after-hours-button.auto-active .arrow-line {
    stroke-dashoffset: 0;
    transition-delay: 0.2s;
}
.after-hours-button.auto-active .arrow-head {
    opacity: 1;
    transition-delay: 0.7s; 
}

.blog-wrapper.page-active .arrow-svg {
    opacity: 0 !important;
    transform: translateX(20px);
}

.after-hours-caption {
    font-family: var(--font-main);
    color: var(--caption-text);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.02em;
    width: 100%; 
    max-width: 500px; 
    padding-left: 1.5rem; 
    position: relative;
    margin-top: 4rem; 
    z-index: 100;
    transition: opacity 0.3s ease;
}

.after-hours-caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px; 
    height: 100%; 
    background-color: rgba(255,255,255,0.6);
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.blog-wrapper.page-active .after-hours-caption {
    opacity: 0;
    pointer-events: none;
}

.blog-wrapper.page-active .after-hours-button {
    opacity: 0;
    pointer-events: none;
}

.char { opacity: 0; transition: opacity 0.05s ease; }
.char.visible { opacity: 1; }

.blog-article {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 10%, #000000 100%);
    width: 100%;
    height: 0; 
    opacity: 0; 
    overflow: hidden;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
    border-radius: 0;
    display: flex;
    justify-content: center;
    position: relative; 
    z-index: 5; 
}

.blog-wrapper.page-active .blog-article {
    height: auto; 
    min-height: 100vh;
    opacity: 1;
    transition-delay: 0.3s;
}

.blog-inner {
    width: 100%;
    padding: 0 0 6rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: auto; 
    min-height: 100vh;
}

.blog-content-wrapper {
    padding-left: 0; 
    position: relative;
    width: 100%;
    max-width: 600px; 
    height: 100%; 
    text-align: left; 
    padding-bottom: 2rem;
}

.blog-text {
    font-size: 0.95rem; 
    line-height: 1.8;
    font-weight: 300; 
    color: var(--text-muted); 
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(60px); 
    transition: opacity 0.8s ease-out 1.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s;
}

.blog-wrapper.page-active .blog-text {
    opacity: 1;
    transform: translateY(0);
}

.blog-image {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    margin: 3rem 0;
    display: block;
}

.builders-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem; 
    padding: 0 5vw; 
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out 1.4s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.blog-wrapper.page-active .builders-section {
    opacity: 1;
    transform: translateY(0);
}

.builders-header-group {
    width: 100%;
    max-width: 600px; 
    text-align: left;
    margin-bottom: 2rem;
}

.builders-title {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.builders-pill {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 20px 6px 60px; 
    border-radius: 50px; 
    color: var(--caption-text);
    margin-top: 1rem;
}

.builders-grid {
    display: flex; 
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.builders-grid::-webkit-scrollbar {
    display: none;
}

.builder-box {
    min-width: 300px; 
    flex-shrink: 0;  
    width: 20%;       
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    aspect-ratio: 1/1; 
    position: relative; 
    overflow: hidden;
    scroll-snap-align: start;
}

.builder-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;    
}

.footer-text {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 4rem;
    padding-bottom: 2rem; 
    text-align: left;
}

.footer-link-container {
    width: 100%;
    max-width: 1200px;      
    padding: 0 10vw 6rem 5vw; 
    text-align: left;       
    opacity: 0;
    transform: translateY(60px);
    

    position: relative; 
    z-index: 999;     
    pointer-events: none;
}


.blog-wrapper.page-active .footer-link-container.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 30;
}

.footer-embed-link {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 30;
    position: relative; 
    pointer-events: auto;
}

.footer-embed-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    padding-left: 10px;
}

.arrow-icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.footer-embed-link:hover .arrow-icon {
    transform: translate(3px, -3px);
}

.blog-wrapper.page-active #cta-button {
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 12px 30px 12px 30px !important; 
    display: flex;
    justify-content: center;
}

.blog-wrapper.page-active #cta-button:hover {
    padding-left: 30px !important;  
    padding-right: 150px !important;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.blog-wrapper.page-active #cta-button:hover .arrow-svg {
    opacity: 1 !important;
    transform: translateX(0) !important;
    right: 40px !important; 
}

.blog-wrapper.page-active #cta-button:hover .arrow-line {
    stroke-dashoffset: 0 !important;
    transition: stroke-dashoffset 0.6s ease 0.2s;
}

.blog-wrapper.page-active #cta-button:hover .arrow-head {
    opacity: 1 !important;
    transition: opacity 0.3s ease 0.7s;
}

@media (max-width: 786px) {
    .apply-btn {
        display: none !important;
    }

    .nav-right {
        gap: 2rem; 
        justify-content: flex-end;
        flex: 1; 
    }
}

@media (max-width: 768px) {
    .footer-link-container {
        padding-left: 2rem; 
        padding-right: 2rem;
    }
}

@media (min-width: 768px) {
    .after-hours-title { font-size: 9rem; }
}

@media (max-width: 768px) {
    .after-hours-section { 
        height: 85vh; 
        align-items: flex-end; 
        padding-bottom: 2rem;
    }
    .blog-wrapper { width: 90vw; border-radius: 20px; }
    .after-hours-content { justify-content: flex-end; width: 100%; padding: 0 2rem 4rem 2rem; }
    .after-hours-title { font-size: 5rem; }
    .blog-wrapper.page-active .after-hours-title { font-size: 5rem; }
    
    .after-hours-button {
        font-size: 0.65rem;
        padding: 12px 30px; 
        margin-top: 2rem; 
        min-width: 260px; 
    }
    .after-hours-button.auto-active { margin-top: 1rem; padding: 12px 150px 12px 30px; min-width: auto; }
    
    .after-hours-caption { padding-left: 1rem; font-size: 0.8rem; }
    .blog-wrapper.page-active .blog-article { max-height: 500vh; }
    .blog-content-wrapper { padding: 0 2rem; max-width: 100%; }
    .blog-wrapper.page-active .content-left { padding: 0 3rem; }
    
    .builders-header-group { padding: 0 2rem; }
    .signup-header-inner { padding: 0 2rem; } 
    .footer-text { padding: 0 2rem 4rem 2rem; }

    .builders-grid { 
        gap: 1rem;
        padding-left: 2rem; 
        padding-right: 2rem;
    }
    
    .builder-box {
        min-width: 0;
        width: 70vw; 
    }
}

/* ---------------------------------------------------- */
/* --- CAROUSEL SECTION --- */
/* ---------------------------------------------------- */
.carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    
    /* --- CRITICAL FOR STABILITY --- */
    overflow: hidden; 
    
    margin-top: 3rem;
    
    /* Blur fade at edges for smooth start/end */
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,1) 8%, 
        rgba(0,0,0,1) 92%, 
        rgba(0,0,0,0) 100%);
}

.curved-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    height: 100vh; 
    width: 600px; 
    z-index: 20; 
}

.menu-item {
    position: absolute;
    left: 0;
    top: 50%;
    transform-origin: 0% 50%;
    
    white-space: nowrap;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    opacity: 1; 
    
    backface-visibility: hidden; 
    -webkit-font-smoothing: antialiased;
    pointer-events: auto; 

    /* --- FIX FOR GLITCH --- */
    min-width: 400px; /* Forces the hit-box to stay large */
    text-align: left; /* Keeps text anchored to the left */
}

.menu-item:hover,
.menu-item.force-hover,
.menu-item.active-state { 
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
}

.preview-box {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    
    background-color: var(--preview-box-bg);
    pointer-events: none; 
    z-index: 25; 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    width: 26vw; 
    height: 20vw; 
    
    transition: 
        top 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
        left 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease,
        transform 0.4s ease;
}

.preview-box.show {
    opacity: 1;
    transform: scale(1);
}

#box-2 {
    background-color: var(--preview-box-bg-alt);
    z-index: 24;
}

.trigger-zone {
    position: absolute;
    left: 0;
    width: 400px; 
    height: 12vh; 
    z-index: 30; 
}
.trigger-zone.top { top: 0; }
.trigger-zone.bottom { bottom: 0; }

@media (max-width: 768px) {
    .curved-menu {
        transform: scale(0.75);
        transform-origin: 0% 50%;
        left: -25%; 
        width: 100%;
        top: -20px;
    }

    .preview-box {
        width: 50vw !important; 
        height: 40vw !important;
    }
}

.page-wrapper {
    padding: 0 5vw;
    max-width: 1920px;
    margin: 0 auto;
}


@keyframes float { 
    0%, 100% { transform: translate(-50%, 0); } 
    50% { transform: translate(-50%, 10px); } 
}


.-after {
    margin-top: 10rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10vw; 
    box-sizing: border-box; 
}
@media (max-width: 768px) {
    .-after {
        padding: 0 5vw; 
    }
}

.signup-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    width: 100%;
}

.signup-left {
    flex: 1;
    max-width: 600px;
}

.signup-title {
    font-size: 4rem; 
    font-weight: 700;
    margin-bottom: 6rem;
    letter-spacing: -0.5px;
    min-height: 1.2em; 
    width: 100%;                  
    display: flex;                
    justify-content: flex-start;  
    text-align: left;             
    height: auto;                 
    margin-left: 0;               
    margin-right: 0;
}

.signup-form {
    width: 100%;
}

.input-group {
    margin-bottom: 4rem;
}

.input-field {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-primary);
    padding: 10px 0;
    font-family: var(--font-code);
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: var(--text-color);
    border-radius: 0;
}

.input-field::placeholder {
    color: var(--text-subtle);
    font-weight: 300;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--icon-grey); 
    display: flex;
    align-items: center;
    transition: color 0.3s ease; 
}

.social-icon:hover,
.social-icon:active {
    color: var(--accent-red); 
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--border-primary);
    padding: 12px 30px 12px 100px;
    border-radius: 50px;
    font-family: var(--font-code);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    color: var(--text-primary);
}

.submit-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
}

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 0px; 
    
}

.footer-logo {
    height: 130px; 
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end; 
    margin-right: -10px;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    pointer-events: auto !important;
    
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 200; 
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--text-color);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.contact-link {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    margin-bottom: 20px;
}

.logo-img {
    height: 100%;
    width: auto; 
    display: block;
}

/* --- RESPONSIVE ADJUSTMENTS (FOOTER/SIGNUP) --- */
@media (max-width: 1200px) and (min-width: 769px) {
    .signup-container { gap: 2rem; }
    .signup-title { font-size: 3.5rem; margin-bottom: 4rem; }
    .input-group { margin-bottom: 2rem; }
    .input-field { font-size: 0.9rem; padding: 8px 0; }
    .submit-btn { padding: 10px 20px 10px 70px; font-size: 0.8rem; }
    .social-icon { font-size: 1.2rem; }
    .legal-links a { font-size: 0.8rem; }
    .copyright { font-size: 0.7rem; }
    .footer-logo { height: 100px; margin-right: -10px;}
}

@media (max-width: 768px) {
    .signup-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem; 
    }
    
    .signup-left, .footer-right {
        width: 100%;
        max-width: 100%;
    }

    .signup-title {
        font-size: 3.4rem; 
        font-weight: 700;
        margin-bottom: 10rem;
        letter-spacing: -0.5px;
        min-height: 1.2em; 
    }

    
    .form-footer {
        flex-direction: column-reverse;
        gap: 2rem;
        align-items: flex-end; 
    }

    .social-links {
        justify-content: center;
    }
    .social-icon:active {
        color: var(--accent-red);
    }

    .submit-btn {
        width: auto; 
        padding: 12px 25px 12px 80px; 
        text-align: center;
        font-size: 0.9rem;


        
    }

    .social-icon {
        font-size: 1.3rem; 
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-logo {
        height: 90px;
        margin-bottom: 1rem;
        margin-left: -10px;
    }

    body.legal-active #nav-legal.stay-visible {
        /* Matches the 2rem padding of your text container */
        margin-left: 10px !important; 
        
        /* Ensures it respects the left edge */
        display: inline-block !important;
        
        /* Optional: Adds a bit of breathing room at the very bottom */
        margin-bottom: 2rem !important; 
    }
}

    .subpage-wrapper#page-legal {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-surface);
        z-index: 99999;
        clip-path: inset(100% 0 0 0); 
        transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
        visibility: hidden;
        overflow-y: auto;
        pointer-events: none;
    }

    body.legal-active #page-legal {
        visibility: visible;
        pointer-events: auto;
        clip-path: inset(0 0 0 0);
    }

    body.legal-active .-after {
        z-index: 100001 !important; 
        position: relative; 
        transform: none !important; 
        will-change: auto !important;
    }

    body.legal-active .signup-container,
    body.legal-active .footer-right,
    body.legal-active .legal-links {
        transform: none !important;
        z-index: auto !important;
        position: static !important;
    }

    body.legal-active #nav-legal.stay-visible {
        position: relative !important; 
        bottom: auto !important;
        right: auto !important;
        
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 100002 !important; 
        color: var(--accent-red) !important;
        font-weight: 600 !important;
        background: transparent !important;
    }


    body.legal-active .footer-logo,
    body.legal-active #footer-about,
    body.legal-active .contact-link,
    body.legal-active .copyright,
    body.legal-active .signup-left,
    body.legal-active .navbar {
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease;
    }

    .subpage-inner.legal-inner {
        min-height: 100vh; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        padding: 15vh 5vw;
    }

    .subpage-content-wrapper.legal-content {
        max-width: 600px; 
        padding: 0 2rem;
        text-align: left;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.legal-active .subpage-content-wrapper.legal-content {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    .legal-title {
        font-size: 3rem;
        color: var(--text-primary);
        margin-top: 0;
        margin-bottom: 5rem; 
        text-transform: none;
    }

    .legal-subtitle {
        font-family: var(--font-code); 
        font-size: 0.75rem; 
        color: var(--accent-red); 
        margin-bottom: 1.5rem; 
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 3rem;
    }

    .legal-subtitle:first-child {
        margin-top: 0;
    }

    .legal-paragraph {
        font-size: 0.95rem;
        line-height: 1.8;
        color: var(--text-body-secondary);
        margin-bottom: 2rem;
    }

    @media (max-width: 768px) {
        .legal-title {
            font-size: 2.5rem;
            margin-bottom: 3rem;
        }
    }

/* ---------------------------------------------------- */
/* --- THEME TOGGLE BUTTON --- */
/* ---------------------------------------------------- */

.theme-toggle {
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 0;
    text-transform: lowercase;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.6;
}

body.batch0-active .theme-toggle,
body.about-active .theme-toggle,
body.legal-active .theme-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}

@media (max-width: 786px) {
    .theme-toggle {
        display: none !important;
    }
}

/* ---------------------------------------------------- */
/* --- FLASH MESSAGE (moved from inline styles) --- */
/* ---------------------------------------------------- */

.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--flash-bg);
    color: var(--flash-text);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 10000;
    border-radius: 8px;
}

/* ---------------------------------------------------- */
/* --- DARK MODE SPECIFIC OVERRIDES --- */
/* ---------------------------------------------------- */

[data-theme="dark"] .logo-img {
    filter: brightness(0.85);
}

[data-theme="dark"] .blog-wrapper {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] #page-batch0 .floating-img {
    display: none !important;
}

[data-theme="dark"] .grain {
    opacity: 0.3;
}

