/* Global Styles */
:root {
    --paper-w: 720px;
    --ink: #171717;
    --ink-soft: #3c3c3c;
    --accent: #b9572b;
    --bg: #f6efe8;
    --body-font-size: 18px;
    --body-line-height: 1.8;
}

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

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Hero Section - Landing Page */
.hero {
    display: grid;
    place-items: center;
    padding: 6rem 1rem 7rem;
    min-height: 100vh;
}

.paper {
    width: min(92vw, var(--paper-w));
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,.1), 0 5px 15px rgba(0,0,0,.05);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.paper__inner {
    padding: 2.75rem clamp(1.25rem, 3vw, 3rem) 2.25rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Typography - Landing page */
.receipt-eyebrow {
    font: 600 12px/1.2 ui-monospace, "Courier New", monospace;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #6a6a6a;
    margin: .5rem 0 1.25rem;
    border-top: 2px dotted #e6e6e6;
    padding-top: .75rem;
}

.receipt-eyebrow span {
    font-weight: 500;
    opacity: .85;
}

h1 {
    font-family: "Caveat", "Kalam", cursive;
    font-weight: 700;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    margin: .25rem 0 1.25rem;
    transform: rotate(-0.5deg);
}

.kicker {
    font-family: "Kalam", cursive;
    font-style: normal;  /* Changed from italic */
    color: var(--ink-soft);
    font-size: clamp(18px, 2.6vw, 22px);
    margin: 0 0 1rem;
}

.hook {
    font-family: "Kalam", cursive;
    font-size: clamp(18px, 2.8vw, 22px);
    margin: .5rem 0 1.8rem;
    line-height: 1.5;
}

.dek {
    font-family: "Kalam", cursive;
    color: #555;
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.55;
    max-width: 56ch;
    margin: 0 auto 1.5rem;
}

.accent {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.byline {
    font-family: "Caveat", cursive;
    margin: 1rem 0 1.5rem;
    color: #646464;
    font-style: normal;  /* Changed from italic */
    font-size: 1.1rem;
}

.byline span {
    font-weight: 600;
    color: var(--ink-soft);
}

/* CTA Button */
.cta {
    display: inline-block;
    margin: .5rem auto 1.25rem;
    padding: .95rem 1.4rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: "Kalam", cursive;
    box-shadow: 0 8px 20px rgba(0,0,0,.15), 0 2px 6px rgba(0,0,0,.1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.12);
}

.cta .chev {
    display: inline-block;
    transform: translateY(-1px);
    animation: gentleBounce 2s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(2px); }
}

/* Receipt footer */
.receipt-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 2px dotted #e6e6e6;
    font-family: ui-monospace, "Courier New", monospace;
    color: #999;
}

