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

:root {
    --chocolate-dark: #1a0f0a;
    --chocolate-mid: #2d1810;
    --chocolate-warm: #3d2817;
    --gold: #d4af37;
    --gold-light: #f4e4c1;
    --cream: #faf8f5;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg,
        var(--chocolate-dark) 0%,
        var(--chocolate-mid) 50%,
        var(--chocolate-warm) 100%);
    color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
    -ms-overflow-style: none; /* IE */
}

/* Performance: Prevent image reloading during scroll */
img {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}

/* NEW LAYERED TIMELINE - Brand New Section */
.layered-timeline-wrapper {
    width: 100vw;
    margin: 0;
    padding: 0;
    background: var(--chocolate-dark);
}

.layered-timeline-box {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.layered-bg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.layered-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.layered-img:hover {
    filter: brightness(1.3) drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
}

/* Tid Section (Historien) */
.tid-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--chocolate-dark);
}

.tid-bg {
    display: block;
    width: 100%;
    height: auto;
}

.tid-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    cursor: pointer;
    transition: filter 0.3s ease;
    z-index: 10;
}

.tid-layer.glow {
    filter: brightness(1.5) drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.tid-textbox {
    position: absolute;
    max-width: 320px;
    padding: 2rem;
    background: rgba(26, 15, 10, 0.95);
    border: 1px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 100;
}

.tid-textbox.visible {
    opacity: 1;
    visibility: visible;
}

.tid-textbox-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.tid-textbox-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--cream);
    line-height: 1.6;
}

.tid-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-align: center;
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3);
    margin: 0;
}

/* Gold line divider */
.gold-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold-light) 50%,
        var(--gold) 80%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 100;
}

/* New Horizontal Timeline Section */
.timeline-section {
    position: relative;
    width: 100%;
    background: var(--chocolate-dark);
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.3);
}

.timeline-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-align: center;
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3);
    margin: 0;
}

/* Mobile-only header section - hidden on desktop */
.timeline-header-section {
    display: none;
}

.timeline-viewport {
    width: 100%;
    overflow: hidden;
}

.timeline-track {
    position: relative;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-bg {
    display: block;
    height: auto;
    min-width: max-content;
}

.timeline-element {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    opacity: 0.4;
    filter: brightness(0.6);
    transition: opacity 0.5s ease, filter 0.5s ease;
    pointer-events: none;
}

.timeline-viewport {
    cursor: inherit;
}

.timeline-element.active {
    opacity: 1;
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

/* Navigation arrows */
.timeline-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(26, 15, 10, 0.8);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 3rem;
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.timeline-arrow:hover {
    background: var(--gold);
    color: var(--chocolate-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.timeline-arrow-left {
    left: 20px;
}

.timeline-arrow-right {
    right: 20px;
}

/* Text section below timeline - same height as timeline viewport */
.timeline-text-section {
    background: var(--chocolate-dark);
    padding: 2rem;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-top: 3px solid var(--gold);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.timeline-text-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-text {
    max-width: 800px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.timeline-text h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.timeline-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--cream);
    line-height: 1.8;
}

/* Navigation arrows in text section */
.timeline-text-arrow {
    background: rgba(26, 15, 10, 0.8);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 3rem;
    width: 60px;
    min-width: 60px;
    height: 80px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    flex-shrink: 0;
    margin: 0 1rem;
}

.timeline-text-arrow:hover {
    background: var(--gold);
    color: var(--chocolate-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: spin 2s linear infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--chocolate-dark);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 10px 0;
    min-height: 2em;
}

.keyhole-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.keyhole-container.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.keyhole-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.5s ease;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    transform-style: preserve-3d;
    perspective: 1000px;
    /* Remove blue tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.keyhole-image:hover {
    opacity: 1;
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) scale(1.05);
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.9));
    animation: none;
}

.keyhole-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--chocolate-dark);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Intro Video */
.intro-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--chocolate-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.intro-video-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Prevent scrolling when video is playing */
body.video-playing {
    overflow: hidden;
    height: 100vh;
}

.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('bg_med_text.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 100;
}

/* Animated text overlay */
.hero-text-overlay {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-title {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    filter: blur(20px);
    animation: titleMeltIn 3s ease-out 0.5s forwards,
               floatTitle 4s ease-in-out 3.5s infinite;
}

@keyframes titleMeltIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(0);
        filter: blur(20px);
    }
    50% {
        opacity: 0.5;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes floatTitle {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1) translateY(-15px);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: meltIn 2.5s ease-out 0.5s forwards;
}

@keyframes meltIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.brand-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4.5rem, 14vw, 12rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 4s ease-in-out infinite;
    text-transform: none;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 0 0 60px rgba(212, 175, 55, 0.5);
    }
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 200;
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1.5s forwards;
    text-transform: uppercase;
}

.hero-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    opacity: 0;
    color: var(--gold-light);
    animation: fadeInUp 1.5s ease-out 2s forwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0;
    animation: bounce 2s ease-in-out 3s infinite, fadeInUp 1s ease-out 3s forwards;
}

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

/* Chocolate Section Title */
.chocolate-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-align: center;
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3);
    margin: 0;
    pointer-events: none;
}

