/* ================================================================
   Lorenz Advanced Research — styles.css
   ================================================================ */

/* ---- Reset & Base -------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #07070f;
    --bg-soft:     #0c0c18;
    --bg-card:     #0f1020;
    --border:      rgba(255, 255, 255, 0.07);
    --border-soft: rgba(255, 255, 255, 0.04);

    --primary:     #a259f7;
    --primary-dim: rgba(162, 89, 247, 0.15);
    --secondary:   #e040a8;
    --accent:      #22d3f0;

    --text:        #dde3f0;
    --text-muted:  #8892a4;
    --text-dim:    #3e4558;
    --white:       #ffffff;

    --font-sans:   'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:   'Space Mono', 'Courier New', monospace;

    --container:   1100px;
    --radius:      4px;
    --transition:  0.2s ease;
}

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

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

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

/* Replace browser default gold focus ring with palette colour */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

ul { list-style: none; }

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

/* ---- Utility ------------------------------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.section-intro {
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 3.5rem;
    line-height: 1.8;
    font-size: 0.97rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: opacity var(--transition), transform var(--transition);
    line-height: 1;
}
.btn-primary:hover {
    opacity: 0.85;
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: border-color var(--transition), color var(--transition);
    line-height: 1;
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

/* ---- Navbar -------------------------------------------------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.3rem 0;
    transition: background 0.35s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(7, 7, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 0;
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color var(--transition);
}
.nav-brand:hover { color: var(--accent); }

.nav-logo {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: block;
}

.brand-symbol {
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--transition);
    text-decoration: none;
}
.nav-links li a:hover { color: var(--text); }

.nav-cta {
    padding: 0.45rem 1.1rem !important;
    border: 1px solid rgba(162, 89, 247, 0.4) !important;
    border-radius: var(--radius) !important;
    color: var(--primary) !important;
    font-size: 0.83rem !important;
    transition: background var(--transition), border-color var(--transition) !important;
}
.nav-cta:hover {
    background: var(--primary-dim) !important;
    color: var(--primary) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.2s;
}

/* ---- Hero ---------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lorenz-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, transparent 0%, rgba(7, 7, 15, 0.55) 60%, rgba(7, 7, 15, 0.9) 100%),
        linear-gradient(to bottom, rgba(7, 7, 15, 0.2) 0%, transparent 30%, transparent 70%, rgba(7, 7, 15, 0.7) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2.8rem, 7.5vw, 5.8rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
    opacity: 0.35;
}
.hero-scroll span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(0.65); }
}

/* ---- About --------------------------------------------------- */
.section-about {
    padding: 8rem 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 6rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.35rem;
    letter-spacing: -0.025em;
}

.about-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.97rem;
    line-height: 1.8;
}
.about-text p a {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
}
.about-text p a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.credential {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.credential-icon {
    font-size: 1rem;
    line-height: 1.5;
    flex-shrink: 0;
}
.credential strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.credential span {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.about-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.social-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--text-dim);
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
}
.social-link:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

.about-visual {
    position: sticky;
    top: 100px;
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    overflow: hidden;
}
.photo-placeholder span {
    font-size: 2rem;
    letter-spacing: 0.3em;
    font-weight: 700;
}
.photo-placeholder p {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Use this when you have a real photo */
.about-photo {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
}

/* ---- Expertise ----------------------------------------------- */
.section-expertise {
    padding: 8rem 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-expertise h2,
.section-projects h2,
.section-contact h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.expertise-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s, transform 0.25s;
}
.expertise-card:hover {
    border-color: rgba(162, 89, 247, 0.4);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    opacity: 0.9;
    line-height: 1;
}

.expertise-card h3 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.expertise-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.card-tags li {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    padding: 0.2rem 0.55rem;
    background: rgba(162, 89, 247, 0.10);
    border: 1px solid rgba(162, 89, 247, 0.22);
    border-radius: 2px;
    color: var(--primary);
    letter-spacing: 0.04em;
}

/* ---- Projects ------------------------------------------------ */
.section-projects {
    padding: 8rem 0;
    background: var(--bg);
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    padding: 2.8rem 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.25s ease;
}
.project-item:first-child { border-top: 1px solid var(--border); }
.project-item:hover { padding-left: 1rem; }

.project-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
.project-domain {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.project-partner {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.project-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
    max-width: 760px;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.project-tags li {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    padding: 0.2rem 0.55rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* ---- Contact ------------------------------------------------- */
.section-contact {
    padding: 8rem 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.contact-inner {
    max-width: 640px;
}

.contact-inner h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.contact-inner p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.contact-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.contact-links a:hover { color: var(--primary); }
.contact-links span { opacity: 0.4; }

/* ---- Footer -------------------------------------------------- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-logo {
    width: 22px;
    height: 22px;
    opacity: 0.45;
    flex-shrink: 0;
    display: block;
}
.footer p {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-visual {
        order: -1;
        position: static;
    }
    .photo-placeholder {
        max-width: 320px;
        margin: 0 auto;
    }
    .about-photo {
        max-width: 260px;
        margin: 0 auto;
    }
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .credentials {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(7, 7, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .project-item:hover { padding-left: 0; }
    .section-about,
    .section-expertise,
    .section-projects,
    .section-contact {
        padding: 5rem 0;
    }
}
