/* CSS Variables */
:root {
    --primary-color: #5017d2;
    --primary-dark: #4f46e5;
    --secondary-color: #5017d2;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #eee8e2; 
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

/* Dark mode support - DISABLED */
/* @media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-card: #1f2937;
        --border-color: #374151;
    }
} */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Hero Section */
.hero-section {
    min-height: 150vh;
    height: 150vh;
    position: relative;
    background: transparent;
    overflow: visible;
    /* CSS containment for better rendering performance */
    contain: layout style paint;
}

/* Prevent text selection in hero section */
.hero-section,
.hero-section * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-content {
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100dvh - 56px);
    height: calc(100dvh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.fade-out {
    opacity: 0;
    pointer-events: none;
}

.decorative-icon {
    position: fixed;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.decorative-icon.icon-1 {
    top: 20vh;
    left: 20%;
    animation-delay: 0s;
}

.decorative-icon.icon-2 {
    top: 60vh;
    right: 10%;
    animation-delay: 2s;
}

.decorative-icon.icon-3 {
    bottom: 20vh;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.hero-logo {
    width: 600px;
    max-width: 25%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.hero-year {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 -0.05rem 0;
    letter-spacing: -0.03em;
    line-height: 1;
}

.title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0;
    color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Optimize will-change: only apply when visible */
}

.hero-copy.visible {
    will-change: opacity, transform;
}

.hero-copy.visible {
    pointer-events: auto;
}

.hero-line-1,
.hero-line-2 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.hero-line-2 {
    font-style: italic;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Optimize will-change: only apply when visible */
}

.hero-stats.visible {
    will-change: opacity, transform;
}

.hero-stats.visible {
    pointer-events: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    text-transform: none;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* Spacer Section - Single section containing all panels */
.spacer-section {
    position: relative;
    background: transparent;
    overflow: visible;
    min-height: 700vh; /* 7 panels worth of height */
    height: 700vh;
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    .spacer-section {
        scroll-behavior: smooth;
    }
}

/* Prevent text selection in spacer section */
.spacer-section,
.spacer-section * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Spacer Panels - Each panel is a separate section (for GSAP version) */
.spacer-panel {
    position: relative;
    background: transparent;
    overflow: visible;
    min-height: calc(100dvh - 56px);
    height: calc(100dvh - 56px);
}

.spacer-content {
    position: sticky;
    top: 0;
    z-index: 15;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100dvh - 56px);
    height: calc(100dvh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
}

/* For spacer-section, content should be sticky */
.spacer-section .spacer-content {
    position: sticky;
    top: 0;
}

.spacer-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: min(90vw, 1200px);
    width: 100%;
    text-align: center;
    padding: 0 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.spacer-text-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.spacer-number {
    color: var(--primary-color);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1;
    display: block;
}

.spacer-text-content {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
}

.spacer-subtext {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-in, transform 0.8s ease-in;
}

.spacer-subtext.visible {
    opacity: 1;
    transform: translateY(0);
}

.spacer-section .spacer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) translateY(40px);
    text-align: center;
    width: 100%;
    max-width: min(90vw, 1200px);
    align-items: center;
}

.spacer-section .spacer-text.visible {
    transform: translate(-50%, -50%) translateY(0);
}

.spacer-text.show {
    will-change: opacity, transform;
    display: block;
}

.spacer-text.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

#spacerBullets {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
}

.spacer-section #spacerBullets {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#spacerText5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spacer-chart-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    padding: 0 2rem;
}

.spacer-text-left {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: left;
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.spacer-chart-description {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
}

.total-teams-counter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.total-teams-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1;
}

.total-teams-label {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* OSS Section Styles */
#spacerText6 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.spacer-oss-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.spacer-oss-metrics {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 2rem;
    flex: 0 0 auto;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.oss-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.spacer-oss-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex: 0 0 auto;
    max-width: 500px;
}

.spacer-oss-logo {
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.spacer-oss-logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    margin: 0 auto;
}

.spacer-oss-logo a:hover {
    opacity: 0.8;
}

.phoenix-logo {
    height: clamp(30px, 4vw, 50px);
    width: auto;
    object-fit: contain;
    display: block;
}

.spacer-oss-text {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.2;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
}

.oss-metric-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1;
    width: 180px; /* Fixed width to prevent layout shift, wide enough for "1.8M+" */
    text-align: center;
    display: inline-block;
    white-space: nowrap; /* Prevent wrapping */
    box-sizing: border-box;
}

