/* ============================================================
   Magnetelligence Lab — v2 stylesheet
   ============================================================ */

:root {
    --bg: #0a0f1e;
    --bg-2: #0f1629;
    --surface: rgba(22, 31, 56, 0.65);
    --surface-solid: #131c34;
    --border: rgba(148, 163, 184, 0.12);
    --border-hover: rgba(34, 211, 238, 0.4);
    --accent: #22d3ee;
    --accent-2: #818cf8;
    --accent-3: #f472b6;
    --warm: #fb923c;
    --green: #34d399;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --grad: linear-gradient(120deg, #22d3ee 0%, #818cf8 55%, #f472b6 100%);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
img { max-width: 100%; }
a { color: var(--accent); }

::selection { background: rgba(34, 211, 238, 0.35); }

/* ---------- Language toggle ---------- */
.lang-tr { display: none; }
body[data-lang="tr"] .lang-tr { display: inline; }
body[data-lang="tr"] .lang-en { display: none; }
body[data-lang="tr"] p.lang-tr, body[data-lang="tr"] li.lang-tr { display: block; }
p.lang-tr, li.lang-tr { display: none; }
body[data-lang="tr"] p.lang-en, body[data-lang="tr"] li.lang-en { display: none; }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--accent); color: #06121f; padding: 0.6rem 1.2rem;
    border-radius: 0 0 12px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    z-index: 1500; background: transparent;
}
.scroll-progress-bar {
    height: 100%; width: 0%;
    background: var(--grad);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

/* ---------- Ambient background ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 90%);
}
.bg-glow {
    position: fixed; z-index: -2; pointer-events: none;
    width: 60vw; height: 60vw; border-radius: 50%;
    filter: blur(120px); opacity: 0.16;
}
.bg-glow-1 { top: -25vw; left: -15vw; background: #0ea5e9; }
.bg-glow-2 { bottom: -30vw; right: -15vw; background: #8b5cf6; }

/* ---------- Navigation ---------- */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.7rem 2rem;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 15, 30, 0.92); }

