/* Variables specific to the Orbit Mechanics */
:root {
    --spine-x: 50%;      
    --logo-y: 45%;      
    --logo-size: clamp(160px, 15vw, 320px);  
}

/* Special Page Layout */
body {
    overflow: hidden;
}

.site-wrapper {
    display: grid;
    grid-template-columns: 50% 50%; 
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* THE SPINE & LOGO */
.central-logo {
    position: absolute;
    left: var(--spine-x);
    top: var(--logo-y);
    transform: translate(-50%, -50%);
    width: var(--logo-size);
    z-index: 100; 
}

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

.constellation-region {
    flex: 1;
	position: relative;
    height: 100vh;
	top: 0;
	left: 0;
}

.info-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5vh 5vw;
    height: 100%;
    z-index: 10;
    align-items: flex-end; 
    text-align: right;
}

/* Override Pane sizing for the Hero Page specifically */
.content-pane {
    height: 45vh; 
    width: 90%;
    max-width: 37.5rem;
    align-self: flex-end;
}

/* ORBITER STYLING */
.orbiter {
    position: absolute;
	display: flex;
    width: 5rem;  
    height: 5rem;
    background-color: var(--copper-light);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 100; 
}

#orbiter-resources {
    top: 10%;
    left: 75%;
}

#orbiter-youtube {
    top: 30%;
    left: 30%;
}

#orbiter-about {
    top: 65%;
    left: 20%;
}

#orbiter-class {
    top: 80%;
    left: 55%;
}

.orbiter svg {
    width: 60%;  
    height: 60%;
}

.stencil-icon {
    fill: var(--bg-color); 
}

.orbiter:hover {
    transform: scale(1.15); 
    background-color: #f3cf9a; 
    box-shadow: 0 0 20px var(--copper-light); 
}

.orbiter:focus {
    outline: none;
    filter: drop-shadow(0 0 10px #fff);
    transform: scale(1.1);
}

/* BALLOON STRINGS & PULSES */
.connector-resources {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    -webkit-mask-image: radial-gradient(circle at var(--spine-x) var(--logo-y), transparent calc(var(--logo-size) / 2), black calc(var(--logo-size) / 2));
    mask-image: radial-gradient(circle at var(--spine-x) var(--logo-y), transparent calc(var(--logo-size) / 2), black calc(var(--logo-size) / 2));
}

.balloon-string {
    stroke: var(--copper-dark);
    stroke-width: 6;
    stroke-linecap: round;
    opacity: 0.6;
    transition: all 0.1s linear;
}

.balloon-string-pulse {
    stroke: var(--copper-flare);
    stroke-width: 10;
    stroke-linecap: round;
    opacity: 0.6;
    transition: all 0.1s linear;
    stroke-dasharray: 15 1000;   
    animation: electric-pulse 6s linear infinite;   
    filter: drop-shadow(0 0 2px rgba(184, 115, 51, 0.5));
}

@keyframes electric-pulse {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* MOBILE CODE */

@media (max-width: 768px) {
    body {
        overflow-y: auto !important; /* Force scrollability */
        height: auto;
    }

    .site-wrapper {
        display: flex;
        flex-direction: column;
        height: auto; 
    }

    /* 1. Hide the Strings */
    .connector-resources {
        display: none !important;
    }

    /* 2. Reset Logo */
    .central-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 11.25rem; /* Fixed size is more stable on phones */
        margin: 30px auto;
        z-index: 10;
    }

    /* 3. Stack Orbiters */
    .constellation-region {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 20px;
		top: auto;
		left: auto;
    }

    .orbiter {
        position: static !important; /* Force static to prevent bunching */
        width: 4.4rem;
        height: 4.4rem;
        margin: 5px;
    }

    /* 4. Center the Text & Pane */
    .info-stack {
        height: auto;
        padding: 20px;
        align-items: center !important; /* Centers the Pane */
        text-align: center !important;  /* Centers Title/Tagline */
    }

/* Force the Headline and Tagline to center and resize */
    .site-name {
        text-align: center;
        width: 100%;
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .site-tagline {
        text-align: center;
        width: 100%;
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .content-pane {
        width: 95%;
        max-width: none;
        height: auto;
        min-height: 18.8rem;
        margin: 20px auto 50px auto;
        align-self: center;
    }

    #pane-image {
        max-width: 90% !important; /* Make image visible */
    }
}