/*
 * Zubnet Inc. - Corporate Site
 * Design: "Refined Resilience" - warmth rising from darkness
 *
 * The phoenix doesn't rise from sterile white.
 * It rises from ash, bringing warmth and light.
 */

/* ==================== FOUNDATIONS ==================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Deep foundation - charcoal with purple undertone */
    --bg-deep: #08080c;
    --bg-primary: #0c0c12;
    --bg-elevated: #121218;
    --bg-card: #18181f;

    /* Warm accents - phoenix fire */
    --accent-gold: #d4a574;
    --accent-gold-dim: #b8956a;
    --accent-amber: #e8c49a;

    /* Purple connection to zubnet.ai */
    --accent-purple: #9d8cff;
    --accent-purple-dim: #7a6cd9;

    /* Gradient - the phoenix gradient */
    --gradient-phoenix: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-purple) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(157, 140, 255, 0.1) 100%);

    /* Text - warm, not harsh */
    --text-primary: #f5f2eb;
    --text-secondary: #c4c0b8;
    --text-muted: #7a7872;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.015;
    z-index: 10000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

::selection {
    background: var(--accent-gold);
    color: var(--bg-deep);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    max-width: 65ch;
}

.text-gradient {
    background: var(--gradient-phoenix);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: var(--accent-gold);
}

.text-muted {
    color: var(--text-muted);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==================== LAYOUT ==================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

section {
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--space-3xl) 0;
    }
}

/* ==================== HEADER ==================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: rgba(8, 8, 12, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 36px;
    height: 36px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-phoenix);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.9;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--bg-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Navigation */
.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
    }
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-base);
}

.nav a:hover {
    color: var(--text-primary);
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--accent-gold);
}

/* Language Selector */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

/* Mobile Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-elevated);
    padding: var(--space-2xl) var(--space-lg);
    transition: var(--transition-base);
    z-index: 1001;
    border-left: 1px solid var(--border-subtle);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.mobile-nav a {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent-gold);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==================== HERO ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(157, 140, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero.with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.with-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 8, 12, 0.7) 0%, rgba(8, 8, 12, 0.9) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-gold);
}

.hero h1 {
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent-gold);
}

.hero .lead {
    max-width: 540px;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.9rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-phoenix);
    color: var(--bg-deep);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-gold);
    padding: 0;
}

.btn-ghost:hover {
    color: var(--accent-amber);
}

.btn-ghost svg,
.btn svg {
    width: 16px;
    height: 16px;
}

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

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header .eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--text-secondary);
}

/* Ventures Grid */
.ventures-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .ventures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.venture-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.venture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-phoenix);
    opacity: 0;
    transition: var(--transition-base);
}

.venture-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.venture-card:hover::before {
    opacity: 1;
}

.venture-card.featured {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .venture-card.featured {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
    }
}

.venture-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--accent-gold);
}

.venture-card h3 {
    margin-bottom: var(--space-sm);
}

.venture-card .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    margin-bottom: var(--space-sm);
}

/* Values */
.values-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-item {
    text-align: center;
    padding: var(--space-lg);
}

.value-item .number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    background: var(--gradient-phoenix);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.value-item h4 {
    margin-bottom: var(--space-xs);
}

/* Team */
.team-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: var(--transition-base);
}

.team-member:hover {
    border-color: var(--border-light);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-gold);
    border: 2px solid var(--border-subtle);
    object-fit: cover;
}

.team-member h4 {
    margin-bottom: var(--space-xs);
}

.team-member .role {
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-purple), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) - 4px);
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

.timeline-item .year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: var(--space-xs);
}

.timeline-item h4 {
    margin-bottom: var(--space-xs);
}

/* Stats */
.stats-row {
    display: grid;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    text-align: center;
}

.stat .number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-grid {
    display: grid;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h3 {
    margin-bottom: var(--space-md);
}

.contact-info p {
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
}

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

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== FOOTER ==================== */

.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-deep);
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-nav h5 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--bg-deep);
}

/* ==================== PAGE HEADERS ==================== */

.page-header {
    padding-top: 160px;
    padding-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(212, 165, 116, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    display: block;
}

.page-header h1 {
    margin-bottom: var(--space-md);
}

.page-header .lead {
    max-width: 600px;
}

/* ==================== STORY SECTION ==================== */

.story-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: var(--space-md);
    max-width: none;
}

.story-content p:first-of-type {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.story-image {
    margin: var(--space-xl) 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

blockquote {
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-left: 3px solid var(--accent-gold);
    background: var(--bg-card);
    border-radius: 0 8px 8px 0;
}

blockquote p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
}

/* ==================== CTA SECTION ==================== */

.cta-section {
    text-align: center;
    background: var(--gradient-subtle);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.cta-section h2 {
    margin-bottom: var(--space-md);
}

.cta-section p {
    margin: 0 auto var(--space-lg);
    max-width: 500px;
}

/* ==================== ANIMATIONS ==================== */

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

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s forwards; }
.stagger-children.visible > *:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s forwards; }
.stagger-children.visible > *:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s forwards; }
.stagger-children.visible > *:nth-child(4) { animation: fadeInUp 0.6s ease 0.4s forwards; }

/* ==================== UTILITIES ==================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ==================== LABS PAGE ==================== */

.labs-intro {
    max-width: 700px;
}

.lab-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-phoenix);
}

.lab-card .status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.lab-card .status.active {
    background: rgba(212, 165, 116, 0.15);
    color: var(--accent-gold);
}

.lab-card .status.research {
    background: rgba(157, 140, 255, 0.15);
    color: var(--accent-purple);
}

.lab-card .status.vision {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.lab-card h3 {
    margin-bottom: var(--space-xs);
}

.lab-card .tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
}

.lab-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.lab-features span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-elevated);
    border-radius: 4px;
    color: var(--text-muted);
}

/* Lab cards with images */
.lab-card.with-image {
    display: flex;
    flex-direction: column;
    padding: 0;
}

@media (min-width: 768px) {
    .lab-card.with-image {
        flex-direction: row;
        align-items: stretch;
    }
}

.lab-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

@media (min-width: 768px) {
    .lab-image {
        width: 280px;
        height: auto;
        min-height: 220px;
        border-radius: 12px 0 0 12px;
        flex-shrink: 0;
    }
}

.lab-card.with-image .lab-content {
    padding: var(--space-xl);
    flex: 1;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: var(--space-2xl);
    }

    .venture-card.featured {
        grid-column: auto;
    }

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

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
