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

:root {
    --airbnb-red: #FF385C;
    --airbnb-dark-red: #E31C5F;
    --airbnb-pink: #FF5A5F;
    --text-dark: #222222;
    --text-medium: #717171;
    --text-light: #FFFFFF;
    --background-light: #F7F7F7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* ============================================================================
   PROGRESS DOTS NAVIGATION
   ============================================================================ */

.progress-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-dots {
    display: flex;
    gap: 16px;
    align-items: center;
}

.progress-dot {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.progress-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D1D1;
    border: 2px solid #D1D1D1;
    transition: all 0.3s ease;
}

.progress-dot.active::before {
    background: var(--airbnb-red);
    border-color: var(--airbnb-red);
    width: 14px;
    height: 14px;
}

.progress-dot:hover::before {
    transform: scale(1.2);
    border-color: var(--airbnb-pink);
}

.dot-label {
    display: none; /* Hide all labels - only show dots */
}

/* ============================================================================
   HEADER
   ============================================================================ */

header {
    text-align: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #FF385C 0%, #FF5A5F 100%);
    color: white;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 400;
}

/* ============================================================================
   SCROLLYTELLING CONTAINER
   ============================================================================ */

.scrollytelling-container {
    max-width: 100%;
    margin: 0 auto;
}

.act {
    min-height: 100vh;
    position: relative;
}

/* Sticky Container Layout */
.sticky-container {
    position: relative;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    min-height: 100vh;
    align-items: start;
}

.sticky-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0;
}

.sticky-visual .map-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
}

.narrative-content {
    padding: 120px 40px 100px 60px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* Narrative Steps */
.narrative-step {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 40vh;
    opacity: 1; /* Full opacity for all steps */
    transition: opacity 0.5s ease;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.narrative-step h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--airbnb-red);
    margin-bottom: 24px;
    line-height: 1.1;
}

.narrative-step h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.narrative-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.narrative-text strong {
    color: var(--airbnb-red);
    font-weight: 600;
}

.city-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--airbnb-red);
    margin-bottom: 20px;
    font-feature-settings: 'tnum';
}

/* Remove spacer */
.narrative-spacer {
    height: 0;
    display: none;
}

/* Space between cards */
.narrative-step {
    min-height: 60vh;
    margin-bottom: 40vh;  /* Normal spacing */
}

/* Less space after last card */
.narrative-step:last-of-type {
    margin-bottom: 5vh;  /* Minimal white space */
}

/* ============================================================================
   LEAFLET MAP CUSTOMIZATION
   ============================================================================ */

.map-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Leaflet custom marker styling */
.city-marker {
    background-color: var(--airbnb-red);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(255, 56, 92, 0.4);
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.city-marker:hover {
    background-color: var(--airbnb-dark-red);
    transform: scale(1.3);
    box-shadow: 0 6px 16px rgba(255, 56, 92, 0.6);
}

.city-marker.highlighted {
    background-color: #FFD700 !important;
    border-color: #FFA500 !important;
    transform: scale(1.5) !important;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.7) !important;
    animation: pulse 2s infinite !important;
    z-index: 1000 !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.5);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.7);
        box-shadow: 0 12px 28px rgba(255, 215, 0, 0.9);
    }
}

/* Heatmap fade in */
.leaflet-heatmap-layer {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading indicator */
.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    font-size: 14px;
    color: var(--text-medium);
    display: none;
}

.loading-overlay.active {
    display: block;
}

.city-label-marker {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    text-shadow: 1px 1px 3px white, -1px -1px 3px white, 1px -1px 3px white, -1px 1px 3px white;
}

/* Custom tooltip styling */
.custom-tooltip {
    background-color: rgba(34, 34, 34, 0.96) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    padding: 12px 16px !important;
    color: white !important;
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-tooltip::before {
    border-top-color: rgba(34, 34, 34, 0.96) !important;
}

.leaflet-tooltip-top::before {
    border-top-color: rgba(34, 34, 34, 0.96) !important;
}

/* ============================================================================
   ACT 2: AFFORDABILITY CHART
   ============================================================================ */

/* Reversed sticky layout (text left, chart right) */
.sticky-container-reversed {
    grid-template-columns: 40% 60%;
}

.narrative-content-left {
    padding: 120px 60px 100px 40px;
}

.sticky-visual-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chart-container {
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chart-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E8E8E8;
}

.chart-controls .toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.chart-controls .toggle-label:hover {
    background: rgba(255, 56, 92, 0.05);
}

.chart-controls .toggle-label input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--airbnb-red);
}

.chart-controls .toggle-label span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.chart-controls .toggle-label input[type="radio"]:checked + span {
    color: var(--airbnb-red);
    font-weight: 600;
}

