:root {
    --bg-cream: #f5f1e8;
    --bg-white: #ffffff;
    --text-black: #1a1a1a;
    --text-gray: #4a4a4a;
    --accent-red: #c41e3a;
    --accent-blue: #1e4a7c;
    --border-dark: #1a1a1a;
    --border-light: #d4d0c7;
    
    /* Aliases for story pages */
    --bg-primary: #f5f1e8;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent: #1e4a7c;
    --border: #d4d0c7;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--bg-cream);
    color: var(--text-black);
    line-height: 1.6;
    font-size: 18px;
    position: relative;
}

/* Newspaper texture background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.01) 1px,
            rgba(0,0,0,0.01) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0,0,0,0.008) 50px,
            rgba(0,0,0,0.008) 51px
        );
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-red);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--bg-cream);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--border-dark);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-black);
    text-transform: uppercase;
}

.nav-logo a {
    color: inherit;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-black);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-black);
    transition: all 0.3s ease;
}

/* Masthead */
.masthead {
    padding: 8rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.masthead-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.masthead h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.masthead-tagline {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-gray);
}

.masthead-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.masthead-rule span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.masthead-rule::before,
.masthead-rule::after {
    content: '';
    width: 100px;
    height: 1px;
    background: var(--border-dark);
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border-bottom: 3px double var(--border-dark);
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
    cursor: pointer;
}

.hero-image:hover img {
    filter: grayscale(0%) contrast(1);
}

.hero-image figcaption {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-style: italic;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.hero-text p:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: 900;
    float: left;
    line-height: 0.8;
    padding-right: 0.5rem;
    color: var(--accent-red);
}

/* Section Headers */
.section-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Products Grid */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.product-category {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-dark);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-header .badge {
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-card .product-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    margin-bottom: 0.75rem;
}

.product-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Featured Product */
.featured-product {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--text-black);
    color: var(--bg-cream);
    padding: 2.5rem;
}

.featured-product::before {
    display: none;
}

.featured-product h4 {
    font-size: 2rem;
    color: var(--bg-cream);
}

.featured-product .product-type {
    color: #ff6b6b;
}

.featured-product p {
    color: #c4c0b7;
    font-size: 1.1rem;
}

.featured-product .feature-list {
    margin-top: 1rem;
}

.featured-product .feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.featured-product .feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

/* Community Section */
.community-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    border-bottom: 3px double var(--border-dark);
    position: relative;
    z-index: 1;
}

.community-card {
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
}

.community-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.community-card .role {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-red);
    margin-bottom: 0.75rem;
}

.community-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Timeline Section */
.timeline-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-red);
}

.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-gray);
}

/* Venture Timeline */
.venture-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 120px;
}

.venture-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-dark);
}

.timeline-era {
    position: relative;
    margin-bottom: 2rem;
}

.era-marker {
    position: absolute;
    left: -120px;
    width: 90px;
    text-align: right;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--accent-red);
    padding-top: 0.25rem;
}

.era-content {
    position: relative;
    padding-left: 30px;
}

.era-content::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--bg-cream);
    border: 3px solid var(--border-dark);
    border-radius: 50%;
    z-index: 2;
}

.venture-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.venture-item.highlight {
    border-left: 4px solid var(--accent-red);
}

.venture-item.future {
    border-style: dashed;
    background: transparent;
}

.venture-item h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-black);
}

.venture-meta {
    font-size: 0.85rem;
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tag-coming-soon {
    display: inline-block;
    background: var(--text-gray);
    color: var(--bg-cream);
    border: 1px solid var(--accent-red);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 0.5rem;
    vertical-align: middle;
    float: right;
}

.venture-item > p:last-of-type {
    color: var(--text-gray);
    margin: 0;
}

.venture-image {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.venture-image img {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border: 1px solid var(--border-light);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    cursor: pointer;
}

.venture-image img:hover {
    filter: grayscale(0%);
}

.venture-links {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.venture-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Team Gallery */
.team-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.team-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid var(--border-light);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    cursor: pointer;
}

.team-gallery img:hover {
    filter: grayscale(0%);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 4px solid white;
}

.lightbox-content iframe {
    width: 90vw;
    height: 85vh;
    border: 4px solid white;
    background: white;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--accent-red);
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: #a01830;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background: var(--text-black);
    color: var(--bg-cream);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #c4c0b7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid var(--bg-cream);
    color: var(--bg-cream);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--bg-cream);
    color: var(--text-black);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

/* Mobile Styles */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .featured-product {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .community-section {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-cream);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 1rem;
        border-bottom: 3px solid var(--border-dark);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .masthead h1 {
        font-size: 3rem;
    }

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .venture-timeline {
        padding-left: 20px;
    }

    .venture-timeline::before {
        left: 0;
    }

    .era-marker {
        position: relative;
        left: 0;
        width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
        padding-left: 20px;
    }

    .era-content {
        padding-left: 20px;
    }

    .era-content::before {
        left: -10px;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .lightbox-close {
        top: -45px;
        right: 0;
    }
}

/* ===========================================
   Story Page Styles
   =========================================== */

article {
    padding-top: 70px;
}

.story-header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    border-bottom: 3px double var(--border);
    margin-bottom: 3rem;
}

.story-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.story-meta {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.story-meta time {
    color: var(--accent);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.story-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.story-content h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.story-content p {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.story-content p:first-of-type::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 1;
    padding-right: 0.5rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    color: var(--accent);
}

.story-image {
    margin: 2.5rem 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1rem;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.story-image figcaption {
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

.story-image.wide {
    margin-left: -4rem;
    margin-right: -4rem;
    max-width: calc(100% + 8rem);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.image-grid .story-image {
    margin: 0;
}

.callout {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
}

.callout strong {
    color: var(--accent);
    font-style: normal;
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Archivo', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.timeline-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline-marker .date {
    font-family: 'Archivo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.timeline-marker .title {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    color: var(--text-secondary);
}

.lesson-learned {
    background: linear-gradient(135deg, rgba(30, 74, 124, 0.1), transparent);
    border: 1px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.lesson-learned h4 {
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.lesson-learned p {
    margin-bottom: 0;
    font-size: 1rem;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.external-link:hover {
    border-bottom-color: var(--accent);
}

.external-link::after {
    content: '→';
}

.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.chapter-nav a {
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.chapter-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

.back-link::before {
    content: '←';
}

@media (max-width: 768px) {
    .story-image.wide {
        margin-left: -1rem;
        margin-right: -1rem;
        max-width: calc(100% + 2rem);
    }

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

    .story-content {
        padding: 0 1rem 3rem;
    }
}