/* Interactive Chocolate Section */
.chocolate-interactive-section {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.3), 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 5;
    cursor: url('cursor_bird.webp') 2 2, auto;
}

.chocolate-background {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
    will-change: transform;
    pointer-events: none;
}

.chocolate-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    transition: opacity 0.3s ease;
    animation: floatChocolate 4s ease-in-out infinite;
}

/* Stagger animation for each chocolate */
.chocolate-piece:nth-child(2) {
    animation-delay: 0.5s;
}

.chocolate-piece:nth-child(3) {
    animation-delay: 1s;
}

.chocolate-piece:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes floatChocolate {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.chocolate-zone {
    position: absolute;
    top: 0;
    height: 100%;
    cursor: url('cursor_3.webp') 2 2, pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.chocolate-zone:hover {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
}

/* Mobile chocolate elements - hidden on desktop */
.chocolate-nav,
.chocolate-dots,
.chocolate-mobile-container {
    display: none;
}

/* Timeline Section */
.timeline-section {
    width: 100%;
    position: relative;
    background: var(--chocolate-dark);
}

.timeline-container {
    position: relative;
    width: 100%;
    line-height: 0;
}

.timeline-background {
    display: block;
    width: 100%;
    height: auto;
}

.timeline-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: filter 0.3s ease;
    pointer-events: auto;
}

.timeline-piece:hover {
    filter: brightness(1.3) drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
}

.timeline-piece.active {
    filter: brightness(1.5) drop-shadow(0 0 40px rgba(212, 175, 55, 1));
}

/* Timeline Info Box */
.timeline-info-box {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    max-width: 90vw;
    background: linear-gradient(135deg, var(--chocolate-warm) 0%, var(--chocolate-dark) 100%);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.timeline-info-box.visible {
    right: 2rem;
}

.timeline-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-info-close:hover {
    background: var(--gold);
    color: var(--chocolate-dark);
    transform: rotate(90deg);
}

.timeline-info-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.timeline-info-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1.6;
}

/* Collection Section */
.collection {
    min-height: 100vh;
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 5rem;
    text-align: center;
    opacity: 0;
    animation: meltIn 2s ease-out forwards;
    animation-play-state: paused;
    text-transform: none;
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(212, 175, 55, 0.3);
}

.section-title.visible {
    animation-play-state: running;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.chocolate-card {
    background: linear-gradient(135deg,
        rgba(61, 40, 23, 0.3) 0%,
        rgba(29, 24, 16, 0.5) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    overflow: hidden;
}

.chocolate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 100%);
    transition: left 0.8s ease;
}

.chocolate-card:hover::before {
    left: 100%;
}

.chocolate-card.visible {
    animation: cardMeltIn 1s ease-out forwards;
}

@keyframes cardMeltIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chocolate-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

/* Image-based chocolate cards */
.chocolate-image-card {
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
}

.chocolate-image-card::before {
    display: none;
}

.chocolate-product-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.chocolate-image-card:hover .chocolate-product-image {
    transform: translateY(-15px) scale(1.05);
    filter: drop-shadow(0 20px 50px rgba(212, 175, 55, 0.4));
}

.card-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
}

.chocolate-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.3),
        1px 1px 3px rgba(0, 0, 0, 0.4);
}

.chocolate-card p {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-shadow:
        0 0 15px rgba(212, 175, 55, 0.3),
        1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Philosophy Section */
.philosophy {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(26, 15, 10, 0.5) 100%);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(50px);
}

.philosophy-content.visible {
    animation: meltIn 2s ease-out forwards;
}

.philosophy-text-section {
    text-align: left;
}

.philosophy-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 3rem;
    text-transform: none;
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(212, 175, 55, 0.3);
}

.philosophy-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    line-height: 2.5;
    color: var(--gold-light);
    font-style: italic;
}

.philosophy-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.philosophy-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.philosophy-image img:hover {
    transform: scale(1.05);
}

/* ====== STORYTELLING SECTIONS ====== */

/* Common subtitle styling */
.story-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.6);
    text-align: center;
    margin: -3rem 0 4rem 0;
    font-style: italic;
}


