:root {
    /* UT Colors */
    --ut-orange: #FF8200;
    --ut-smokey: #58595B;
    --ut-white: #FFFFFF;

    /* Dark Theme Palette */
    --bg-dark: #050a14; /* Deep space blue/black */
    --bg-band-alt: #0d1a33; /* Slightly lighter dark for banded layout */

    /* Unified Glassmorphism Design Tokens */
    --glass-bg: rgba(10, 20, 40, 0.7); /* Slightly more opaque for better legibility */
    --glass-border: rgba(255, 130, 0, 0.25); /* Sharpened border */
    --glass-blur: 12px; /* Optimized for performance */
    --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    --bg-card: var(--glass-bg); /* Legacy support */
    --bg-overlay: rgba(5, 10, 20, 0.85); /* Navbar/Overlay */

    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-tech: rgba(255, 130, 0, 0.4); /* Slightly more visible tech border */

    /* Shadows & Glows */
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --glow-orange: 0 0 15px rgba(255, 130, 0, 0.3);
    --glow-text: 0 0 10px rgba(255, 255, 255, 0.2);

    /* Fonts */
    --font-main: 'Roboto', sans-serif;
    --font-tech: 'Share Tech Mono', monospace; /* Retro Terminal / Matrix feel */

    /* Z-Index Scale */
    --z-spaceship: 50;
    --z-menu-overlay: 990;
    --z-mobile-nav: 999;
    --z-navbar: 1000;
    --z-navbar-toggle: 1001;
    --z-game-overlay: 9000;
    --z-game-ui: 9100;
    --z-game-modal: 9200;
    --z-game-controls: 9300;
    --z-lightbox: 9500;
    --z-lightbox-controls: 9600;
}

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

/* UI Normalization */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

button {
    appearance: button;
    -webkit-appearance: button;
    background: transparent;
    border: none;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Firefox text fix */
    padding-top: 70px; /* Compensate for fixed navbar */
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--ut-orange);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:visited {
    color: var(--ut-orange);
}

a:hover {
    color: var(--ut-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Background Effects (Astrophotography/Physics Grid) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Tech Grid - Subtle */
    background-image:
        linear-gradient(rgba(255, 130, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 130, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    transform: translateZ(0); /* Promote to compositor layer */
}


/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-navbar);
    border-bottom: 1px solid var(--border-tech);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: padding 0.3s ease;
    transform: translateZ(0); /* Hardware acceleration */
}

.logo a {
    text-decoration: none;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    font-weight: 400;
    color: var(--ut-orange);
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: var(--glow-orange);
}

.desktop-logo { display: inline; }
.mobile-logo { display: none; }

.navbar-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar-links a {
    text-decoration: none;
    color: var(--ut-white);
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--ut-orange);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--ut-orange);
}

.navbar-links a:hover {
    color: var(--ut-orange);
}

.navbar-links a:hover::after {
    width: 100%;
}

.toggle-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: var(--z-navbar-toggle);
}

