/* Aptos Font Family */
@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Light-Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Bold-Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-ExtraBold-Italic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Black-Italic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Aptos Display - til overskrifter */
@font-face {
    font-family: 'Aptos Display';
    src: url('fonts/Aptos-Display.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Display';
    src: url('fonts/Aptos-Display-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Display';
    src: url('fonts/Aptos-Display-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Display';
    src: url('fonts/Aptos-Display-Bold-Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Aptos Serif - til accenter */
@font-face {
    font-family: 'Aptos Serif';
    src: url('fonts/Aptos-Serif.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Serif';
    src: url('fonts/Aptos-Serif-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Serif';
    src: url('fonts/Aptos-Serif-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Serif';
    src: url('fonts/Aptos-Serif-Bold-Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary-burgundy: #5D0512;
    --primary-beige: #F2E2D5;
    --accent-dark: #202020;
    --accent-light: #F8F8F8;
    --text-dark: #000;
    --text-light: #666;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --shadow-light: rgba(93, 5, 18, 0.08);
    --shadow-medium: rgba(93, 5, 18, 0.12);

    /* Layout variabler */
    --page-max: 72rem;
    --hero-max: 96rem;
    --gutter: clamp(1rem, 4vw, 2rem);

    /* Spacing System - Konsistent på tværs af sektioner */
    --section-padding: clamp(5rem, 10vw, 8rem);
    --section-gap: clamp(2rem, 4vw, 4rem);
    --title-gap: 1rem;
    --subtitle-gap: clamp(2rem, 4vw, 3rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Aptos', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-weight: 300;
}

ul {
    padding-left: 15px;

}

/* OPDATERET: ens bredde for alle sektioner */
.container {
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Hero/Header bredere */
.section--hero .container,
.header .container {
    max-width: var(--hero-max);
}

/* Sikring mod overløb */
.section,
.header {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Aptos Serif', Georgia, serif;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ========================================
   Site Header / Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    height: 32px;
    width: auto;
    transition: all 0.3s ease;
    /* Gør logoet hvidt når header ikke er scrolled */
    filter: brightness(0) invert(1);
}

.site-header.scrolled .logo img {
    filter: none;
    height: 28px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: 'Aptos Serif', Georgia, serif;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Subtle opacity change on hover for siblings */
.nav-list:hover .nav-link:not(:hover) {
    opacity: 0.5;
}

.site-header.scrolled .nav-link {
    color: var(--primary-burgundy);
}

.site-header.scrolled .nav-link:hover {
    color: var(--primary-burgundy);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
    background: var(--text-dark);
}

/* Mobile menu open state */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-burgundy);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-link {
        font-family: 'Aptos Serif', Georgia, serif;
        font-size: 1.5rem;
        color: var(--white);
    }

    .site-header.scrolled .nav-link {
        color: var(--white);
    }

    .nav-list:hover .nav-link:not(:hover) {
        opacity: 0.5;
    }

    /* Keep hamburger white when menu is open */
    .mobile-menu-toggle[aria-expanded="true"] .hamburger::before,
    .mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
        background: var(--white);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    /* NY BAGGRUND */
    background-image: url("https://www.niras.dk/media/k5uhwmtd/niras_foundation-history_header-image-with-graphical-shapes.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    /* fallback hvis billedet ikke loader */

    color: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(242, 226, 213, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(242, 226, 213, 0.05) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-10px, -10px) rotate(1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(242, 226, 213, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Spacing */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--primary-burgundy);
    margin-bottom: var(--title-gap);
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--subtitle-gap);
    font-weight: 300;
}

/* Founders Section - New Story Layout */
.founders {
    background: var(--white);
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.founders-section {
    background: #f2e2d5;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.founders .section-title,
.founders-section .section-title {
    text-align: center;
    margin-bottom: var(--title-gap);
}

.founders .section-subtitle,
.founders-section .section-subtitle {
    text-align: center;
    margin-bottom: var(--subtitle-gap);
    opacity: 0.7;
}

/* New Founders Stories Layout - matches site width */
.founders-stories {
    max-width: var(--page-max);
    margin: 0 auto;
}

.founder-story-block {
    margin-bottom: var(--section-padding);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.founder-story-block:nth-child(2) {
    animation-delay: 0.15s;
}

.founder-story-block:nth-child(3) {
    animation-delay: 0.3s;
}

.founder-story-block:last-child {
    margin-bottom: 0;
}

/* Header with year badge */
.founder-header {
    margin-bottom: 2rem;
}

.founder-year-badge {
    display: inline-block;
    background: var(--primary-burgundy);
    color: var(--white);
    font-family: 'Aptos Display', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.founder-header h3 {
    font-family: 'Aptos Serif', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 300;
    color: var(--primary-burgundy);
    line-height: 1.3;
    margin: 0;
}

/* Content text - full width */
.founder-content {
    margin-bottom: 2.5rem;
}

.founder-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.founder-content p:last-child {
    margin-bottom: 0;
}

.founder-content .lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.founder-content .highlight-text {
    font-style: italic;
    color: var(--primary-burgundy);
    border-left: 3px solid var(--primary-burgundy);
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

/* Image Marquee Slider - Tandem style */
.image-marquee {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    background: var(--white);
}

.marquee-track {
    display: flex;
    gap: 1rem;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-slide {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.marquee-slide--tall {
    width: 220px;
    height: 300px;
}

.marquee-slide--wide {
    width: 380px;
    height: 220px;
}

.marquee-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.marquee-slide:hover img {
    transform: scale(1.05);
}

/* Overlay on other slides when one is hovered */
.marquee-track:hover .marquee-slide:not(:hover) img {
    filter: brightness(0.6);
}

/* Caption */
.marquee-caption {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(93, 5, 18, 0.9);
    color: var(--white);
    font-family: 'Aptos Display', Georgia, serif;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.marquee-slide:hover .marquee-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-slide {
        width: 220px;
        height: 160px;
    }

    .marquee-slide--tall {
        width: 160px;
        height: 220px;
    }

    .marquee-slide--wide {
        width: 280px;
        height: 160px;
    }

    .marquee-track {
        gap: 0.75rem;
    }
}

/* No divider between story blocks - marquee serves as visual break */

/* Legacy support - hide old elements */
.founders-showcase,
.founder-row,
.founder-projects,
.founder-visual,
.founder-image-container,
.founder-image,
/* Legacy styles disabled */
.image-accent {
    display: none;
}

/* Minimalistisk typografi */
.founder-meta {
    border-bottom: 1px solid rgba(93, 5, 18, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.founder-meta h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-burgundy);
    font-weight: 200;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.founder-year {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 300;
    line-height: 1.5;
}

/* Story styling */
.founder-story {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-dark);
    font-weight: 300;
    margin-bottom: 1rem;
}

.founder-story p {
    line-height: 1.8;
    color: var(--text-dark);
    opacity: 0.85;
    font-weight: 300;
}

/* Minimalistisk quote sektion */
.founder-quote {
    margin: 3rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(93, 5, 18, 0.08);
    border-bottom: 1px solid rgba(93, 5, 18, 0.08);
}

.founder-quote > p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-burgundy);
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Personality grid */
.personality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.personality-card {
    padding: 0;
    border: none;
    border-left: 1px solid rgba(93, 5, 18, 0.2);
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.personality-card:hover {
    border-left-color: var(--primary-burgundy);
    padding-left: 2.5rem;
}

.personality-card h4 {
    color: var(--primary-burgundy);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.personality-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* Responsibility list */
.responsibility-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.responsibility {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.responsibility-marker {
    font-size: 0.75rem;
    color: var(--primary-burgundy);
    font-weight: 300;
    opacity: 0.4;
    flex-shrink: 0;
    margin-top: 0.3rem;
    font-family: 'Aptos Display', Georgia, serif;
}

.responsibility p {
    margin: 0;
    line-height: 1.8;
}

/* Impact text */
.founder-impact {
    font-style: normal;
    color: var(--text-dark);
    border-left: 1px solid rgba(93, 5, 18, 0.2);
    padding-left: 2rem;
    margin-top: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Dubleret for konsistens */
.personality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.personality-card {
    padding: 1.5rem;
    border: 1px solid rgba(93, 5, 18, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.personality-card:hover {
    border-color: var(--primary-burgundy);
    transform: translateY(-2px);
}

.personality-card h4 {
    color: var(--primary-burgundy);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.personality-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Visual Side (beholdt til evt. brug) */
.founder-visual {
    position: relative;
    height: 600px;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.founder-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.founder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E8E8E8 0%, #D8D8D8 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(93, 5, 18, 0.1);
    border-radius: 50%;
}

.founder-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--primary-burgundy);
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(15deg);
    transition: all 0.5s ease;
}

.founder-image-container:hover .image-accent {
    transform: rotate(20deg) scale(1.1);
    opacity: 0.15;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .founder-row {
        grid-template-columns: 1fr;
        gap: 4rem;
        margin-bottom: 8rem;
    }

    .founder-row.reverse {
        direction: ltr;
    }

    .founder-visual {
        height: 400px;
        order: -1;
    }

    .personality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .founders-intro-minimal {
        margin-bottom: 5rem;
        font-size: 1rem;
    }

    .founder-row {
        padding: 0 1rem;
        gap: 3rem;
        margin-bottom: 6rem;
    }

    .founder-meta h3 {
        font-size: 1.5rem;
    }

    .lead-text {
        font-size: 1.05rem;
    }

    .founder-visual {
        height: 300px;
    }

    .responsibility {
        flex-direction: column;
        gap: 0.5rem;
    }

    .founder-quote {
        padding: 1.5rem 0;
    }

    .personality-card {
        padding: 1rem;
    }
}

/* Timeline Section */
.timeline-section {
    background: var(--white);
    position: relative;
    padding: var(--section-padding) 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-burgundy), transparent);
}

.timeline-item {
    margin: 4rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    width: 45%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(93, 5, 18, 0.05);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-medium);
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-burgundy);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 300;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(93, 5, 18, 0.3);
}

.timeline-content h3 {
    color: var(--primary-burgundy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 300;
}

.timeline-content p {
    color: var(--text-dark);
    line-height: 1.4;
}

/* Projects Showcase - Timeline Design */
.projects {
    background: var(--white);
    color: var(--text-dark);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.projects .section-title {
    color: var(--primary-burgundy);
    text-align: center;
    margin-bottom: var(--title-gap);
}

.projects .section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--subtitle-gap);
}

/* Timeline Container */
.projects-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(93, 5, 18, 0.2) 10%, rgba(93, 5, 18, 0.2) 90%, transparent 100%);
}

/* Era Sections */
.project-era-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.project-era-section:nth-child(2) {
    animation-delay: 0.1s;
}

.project-era-section:nth-child(3) {
    animation-delay: 0.2s;
}

.project-era-section:nth-child(4) {
    animation-delay: 0.3s;
}

.project-era-section:nth-child(5) {
    animation-delay: 0.4s;
}

.project-era-section:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Era Marker */
.era-marker {
    position: relative;
    text-align: right;
    padding-top: 0.5rem;
}

.era-marker::after {
    content: '';
    position: absolute;
    right: -54px;
    top: 1rem;
    width: 12px;
    height: 12px;
    background: var(--primary-burgundy);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(93, 5, 18, 0.2);
}

.era-years {
    font-size: 0.9rem;
    color: var(--primary-burgundy);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Era Content */
.era-content h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--primary-burgundy);
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.3;
}

.era-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 2rem;
}

.project-name {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.project-name:hover {
    color: var(--primary-burgundy);
    border-bottom-color: var(--primary-burgundy);
    transform: translateY(-2px);
}

/* Large projects grid */
.era-projects.large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.era-projects.large .project-name {
    white-space: normal;
}

/* Modern projects */
.era-projects.modern .project-name {
    background: var(--accent-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
}

.era-projects.modern .project-name:hover {
    background: var(--primary-burgundy);
    color: var(--white);
}

/* Era Highlight */
.era-highlight {
    display: inline-flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-stat {
    font-size: 3rem;
    font-weight: 200;
    color: var(--primary-burgundy);
    line-height: 1;
}

.highlight-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* Project Philosophy */
.project-philosophy {
    max-width: 800px;
    margin: 8rem auto 0;
    text-align: center;
    padding: 0 2rem;
}

.project-philosophy blockquote {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
    padding: 2rem;
}

.project-philosophy blockquote::before,
.project-philosophy blockquote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-burgundy);
    opacity: 0.2;
    position: absolute;
    font-family: 'Aptos Display', Georgia, serif;
    line-height: 1;
}

.project-philosophy blockquote::before {
    top: 0;
    left: -1rem;
}

.project-philosophy blockquote::after {
    bottom: 0;
    right: -1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .project-era-section {
        grid-template-columns: 60px 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .era-marker {
        text-align: left;
    }

    .era-marker::after {
        left: -32px;
        right: auto;
    }

    .era-years {
        font-size: 0.8rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .era-content h3 {
        font-size: 1.3rem;
    }

    .era-projects {
        gap: 0.8rem;
    }

    .project-name {
        font-size: 0.85rem;
    }

    .era-projects.large {
        grid-template-columns: 1fr;
    }

    .highlight-stat {
        font-size: 2.5rem;
    }

    .project-philosophy blockquote {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Values Section */
.values {
    background: var(--primary-beige);
    padding: var(--section-padding) 0;
}

.values-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: var(--subtitle-gap);
}

.value-item {
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-burgundy);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.value-item h3 {
    color: var(--primary-burgundy);
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Video Values Section */
.video-values-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.video-values-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) var(--gutter);
    color: var(--white);
}

.video-values-content h2 {
    font-family: 'Aptos Serif', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 3rem;
    color: var(--white);
    text-align: left;
}

.video-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 650px;
    text-align: left;
}

.video-values-list li {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.video-values-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: 300;
}

@media (max-width: 768px) {
    .video-values-section {
        min-height: 70vh;
    }

    .video-values-content h2 {
        font-size: 2rem;
    }

    .video-values-list li {
        font-size: 1rem;
    }
}

/* Foundation Section */
.foundation {
    background: var(--white);
    padding: var(--section-padding) 0;
}

/* International Growth Section */
.growth {
    padding: var(--section-padding) 0;
}

.growth-content {
    max-width: var(--page-max);
    margin: 0 auto;
}

.growth p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.foundation p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.foundation-content {
    max-width: var(--page-max);
    margin: 0 auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 100;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-burgundy);
}

.modal h2 {
    color: var(--primary-burgundy);
    margin-bottom: 1.5rem;
    font-weight: 200;
}

.modal p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, #4a0f1a 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(242, 226, 213, 0.1) 0%, transparent 70%);
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--white);
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* FOUNDERS GRID */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.founder-image-wrapper {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 408/559;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(20, 20, 20, 0.5);
    transition: all 0.3s ease;
}

.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Old founder-content styling removed - using new layout */

/* Responsive adjustments */
@media (max-width: 968px) {
    .founders-grid {
        gap: 3rem 2rem;
    }

    .founder-image-wrapper {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .founder-image-wrapper {
        max-width: 280px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(3rem, 8vw, 5rem);
        --subtitle-gap: clamp(1.5rem, 3vw, 2rem);
    }

    .container {
        padding: 0 var(--gutter);
    }

    .founders-grid-minimal {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 1rem;
    }

    .founder-photo {
        width: 100px;
        height: 100px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-year {
        left: 20px;
        transform: translateX(-50%);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cta-button:focus,
.timeline-content:focus,
.founder-card-minimal:focus,
.category-card:focus {
    outline: 2px solid var(--primary-beige);
    outline-offset: 4px;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--primary-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(242, 226, 213, 0.3);
    border-top: 2px solid var(--primary-beige);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Legacy founder styles - disabled */

/* Rows uden billeder – højre kolonne tom */

/* Billede styling */
.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll animation */
.project-image.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Cascade delay */
.project-image:nth-child(1).in-view {
    transition-delay: 0.1s;
}

.project-image:nth-child(2).in-view {
    transition-delay: 0.3s;
}

.project-image:nth-child(3).in-view {
    transition-delay: 0.5s;
}

/* Størrelser */
.project-image.small {
    width: 100%;
    margin: 0;
    align-self: end;
}

.project-image.large {
    width: 100%;
    grid-row: span 2;
    height: 100%;
}

.project-image.medium {
    width: 100%;
    margin: 0;
    align-self: start;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.08);
}

/* Caption */
.project-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 0.85rem;
    font-weight: 300;
}

/* Responsive - stabler til 1 kolonne */
@media (max-width: 968px) {
    .founder-row {
        grid-template-columns: 1fr;
    }

    .founder-text,
    .founder-projects {
        grid-column: 1;
    }

    .founder-projects {
        padding-top: 2rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .project-image {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Normal layout - tekst venstre, billeder højre */
.founder-row.with-images .founder-text {
    grid-column: 1;
}

.founder-row.with-images .founder-projects {
    grid-column: 2;
}

/* Omvendt layout - billeder venstre, tekst højre */
.founder-row.reversed .founder-projects {
    grid-column: 1;
    padding-top: 3.5rem;
}

.founder-row.reversed .founder-text {
    grid-column: 2;
}

/* Animation fra venstre for reversed layout */
.founder-row.reversed .project-image {
    transform: translateX(-100px);
}

.founder-row.reversed .project-image.in-view {
    transform: translateX(0);
}

/* Justér billede-størrelser for venstre side */
.founder-row.reversed .project-image.small {
    margin-left: 0;
    margin-right: auto;
}

.founder-row.reversed .project-image.medium {
    margin-left: 0;
    margin-right: 25%;
}

/* Growth timeline */
.growth-timeline {
    padding: clamp(2rem, 5vw, 4rem) 0 var(--section-padding) 0;
}

.growth-timeline .section-title,
.growth-timeline .section-subtitle {
    text-align: left;
}

.graph-container {
    margin-top: var(--section-gap);
}

#growth-chart {
    width: 100%;
    min-height: 450px;
}

/* ApexCharts tooltip styling */
.apexcharts-tooltip {
    background: #5D0512 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(93, 5, 18, 0.3) !important;
}

.apexcharts-tooltip-title {
    background: #4a0410 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F2E2D5 !important;
    font-family: 'Aptos Display', Georgia, serif !important;
}

.apexcharts-tooltip-text {
    font-family: 'Aptos Display', Georgia, serif !important;
}

.apexcharts-tooltip-series-group {
    background: transparent !important;
}

.apexcharts-tooltip-text-y-label {
    color: #F2E2D5 !important;
}

.apexcharts-tooltip-text-y-value {
    color: #fff !important;
    font-weight: bold !important;
}

.apexcharts-tooltip-marker {
    margin-right: 8px !important;
}

/* Legend styling */
.apexcharts-legend-text {
    color: #5D0512 !important;
}

/* Responsive */
@media (max-width: 768px) {
    #growth-chart {
        min-height: 350px;
    }
}

/* Tooltip */
.graph-container {
    position: relative;
}

.graph-tooltip {
    position: absolute;
    background: var(--primary-burgundy);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -120%);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.graph-tooltip.show {
    opacity: 1;
}

.graph-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary-burgundy);
}

.tooltip-year {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.tooltip-employees {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hover effekt på data points */
.data-points circle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-points circle:hover {
    r: 10;
    fill: #4a0f1a;
    filter: drop-shadow(0 0 10px rgba(93, 5, 18, 0.3));
}

/* === NYT: Galleri + Lightbox (til din billed-grid) === */
.gallery {
    container-type: inline-size;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(.75rem, 1.2cqi, 1rem);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #eee;
    transform: translateZ(0);
    cursor: zoom-in;
    /* Klik-hint */
    transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
    outline: 0 solid transparent;
}

.gallery-grid img:hover {
    transform: scale(1.015);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
}

.gallery-grid img:focus-visible {
    outline: 3px solid var(--primary-burgundy);
    outline-offset: 2px;
    border-radius: 12px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-burgundy) 35%, transparent);
}

/* Blur-up placeholder (bruges sammen med data-plh+loaded) */
img[data-plh] {
    filter: blur(14px) saturate(.9);
    transform: scale(1.02);
}

img[loaded] {
    filter: none !important;
    transform: none !important;
    transition: filter .3s, transform .3s;
}

/* Lightbox større */
.lb-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, #000 70%, transparent);
    z-index: 1000;
}

.lb-dialog {
    position: relative;
    max-width: min(96vw, 1600px);
    max-height: 96vh;
    border-radius: 14px;
    overflow: clip;
    background: #000;
}

.lb-media {
    display: block;
    max-width: 100%;
    max-height: 96vh;
}

.lb-ui {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    pointer-events: none;
}

.lb-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, .35);
    border: 1px solid #ffffff40;
    color: #fff;
    padding: .6rem .9rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.lb-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
}

/* ========================================
   Legacy Carousel Timeline
   ======================================== */
.legacy-carousel {
    background: var(--primary-beige);
    padding: clamp(2rem, 5vw, 4rem) 0 var(--section-padding) 0;
    overflow: hidden;
}

/* Bredere container til denne sektion */
.legacy-carousel .container {
    max-width: 1400px;
}

.legacy-carousel .section-title {
    color: var(--primary-burgundy);
    margin-bottom: var(--title-gap);
    padding-left: 1.5rem;
    padding-top: 3rem;
}

.legacy-carousel .section-subtitle {
    margin-bottom: var(--subtitle-gap);
    padding-left: 1.5rem;
}

/* Slider Container */
.legacy-slider {
    position: relative;
    overflow: hidden;
}

/* Track */
.legacy-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y pinch-zoom;
    will-change: transform;
}

/* Slide */
.legacy-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 1rem;
}

/* Grid inside slide - 3 columns with connecting lines */
.legacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    /* year, title, desc, images, caption */
    gap: 0;
    position: relative;
}

/* Individual legacy item - uses subgrid to sync rows across columns */
.legacy-item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    gap: 0.5rem;
    padding: 0 1.5rem;
    position: relative;
}

.legacy-item .legacy-year-header {
    align-self: start;
}

.legacy-item .legacy-title {
    align-self: start;
}

.legacy-item .legacy-desc {
    align-self: start;
}

.legacy-item .legacy-subdesc {
    align-self: start;
}

.legacy-item .legacy-images {
    align-self: start;
    margin-top: 1rem;
}

.legacy-item .legacy-caption {
    align-self: start;
}

/* Year header container - holds year + line */
.legacy-year-header {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.75rem;
    position: relative;
}

/* Year styling - matching your design exactly */
.legacy-year {
    font-family: 'Aptos Serif', Georgia, serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-burgundy);
    line-height: 1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.legacy-year .decade-s {
    font-size: 0.6em;
    vertical-align: baseline;
}

/* Stagger animation for years */
.legacy-item:nth-child(1) .legacy-year {
    animation-delay: 0.1s;
}

.legacy-item:nth-child(2) .legacy-year {
    animation-delay: 0.2s;
}

.legacy-item:nth-child(3) .legacy-year {
    animation-delay: 0.3s;
}

/* Horizontal connecting line - matches your design */
.legacy-line {
    flex: 1;
    height: 1px;
    background: var(--primary-burgundy);
    margin-left: 1.5rem;
    position: relative;
    transform: scaleX(0);
    transform-origin: left;
    animation: lineGrow 0.8s ease-out forwards;
}

.legacy-item:nth-child(1) .legacy-line {
    animation-delay: 0.4s;
}

.legacy-item:nth-child(2) .legacy-line {
    animation-delay: 0.5s;
}

.legacy-item:nth-child(3) .legacy-line {
    animation-delay: 0.6s;
}

/* Last item line extends to edge */
.legacy-item:last-child .legacy-line {
    margin-right: -1.5rem;
}

@keyframes lineGrow {
    to {
        transform: scaleX(1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title */
.legacy-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-burgundy);
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out forwards;
    font-family: sans-serif;
}

.legacy-item:nth-child(1) .legacy-title {
    animation-delay: 0.2s;
}

.legacy-item:nth-child(2) .legacy-title {
    animation-delay: 0.3s;
}

.legacy-item:nth-child(3) .legacy-title {
    animation-delay: 0.4s;
}

/* Description */
.legacy-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-burgundy);
    font-weight: 300;
    margin: 0.25rem 0 0 0;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.legacy-item:nth-child(1) .legacy-desc {
    animation-delay: 0.25s;
}

.legacy-item:nth-child(2) .legacy-desc {
    animation-delay: 0.35s;
}

.legacy-item:nth-child(3) .legacy-desc {
    animation-delay: 0.45s;
}

.legacy-subdesc {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0;
    margin: 0.25rem 0 0 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.3s;
}

/* Images container - vertical stacking by default */
.legacy-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Side by side for founder portraits */
.legacy-images--founders {
    grid-template-columns: repeat(2, 1fr);
}

.legacy-images--single {
    grid-template-columns: 1fr;
}

/* Figure with animation */
.legacy-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4/3;
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    animation: imageReveal 0.7s ease-out forwards;
}

.legacy-item:nth-child(1) .legacy-figure {
    animation-delay: 0.4s;
}

.legacy-item:nth-child(2) .legacy-figure {
    animation-delay: 0.5s;
}

.legacy-item:nth-child(3) .legacy-figure {
    animation-delay: 0.6s;
}

.legacy-figure:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes imageReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.legacy-figure--large {
    aspect-ratio: 16/10;
}

/* No aspect ratio - show natural image proportions */
.legacy-figure--natural {
    aspect-ratio: auto;
}

.legacy-figure--natural img {
    height: auto;
}

/* Vertikalt stablede billeder - cropped height */
.legacy-images:not(.legacy-images--founders):not(.legacy-images--single) .legacy-figure {
    aspect-ratio: 11/5;
    max-height: 225px;
}

.legacy-images:not(.legacy-images--founders):not(.legacy-images--single) .legacy-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.legacy-figure:hover img {
    transform: scale(1.06);
}

/* Caption */
.legacy-caption {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-dark);
    opacity: 0.7;
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* Navigation Buttons - positioned at screen edges */
.legacy-carousel {
    position: relative;
}

.legacy-nav {
    display: none;
    /* Hide old nav container */
}

.legacy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--primary-burgundy);
    background: transparent;
    color: var(--primary-burgundy);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    overflow: hidden;
}

.legacy-btn--left {
    left: clamp(1rem, 3vw, 3rem);
}

.legacy-btn--right {
    right: clamp(1rem, 3vw, 3rem);
}

.legacy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-burgundy);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.legacy-btn:hover::before {
    transform: scale(1);
}

.legacy-btn:hover {
    color: var(--white);
}

.legacy-btn--left:hover {
    transform: translateY(-50%) scale(1.05);
}

.legacy-btn--right:hover {
    transform: translateY(-50%) scale(1.05);
}

.legacy-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.legacy-btn:focus-visible {
    outline: 3px solid var(--primary-burgundy);
    outline-offset: 3px;
}

.legacy-btn svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.legacy-btn:hover svg {
    transform: scale(1.1);
}

/* Dots */
.legacy-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.legacy-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-burgundy);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
}

.legacy-dot::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--primary-burgundy);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legacy-dot:hover::after {
    transform: scale(0.5);
}

.legacy-dot.active::after,
.legacy-dot[aria-current="true"]::after {
    transform: scale(1);
}

.legacy-dot:hover {
    transform: scale(1.15);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Pause animations until scrolled into view */
.legacy-slider.animations-paused .legacy-year,
.legacy-slider.animations-paused .legacy-line,
.legacy-slider.animations-paused .legacy-title,
.legacy-slider.animations-paused .legacy-desc,
.legacy-slider.animations-paused .legacy-subdesc,
.legacy-slider.animations-paused .legacy-figure {
    animation-play-state: paused;
    opacity: 0;
}

.legacy-slider.animations-started .legacy-year,
.legacy-slider.animations-started .legacy-line,
.legacy-slider.animations-started .legacy-title,
.legacy-slider.animations-started .legacy-desc,
.legacy-slider.animations-started .legacy-subdesc,
.legacy-slider.animations-started .legacy-figure {
    animation-play-state: running;
}

/* ========================================
   Responsive - Legacy Carousel
   ======================================== */

/* Large screens */
@media (min-width: 1600px) {
    .legacy-carousel .container {
        max-width: 1600px;
    }

    .legacy-year {
        font-size: 4rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .legacy-item {
        padding: 0 1rem;
    }

    .legacy-year {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .legacy-line {
        margin-left: 1rem;
    }

    .legacy-title {
        font-size: 0.8rem;
    }

    .legacy-desc {
        font-size: 0.9rem;
    }
}

/* Mobile - restructure for single column swipe */
@media (max-width: 768px) {
    .legacy-carousel .container {
        padding-inline: 1rem;
    }

    .legacy-slide {
        padding: 0;
    }

    /* Single column on mobile */
    .legacy-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Show all items on mobile - JS handles the swipe */
    .legacy-item {
        display: flex;
        padding: 0 1rem;
    }

    /* On mobile, each item becomes a slide */
    .legacy-slider.mobile-mode .legacy-slide {
        display: contents;
    }

    .legacy-slider.mobile-mode .legacy-grid {
        display: contents;
    }

    .legacy-slider.mobile-mode .legacy-item {
        flex: 0 0 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .legacy-slider.mobile-mode .legacy-track {
        display: flex;
    }

    .legacy-year-header {
        margin-bottom: 1rem;
    }

    .legacy-year {
        font-size: 3.5rem;
    }

    .legacy-line {
        display: none;
    }

    .legacy-title {
        font-size: 0.85rem;
    }

    .legacy-desc {
        font-size: 0.95rem;
    }

    .legacy-images {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .legacy-images--founders {
        grid-template-columns: 1fr 1fr;
    }

    .legacy-images--single {
        grid-template-columns: 1fr;
    }

    /* Vertikalt stablede billeder på mobil */
    .legacy-images:not(.legacy-images--founders):not(.legacy-images--single) .legacy-figure {
        aspect-ratio: 11/5;
        max-height: 180px;
    }

    .legacy-figure {
        border-radius: 4px;
    }

    .legacy-btn {
        width: 44px;
        height: 44px;
    }

    .legacy-btn--left {
        left: 0.5rem;
    }

    .legacy-btn--right {
        right: 0.5rem;
    }

    .legacy-dots {
        gap: 0.5rem;
        flex-wrap: wrap;
        max-width: 280px;
        margin: 1.5rem auto 0;
    }

    .legacy-dot {
        width: 8px;
        height: 8px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .legacy-year {
        font-size: 3rem;
    }

    .legacy-title {
        font-size: 0.75rem;
    }

    .legacy-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .legacy-caption {
        font-size: 0.8rem;
    }
}