/* ALTERNATIV 2: Process Section */
.process-section {
    min-height: 100vh;
    padding: 8rem 2rem;
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg,
        rgba(61, 40, 23, 0.2) 0%,
        rgba(29, 24, 16, 0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover {
    transform: translateY(-15px);
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

.process-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.process-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.process-step > p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.process-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.process-step:hover .process-detail {
    max-height: 200px;
}

.process-detail p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--cream);
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

.process-arrow {
    font-size: 3rem;
    color: var(--gold);
    align-self: center;
    opacity: 0.5;
}

.process-progress {
    max-width: 1400px;
    margin: 4rem auto 0;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.process-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 1s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.process-progress-bar.active {
    width: 100%;
}

/* ALTERNATIV 3: Laterna Magica */
.laterna-magica-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.projector-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Bildvisare overlay - shows on top with transparency in middle */
.projector-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bildvisare.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

/* Hide old ornate corner decorations - now using bildvisare.webp */
.frame-corner {
    display: none;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide.exiting {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Vignette effect - behind bildvisare overlay */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top,
        rgba(26, 15, 10, 0.95) 0%,
        rgba(26, 15, 10, 0.7) 50%,
        transparent 100%);
    z-index: 3;
    text-align: center;
}

.slide-text h3 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.slide-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--cream);
    line-height: 1.6;
}

.click-hint {
    display: none;
}

.slide-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 20;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    background: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: scale(1.3);
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.7);
    background: var(--chocolate-dark);
    position: relative;
    z-index: 10;
}

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

.contact-info p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    /* Remove blue tap highlight globally on mobile */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    /* Mobile background image - cover screen */
    .hero {
        background-image: url('bg_mobil.webp');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    /* Mobile intro video - cover screen */
    .intro-video {
        object-fit: cover;
        object-position: center center;
    }

    /* Gold divider between sections */
    .gold-divider {
        display: block;
        height: 3px;
        background: var(--gold);
    }

    .hero-text-overlay {
        max-width: 90%;
    }

    /* Large golden scroll arrow */
    .scroll-indicator {
        font-size: 3rem;
        bottom: 2rem;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }

    .collection-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .philosophy-text-section {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .brand-name {
        letter-spacing: 0.2em;
    }

    .tagline {
        letter-spacing: 0.3em;
    }
}

/* 3D Sparrow King Mascot */
#sparrow-container {
    position: absolute;
    width: 650px;
    height: 650px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    /* Performance optimizations */
    will-change: transform, left, top;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#sparrow-container.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    #sparrow-container {
        width: 400px;
        height: 400px;
    }
}

/* Cursor Effect */
@media (hover: hover) {
    body {
        cursor: url('cursor_bird.webp') 2 2, auto;
    }

    a, button, .scroll-indicator, .chocolate-card,
    .tid-layer, .indicator-dot, .timeline-arrow, .timeline-text-arrow, .keyhole-image {
        cursor: url('cursor_3.webp') 2 2, pointer !important;
    }

    #sparrow-container {
        cursor: url('cursor_grab.webp') 16 16, grab;
    }

    #sparrow-container:active {
        cursor: url('cursor_grab.webp') 16 16, grabbing;
    }
}

/* Guldägg Section */
.guldagg-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--chocolate-dark);
}

.guldagg-bg {
    display: block;
    width: 100%;
    height: auto;
}

.guldagg-egg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    cursor: inherit;
    transition: filter 0.3s ease;
    z-index: 10;
}

.guldagg-egg:hover {
    filter: brightness(1.2) drop-shadow(0 0 40px rgba(212, 175, 55, 0.9)) drop-shadow(0 0 80px rgba(180, 140, 20, 0.7));
}

.guldagg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 20;
}

.guldagg-bg-final {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 15;
}

/* Sparv-Kungen flashing text */
.sparv-kungen-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    color: #e8a030;
    text-align: center;
    text-shadow:
        0 0 40px rgba(180, 50, 20, 0.9),
        0 0 80px rgba(180, 50, 20, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.8),
        0 0 120px rgba(212, 100, 30, 0.5);
    letter-spacing: 0.1em;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
}

.sparv-kungen-text.visible {
    animation: flashText 0.4s ease-in-out 8;
}

@keyframes flashText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Gold sparkles around biljett */
.sparkles-wrapper {
    position: relative;
    display: inline-block;
}