.tics {
    height: 12px;
    margin: .25rem auto .35rem;
    width: min(380px, 70%);
    background: repeating-linear-gradient(90deg, #999 0 10px, transparent 10px 20px);
    opacity: .55;
}

.receipt-footer small {
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* Story Section */
.story-section {
    min-height: 100vh;
    background: #FEFDFB;
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-content {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

.story-paragraph {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    color: #2C2C2C;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.story-paragraph:first-child::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    margin: 0.1em 0.15em 0 0;
    padding-right: 0.05em;
    font-weight: 700;
    color: var(--accent);
    font-family: "Caveat", Georgia, serif;
}

/* Receipt and Story Section */
.receipt-story-section {
    padding: 4rem 2rem;
    background: #FAF8F5;
    min-height: auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Receipt Container (Left side) */
.receipt-container {
    position: sticky;
    top: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.receipt-paper {
    background: white;
    padding: 25px;
    position: relative;
    font-family: 'Courier New', monospace;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.02) 2px,
            rgba(0,0,0,0.02) 4px
        );
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 8px),
        95% 100%,
        90% calc(100% - 5px),
        85% 100%,
        80% calc(100% - 3px),
        75% 100%,
        70% calc(100% - 6px),
        65% 100%,
        60% calc(100% - 4px),
        55% 100%,
        50% calc(100% - 7px),
        45% 100%,
        40% calc(100% - 3px),
        35% 100%,
        30% calc(100% - 5px),
        25% 100%,
        20% calc(100% - 4px),
        15% 100%,
        10% calc(100% - 6px),
        5% 100%,
        0 calc(100% - 8px)
    );
}

/* Receipt styling */
.receipt-top {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 15px;
}

.store-name {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #333;
}

.receipt-date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.receipt-items {
    padding: 12px 0;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    opacity: 0;
    transform: translateX(-10px);
}

.receipt-line.show {
    animation: writeIn 0.6s ease-out forwards;
}

@keyframes writeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.receipt-line.handwritten {
    font-family: 'Kalam', cursive;
    transform: rotate(-0.5deg);
    margin-left: 5px;
}

.item-name {
    font-size: 13px;
    color: #444;
    max-width: 60%;
}

.item-price {
    font-size: 14px;
    font-weight: bold;
}

.item-price.positive {
    color: #4A9B7F;
}

.item-price.positive-dim {
    color: #4A9B7F;
    opacity: 0.6;
}

.item-price.negative {
    color: #D85545;
}

.item-price.warning {
    color: #E89B36;
}

.item-price.large {
    font-size: 16px;
}

.receipt-divider {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 8px 0;
    opacity: 0;
    letter-spacing: 2px;
}

.receipt-divider.show {
    animation: fadeIn 0.5s ease-out forwards;
}

.receipt-divider.double {
    font-weight: bold;
    color: #666;
}

.receipt-line.subtotal {
    padding-top: 8px;
    font-weight: bold;
}

.receipt-line.total {
    padding-top: 10px;
    border-top: 2px solid #333;
    margin-top: 10px;
}

.receipt-line.total .item-name {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.receipt-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
    text-align: center;
}

.barcode {
    font-size: 12px;
    letter-spacing: 1px;
    color: #999;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 5s forwards;
}

/* Story Content (Right side) */
.receipt-story-section .story-content {
    padding-top: 20px;
}

.receipt-story-section .story-paragraph {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInText 1s ease-out forwards;
    text-align: left;
}

.receipt-story-section .story-paragraph:first-child::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    margin: 0.1em 0.15em 0 0;
    padding-right: 0.05em;
    font-weight: 700;
    color: var(--accent);
    font-family: "Caveat", Georgia, serif;
}

.receipt-story-section .story-paragraph:nth-child(1) {
    animation-delay: 0.5s;
}

.receipt-story-section .story-paragraph:nth-child(2) {
    animation-delay: 1s;
}

.receipt-story-section .story-paragraph:nth-child(3) {
    animation-delay: 1.5s;
}

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

.quote {
    font-style: normal;  /* Changed from italic */
    color: #4A4A4A;
    background: linear-gradient(to right, transparent 0%, rgba(212, 181, 160, 0.1) 10%, rgba(212, 181, 160, 0.1) 90%, transparent 100%);
    padding: 0 4px;
}

.emphasis {
    font-weight: 600;
    color: #D85545;
    font-style: normal;  /* Changed from italic */
}

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

/* Scrollytelling Section with Map */
.scrolly {
    position: relative;
    display: flex;
    background: #FAF8F5;
    padding: 2rem 1rem;
    min-height: 100vh;
}

/* Sticky map on the left */
figure.sticky-figure {
    position: sticky;
    top: 5vh;
    height: 90vh;
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

/* Square map container */
.map-container-scroll {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

#scrollMap {
    width: 100%;
    height: 100%;
}

/* Map overlay */
.map-overlay-scroll {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.8s ease;
    width: 90%;
}

.map-overlay-scroll .overlay-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    margin-bottom: 0.5rem;
}

.map-overlay-scroll .overlay-subtitle {
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

.map-overlay-scroll.fade-out {
    opacity: 0;
}

/* Article with steps on the right */
article {
    flex: 1;
    padding: 0 2rem;
    max-width: 500px;
}

/* Individual steps */
.step {
    margin: 0 auto 100vh;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.step:last-child {
    margin-bottom: 50vh;
}

/* Step content */
.step-content {
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.85) 0%, 
                rgba(250, 248, 245, 0.75) 100%);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(212, 181, 160, 0.05) 50%, 
                transparent 100%);
    pointer-events: none;
}