.toggle-button .bar {
    height: 2px;
    width: 100%;
    background-color: var(--ut-orange);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(255, 130, 0, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh; /* slightly taller */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    /* Optimization */
    contain: layout style paint;
}

/* Base Gradient Layer */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Dithered gradient to prevent banding on HDR */
    background: radial-gradient(circle at center, rgba(255, 130, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero h1 {
    font-family: var(--font-tech);
    font-size: clamp(2.2rem, 8vw, 5rem); /* Lower min size for small mobile */
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--ut-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    letter-spacing: -1px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero h2 {
    font-family: var(--font-tech);
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 2rem;
    color: var(--ut-white);
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero p.hero-at {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    margin: 1rem auto;
    color: var(--ut-orange);
    opacity: 0.8;
    width: 100%;
    text-align: center;
}

.hero p {
    font-family: var(--font-tech);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 3rem;
    color: var(--text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.cta-button, .cta-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background-color: rgba(255, 130, 0, 0.1);
    color: var(--ut-orange);
    text-decoration: none;
    border: 1px solid var(--ut-orange);
    border-radius: 4px;
    font-weight: 400;
    font-family: var(--font-tech);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(255, 130, 0, 0.1);
}

.cta-button:focus-visible {
    outline: 2px solid var(--ut-orange);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 130, 0, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--ut-orange);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    color: #000;
    box-shadow: 0 0 25px rgba(255, 130, 0, 0.4);
    border-color: var(--ut-orange);
    text-shadow: none;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--ut-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button.secondary::before {
    background: var(--ut-white);
}

.cta-button.secondary:hover {
    color: #000;
    border-color: var(--ut-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Cards (Glassmorphism + Tech Borders) */
.features-grid, .team-grid, .past-fellows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    container-type: inline-size; /* Enable Container Queries */
}

/* Single Card Centering */
.single-card-center {
    display: flex;
    justify-content: center;
    padding: 2rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.single-card-center .past-fellow-card {
    width: 100%;
    max-width: 450px;
}

.feature-card, .team-member, .past-fellow-card {
    background: var(--glass-bg);
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    /* Performance Optimization */
    contain: layout paint;
    transform: translateZ(0); /* Promote to compositor layer */
}

/* Container Query for Cards */
@container (max-width: 400px) {
    .feature-card, .team-member, .past-fellow-card {
        padding: 1.5rem; /* Reduced padding on small containers */
    }

    .feature-card h3, .team-member h2, .past-fellow-card h3 {
        font-size: 1.3rem;
    }
}

/* Corner Accents */
.feature-card::before, .team-member::before, .past-fellow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--ut-orange);
    border-left: 2px solid var(--ut-orange);
    border-top-left-radius: 4px;
    transition: all 0.3s ease;
}

.feature-card::after, .team-member::after, .past-fellow-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--ut-orange);
    border-right: 2px solid var(--ut-orange);
    border-bottom-right-radius: 4px;
    transition: all 0.3s ease;
}

.feature-card:hover, .team-member:hover, .past-fellow-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(255, 130, 0, 0.25),
                0 0 60px rgba(255, 130, 0, 0.08);
    border-color: var(--ut-orange);
}

.feature-card:hover::before, .feature-card:hover::after {
    width: 30px;
    height: 30px;
}

.feature-card p {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.feature-card:hover p {
    color: var(--ut-white);
}

/* Card Link Overlay Pattern */
.relative-link-container {
    position: relative;
}

.card-main-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.app-links {
    position: relative;
    z-index: 2; /* Sit on top of the overlay */
    margin-top: 1.5rem;
    font-family: var(--font-tech);
    font-size: 0.85rem;
}

.app-links a {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-tech);
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--ut-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-links a:hover {
    background: var(--ut-orange);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 130, 0, 0.4);
}

.feature-card h3, .team-member h2, .past-fellow-card h3 {
    color: var(--ut-orange);
    margin-bottom: 1.2rem;
    font-family: var(--font-tech);
    font-weight: 400;
    font-size: 1.5rem; /* Slight bump for legibility */
    letter-spacing: 0.5px;
}

.fellow-class-year {
    font-size: 0.9em;
    color: var(--text-muted);
    font-family: var(--font-tech);
}

/* Images */
.image-placeholder, .image-placeholder-small {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--ut-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-tech);
    border: 1px dashed rgba(255, 130, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.image-placeholder:hover, .image-placeholder-small:hover {
    border-color: var(--ut-orange);
    background-color: rgba(255, 130, 0, 0.05);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    margin-bottom: 1.5rem;
}

.image-placeholder.profile-fallback {
    height: auto;
    aspect-ratio: 3/4;
}

.image-placeholder-small {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

img.profile-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 130, 0, 0.3);
    border-radius: 4px;
    transition: all 0.5s ease;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    /* Smooth out downscaling artifacts on high-res images */
    filter: blur(0.2px);
    transform: translateZ(0); /* Force GPU compositing */
}

img.profile-image:hover {
    border-color: var(--ut-orange);
    box-shadow: 0 0 15px rgba(255, 130, 0, 0.2);
}

.chatt-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.chatt-photo:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: scale(1.01); /* Subtle lift */
}

/* Photo Credits */
.photo-container {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.photo-credit {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-container:hover .photo-credit {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
    border-color: var(--ut-orange);
    color: var(--ut-orange);
}

/* Page Headers */
.page-header {
    position: relative;
    text-align: center;
    padding: 8rem 2rem 2rem;
    /* Optimization */
    contain: layout;
}

.page-header h1 {
    font-family: var(--font-tech);
    font-weight: 400;
    color: var(--ut-orange);
    font-size: clamp(2rem, 5vw, 3.8rem); /* Lower min size */
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 130, 0, 0.3);
    display: inline-block;
    position: relative;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
}

/* Secondary Header Size */
.page-header.secondary h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    opacity: 0.9;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ut-orange);
    box-shadow: 0 0 10px var(--ut-orange);
    transition: width 0.3s ease;
}

.page-header:hover h1::after {
    width: 120px;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-tech);
    border-radius: 4px;
    margin-bottom: 6rem;
    backdrop-filter: blur(5px); /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--glass-shadow);
    /* Performance */
    content-visibility: auto;
    contain-intrinsic-size: 1000px; /* Estimate */
}