#affordability-chart {
    width: 100%;
    min-height: 600px;
}

/* Bar chart styling */
#affordability-chart rect.bar {
    fill: var(--airbnb-red);
    transition: fill 0.3s ease; /* Only transition fill, not opacity - D3 handles opacity */
}


#affordability-chart rect.bar.highlighted {
    fill: var(--airbnb-red);
    stroke: var(--airbnb-dark-red);
    stroke-width: 2;
    /* Opacity controlled by D3 transitions */
}

#affordability-chart text.value {
    fill: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    /* Opacity controlled by D3 transitions */
}

#affordability-chart .axis text {
    fill: var(--text-medium);
    font-size: 11px;
}

#affordability-chart .axis line,
#affordability-chart .axis path {
    stroke: #E8E8E8;
}

/* D3 Tooltip for chart */
.d3-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(34, 34, 34, 0.96);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

/* Responsive adjustments for Act 2 */
@media (max-width: 1200px) {
    .sticky-container-reversed {
        grid-template-columns: 45% 55%;
    }
}

@media (max-width: 968px) {
    .sticky-container-reversed {
        grid-template-columns: 1fr;
    }
    
    .sticky-visual-right {
        position: relative;
        height: auto;
        min-height: 70vh;
        padding: 20px;
    }
    
    .narrative-content-left {
        padding: 40px 20px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .chart-controls {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================================
   ACT 3: CITY CONCENTRATION (SAME LAYOUT AS ACT 1)
   ============================================================================ */

/* Controls overlay on map */
.map-controls-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 12px;
}

.map-controls-overlay .toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.map-controls-overlay .toggle-label:hover {
    background: rgba(255, 56, 92, 0.05);
}

.map-controls-overlay .toggle-label input[type="radio"] {
    margin-right: 6px;
    accent-color: var(--airbnb-red);
}

.map-controls-overlay .toggle-label span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.map-controls-overlay .toggle-label input[type="radio"]:checked + span {
    color: var(--airbnb-red);
    font-weight: 600;
}

/* Stats panel overlay on map */
.stats-panel-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.stat-item {
    margin-bottom: 12px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--airbnb-red);
}

/* Responsive for Act 3 */
@media (max-width: 968px) {
    .map-controls-overlay {
        bottom: 10px;
        right: 10px;
        padding: 10px 12px;
    }
    
    .stats-panel-overlay {
        bottom: 10px;
        left: 10px;
        padding: 15px;
        min-width: 150px;
    }
    
    .stat-value {
        font-size: 16px;
    }
}

/* ============================================================================
   ACT 4: POPULATION DENSITY CHART
   ============================================================================ */

.chart-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

#density-chart {
    width: 100%;
    min-height: 400px;
    max-height: 85vh;
}

.chart-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E8E8E8;
    color: var(--text-medium);
    font-size: 13px;
    line-height: 1.5;
}

/* Density chart bars */
#density-chart rect.density-bar {
    fill: var(--airbnb-red);
    transition: fill 0.3s; /* Only transition fill, D3 handles opacity */
}


#density-chart rect.density-bar.highlighted {
    fill: var(--airbnb-red);
    opacity: 1;
    stroke: var(--airbnb-dark-red);
    stroke-width: 2;
}

#density-chart rect.density-bar:not(.highlighted).visible {
    opacity: 0.4;
}

#density-chart text.density-value {
    fill: var(--text-dark);
    font-size: 11px;
    font-weight: 500;
}

#density-chart .axis text {
    fill: var(--text-medium);
    font-size: 10px;
}

#density-chart .axis line,
#density-chart .axis path {
    stroke: #E8E8E8;
}

/* ================================
   Act 4.5: Housing Pressure Gauge
================================ */

#housing-gauge svg {
  display: block;
  margin: 0 auto;
}

.gauge-value {
  font-size: 22px;
  font-weight: 600;
  fill: #111;
}

.gauge-city {
  font-size: 14px;
  fill: #666;
}

.gauge-needle {
  transition: transform 0.8s ease;
}

.chart-caption {
  margin-top: 12px;
  font-size: 13px;
  color: #777;
  text-align: center;
}

/* =========================
   ACT 5 – Timeline Controls
   ========================= */

.timeline-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: min(480px, 96vw);
  background: #fff;
  border-radius: 18px;
  padding: 20px 20px 18px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 200px;
  max-height: none;
  min-height: unset;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212121;
  line-height: 1.18;
}

.timeline-select {
  position: relative;
  min-width: 120px;
  flex: none;
}

.timeline-select select {
  appearance: none;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 11px;
  padding: 8px 34px 8px 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  transition: border 0.2s;
}

.timeline-select select:focus {
  outline: none;
  border-color: #FF385C;
  box-shadow: 0 0 0 3px rgba(255,56,92,0.13);
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #999;
  pointer-events: none;
}