.nav-container {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
.logo-img { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; }
.logo-accent {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 0.35rem; list-style: none; align-items: center; }
.nav-link {
    display: block; padding: 0.45rem 0.85rem;
    color: var(--text-dim); text-decoration: none;
    font-size: 0.92rem; font-weight: 500; border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.nav-link.active { color: var(--accent); background: rgba(34, 211, 238, 0.08); }
.nav-link-highlight {
    color: #06121f !important;
    background: var(--accent) !important;
    font-weight: 600;
}
.nav-link-highlight:hover { background: #67e8f9 !important; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
    display: flex; gap: 2px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px; padding: 3px;
}
.lang-btn {
    border: none; background: transparent; color: var(--text-dim);
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
    padding: 0.28rem 0.7rem; border-radius: 999px; cursor: pointer;
    transition: all 0.2s;
}
.lang-btn.active { background: var(--accent); color: #06121f; }

.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.mobile-menu-btn span {
    width: 24px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { max-width: 1280px; margin: 0 auto; padding: 6rem 2rem 2rem; }

.section-header { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 0.35rem 1rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.section-description { color: var(--text-dim); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; max-width: none;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 7rem 2rem 4rem; overflow: hidden;
}
#spinCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 900px; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.45rem 1.1rem; border-radius: 999px; margin-bottom: 1.8rem;
    backdrop-filter: blur(8px);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.4rem;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-dim); max-width: 680px; margin: 0 auto 2.4rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-hint {
    margin-top: 3rem; font-family: var(--font-mono); font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.55); animation: hintFloat 3s ease-in-out infinite;
}
@keyframes hintFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
    padding: 0.85rem 1.8rem; border-radius: 12px;
    text-decoration: none; cursor: pointer; border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
    background: var(--grad); color: #06121f;
    box-shadow: 0 8px 30px -8px rgba(34, 211, 238, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(34, 211, 238, 0.65); }
.btn-secondary {
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--border-hover); }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(15, 22, 41, 0.5); }
.stats-container {
    max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem;
    text-align: center;
}
.stat-value {
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.2rem; }

/* ---------- Lab film ---------- */
.film-wrapper {
    max-width: 880px; margin: 0 auto;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    background: #000;
}
.film-wrapper video { display: block; width: 100%; aspect-ratio: 16 / 9; }

/* ---------- About ---------- */
.about-content {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem; align-items: start;
}
.about-text h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.about-text > p { color: var(--text-dim); margin-bottom: 1.2rem; }

.about-features { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.feature-item {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
    transition: border-color 0.25s, transform 0.25s;
}
.feature-item:hover { border-color: var(--border-hover); transform: translateX(6px); }
.feature-icon { font-size: 1.6rem; line-height: 1; margin-top: 0.2rem; }
.feature-text h4 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.feature-text p { color: var(--text-dim); font-size: 0.9rem; }

/* Code card */
.code-card {
    background: #0b1120; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    position: sticky; top: 100px;
}
.code-card-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.8rem 1.2rem; background: rgba(148, 163, 184, 0.05);
    border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.code-dots span:nth-child(1) { background: #f87171; }
.code-dots span:nth-child(2) { background: #fbbf24; }
.code-dots span:nth-child(3) { background: #34d399; }
.code-filename { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.code-block {
    padding: 1.4rem 1.5rem; font-family: var(--font-mono);
    font-size: 0.82rem; line-height: 1.7; overflow-x: auto; color: #cbd5e1;
}
.code-block .c { color: #64748b; font-style: italic; }
.code-block .k { color: #f472b6; }
.code-block .f { color: #67e8f9; }
.code-block .s { color: #fbbf24; }
.code-block .n { color: #a5b4fc; }

/* Pipeline */
.pipeline {
    display: flex; align-items: stretch; gap: 0.8rem;
    margin-top: 4rem; flex-wrap: wrap; justify-content: center;
}
.pipeline-step {
    flex: 1 1 200px; max-width: 260px; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.6rem 1.2rem;
    transition: border-color 0.25s, transform 0.25s;
}
.pipeline-step:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.pipeline-icon { font-size: 2rem; margin-bottom: 0.7rem; }
.pipeline-step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.pipeline-step p { color: var(--text-dim); font-size: 0.84rem; }
.pipeline-arrow {
    align-self: center; color: var(--accent); font-size: 1.5rem;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

/* ---------- Team ---------- */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem; max-width: 1100px; margin: 0 auto;
}
.team-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.2rem 1.8rem;
    text-align: center; position: relative;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card-pi { border-color: rgba(34, 211, 238, 0.3); }
.team-card-pi::before {
    content: ''; position: absolute; inset: -1px;
    border-radius: var(--radius); padding: 1px; z-index: -1;
    background: var(--grad); opacity: 0.35;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.team-photo-wrap {
    width: 130px; height: 130px; margin: 0 auto 1.2rem;
    border-radius: 50%; padding: 4px; background: var(--grad);
}
.team-photo {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; display: block; background: var(--bg-2);
}
.team-role-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #06121f; background: var(--accent);
    padding: 0.25rem 0.9rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.team-role-badge.badge-alt { background: rgba(129, 140, 248, 0.9); color: #0b1120; }
.team-name { font-size: 1.08rem; margin-bottom: 0.5rem; }
.team-affiliation { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 1.2rem; }
.team-links { display: flex; justify-content: center; gap: 0.7rem; }
.team-link {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(148, 163, 184, 0.08); border: 1px solid var(--border);
    border-radius: 10px; text-decoration: none; font-size: 1.05rem;
    transition: border-color 0.2s, transform 0.2s;
}
.team-link:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.icon-img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }

/* ---------- News timeline ---------- */
.timeline { max-width: 800px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
    width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
    opacity: 0.5;
}
.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute; left: -2rem; top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg); border: 3px solid var(--accent);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}
.timeline-date {
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
    color: var(--accent); margin-bottom: 0.5rem;
}
.timeline-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1.3rem 1.6rem;
    transition: border-color 0.25s, transform 0.25s;
}
.timeline-card:hover { border-color: var(--border-hover); transform: translateX(6px); }
.timeline-card h4 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.timeline-card p { color: var(--text-dim); font-size: 0.93rem; }
.timeline-card-featured { border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.05); }

/* ---------- Funding ---------- */
.funding-card {
    display: flex; gap: 2rem; align-items: flex-start;
    max-width: 900px; margin: 0 auto 3rem;
    background: var(--surface); border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: var(--radius); padding: 2.2rem 2.5rem;
    box-shadow: var(--shadow);
}
.funding-logo { font-size: 3rem; line-height: 1; }
.funding-info h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.funding-no { color: var(--accent); font-weight: 500; }
.funding-program { color: var(--text-dim); margin-bottom: 0.8rem; }
.funding-title { font-style: italic; color: var(--text); margin-bottom: 1rem; }
.funding-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--text-dim); font-size: 0.9rem; }

.partners-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}
.partner-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}
.partner-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.partner-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #06121f; background: var(--accent);
    padding: 0.22rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.partner-badge.badge-collab { background: var(--accent-2); }
.partner-badge.badge-industry { background: var(--warm); }
.partner-logo { font-size: 2.4rem; margin-bottom: 0.8rem; }
.partner-card h4 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.partner-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Tabs ---------- */
.tabs {
    display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.tab {
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
    color: var(--text-dim); background: var(--surface);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 0.6rem 1.5rem; cursor: pointer;
    transition: all 0.25s;
}
.tab:hover { color: var(--text); border-color: var(--border-hover); }
.tab.active {
    color: #06121f; background: var(--accent); border-color: var(--accent);
    box-shadow: 0 6px 22px -6px rgba(34, 211, 238, 0.6);
}
.tab-panel { display: none; animation: fadeUp 0.4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Publications ---------- */
.pub-card {
    display: flex; gap: 1.8rem; max-width: 880px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.8rem 2rem;
    transition: border-color 0.25s;
}
.pub-card:hover { border-color: var(--border-hover); }
.pub-year {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    color: var(--accent); flex-shrink: 0;
}
.pub-content h4 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.pub-authors { color: var(--text); font-size: 0.92rem; font-weight: 500; }
.pub-journal { color: var(--text-dim); font-style: italic; font-size: 0.9rem; margin-bottom: 0.9rem; }
.pub-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pub-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; font-weight: 500; color: var(--accent);
    background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 0.4rem 0.95rem; border-radius: 999px; text-decoration: none;
    transition: background 0.2s;
}
.pub-link:hover { background: rgba(34, 211, 238, 0.18); }

/* ---------- Resource cards (datasets / tools) ---------- */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.6rem; max-width: 1000px; margin: 0 auto;
}
.cards-grid-3 { max-width: 1100px; }
.resource-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem 1.8rem;
    transition: border-color 0.25s, transform 0.25s; position: relative;
}
.resource-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.resource-card-wide { max-width: 640px; margin: 0 auto; text-align: center; }
.resource-icon { font-size: 2.2rem; margin-bottom: 0.9rem; }
.resource-card h4 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.resource-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.1rem; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-dim); font-size: 0.84rem; margin-bottom: 1.2rem; }
.tag-row { gap: 0.5rem; }
.tag {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--accent-2); background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.3);
    padding: 0.2rem 0.7rem; border-radius: 999px;
}
.tool-version { font-family: var(--font-mono); font-size: 0.78rem; color: var(--green); }
.badge-soon {
    display: inline-block; font-size: 0.78rem; font-weight: 600;
    color: var(--warm); background: rgba(251, 146, 60, 0.1);
    border: 1px dashed rgba(251, 146, 60, 0.45);
    padding: 0.35rem 1rem; border-radius: 999px;
}