.page-content h2 {
    color: var(--ut-orange) !important;
    font-family: var(--font-tech);
    font-weight: 400;
    border-left: 4px solid var(--ut-orange);
    padding-left: 1.5rem;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.page-content h3 {
    color: var(--ut-white);
    font-family: var(--font-tech);
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto; /* Release memory after animation */
}

/* Footer */
footer {
    background-color: rgba(5, 5, 5, 0.95);
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--ut-orange);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

footer p { margin: 0; }

.footer-nav {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-nav a:hover {
    color: var(--ut-orange);
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile Responsiveness - Navbar Breakpoint increased to 1200px */
@media (max-width: 1200px) {
    .desktop-logo { display: none !important; }
    .mobile-logo { display: inline !important; }

    .logo a {
        font-size: 1.2rem;
    }

    .navbar-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(5, 10, 20, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--ut-orange);
        padding: 1rem 0;
        z-index: var(--z-mobile-nav);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .navbar-links.active {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .navbar-links ul {
        flex-direction: column;
        gap: 0;
    }

    .navbar-links li {
        text-align: center;
        width: 100%;
    }

    .navbar-links li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-links a::after { display: none; }

    .toggle-button {
        display: flex;
    }
}

/* Tablet/Mobile Content Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero h2 { font-size: 1.2rem; }

    .hero { min-height: 70vh; }

    .page-content { padding: 1.5rem; }

    /* Hide Table Section Column on Mobile */
    .col-section {
        display: none;
    }

    .score-radio-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .score-radio-group {
        display: flex; /* Revert to flex for mobile */
        flex-wrap: nowrap !important;
        gap: 2px;
        justify-content: flex-start;
        width: auto;
    }

    .score-radio-label:nth-child(n) { grid-column: auto; } /* Reset grid columns */

}

/* Small Mobile Fix for Cards */
@media (max-width: 480px) {
    .features-grid, .team-grid, .past-fellows-grid {
        grid-template-columns: 1fr;
        padding: 3rem 1rem; /* Reduce padding to give content more room */
    }
}

/* Page List Spacing */
.page-content ul, .page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.8rem;
    position: relative;
}

.page-content ul li::marker {
    color: var(--ut-orange);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-menu-overlay);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Resources & Tool Styling */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--ut-orange);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tech-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.tech-input:focus {
    border-color: var(--ut-orange);
    background-color: rgba(255, 130, 0, 0.05);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.1);
}