.gold-sparkles {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    pointer-events: none;
    overflow: visible;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====== MOBILE STYLES ====== */
@media (max-width: 768px) {
    /* 1. Smaller loading text */
    .loading-text,
    .keyhole-text {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    /* 2. Chocolate section - static background with sliding chocolates */
    .chocolate-interactive-section {
        position: relative;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        background: #1a0a05; /* Dark brown to match c_bg.webp */
    }

    .chocolate-section-title {
        font-size: 1.8rem;
        letter-spacing: 0.15em;
        white-space: nowrap;
        top: 4rem; /* Lower the title on mobile */
    }

    /* Hide desktop scroll wrapper on mobile */
    .chocolate-scroll-wrapper {
        display: none;
    }

    /* Mobile chocolate container */
    .chocolate-mobile-container {
        display: flex;
        position: relative;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .chocolate-mobile-bg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        width: auto;
        z-index: 1;
    }

    .chocolate-mobile-track {
        position: relative;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 300%; /* 3 chocolates */
        height: 100%;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateX(0); /* Start centered on middle chocolate */
    }

    .chocolate-mobile-item {
        flex: 0 0 33.333%;
        max-height: 60%;
        object-fit: contain;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: floatChocolate 4s ease-in-out infinite;
    }

    .chocolate-mobile-item:nth-child(1) { animation-delay: 0s; }
    .chocolate-mobile-item:nth-child(2) { animation-delay: 1.3s; }
    .chocolate-mobile-item:nth-child(3) { animation-delay: 2.6s; }

    .chocolate-nav {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 15px;
        z-index: 20;
        pointer-events: none;
    }

    .chocolate-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(212, 175, 55, 0.9);
        border: 2px solid var(--chocolate-dark);
        color: var(--chocolate-dark);
        font-size: 1.5rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        pointer-events: auto;
    }

    .chocolate-nav-btn:active {
        transform: scale(0.95);
        background: var(--gold-light);
    }

    .chocolate-dots {
        display: none;
    }

    .chocolate-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(212, 175, 55, 0.4);
        border: 2px solid var(--gold);
        transition: all 0.3s ease;
    }

    .chocolate-dot.active {
        background: var(--gold);
        transform: scale(1.2);
    }

    /* 3. Hide glitter particles */
    .gold-sparkles,
    .sparkle {
        display: none !important;
    }

    /* 4. Timeline section - symbols visible, text below */
    .timeline-section {
        min-height: auto;
        padding-bottom: 0;
    }

    /* Timeline header section - "Vår Historia" title */
    .timeline-header-section {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 220px;
        background: var(--chocolate-dark);
        border-bottom: 3px solid var(--gold);
        padding: 1.5rem;
    }

    .timeline-header-title {
        font-family: 'Great Vibes', cursive;
        font-size: 3rem;
        color: var(--gold);
        text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
        margin: 0;
        text-align: center;
        width: 100%;
    }

    /* Hide original title on mobile */
    .timeline-section-title {
        display: none !important;
    }

    .timeline-viewport {
        height: 45vh;
        min-height: 200px;
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    .timeline-track {
        height: 100%;
    }

    .timeline-bg {
        height: 100%;
        width: auto;
    }

    .timeline-element {
        height: 100%;
    }

    .timeline-text-section {
        position: relative;
        margin-top: 0;
        padding: 1.5rem 0.5rem 2rem;
        height: 250px; /* Fixed height to prevent layout shifts */
        border-top: 3px solid var(--gold);
        background: var(--chocolate-dark);
        z-index: 5;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .timeline-text-arrow {
        width: 40px;
        min-width: 40px;
        height: 40px;
        font-size: 1.3rem;
        flex-shrink: 0;
        margin: 0 0.3rem;
        display: flex !important;
    }

    .timeline-text h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .timeline-text p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .timeline-text-content {
        padding: 0 0.5rem;
    }

    /* 5. Sparrow king - using 2D image on mobile, clickable for spin */
    #sparrow-container img {
        pointer-events: auto;
        cursor: pointer;
    }

    /* 6. Enable touch dragging on sparrow */
    #sparrow-container {
        touch-action: none;
        pointer-events: auto !important;
    }

    /* 7. Egg cup section - crop to center and make taller */
    .guldagg-section {
        height: 80vh;
        min-height: 500px;
        overflow: hidden;
    }

    .guldagg-bg,
    .guldagg-egg,
    .guldagg-video,
    .guldagg-bg-final {
        width: 300%;
        left: -100%;
        object-fit: cover;
        object-position: center;
    }

    /* 8. Larger "Sparv-Kungen har blivit kallad!" text */
    .sparv-kungen-text {
        font-size: 12vw;
        line-height: 1.2;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* 9. Gold line above footer */
    .footer {
        border-top: 3px solid var(--gold);
        margin-top: 0;
        padding-top: 2rem;
    }
}
