/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-light: #1e1e1e;
    --color-text: #e8e8e8;
    --color-text-muted: #9a9a9a;
    --color-accent: #b8b8b8;
    --color-border: #2a2a2a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

h2 span {
    color: var(--color-text-muted);
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: #0a0a0a;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
    color: #0a0a0a;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-text);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--color-surface-light);
    border-color: var(--color-text-muted);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.85;
}

.logo svg {
    display: block;
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
        linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.72) 55%, rgba(10, 10, 10, 0.48) 100%),
        url('/assets/hero-graphene.svg'),
        var(--color-bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

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

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

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

.hero p {
    font-size: 1.15rem;
    max-width: 620px;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-bottom: 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-badges span {
    opacity: 0.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: 80px 0 100px;
    border-top: 1px solid var(--color-border);
}

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

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.service-features li {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--color-surface-light);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

/* ============================================================
   STORY
   ============================================================ */
.story {
    padding: 80px 0 100px;
    border-top: 1px solid var(--color-border);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.story-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-text strong {
    color: #fff;
}

.story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ============================================================
   LEADERSHIP
   ============================================================ */
.leadership {
    padding: 80px 0 100px;
    border-top: 1px solid var(--color-border);
}

.leader-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px 36px;
    margin-bottom: 40px;
    transition: all var(--transition);
}

.leader-card:last-child {
    margin-bottom: 0;
}

.leader-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.leader-card--featured {
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, var(--color-surface-light) 0%, var(--color-surface) 100%);
}

.leader-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    background: var(--color-surface-light);
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
}

.leader-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.leader-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.leader-focus {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.leader-details p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.leader-details ul {
    list-style: none;
    margin-bottom: 1rem;
}

.leader-details ul li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
}

.leader-details ul li:last-child {
    border-bottom: none;
}

.leader-details ul li strong {
    color: #fff;
}

.sub-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 1.25rem 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-border);
}

.distinctions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.distinctions span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================================
   WHY CAMI
   ============================================================ */
.why {
    padding: 80px 0 100px;
    border-top: 1px solid var(--color-border);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.why-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 28px 24px;
    transition: all var(--transition);
}

.why-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.why-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.4;
    display: block;
    margin-bottom: 0.5rem;
}

.why-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
    padding: 80px 0 100px;
    border-top: 1px solid var(--color-border);
    background:
        linear-gradient(rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.94)),
        url('/assets/surface-microstructure.svg') center / cover,
        var(--color-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px 22px;
    transition: all var(--transition);
    cursor: default;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.project-meta .project-tag {
    background: var(--color-surface-light);
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.project-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    display: inline-block;
    transition: color var(--transition);
}

.project-link:hover {
    color: #fff;
}

/* ============================================================
   KNOWLEDGE
   ============================================================ */
.knowledge {
    padding: 80px 0 100px;
    border-top: 1px solid var(--color-border);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.knowledge-training h3,
.knowledge-resources h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.knowledge-training p,
.knowledge-resources p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.knowledge-training ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.knowledge-training ul li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-surface-light);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.knowledge-resources {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px 28px;
}

/* ============================================================
   CONTACT / DIRECT LINE
   ============================================================ */
.contact {
    padding: 80px 0 60px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.contact-lede {
    max-width: 620px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px 28px;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}

.contact-role {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.contact-email {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text);
    padding: 4px 0;
    word-break: break-all;
}

.contact-email:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 10px 22px;
    background: #fff;
    color: #0a0a0a;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all var(--transition);
}

.contact-btn:hover {
    background: #ccc;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.contact-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.contact-info p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.contact-disciplines h4,
.contact-links h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.contact-disciplines ul li,
.contact-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 4px 0;
    transition: color var(--transition);
}

.contact-disciplines ul li:hover,
.contact-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact-footer {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        transition: transform var(--transition);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

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

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

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

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-footer {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .story-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .story-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat {
        padding: 16px;
    }

    .leader-card {
        padding: 24px 18px;
    }

    .hero-badges {
        flex-direction: column;
        gap: 8px;
        font-size: 0.7rem;
    }
}