/* Custom Select & Date */
select.tech-input, input[type="date"].tech-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FF8200%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8rem;
}

/* Hide native date picker icon to prevent overlap with custom arrow */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

select.tech-input option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Scoring Radio Buttons */
.score-radio-group {
    display: grid;
    grid-template-columns: repeat(4, 38px); /* 4 columns of fixed width buttons */
    gap: 12px;
    justify-content: end; /* Align the entire grid to the right */
    width: 100%;
}

.score-radio-label {
    cursor: pointer;
    display: flex;
    justify-content: center;
}

/*
   Grid Placement Logic:
   Child 1 (0): Column 1
   Child 2 (1): Column 2
   Child 3 (2/3): Column 3
   Child 4 (5): Column 4
*/

.score-radio-label:nth-child(1) { grid-column: 1; }
.score-radio-label:nth-child(2) { grid-column: 2; }
.score-radio-label:nth-child(3) { grid-column: 3; }
.score-radio-label:nth-child(4) { grid-column: 4; }

.score-radio-label input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.score-radio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-radio-label input[type="radio"]:checked + .score-radio-btn {
    background-color: var(--ut-orange);
    color: #000;
    border-color: var(--ut-orange);
    box-shadow: 0 0 15px rgba(255, 130, 0, 0.4);
    transform: scale(1.1);
}

.score-radio-label:hover .score-radio-btn {
    border-color: var(--ut-orange);
    color: var(--ut-white);
}

/* Tables */
.tech-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-table th {
    background-color: rgba(255, 130, 0, 0.15);
    color: var(--ut-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--ut-orange);
    padding: 1rem;
    text-align: left;
    font-weight: 400;
    font-family: var(--font-tech);
}

.tech-table td {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.5rem;
    vertical-align: middle;
}

.tech-table th:nth-child(2) {
    width: 45%;
}

.tech-table th:last-child, .tech-table td:last-child {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.tech-table tr:hover td {
    background-color: rgba(255, 130, 0, 0.05);
}

/* Utilities */
.vignette-box {
    background: linear-gradient(90deg, rgba(255, 130, 0, 0.1), transparent);
    border-left: 4px solid var(--ut-orange);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--ut-white);
}

.grand-total-row {
    font-size: 2rem;
    border-top: 2px solid var(--ut-orange);
    padding-top: 1rem;
    margin-top: 2rem;
}

.random-case-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    background-color: rgba(255, 130, 0, 0.1);
    color: var(--ut-orange);
    border: 1px solid var(--ut-orange);
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(255, 130, 0, 0.1);
}

.random-case-btn:hover {
    background-color: var(--ut-orange);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 130, 0, 0.4);
}

/* Scoring Grid */
.scoring-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .scoring-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Flex Row for Labels */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.label-row label {
    margin-bottom: 0;
}

.label-row .random-case-btn {
    margin-bottom: 0;
}

.print-hide { display: block; }
@media print { .print-hide { display: none !important; } }

/* Asteroids Game Styles */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-game-overlay);
    background-color: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
}

.game-overlay canvas {
    border: 1px solid var(--ut-orange);
    box-shadow: 0 0 30px rgba(255, 130, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.8);
    max-width: 100%;
    max-height: 100%;
}

.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    font-family: var(--font-tech);
    color: var(--ut-orange);
    font-size: 1.5rem;
    z-index: var(--z-game-ui);
}

.game-controls-hint {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.close-game-btn {
    pointer-events: auto;
    background: none;
    border: none;
    color: var(--ut-orange);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-game-btn:hover {
    opacity: 1;
}

.game-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-game-modal);
    background: var(--bg-card);
    padding: 3rem;
    border: 1px solid var(--ut-orange);
    border-radius: 4px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 130, 0, 0.2);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-height: 700px) {
    .game-modal {
        padding: 1.5rem;
    }
    .difficulty-buttons {
        margin: 1rem 0;
        gap: 0.5rem;
    }
    .game-modal h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    .game-modal p {
        margin-bottom: 1rem !important;
    }
    .cta-button {
        padding: 10px 24px;
    }
}

