/* ============================================================
   THE AARHUS ENGINE — PAGE STYLES
   Add these to your main stylesheet
============================================================ */

/* HERO ADDITIONS */
.aarhus-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.scroll-arrow {
    animation: bounceDown 1.6s ease-in-out infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


/* ============================================================
   JOURNEY WRAPPER — controls pin duration
   500vh = 5 chapters × 100vh each
============================================================ */
.journey-wrapper {
    position: relative;
    height: 500vh;
    display: block;
}

.journey-stage {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--obsidian);
    z-index: 100;
}

/* CHAPTER PROGRESS DOTS */
.journey-progress {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.jp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.jp-dot.active {
    background: var(--mint);
    transform: scale(1.4);
}

/* CHAPTER COUNTER */
.journey-counter {
    position: absolute;
    left: 40px;
    bottom: 40px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    letter-spacing: 0.1em;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jc-sep {
    opacity: 0.3;
}

#journeyCurrentChapter {
    color: var(--mint);
    font-size: 1rem;
}

/* SKIP BUTTON */
.journey-skip {
    position: absolute;
    top: 32px;
    right: 80px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    transition: all 0.2s;
    font-family: inherit;
}

.journey-skip:hover {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}


/* ============================================================
   INDIVIDUAL CHAPTERS
============================================================ */
.journey-chapter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    z-index: 1;
}

.journey-chapter.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* CHAPTER BACKGROUNDS */
.jc-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 0.7s;
}

.jc-bg--0 {
    background: radial-gradient(ellipse at 20% 50%, #1a1a2e 0%, #0a0a0a 70%);
}

.jc-bg--1 {
    background: radial-gradient(ellipse at 80% 30%, #0d1f0d 0%, #0a0a0a 70%);
}

.jc-bg--2 {
    background: radial-gradient(ellipse at 50% 80%, #1a0d00 0%, #0a0a0a 70%);
}

.jc-bg--3 {
    background: radial-gradient(ellipse at 10% 60%, #0a1a1a 0%, #0a0a0a 70%);
}

.jc-bg--4 {
    background: radial-gradient(ellipse at 50% 50%, #0a1a0d 0%, #0a0a0a 70%);
}

/* CHAPTER CONTENT LAYOUT */
.jc-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.jc-content--reverse {
    direction: rtl;
}

.jc-content--reverse>* {
    direction: ltr;
}

.jc-content--center {
    grid-template-columns: 1fr;
    max-width: 680px;
    text-align: center;
}

/* TEXT BLOCK */
.jc-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 255, 170, 0.25);
    border-radius: 100px;
}

.jc-headline {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.jc-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    max-width: 440px;
}

.jc-text-block--center .jc-body {
    margin: 0 auto;
    text-align: center;
}

.jc-cta {
    margin-top: 40px;
}

/* IMAGE BLOCK */
.jc-img-frame {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    display: flex;
    flex-direction: column;
}

.jc-img-frame--dark {
    background: rgba(0, 0, 0, 0.4);
}

.jc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.jc-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Placeholder if images not found */
.jc-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    text-align: center;
}

/* Chapter enter/exit animation */
.journey-chapter {
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.journey-chapter.active {
    transform: translateY(0);
}


/* ============================================================
   FOUNDER SECTION
============================================================ */
.founder-section {
    padding: 140px 0;
    /* Added a bit more vertical breathing room */

    /* CRITICAL FIX: Break out of the 800px text limit to make the section wider */
    max-width: 1150px !important;
    margin: 0 auto;
}

.founder-split {
    display: grid;
    /* 1fr 1fr gives exactly 50% width to the image and 50% to the text */
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.founder-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;

    /* NEW: A premium, soft drop-shadow to make the larger image pop off the screen */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);

    background: var(--gray-bg);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}

.founder-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.founder-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.8rem;
}

.founder-badge {
    position: absolute;
    /* Moved slightly further from the edge since the image is bigger now */
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--obsidian);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.founder-text-col .subtitle {
    display: inline-block;
    margin-bottom: 16px;
}

.founder-text-col h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.founder-text-col p {
    color: #777;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.founder-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.fs-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fs-item strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--obsidian);
    letter-spacing: -0.02em;
}

.fs-item span {
    font-size: 0.78rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}


/* ============================================================
   PRINCIPLES SECTION
============================================================ */
.principles-section {
    background: var(--obsidian);
    padding: 100px 0;
}

.principles-section .section-header h2 {
    color: #fff;
}

.principles-section .section-header p {
    color: rgba(255, 255, 255, 0.4);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.principle-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 40px 32px;
    transition: background 0.3s, border-color 0.3s;
}

.principle-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 255, 170, 0.2);
}

.pc-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.principle-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.principle-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}


/* ============================================================
   AARHUS PHOTO SECTION
============================================================ */
.aarhus-photo-section {
    padding: 80px 0;
}

.aarhus-photo-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    background: var(--obsidian);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    display: flex;
    align-items: flex-end;
}

.aarhus-photo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.aarhus-photo-placeholder img {
    display: none;
}

.aarhus-photo-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    padding: 60px 60px 50px;
    width: 100%;
}

.aarhus-photo-overlay blockquote {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    line-height: 1.6;
    max-width: 680px;
    font-weight: 500;
    border: none;
    margin: 0;
    padding: 0;
}


/* ============================================================
   RESPONSIVE
============================================================ */
/* ============================================================
   RESPONSIVE (REPLACE YOUR EXISTING MEDIA QUERIES WITH THIS)
============================================================ */
@media (max-width: 900px) {

    /* Compress the content to fit inside a single mobile screen */
    .jc-content {
        grid-template-columns: 1fr;
        gap: 15px;
        /* Reduced gap */
        padding: 0 50px 0 24px;
        /* Give room on the right for the progress dots */
    }

    .jc-content--reverse {
        direction: ltr;
        /* Reset desktop reverse */
    }

    /* Shrink the image so the text has room to breathe */
    .jc-img-frame {
        max-height: 25vh;
        /* Scales based on screen height */
        min-height: 180px;
        border-radius: 12px;
    }

    .jc-year {
        margin-bottom: 12px;
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    /* Scale down headlines for mobile */
    .jc-headline {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 12px;
    }

    .jc-body {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .jc-cta {
        margin-top: 20px;
    }

    /* Move UI elements so they don't overlap content */
    .journey-skip {
        top: 20px;
        right: 20px;
        /* Move to corner */
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
    }

    .journey-progress {
        right: 12px;
        /* Hug the right edge tightly */
    }

    .journey-counter {
        left: 24px;
        bottom: 24px;
    }

    /* Founder & Aarhus specific mobile fixes */
    .founder-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .founder-img-wrap {
        aspect-ratio: 4/3;
    }

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

    .aarhus-photo-overlay {
        padding: 40px 24px 36px;
    }
}


@media (max-width: 600px) {
    .jc-content {
        padding: 0 20px;
    }

    .founder-stats {
        gap: 24px;
    }
}