/* ---------- Open position ---------- */
.position-card {
    max-width: 980px; margin: 0 auto;
    background: var(--surface); border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius); padding: 2.5rem 2.8rem;
    box-shadow: var(--shadow);
}
.position-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.position-header h3 { font-size: 1.35rem; max-width: 640px; }
.position-badge {
    flex-shrink: 0; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #06121f; background: var(--green);
    padding: 0.4rem 1.1rem; border-radius: 999px;
}
.position-meta {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.5rem;
}
.position-card > p { color: var(--text-dim); margin-bottom: 1rem; }
.position-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.8rem;
}
.position-columns h4 { font-size: 1.05rem; margin-bottom: 0.8rem; color: var(--accent); }
.position-columns p { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 1rem; }
.check-list { list-style: none; }
.check-list li {
    position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem;
    color: var(--text-dim); font-size: 0.93rem;
}
.check-list li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--green); font-weight: 700;
}
.btn-apply { margin-top: 0.4rem; }

/* ---------- Collaboration ---------- */
.collab-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.2rem 1.8rem; text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}
.collab-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.collab-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.collab-card h4 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.collab-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    max-width: 1050px; margin: 0 auto; align-items: stretch;
}
.contact-info h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.contact-info > p { color: var(--text-dim); margin-bottom: 1.8rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
}
.contact-icon { font-size: 1.4rem; margin-top: 0.15rem; }
.contact-text { display: flex; flex-direction: column; gap: 0.15rem; color: var(--text-dim); font-size: 0.92rem; }
.contact-text strong { color: var(--text); font-size: 0.95rem; }
.contact-text a { color: var(--accent); text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }
.contact-map {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); min-height: 320px; box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    margin-top: 6rem; padding: 2.5rem 2rem;
    background: rgba(15, 22, 41, 0.6);
}
.footer-content {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 2rem; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 1rem; }
.footer-logo-img { width: 60px; height: 60px; border-radius: 12px; object-fit: contain; }
.footer-text { color: var(--text-dim); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a {
    color: var(--text-dim); text-decoration: none; font-size: 0.92rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 900;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--surface-solid); color: var(--accent);
    border: 1px solid var(--border); font-size: 1.2rem; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: all 0.3s; backdrop-filter: blur(8px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--border-hover); color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-content { grid-template-columns: 1fr; }
    .code-card { position: static; }
    .position-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 820px) {
    .nav-links {
        position: fixed; top: 86px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0.2rem;
        background: rgba(10, 15, 30, 0.97); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-130%); transition: transform 0.3s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-link { padding: 0.8rem 1rem; }
    .mobile-menu-btn { display: flex; }
    .contact-content { grid-template-columns: 1fr; }
    .funding-card { flex-direction: column; gap: 1rem; padding: 1.8rem; }
    .position-card { padding: 1.8rem 1.5rem; }
    .pipeline-arrow { display: none; }
    section { padding: 4.5rem 1.3rem 1.5rem; }
    .pub-card { flex-direction: column; gap: 0.6rem; }
}