.step.is-active .step-content {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: gentlePulse 3s ease-in-out infinite;
}

.step-label {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(139, 134, 128, 0.9);
    margin-bottom: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 181, 160, 0.15);
    border-radius: 20px;
}

.step h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: rgba(44, 41, 38, 0.95);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 600;
    transform: rotate(-0.5deg);
}

.step p {
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(107, 101, 96, 0.9);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.cost {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, 
                rgba(216, 85, 69, 0.08) 0%, 
                rgba(216, 85, 69, 0.12) 100%);
    border-radius: 20px;
    color: rgba(216, 85, 69, 0.95);
    font-weight: 700;
    border: 1px solid rgba(216, 85, 69, 0.15);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cost:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, 
                rgba(216, 85, 69, 0.12) 0%, 
                rgba(216, 85, 69, 0.18) 100%);
}

.cost.final {
    background: linear-gradient(135deg, #D85545 0%, #E06B5C 100%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    padding: 0.4rem 1.2rem;
    box-shadow: 0 4px 12px rgba(216, 85, 69, 0.3);
    border: none;
}

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

/* Journey statistics overlay */
.journey-stats {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    animation: slideUp 1s ease;
    z-index: 10;
}

.journey-stats .stat-item {
    text-align: center;
}

.journey-stats .stat-number {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: #FF6B6B;
    font-weight: 700;
}

.journey-stats .stat-label {
    display: block;
    font-family: 'Kalam', cursive;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Environmental Impact Section with Compact Calculator */
.environmental-section {
    background: #FAF8F5;
    padding: 4rem 2rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.impact-intro {
    margin-bottom: 3rem;
}

.impact-paragraph {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2C2C2C;
    text-align: center;
}

/* Compact CO2 Calculator */
.co2-section {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
    margin: 3rem 0;
}

.co2-calculator-compact {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(212, 181, 160, 0.2);
    position: sticky;
    top: 2rem;
}

.calculator-title-compact {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: #2C2926;
    text-align: center;
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.input-group-compact {
    margin-bottom: 1.5rem;
}

.input-group-compact label {
    display: block;
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
    color: #6B6560;
    margin-bottom: 0.5rem;
}

#returnSlider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #4ECDC4 0%, #FFD93D 50%, #FF6B6B 100%);
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    -webkit-appearance: none;
}

#returnSlider:hover {
    opacity: 1;
}

#returnSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2C2926;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-value {
    display: inline-block;
    margin-left: 0.5rem;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #D85545;
    font-weight: 600;
}

/* Visual Equation */
.impact-equation {
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.5) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.equation-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.equation-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.equation-item:hover {
    transform: translateY(-5px);
}

.equation-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.equation-number {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #D85545;
    font-weight: 700;
    display: block;
}

.equation-label {
    font-family: 'Kalam', cursive;
    font-size: 0.8rem;
    color: #6B6560;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equation-plus {
    font-size: 2rem;
    color: #FFD93D;
    font-weight: bold;
}

.equation-equals {
    font-size: 2rem;
    color: #6B6560;
    font-weight: bold;
}

.equation-result {
    background: linear-gradient(135deg, #D85545 0%, #E06B5C 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    transform: scale(1.1);
}

.equation-result .equation-number {
    color: white;
    font-size: 2.2rem;
}

.comparison-text {
    text-align: center;
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    color: #6B6560;
    padding: 1rem;
    background: rgba(212, 181, 160, 0.1);
    border-radius: 8px;
}

.comparison-text .highlight {
    color: #D85545;
    font-weight: 600;
}

/* Comparison Section - Tale of Two Sweaters */
.comparison-section {
    background: #FEFDFB;
    padding: 4rem 2rem;
}

.comparison-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.comparison-story {
    padding-right: 2rem;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: #2C2926;
    margin-bottom: 2rem;
    transform: rotate(-0.5deg);
}

.retailer-comparison {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.success-story, .failure-story {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.success-story {
    border-left: 4px solid #4ECDC4;
}

.failure-story {
    border-left: 4px solid #FF6B6B;
}

.success-story h3 {
    color: #4ECDC4;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
    transform: none;
}

.failure-story h3 {
    color: #FF6B6B;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
    transform: none;
}


.emphasis-text {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    text-align: center;
    color: #D85545;
    margin: 2rem 0;
    font-weight: 600;
}

.comparison-story h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: #2C2926;
    margin: 2rem 0 1rem;
    transform: rotate(-0.3deg);
}

.comparison-visual {
    position: sticky;
    top: 2rem;
}

.visual-title {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #2C2926;
    margin-bottom: 1.5rem;
    text-align: center;
}

.flourish-embed {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Myth and Liquidation Section */
.myth-section {
    background: #FAF8F5;
    padding: 4rem 2rem;
}

.myth-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Fix the drop cap spacing */
.myth-content .story-paragraph:first-child::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    margin: 0.1em 0.05em 0 0;
    padding-right: 0.02em;
    font-weight: 700;
    color: var(--accent);
    font-family: "Caveat", Georgia, serif;
}

/* Photo collage - Smaller, no cropping, text wraps around */
.photo-collage {
    float: right;
    width: 35%;
    margin: 0 0 1.5rem 1.5rem;
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    clear: right;
}

.collage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.collage-img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 6px;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 2px;
    display: block;
}

.collage-img.large {
    grid-column: span 2;
    max-height: 180px;
}

.collage-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.photo-caption {
    font-family: 'Kalam', cursive;
    font-size: 0.8rem;
    color: #6B6560;
    text-align: center;
    font-style: normal;  /* Changed from italic */
    margin-top: 0.5rem;
}

/* Ensure proper text wrapping */
.myth-content .story-paragraph {
    text-align: justify;
}

/* Liquidation content */
.liquidation-content {
    max-width: 900px;
    margin: 4rem auto 0;
    clear: both;
}

/* Impact quotes */
.truth-quotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.impact-quote {
    background: linear-gradient(135deg, rgba(216, 85, 69, 0.05) 0%, rgba(216, 85, 69, 0.1) 100%);
    border-left: 4px solid #D85545;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0;
}

.impact-quote p {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #2C2926;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.impact-quote cite {
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
    color: #6B6560;
    font-style: normal;
}

.story-paragraph.emphasis {
    font-size: 1.2rem;
    font-weight: 600;
    color: #D85545;
    text-align: center;
    margin: 3rem auto;
    max-width: 700px;
}


/* Gallery Modal Styles - Beautiful and Functional */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.gallery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Close button */
.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gallery-close:hover {
    color: #D85545;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Gallery content container */
.gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main gallery image */
.gallery-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

/* Caption styling */
.gallery-caption {
    color: white;
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Pretty Gallery Buttons */
.gallery-prev, 
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #D85545;
    color: white;
    transform: translateY(-50%) scale(1.15);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev::after {
    content: '‹';
}

.gallery-next::after {
    content: '›';
}

/* Position the buttons properly */
.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Make sure the arrows show properly */
.gallery-prev::after {
    content: '‹';
    font-size: 35px;
}

.gallery-next::after {
    content: '›';
    font-size: 35px;
}

/* Thumbnail strip at bottom */
.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    filter: brightness(0.7);
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1);
    border-color: rgba(255, 255, 255, 0.5);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #D85545;
    transform: scale(1.15);
    filter: brightness(1);
    box-shadow: 0 4px 15px rgba(216, 85, 69, 0.4);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .gallery-prev, 
    .gallery-next {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-prev::after,
    .gallery-next::after {
        font-size: 25px;
    }
    
    .gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 35px;
    }
    
    .gallery-thumbnails {
        flex-wrap: wrap;
        max-width: 90%;
        margin: 1rem auto;
    }
    
    .gallery-thumb {
        width: 50px;
        height: 50px;
    }
}

/* Make sure buttons are clickable on all devices */
@media (pointer: coarse) {
    .gallery-prev, 
    .gallery-next {
        width: 60px;
        height: 60px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .scrolly {
        flex-direction: column;
    }
    
    figure.sticky-figure {
        position: relative;
        height: 50vh;
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .map-container-scroll {
        height: 100%;
        max-width: 100%;
    }
    
    .comparison-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-story {
        padding-right: 0;
    }
    
    .comparison-visual {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 4rem;
    }
    
    .paper__inner {
        padding: 2rem 1.25rem 1.75rem;
    }
    
    h1 {
        font-size: clamp(32px, 10vw, 48px);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .receipt-container {
        position: static;
        max-width: 320px;
        margin: 0 auto 2rem;
    }
    
    .story-section .story-paragraph,
    .receipt-story-section .story-paragraph {
        font-size: 16px;
        line-height: 1.75;
    }
    
    .co2-section {
        grid-template-columns: 1fr;
    }
    
    .co2-calculator-compact {
        position: static;
        max-width: 320px;
        margin: 0 auto 2rem;
    }
    
    .equation-display {
        flex-direction: column;
    }
    
    .equation-plus, .equation-equals {
        transform: rotate(90deg);
    }
    
    .photo-collage {
        float: none;
        width: 100%;
        margin: 2rem 0;
    }
    
    .collage-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .collage-img {
        max-height: 120px;
    }
    
    .collage-img.large {
        grid-column: span 3;
        max-height: 150px;
    }
    
    .truth-quotes {
        grid-template-columns: 1fr;
    }
    
    .gallery-prev, .gallery-next {
        left: 10px;
        right: 10px;
        top: unset;
        bottom: 80px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
        left: unset;
    }
    
    .gallery-thumbnails {
        flex-wrap: wrap;
        max-width: 90%;
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .receipt-container {
        max-width: 280px;
    }
    
    .receipt-paper {
        padding: 20px;
    }
    
    .item-name {
        font-size: 12px;
    }
    
    .item-price {
        font-size: 13px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cta .chev {
        animation: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.skip-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.skip-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Kalam', cursive;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skip-btn:hover {
    background: rgba(216, 85, 69, 0.9);
    border-color: #D85545;
    transform: translateY(-2px);
}

.skip-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.skip-to-end {
    background: rgba(216, 85, 69, 0.8);
}

/* Map marker styles */
.map-marker {
    position: relative;
}

.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.marker-label {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    pointer-events: none;
}

.marker-label .cost {
    font-weight: bold;
    color: #FF6B6B;
}

.marker-label .location {
    margin-left: 5px;
    color: #fff;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* === Final mini-map + caption (clean) === */
.final-section-wrapper {
  max-width: 900px;
  margin: 3rem auto 4rem;
  text-align: center;
  padding: 0 1rem;
}

.map-background {
  width: 100%;
  height: 260px;
  background-image: url('../assets/6.jpeg'); /* correct relative path from css/style.css */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(1.15) contrast(1.05);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  margin: 0 auto 0.75rem;
}


.final-thought {
  margin: 0;
  padding: 0;
  font-family: 'Kalam', cursive;
  font-size: 1.1rem;
  color: #111;
  line-height: 1.6;
  border: none;
  background: transparent;
  text-shadow: none;
}