.oss-metric-label {
    font-size: clamp(0.875rem, 1.25vw, 1rem);
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
}

#spacerText6.show {
    will-change: opacity, transform;
    display: block;
}

#spacerText6.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.spacer-bullets-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.spacer-bullets-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.spacer-bullets-container {
    background-color: #ffffff;
    border-radius: 1rem; /* Rounded corners */
    padding: 3rem 2.5rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06); /* Subtle shadow for tile effect */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; /* Delay for staggered effect */
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; /* Delay for staggered effect */
}

.spacer-bullets-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.spacer-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 700px;
    width: 100%;
}

.spacer-bullets li {
    padding: 2rem 0 2rem 0; /* Removed left padding since bullets are removed */
    position: relative;
    color: var(--text-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.bullet-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    display: block;
    margin-bottom: 0.5rem;
}

.spacer-bullets li::before {
    display: none; /* Remove purple bullet points */
}

.spacer-bullets li.visible {
    opacity: 1;
    transform: translateY(0);
}

.bullet-link {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    display: inline-block;
    color: #ec4899;
    text-decoration: none;
    margin-left: 1.5rem;
}

.bullet-link.visible {
    opacity: 1;
    transform: translateX(0);
}

.bullet-link:hover {
    color: #db2777;
}

.bullet-arrow {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.25rem;
}

/* Chart Section */
.chart-section {
    min-height: calc(100dvh - 56px);
    padding: 5rem 1.5rem;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout style paint;
    position: relative;
    z-index: 1;
}

.chart-section-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chart-section-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 3rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-section-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.spacer-chart-container {
    margin-top: 0;
    width: 100%;
    max-width: 750px;
    height: 400px; /* Fixed height instead of min-height to prevent layout shift */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    /* Prevent layout shift */
    contain: layout style paint;
    will-change: opacity;
}

.spacer-chart-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.spacer-chart-placeholder {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 2rem;
}

/* D3 Chart Styles */
#engagedTeamsChart {
    width: 100%;
    height: 100%;
    display: block;
}


#engagedTeamsChart .axis path,
#engagedTeamsChart .axis line {
    fill: none;
    stroke: #ccc;
    shape-rendering: crispEdges;
}

#engagedTeamsChart .axis text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

/* Hide Y-axis label on mobile */
@media (max-width: 640px) {
    #engagedTeamsChart .y-axis-label {
        display: none;
    }
}

/* Section Styles */
section {
    padding: 0 1.5rem 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: black;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Metrics Section */
.metrics-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 3rem;
}

.ax-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.metrics-section {
    position: relative;
    z-index: 10; /* Above trees (z-index 1) but below snow (z-index 10000) */
    background: var(--bg-secondary);
    padding: 0 1.5rem 5rem 1.5rem;
    border-radius: 1rem 1rem 0 0; /* Round top left and top right corners */
    /* CSS containment for better rendering performance */
    contain: layout style paint;
}

/* Prevent text selection in metrics section */
.metrics-section,
.metrics-section * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.metric-card-1,
.metric-card-2 {
    grid-column: span 3;
}

.metric-card-3,
.metric-card-4,
.metric-card-5 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metric-card-1,
    .metric-card-2 {
        grid-column: span 1;
    }
    
    .metric-card-3,
    .metric-card-4,
    .metric-card-5 {
        grid-column: span 1;
    }
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    /* Optimize will-change: only apply when animating */
}

.metric-card.visible {
    will-change: opacity, transform;
}

.metric-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.metric-card.visible:hover {
    transform: translateY(-4px);
}

.metric-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.metric-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.metric-icon {
    font-size: 1.25rem;
}

/* Chart Section */
.chart-section {
    padding: 5rem 1.5rem;
    background: var(--bg-primary);
}