@keyframes modalPop {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.game-modal h2 {
    font-family: var(--font-tech);
    font-weight: 400;
    color: var(--ut-white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 130, 0, 0.5);
}

.final-score {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-tech);
    color: var(--text-muted);
}

.ut-orange { color: var(--ut-orange); }

.highscore-table {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 130, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

.highscore-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-tech);
}

.highscore-table th {
    text-align: left;
    color: var(--ut-orange);
    border-bottom: 1px solid rgba(255, 130, 0, 0.3);
    padding: 0.5rem;
}

.highscore-table td {
    padding: 0.5rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-rank td {
    color: var(--ut-white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.new-highscore-input input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--ut-orange);
    color: var(--ut-orange);
    padding: 0.8rem;
    width: 100%;
    margin-bottom: 1rem;
    font-family: var(--font-tech);
    text-align: center;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Difficulty Buttons */
.difficulty-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.difficulty-buttons .cta-button {
    width: 100%;
}

.close-game-btn-start {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.diff-select-text {
    margin-bottom: 2rem;
}

/* Game Touch Controls */
.game-touch-controls {
    display: none; /* Hidden on desktop */
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-game-controls);
    /* Grid Layout for D-Pad (Cross with center gap) */
    grid-template-columns: 60px 60px 60px;
    grid-template-rows: 60px 60px 60px;
    gap: 0px; /* Tight spacing for a cohesive cross shape */
    pointer-events: auto; /* Ensure clickable */
}

/* Specific button positioning within the 3x3 grid */
.dpad-btn.up { grid-column: 2; grid-row: 1; }
.dpad-btn.left { grid-column: 1; grid-row: 2; }
.dpad-btn.right { grid-column: 3; grid-row: 2; }
.dpad-btn.down { grid-column: 2; grid-row: 3; }

.dpad-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--ut-orange);
    border-radius: 8px; /* Square with rounded corners for PS1 look */
    color: var(--ut-orange);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.1s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    box-shadow: 0 0 15px rgba(255, 130, 0, 0.3), inset 0 0 10px rgba(255, 130, 0, 0.1);
    text-shadow: 0 0 10px var(--ut-orange);
    cursor: pointer;
}

.dpad-btn:active {
    background: rgba(255, 130, 0, 0.2);
    color: var(--ut-white);
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 130, 0, 0.6), inset 0 0 20px rgba(255, 130, 0, 0.4);
}

/* Asteroids Mobile Control Bar (New Layout) */
.game-control-bar {
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--border-tech);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 120px; /* Fixed height for space reservation */
    width: 100%;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    z-index: var(--z-game-controls);
}

/* Red Techy Thrust Button */
.game-control-bar .dpad-btn.thrust {
    width: auto;
    min-width: 140px;
    height: 60px;
    border-radius: 4px;
    border: 2px solid #FF4500;
    color: #FF4500;
    background: rgba(255, 69, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3), inset 0 0 10px rgba(255, 69, 0, 0.1);
    font-family: var(--font-tech);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.8);
    grid-column: auto;
    grid-row: auto;
    animation: none;
}

.game-control-bar .dpad-btn.thrust::after {
    content: none;
}

.game-control-bar .dpad-btn.thrust:active {
    background: rgba(255, 69, 0, 0.3);
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.6);
    transform: translateY(2px);
}

/* Asteroids Touch Controls Split Layout */
.asteroids-mobile-controls {
    justify-content: space-between;
    padding-left: 40px;
    padding-right: 40px;
}