.timeline-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-label {
  font-size: 0.73rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212121;
}

.meta-value.accent {
  color: var(--airbnb-red);
}

.play-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: none;
  background: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.15s;
}

.play-btn.is-playing {
  color: var(--airbnb-red);
}

.timeline-slider {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#act5-yearSlider {
  width: 100%;
  appearance: none;
  height: 4px;
  background: #ddd;
  border-radius: 100px;
  margin: 0;
  outline: none;
  transition: background 0.18s;
}

#act5-yearSlider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--airbnb-red);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 7px rgba(255,56,92,0.12);
  transition: background 0.2s;
}
#act5-yearSlider:focus::-webkit-slider-thumb {
  outline: 2px solid #FF385C;
}
#act5-yearSlider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--airbnb-red);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 7px rgba(255,56,92,0.12);
}
#act5-yearSlider:focus::-moz-range-thumb {
  outline: 2px solid #FF385C;
}

#act5-yearSlider::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--airbnb-red);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 7px rgba(255,56,92,0.12);
}
#act5-yearSlider:focus::-ms-thumb {
  outline: 2px solid #FF385C;
}

/* Remove default decorations in Firefox and IE */
#act5-yearSlider::-ms-fill-lower {
  background: #ddd;
}
#act5-yearSlider::-ms-fill-upper {
  background: #ddd;
}
#act5-yearSlider:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,56,92,0.10);
}

.slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #888;
  width: 100%;
  margin-top: 4px;
}

/* Mobile optimization */
@media (max-width: 600px) {
  .timeline-card {
    top: 8px;
    left: 8px;
    width: calc(100vw - 16px);
    padding: 13px 7px 12px 7px;
    border-radius: 13px;
    height: auto;          /* Ensure card height fits contents on mobile */
    max-height: none;
    min-height: unset;
  }
  .timeline-header {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .timeline-meta {
    flex-direction: column;
    gap: 10px;
    padding: 8px 8px;
    margin-bottom: 10px;
  }
  .timeline-title {
    font-size: 0.98rem;
  }
  .timeline-slider {
    gap: 4px;
  }
  .select-chevron {
    right: 8px;
  }
  .slider-ends {
    font-size: 0.72rem;
  }
  .play-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.85rem;
  }
}


/* ============================================================================
   ACT 6: THE RESPONSE (FULL-WIDTH NARRATIVE)
   ============================================================================ */

.act6-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.narrative-step-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    opacity: 1; /* Full opacity - not foggy */
    transition: opacity 0.75s ease;
}


.narrative-step-full h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--airbnb-red);
    margin-bottom: 32px;
    line-height: 1.1;
    text-align: center;
}

.narrative-step-full h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.narrative-text-large {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Policy comparison grid */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

/* Container needs perspective for 3D effect */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    perspective: 1000px;
}

.policy-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* FLIP ANIMATION  */
    transform-style: preserve-3d;
    transform: rotateY(180deg);  /* Start flipped backwards */
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s ease;
    backface-visibility: hidden;
}

/* When card flips in */
.policy-card.flip-in {
    transform: rotateY(0deg);  /* Flip to front */
    opacity: 1;
    box-shadow: 0 8px 30px rgba(255, 56, 92, 0.15);
}

/* Staggered delays for sequential flip */
.policy-card:nth-child(1).flip-in {
    transition-delay: 0s;
}

.policy-card:nth-child(2).flip-in {
    transition-delay: 0.2s;
}

.policy-card:nth-child(3).flip-in {
    transition-delay: 0.4s;
}

.policy-card:nth-child(4).flip-in {
    transition-delay: 0.6s;
}

/* Keep existing ::before, :hover, etc. styles */
.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--airbnb-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-4px) rotateY(0deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--airbnb-red);
}

.policy-card:hover::before {
    transform: scaleX(1);
}

.policy-city {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.policy-flag {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.policy-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--airbnb-red);
    margin-bottom: 12px;
}

.policy-details {
    margin-bottom: 12px;
}