.chart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.chart-header h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.chart-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Launches Section */
.launches-section {
    position: relative;
    z-index: 10; /* Above trees (z-index 1) but below snow (z-index 10000) */
    background: var(--bg-secondary);
    padding: 5rem 1.5rem;
    border-radius: 1rem; /* Round all corners */
}

.total-releases {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.total-releases-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    margin-top: 0.5rem;
    letter-spacing: -0.03em;
    gap: 0.25rem;
}

.total-releases-count {
    color: var(--primary-color);
    font-size: 6rem;
    line-height: 1;
    display: inline-block;
}

.total-releases-number .emoji {
    font-size: 2.5rem;
    line-height: 1;
    display: inline-block;
}

.launches-timeline {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.month-launches {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.8s ease-in, transform 0.8s ease-in, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(30px);
}

.month-launches.visible {
    opacity: 1;
    transform: translateY(0);
}

.month-launches.visible:hover {
    transform: translateY(0) translateX(4px);
    box-shadow: var(--shadow-md);
}

.month-launches:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.month-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.month-header .launch-count {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
}

.launches-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.launches-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.launches-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.launches-list li:hover {
    color: var(--text-primary);
}

.launches-list li a {
    color: #251c35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.launches-list li a:hover {
    color: #ec4899;
}

/* Special Thanks Section */
.thanks-section {
    position: relative;
    z-index: 10; /* Above trees (z-index 1) but below snow (z-index 10000) */
    background: var(--bg-primary);
    padding: 5rem 1.5rem;
}

.thanks-subsection {
    margin-top: 4rem;
    display: block;
    width: 100%;
}

.thanks-subsection:first-of-type {
    margin-top: 3rem;
}

.thanks-subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Customers Grid */
.thanks-subsection .customers-grid,
.customers-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: minmax(140px, auto);
    gap: 2rem;
    width: 100%;
    min-height: 200px;
    visibility: visible;
    opacity: 1;
}

/* Mobile: 2 columns for customers grid */
@media (max-width: 1024px) {
    .thanks-subsection .customers-grid,
    .customers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

.customer-logo {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    height: auto;
    position: relative;
}

.customer-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.customer-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Hide mobile-only customer on desktop/tablet (show only 9) */
.customer-logo-mobile-only {
    display: none;
}

/* Show mobile-only customer on mobile (show all 10) */
@media (max-width: 1024px) {
    .customer-logo-mobile-only {
        display: flex;
    }
}

.customers-more-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
    color: #999;
    font-style: italic;
    font-weight: 400;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.partner-logo {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.2s, opacity 0.2s;
}

.partner-logo:hover img {
    filter: grayscale(100%);
    opacity: 1;
}

/* Team Section */
.team-section {
    text-align: center;
}

.team-photo-container {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 679px; /* Minimum height for all team photos */
    cursor: pointer; /* Indicate it's clickable */
}

.team-photo {
    width: 100%;
    height: 100%; /* Fill container height */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: contain; /* Preserve aspect ratio without clipping */
    object-position: center; /* Center the image */
}

.team-photo-1 {
    position: relative;
    opacity: 1;
    width: 100%; /* Ensure it fills container width */
    height: 100%; /* Ensure it fills container height like others */
    object-fit: contain; /* Preserve aspect ratio without clipping */
}

.team-photo-2,
.team-photo-3 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%; /* Match container height */
    object-fit: contain; /* Preserve aspect ratio without clipping */
    object-position: center; /* Center the image */
}

.hiring-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.hiring-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hiring-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.shaka-emoji {
    display: inline-block;
    transition: transform 0.2s ease;
}