.asteroids-mobile-controls .controls-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Mobile/Touch Adjustments */
@media (hover: none) and (pointer: coarse), (max-width: 1024px) {
    .game-touch-controls {
        display: grid;
    }

    .game-controls-hint {
        display: none; /* Hide keyboard hint on mobile */
    }

    /* Adjust canvas layout for mobile */
    .game-overlay {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px; /* Space for HUD */
    }

    /* Move score HUD up */
    .game-ui {
        top: 10px;
        left: 10px;
        right: 10px;
        position: absolute;
    }
}

/* Trigger Spaceship */
#trigger-spaceship {
    position: fixed;
    width: 32px;
    height: 32px;
    z-index: var(--z-spaceship);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
    opacity: 0.35;
    will-change: transform;
    pointer-events: auto;
    /* Use an SVG background (Ultrasound Probe) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF8200'%3E%3Cpath d='M7 9 Q12 3 17 9 L17 11 Q17 14 14 14 L14 20 Q14 22 12 22 Q10 22 10 20 L10 14 Q7 14 7 11 Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 6px rgba(255, 130, 0, 0.6));
}

#trigger-spaceship.low-opacity-probe {
    opacity: 0.15;
}

#trigger-spaceship:hover {
    opacity: 1 !important;
    filter: drop-shadow(0 0 12px rgba(255, 130, 0, 0.9)) brightness(1.3);
}

/* Current Fellow Highlight */
.current-fellow-card {
    border-color: rgba(255, 130, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 130, 0, 0.15);
    z-index: 2; /* Slight lift */
}

.current-fellow-card:hover {
    border-color: var(--ut-orange);
    box-shadow: 0 0 50px rgba(255, 130, 0, 0.3), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    transform: translateY(-10px) scale(1.02);
}

/* Performance Optimization for Practicum Page */
.practicum-page .page-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(10, 20, 40, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 130, 0, 0.3);
}

.practicum-page .tech-input,
.practicum-page .score-radio-btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* =========================================
   Layout Utility Classes
   ========================================= */
.text-center { text-align: center; }
.full-span { grid-column: 1 / -1; width: 100%; }
.card-full-height { height: 100%; }

