:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --accent-primary: #ff5f1f;
    /* Fire Orange */
    --accent-secondary: #ff9e2c;
    /* Ember Yellow */
    --accent-tertiary: #d92b2b;
    /* Deep Red */
    --surface-color: rgba(30, 30, 30, 0.6);
    --surface-border: rgba(255, 255, 255, 0.1);
    --blur-strength: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Ember Canvas Background */
#ember-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 10%, #1a0f0a, #0d0d0d 60%);
}

.page {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

/* Typography */
h1,
h2,
h3,
.nav-logo {
    font-family: var(--font-heading);
    color: #fff;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, #ff9e2c, #ff5f1f, #d92b2b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-text 3s infinite alternate;
}

.small-text {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-secondary);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: #b0b0b0;
}

/* Navigation */
.site-nav {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--surface-border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 95, 31, 0.4);
}

.nav-title {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: #fff;
    font-weight: 400;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-secondary);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    min-height: 80vh;
    margin-bottom: var(--spacing-xl);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: var(--spacing-md);
}

.hero-intro-box {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(var(--blur-strength));
}

.hero-media figure {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-media img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    /* subtle glowing effect around image */
    filter: drop-shadow(0 0 20px rgba(255, 95, 31, 0.2));
    animation: glow-pulse 4s infinite alternate;
}

/* Sections */
.section {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--accent-primary);
    padding-left: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--accent-secondary);
}

/* Cards & Grid Layouts */
.card {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(var(--blur-strength));
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Strict Grid System for Better Alignment */
.insights-grid,
.features-grid,
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 600px) {

    .insights-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {

    .insights-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.insight-card,
.feature-card,
.team-member {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(var(--blur-strength));
}

.team-member {
    text-align: center;
}

.team-header {
    width: 100%;
    margin-bottom: var(--spacing-md);
}

/* Timeline specific styles for studies */
.timeline {
    position: relative;
    padding: var(--spacing-sm) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.study-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.study-marker {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 95, 31, 0.6);
}

.study-content {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: 8px;
    flex: 1;
}

/* Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(255, 95, 31, 0.1), rgba(0, 0, 0, 0));
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 1px solid rgba(255, 95, 31, 0.2);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid var(--surface-border);
}

/* Image Galleries */
.concept-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.concept-sketches {
    background: var(--surface-color);
    padding: var(--spacing-sm);
    border-radius: 12px;
    border: 1px solid var(--surface-border);
}

.concept-sketches img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.concept-sketches img:hover {
    opacity: 1;
}

.concept-sketches figcaption {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.studies-gallery {
    margin-top: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 0 15px rgba(255, 95, 31, 0.3);
    border-color: var(--accent-secondary);
}

/* Animations */
@keyframes fire-text {
    0% {
        filter: brightness(100%);
    }

    100% {
        filter: brightness(130%);
        text-shadow: 0 0 10px rgba(255, 158, 44, 0.5);
    }
}

@keyframes glow-pulse {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 95, 31, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(255, 95, 31, 0.5));
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Simple hiding for mobile for now, can be improved */
    }
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 75%;
    /* 4:3 aspect ratio since the video is 640x480 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--surface-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Audience Visuals */
.audience-visuals {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.audience-visuals figure {
    background: var(--surface-color);
    padding: var(--spacing-sm);
    border-radius: 12px;
    border: 1px solid var(--surface-border);
}

.audience-visuals img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.audience-visuals figcaption {
    margin-top: var(--spacing-sm);
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Team Peapod Section */
.team-header-centered {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.creator-pill {
    display: inline-block;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.team-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #a0a0a0;
}

.team-member-card {
    background: var(--surface-color);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid var(--surface-border);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-card:hover {
    transform: translateY(-8px);
    border-color: #4ade80;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.member-role {
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.member-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

/* Peapod Story Section (Side-by-side) */
/* Peapod Story Section (Side-by-side) */
.peapod-story-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Give more space to text, less to image */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    align-items: center;
    /* Center vertically instead of stretch */
}

.peapod-image-card {
    background: var(--surface-color);
    border: 1px solid rgba(74, 222, 128, 0.3);
    /* Green tint border */
    border-radius: 20px;
    padding: var(--spacing-sm);
    /* Reduce padding */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(var(--blur-strength));
    max-width: 400px;
    /* Force max width on the card itself */
    margin: 0 auto;
    /* Center if it's smaller than the grid cell */
}

.peapod-image-card:hover {
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    transform: translateY(-5px);
}

.peapod-image-card img {
    max-width: 100%;
    max-height: 250px;
    /* Restrict height significantly */
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

.peapod-text-card {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    /* Adding subtle texture */
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.peapod-text-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.peapod-text-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    line-height: 1.6;
}

.pea-dots {
    display: flex;
    gap: 12px;
    margin-top: auto;
    /* Push to bottom if needed */
}

.pea-dots span {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .peapod-story-container {
        grid-template-columns: 1fr;
    }

    .peapod-text-card {
        text-align: center;
        align-items: center;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-primary);
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}



/* Appendix / Milestone Documentation List */
.appendix-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.appendix-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--surface-border);
    font-weight: 500;
}

.appendix-list li a::after {
    content: '→';
    font-size: 1.2rem;
    color: var(--accent-secondary);
    transition: transform 0.3s ease;
}

.appendix-list li a:hover {
    background: linear-gradient(135deg, rgba(255, 95, 31, 0.15), rgba(255, 95, 31, 0.05));
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.appendix-list li a:hover::after {
    transform: translateX(5px);
    color: var(--accent-primary);
}

/* Reflections Layout (Centered) */
.reflections-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    align-items: center;
    /* Center the groups */
}

.reflection-group {
    text-align: center;
    /* Center text within groups */
    max-width: 800px;
    /* Constrain width for readability */
}

.reflection-group h3 {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    border-bottom: 2px solid rgba(255, 95, 31, 0.3);
    /* Add subtle underline instead of dot */
    padding-bottom: 5px;
}

.styled-list {
    list-style: none;
    margin-top: var(--spacing-sm);
    text-align: left;
    /* Keep list items left-aligned for readability, but centered blocks */
    display: inline-block;
    /* Allow text-align center on parent to center this block */
}

.styled-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
    color: #ccc;
    line-height: 1.5;
}

.styled-list li::before {
    content: '🔥';
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 3px;
}

/* Fix for Persona Image Size */
.audience-visuals img {
    max-width: 100%;
    width: auto;
    max-height: 400px;
    margin: 0 auto;
    display: block;
}

/* Global Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        /* Scale down hero title */
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        margin-bottom: var(--spacing-lg);
        /* Reduce vertical gaps between sections */
    }

    .card,
    .team-member-card {
        padding: var(--spacing-sm);
        /* Reduce card padding on mobile */
    }

    /* Ensure grids stack fully on small screens */
    .two-column,
    .hero,
    .peapod-story-container,
    .team-grid,
    .insights-grid,
    .features-grid,
    .appendix-list {
        grid-template-columns: 1fr !important;
    }

    .timeline::before {
        left: 10px;
        /* Adjust timeline alignment */
    }

    .page {
        padding: 0 var(--spacing-sm);
    }
}