.hiring-button:hover .shaka-emoji {
    animation: wiggle 1.2s ease-in-out;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    15% {
        transform: rotate(-15deg);
    }
    30% {
        transform: rotate(15deg);
    }
    45% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(8deg);
    }
    75% {
        transform: rotate(-5deg);
    }
    90% {
        transform: rotate(3deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 0 1rem 3rem 1rem;
    }

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

    .decorative-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .month-launches {
        padding: 1.5rem;
    }

    .launches-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .thanks-subsection .customers-grid,
    .customers-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .launches-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .thanks-subsection .customers-grid,
    .customers-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-text {
        gap: 1.5rem;
    }

    .hero-copy {
        gap: 0.25rem;
    }

    .spacer-chart-layout {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .spacer-text-left {
        max-width: 100%;
    }

    .spacer-chart-container {
        max-width: 100%;
        width: 100%;
        height: 200px; /* Fixed height on mobile to prevent layout shift */
    }

    .spacer-oss-layout {
        flex-direction: column;
        align-items: center;
        padding: 0 1.5rem;
    }

    .spacer-oss-text {
      margin-top: 2rem;
    }

    .spacer-oss-logo {
        margin-bottom: 1rem;
    }

    .spacer-oss-metrics {
        width: 100%;
        gap: 1.5rem;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .oss-metric {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 120px;
    }

    .oss-metric-value {
        width: auto;
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .oss-metric-label {
        font-size: clamp(0.75rem, 1.5vw, 0.875rem);
        line-height: 1.3;
    }

    .spacer-oss-right {
        width: 100%;
        max-width: 100%;
        align-items: center;
        gap: 1.5rem;
    }

    .spacer-oss-text {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
        text-align: center;
        padding: 0;
        line-height: 1.4;
    }

    .phoenix-logo {
        height: clamp(30px, 5vw, 45px);
    }
}

@media (max-width: 640px) {
    .spacer-oss-layout {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .spacer-oss-logo {
        margin-bottom: 1rem;
    }

    .spacer-oss-metrics {
        gap: 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .oss-metric {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .oss-metric-value {
        width: auto;
        font-size: clamp(3.5rem, 12vw, 5rem);
        white-space: nowrap;
    }

    .oss-metric-label {
        font-size: clamp(1rem, 3vw, 1.25rem);
        line-height: 1.3;
        text-align: center;
        word-break: break-word;
        hyphens: auto;
    }

    .spacer-oss-right {
        gap: 1.5rem;
        width: 100%;
    }

    .spacer-oss-text {
        font-size: clamp(1rem, 5vw, 2rem);
        padding: 0;
        line-height: 1.5;
        width: 100%;
        max-width: 100%;
    }

    .phoenix-logo {
        height: clamp(45px, 8vw, 60px);
    }

    /* What the market made clear section - mobile adjustments */
    #spacerBullets {
        padding: 0 1rem;
        max-width: 100%;
    }

    .spacer-bullets-title {
        font-size: clamp(1rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .spacer-bullets-container {
        padding: 1.5rem 1.25rem;
        margin: 0 auto;
    }

    .spacer-bullets li {
        padding: 1.25rem 0 1.25rem 0; /* Removed left padding since bullets are removed */
    }

    .bullet-text {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
        margin-bottom: 0.5rem;
    }

    .bullet-link {
        margin-left: 1.25rem;
        font-size: 0.875rem;
    }

    /* Team photos - ensure minimum height on mobile */
    .team-photo-container {
        min-height: 400px; /* Reduced height on mobile */
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* SkiFree Background Canvas - behind content */
#skifree-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100dvh - 56px);
    z-index: 1; /* Behind content */
    background-color: transparent;
    pointer-events: none;
}

/* Hide skier canvas on mobile/touch devices */
@media (max-width: 768px), (hover: none) {
    #skifree-canvas {
        display: none;
    }

    /* What the market made clear section - tablet/mobile adjustments */
    #spacerBullets {
        padding: 0 1rem;
    }

    .spacer-bullets-container {
        padding: 2rem 1.5rem;
    }

    .spacer-bullets li {
        padding: 1.5rem 0 1.5rem 0; /* Removed left padding since bullets are removed */
    }

    .spacer-bullets li:first-of-type {
        padding-top: 0;
    }

    .spacer-bullets li:last-of-type {
        padding-bottom: 0;
    }
}

/* Snow Canvas - on top of everything */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100dvh - 56px);
    z-index: 10000; /* On top of everything */
    pointer-events: none;
}