.page-intro {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

.section-subheading {
    margin-top: 3rem;
}

.page-header-padded {
    padding-top: 2rem;
}

/* =========================================
   Banded Layout Architecture (Modernization)
   ========================================= */

.banded-section {
    width: 100%;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
    position: relative;
    display: flex;
    justify-content: center;
    /* Performance */
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.banded-section:nth-of-type(odd) {
    background-color: transparent;
}

.banded-section:nth-of-type(even) {
    background-color: rgba(13, 26, 51, 0.1);
    border-top: 1px solid rgba(255, 130, 0, 0.1);
    border-bottom: 1px solid rgba(255, 130, 0, 0.1);
}

/* Ensure Hero is treated as a band context if needed,
   but usually Hero is standalone. */

.content-container {
    width: 100%;
    max-width: 1200px; /* Constrain reading width */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Typography Updates for Banded Content */
.banded-section h2 {
    font-family: var(--font-tech);
    font-weight: 400;
    color: var(--ut-orange);
    font-size: clamp(2rem, 4vw, 2.8rem); /* Adjusted for Share Tech Mono */
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 130, 0, 0.2);
    display: inline-block;
}

.banded-section h3 {
    font-family: var(--font-tech);
    font-weight: 400;
    color: var(--ut-white);
    font-size: 1.6rem; /* Adjusted for Share Tech Mono */
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.banded-section p {
    font-size: 1rem; /* 16px */
    line-height: 1.7;
    color: var(--text-main);
    max-width: 900px; /* Optimal reading length */
}

/* List styling inside bands */
.banded-section ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.banded-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.banded-section li::marker {
    color: var(--ut-orange);
}

/* Fix for Grid Sections inside Bands */
.banded-section .team-grid,
.banded-section .past-fellows-grid,
.banded-section .features-grid {
    padding: 2rem 0; /* Remove huge padding as parent handles it */
    margin: 0;
    width: 100%;
    max-width: none;
}

/* Coordinator Card Style (Subtle Differentiation) */
.coordinator-card {
    border-color: rgba(255, 255, 255, 0.25);
}

.coordinator-card h2 {
    color: var(--ut-white); /* White instead of Orange for Title */
}

.coordinator-card h3 {
    color: var(--ut-orange);
}

.coordinator-card::before, .coordinator-card::after {
    border-color: rgba(255, 255, 255, 0.5); /* Silver corners */
}

.coordinator-card:hover {
    border-color: var(--ut-white);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Space Astrophotography Styles & Lightbox */
.photo-wrapper {
    position: relative;
    background-color: rgba(5, 10, 20, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px dashed rgba(255, 130, 0, 0.2);
    transition: all 0.3s ease;
}

.photo-wrapper picture {
    width: 100%;
    height: 100%;
    display: block;
}

.coming-soon-text {
    position: absolute;
    color: var(--ut-orange);
    font-family: var(--font-tech);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 0;
    text-shadow: 0 0 10px rgba(255, 130, 0, 0.3);
    pointer-events: none;
    text-align: center;
    width: 100%;
}

.space-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent; /* Ensures fallback text shows if image fails/hidden */
    transform: translateZ(0);
}

/* Hover effects for valid space photos */
.lightbox-trigger:not(.disabled) .space-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 130, 0, 0.4);
    border: 1px solid var(--ut-orange);
}

.lightbox-trigger {
    display: block;
    cursor: zoom-in;
    text-decoration: none;
    border-radius: 4px;
}

.lightbox-trigger.disabled {
    pointer-events: none;
    cursor: default;
    border: none;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: var(--z-lightbox);
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border: 1px solid var(--ut-orange);
    box-shadow: 0 0 50px rgba(255, 130, 0, 0.3);
    border-radius: 4px;
    cursor: default;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--ut-orange);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-tech);
    transition: all 0.3s ease;
    z-index: var(--z-lightbox-controls);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--ut-white);
    transform: scale(1.1) rotate(90deg);
    text-shadow: 0 0 20px rgba(255, 130, 0, 0.8);
}

.space-photo.error {
    display: none !important;
}

/* ========================================
   Accessibility: Skip-to-Content Link
   ======================================== */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ut-orange);
    color: #000;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-tech);
    font-weight: 700;
    text-decoration: none;
    z-index: 99999;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* ========================================
   Accessibility: Focus-Visible Styles
   ======================================== */
a:focus-visible {
    outline: 2px solid var(--ut-orange);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ut-orange);
    outline-offset: 2px;
}

/* ========================================
   Accessibility: Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-section {
        opacity: 1;
        transform: none;
    }

    #trigger-spaceship {
        display: none !important;
    }

    #starfield-canvas {
        opacity: 0.3;
    }
}

/* ========================================
   Print Stylesheet
   ======================================== */
@media print {
    :root {
        --bg-dark: #fff;
        --text-main: #000;
        --text-muted: #333;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        padding-top: 0 !important;
    }

    body::after {
        display: none !important;
    }

    #starfield-canvas,
    .navbar,
    .toggle-button,
    .menu-overlay,
    #trigger-spaceship,
    footer,
    .game-overlay,
    .lightbox-overlay,
    .skip-link {
        display: none !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    .hero {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }

    .hero h1, .hero h2 {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        background: none !important;
        text-shadow: none !important;
        filter: none !important;
    }

    .feature-card, .team-member, .past-fellow-card {
        background: #fff !important;
        border: 1px solid #ccc !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .banded-section {
        background: #fff !important;
    }

    .feature-card::before, .feature-card::after,
    .team-member::before, .team-member::after,
    .past-fellow-card::before, .past-fellow-card::after {
        display: none !important;
    }

    img {
        max-width: 200px !important;
    }
}