.policy-item {
    padding: 6px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.policy-item:last-child {
    border-bottom: none;
}

.policy-result {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 56, 92, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* Animation placeholder */
.animation-placeholder {
    background: linear-gradient(135deg, #F7F7F7 0%, #FAFAFA 100%);
    border: 2px dashed #D0D0D0;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    margin: 40px 0;
}

.placeholder-content {
    max-width: 600px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.placeholder-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.placeholder-subtext {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Lessons grid */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid for 4 lessons */
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .lessons-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

.lesson-card {
    background: white;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.lesson-number {
    width: 48px;
    height: 48px;
    background: var(--airbnb-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.lesson-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.lesson-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
}


/* Responsive for Act 5 */
@media (max-width: 968px) {
    .act6-container {
        padding: 40px 20px;
    }
    
    .narrative-step-full {
        padding: 40px 0;
    }
    
    .narrative-step-full h2 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .narrative-step-full h3 {
        font-size: 2rem;
    }
    
    .narrative-text-large {
        font-size: 1.2rem;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .animation-placeholder {
        padding: 60px 20px;
    }
}

@media (max-width: 600px) {
    .narrative-step-full h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .narrative-step-full h3 {
        font-size: 1.5rem;
    }
    
    .narrative-text-large {
        font-size: 1.1rem;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1200px) {
    .sticky-container {
        grid-template-columns: 55% 45%;
    }
    
    .narrative-content {
        padding: 100px 30px 80px 40px;
    }
}

@media (max-width: 968px) {
    .progress-nav {
        top: 10px;
        padding: 10px 16px;
    }
    
    .progress-dots {
        gap: 12px;
    }
    
    .dot-label {
        display: none;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .sticky-container {
        grid-template-columns: 1fr;
    }
    
    .sticky-visual {
        position: relative;
        height: 60vh;
    }
    
    .sticky-visual .map-container {
        height: 60vh;
    }
    
    .narrative-content {
        padding: 40px 20px;
    }
    
    .narrative-step {
        min-height: 60vh;
        padding: 30px 20px;
        margin-bottom: 20vh;
    }
    
    .narrative-step h2 {
        font-size: 2rem;
    }
    
    .narrative-step h3 {
        font-size: 1.5rem;
    }
    
    .narrative-text {
        font-size: 1.1rem;
    }
    
    .city-stat {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 100px 15px 40px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .narrative-step h2 {
        font-size: 1.75rem;
    }
    
    .narrative-step h3 {
        font-size: 1.3rem;
    }
    
    .city-stat {
        font-size: 1.75rem;
    }
}

/* Loading state */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--text-medium);
}

/* ============================================================================
   NEXT SECTION BUTTON
   ============================================================================ */

.scroll-next-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    background: var(--airbnb-red);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
}

.scroll-next-btn:hover {
    background: var(--airbnb-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.5);
}

.scroll-next-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.4);
}

.scroll-next-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.scroll-next-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.scroll-next-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .scroll-next-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .scroll-next-icon {
        font-size: 1.1rem;
    }
    
    .scroll-next-text {
        font-size: 0.85rem;
    }
}


/* ============================================================================
   PARALLAX HERO SECTION - 6 Layers
   ============================================================================ */

.hero-parallax {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #02151c;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Universal layer styling - all 6 layers */
.hero-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 100vw;
    height: auto;
    object-fit: cover;
    object-position: center bottom;
    max-height: 100vh;
}

/* Individual layer positioning - each sits higher than the previous */
.parallax-layer[data-speed="0.1"] .hero-layer {
    bottom: 0;  /* Layer 1: Furthest back, lowest position */
}

.parallax-layer[data-speed="0.2"] .hero-layer {
    bottom: -20%;  /* Layer 2: Slightly higher */
}

.parallax-layer[data-speed="0.35"] .hero-layer {
    bottom: -30%;  /* Layer 3: Higher still */
}

.parallax-layer[data-speed="0.5"] .hero-layer {
    bottom: -40%;  /* Layer 4: Middle */
}

.parallax-layer[data-speed="0.65"] .hero-layer {
    bottom: -50%;  /* Layer 5: Near foreground */
}

.parallax-layer[data-speed="0.85"] .hero-layer {
    bottom: -72%;  /* Layer 6: Foreground, highest position */
}

/* Hero Content Overlay */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #FF385C;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #222222;
    font-weight: 400;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-parallax {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-overlay {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .hero-parallax {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-overlay {
        padding: 20px;
        width: 95%;
    }
}

/* Performance optimization */
.parallax-layer {
    pointer-events: none;
}

.hero-overlay {
    pointer-events: auto;
}

/* ============================================================================
   ACT 3: ANIMATED STATS PANEL - Slide In/Out
   ============================================================================ */

/* Stats panel initial state - hidden off-screen */
.stats-panel-overlay {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
    transform: translateX(-120%);  /* Hidden to the left */
    opacity: 0;
}

/* Stats panel visible state - slide in */
.stats-panel-overlay.show {
    transform: translateX(0);
    opacity: 1;
}

/* Optional: Add a subtle scale animation too */
.stats-panel-overlay.show .stat-value {
    animation: statNumberPop 0.4s ease-out 0.3s backwards;
}

@keyframes statNumberPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Smooth number transitions when city changes */
.stat-value {
    transition: color 0.3s ease;
}

/* Performance optimization */
.stats-panel-overlay {
    will-change: transform, opacity;
}