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

:root {
    /* Inquiry.Institute color scheme - Slate palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Amber accents (matching Inquiry.Institute) */
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    
    /* Indigo for feedback candle */
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    
    /* Semantic colors */
    --primary-color: var(--slate-900);
    --secondary-color: var(--slate-600);
    --accent-color: var(--amber-600);
    --amber: var(--amber-500);
    --amber-dark: var(--amber-600);
    --indigo: var(--indigo-500);
    --indigo-dark: var(--indigo-600);
    --text-color: var(--slate-900);
    --text-light: var(--slate-600);
    --bg-color: #ffffff;
    --bg-light: var(--slate-50);
    --bg-dark: var(--slate-900);
    --border-color: var(--slate-200);
    --border-dark: var(--slate-700);
    
    /* Shadows */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Matching Inquiry.Institute style */
header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    display: block;
}

.logo-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-700);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.nav-links a:hover {
    color: var(--amber-600);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b7355 0%, #6b5d4f 50%, #4a4a4a 100%);
    background-image: url('workshop-hero.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    text-align: center;
    letter-spacing: 0.05em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.project-tile {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.project-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--slate-300);
}

.project-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-sm);
}

.project-tile-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.project-faculty-sponsor {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--slate-200);
    font-size: 0.875rem;
    line-height: 1.5;
}

.faculty-label {
    color: var(--slate-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.faculty-name {
    color: var(--amber-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-block;
    margin-right: 0.5rem;
}

.faculty-name:hover {
    color: var(--amber-500);
    text-decoration: underline;
}

.faculty-discipline {
    color: var(--slate-600);
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.development {
    background-color: #dbeafe;
    color: #1e40af;
}

.project-status.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.project-tile-description {
    color: var(--slate-600);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.6;
}

.project-tile-footer {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.project-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.project-button.sponsor {
    background-color: var(--amber);
    color: white;
}

.project-button.sponsor:hover {
    background-color: var(--amber-dark);
}

.project-button.purchase {
    background-color: var(--indigo);
    color: white;
}

.project-button.purchase:hover {
    background-color: var(--indigo-dark);
}

/* About Section */
.about-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--slate-50);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.9;
}

.about-content p {
    margin-bottom: var(--spacing-md);
}

/* Footer - Matching Inquiry.Institute style */
footer {
    background-color: var(--slate-900);
    color: var(--slate-300);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid var(--slate-700);
}

footer p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--slate-400);
}

.footer-note {
    font-style: italic;
    color: var(--slate-500);
    font-size: 0.8125rem;
}

/* Lantern */
.lantern-container {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
}

.lantern-button {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--amber);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.lantern-button:hover {
    background-color: var(--amber-dark);
    transform: scale(1.1);
}

.lantern-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.lantern-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background-color: white;
    color: var(--amber);
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.lantern-panel {
    position: absolute;
    bottom: 4rem;
    left: 0;
    width: 20rem;
    max-height: 24rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.lantern-panel.open {
    display: flex;
}

.lantern-panel-header {
    padding: 1rem;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lantern-panel-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.lantern-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lantern-panel-content {
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
}

.lantern-panel-footer {
    padding: 1rem;
    border-top: 1px solid var(--slate-200);
}

.lantern-support-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--amber);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.lantern-support-button:hover {
    background-color: var(--amber-dark);
}

/* Candle */
.candle-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.candle-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--indigo);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.candle-button:hover {
    background-color: var(--indigo-dark);
    transform: scale(1.1);
}

.candle-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.candle-panel {
    position: absolute;
    bottom: 4rem;
    right: 0;
    width: 24rem;
    max-height: 20rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.candle-panel.open {
    display: flex;
}

.candle-panel-header {
    padding: 1rem;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.candle-panel-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.candle-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candle-panel-content {
    padding: 1rem;
}

.candle-issue-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--indigo);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-top: 1rem;
}

.candle-issue-button:hover {
    background-color: var(--indigo-dark);
}

/* Backdrop */
.panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
}

.panel-backdrop.open {
    display: block;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.show {
    display: flex;
    opacity: 1;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.video-modal.show .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--slate-200);
}

.video-modal-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.video-modal-subtitle {
    font-size: 1rem;
    color: var(--slate-600);
    font-style: italic;
}

.video-modal-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.atelier-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .lantern-panel,
    .candle-panel {
        width: calc(100vw - 3rem);
        max-width: 20rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .video-modal-header {
        padding: 1.5rem 1rem 1rem;
    }

    .video-modal-title {
        font-size: 1.5rem;
    }

    .video-modal-body {
        padding: 1rem;
    }
}
