:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #eef6f4;
    --ink: #172033;
    --muted: #5f6b7a;
    --line: #dbe3ec;
    --blue: #2563eb;
    --teal: #0f766e;
    --amber: #b45309;
    --navy: #111827;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
    --shadow-soft: 0 10px 30px rgba(23, 32, 51, 0.06);
}

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

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

body {
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
}

ul {
    list-style-position: inside;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 10;
    padding: 10px 14px;
    color: #ffffff;
    background: var(--navy);
    border-radius: 8px;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 249, 252, 0.92);
    border-bottom: 1px solid rgba(219, 227, 236, 0.9);
    backdrop-filter: blur(14px);
}

.nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark,
.profile-avatar {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: var(--navy);
    border-radius: 8px;
    font-weight: 800;
}

.brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--muted);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--ink);
    background: #e9eef6;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 88px 0 64px;
    background:
        linear-gradient(180deg, rgba(238, 246, 244, 0.9), rgba(247, 249, 252, 0.8)),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 56px;
    align-items: center;
}

.eyebrow,
.section-kicker,
.card-label,
.project-type,
.role-label {
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero h1 {
    max-width: 760px;
    margin: 14px 0 22px;
    font-size: 4rem;
    line-height: 1.04;
}

.hero-lead {
    max-width: 660px;
    font-size: 1.22rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.button.primary {
    color: #ffffff;
    background: var(--blue);
}

.button.secondary {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-links a,
.text-link,
.footer-links a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.25);
    text-underline-offset: 4px;
}

.hero-links a:hover,
.text-link:hover,
.footer-links a:hover {
    text-decoration-color: currentColor;
}

.profile-card {
    display: grid;
    gap: 22px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 1.6rem;
}

.profile-card h2 {
    margin-top: 4px;
    font-size: 1.55rem;
    line-height: 1.22;
}

.snapshot-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.snapshot-list li {
    padding: 12px 14px;
    color: var(--ink);
    background: #f3f6fa;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    font-weight: 700;
}

.section {
    padding: 88px 0;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
    gap: 48px;
    align-items: start;
}

.section h2,
.section-heading h2 {
    margin-top: 8px;
    font-size: 2.55rem;
    line-height: 1.1;
}

.section-copy {
    display: grid;
    gap: 18px;
}

.section-copy p,
.section-heading p,
.contact-grid p {
    font-size: 1.05rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading.compact {
    max-width: 660px;
}

.projects-section,
.experience-section {
    background: var(--surface);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.featured-project {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    margin-bottom: 28px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f5faf8 100%);
    border: 1px solid #cfe5df;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.featured-project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.featured-project h3 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: 1.8rem;
    line-height: 1.18;
}

.featured-project-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.status-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    color: #5f3206;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 800;
}

.featured-project-details {
    display: grid;
    gap: 16px;
}

.featured-project-details div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d9e9e5;
    border-radius: 8px;
}

.featured-project-details h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.featured-project-details ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    color: var(--muted);
}

.featured-tags {
    grid-column: 1 / -1;
}

.project-card,
.skill-card,
.experience-card,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow);
}

.project-top {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.project-top h3 {
    margin-top: 6px;
    font-size: 1.45rem;
    line-height: 1.25;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    list-style: none;
}

.tag-list li {
    padding: 7px 10px;
    color: #173b35;
    background: var(--surface-soft);
    border: 1px solid #cfe5df;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
}

.text-link {
    width: fit-content;
    margin-top: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.skill-card {
    padding: 22px;
}

.skill-card h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.skill-card ul {
    display: grid;
    gap: 9px;
    padding-left: 0;
    color: var(--muted);
    list-style: none;
}

.skill-card li {
    padding-bottom: 9px;
    border-bottom: 1px solid #edf1f6;
}

.skill-card li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.learning-section {
    background: #f2f6fb;
}

.home-lab-section {
    background: #f2f6fb;
}

.home-lab-content {
    display: grid;
    gap: 18px;
}

.home-lab-content p {
    font-size: 1.05rem;
}

.home-lab-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-lab-details article {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.home-lab-details h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.home-lab-details ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    color: var(--muted);
}

.home-lab-tags {
    margin-top: 4px;
}

.learning-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.learning-list article {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.learning-list h3 {
    margin-bottom: 8px;
    font-size: 1.12rem;
}

.experience-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.experience-column {
    display: grid;
    gap: 16px;
    align-content: start;
}

.column-title {
    font-size: 1.15rem;
    color: var(--amber);
}

.experience-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: #fbfcfe;
}

.experience-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink);
    font-weight: 800;
}

.experience-meta span:last-child {
    color: var(--muted);
    font-size: 0.95rem;
    text-align: right;
}

.role-label {
    color: var(--amber);
}

.contact-section {
    background: var(--navy);
    color: #ffffff;
}

.contact-section p,
.contact-section .section-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: 44px;
    align-items: start;
}

.contact-grid h2 {
    margin: 8px 0 16px;
    font-size: 2.5rem;
    line-height: 1.1;
}

.contact-card {
    display: grid;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.contact-card a {
    display: grid;
    gap: 4px;
    padding: 20px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 180ms ease;
}

.contact-card a:last-child {
    border-bottom: 0;
}

.contact-card a:hover,
.contact-card a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.contact-card span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.92rem;
    font-weight: 800;
}

.contact-card strong {
    overflow-wrap: anywhere;
}

.site-footer {
    color: rgba(255, 255, 255, 0.72);
    background: #0b1020;
}

.footer-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.28);
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .hero-grid,
    .section-grid,
    .contact-grid,
    .experience-layout {
        grid-template-columns: 1fr;
    }

    .profile-card {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        inset: 72px 14px auto 14px;
        display: none;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        justify-content: center;
        min-height: 46px;
    }

    .hero {
        min-height: auto;
        padding: 64px 0 52px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .hero-lead {
        font-size: 1.08rem;
    }

    .section {
        padding: 64px 0;
    }

    .section h2,
    .section-heading h2,
    .contact-grid h2 {
        font-size: 2rem;
    }

    .projects-grid,
    .home-lab-details,
    .learning-list {
        grid-template-columns: 1fr;
    }

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

    .experience-meta {
        display: grid;
        gap: 4px;
    }

    .experience-meta span:last-child {
        text-align: left;
    }

    .footer-inner {
        padding: 24px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .brand span:last-child {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

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

    .profile-card,
    .featured-project,
    .project-card,
    .skill-card,
    .home-lab-details article,
    .learning-list article,
    .experience-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* WebMCP Agent Lab */
.agent-lab-section {
    color: #ffffff;
    background: linear-gradient(135deg, #0b1020 0%, #13233f 58%, #0f766e 140%);
}
.agent-lab-section p { color: rgba(255,255,255,.76); }
.agent-lab-section .section-kicker { color: #7dd3fc; }
.agent-lab-section h2 { margin: 8px 0 18px; max-width: 700px; }
.agent-lab-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr); gap:48px; align-items:start; }
.agent-lab-lead { font-size:1.06rem; max-width:720px; }
.agent-tool-list { display:grid; gap:10px; margin-top:26px; list-style:none; }
.agent-tool-list li { display:grid; grid-template-columns:minmax(170px,.55fr) 1fr; gap:14px; padding:13px 15px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.055); border-radius:8px; }
.agent-tool-list code { color:#a7f3d0; font-weight:800; }
.agent-tool-list span { color:rgba(255,255,255,.76); }
.agent-console { padding:26px; color:var(--ink); background:#ffffff; border:1px solid rgba(255,255,255,.3); border-radius:8px; box-shadow:0 22px 60px rgba(0,0,0,.25); }
.agent-console p { color:var(--muted); }
.agent-console-head { display:flex; justify-content:space-between; align-items:start; gap:18px; margin-bottom:20px; }
.agent-console h3 { font-size:1.45rem; }
.webmcp-status { padding:6px 9px; color:#475569; background:#f1f5f9; border-radius:999px; font-size:.78rem; font-weight:800; white-space:nowrap; }
.webmcp-status.supported { color:#065f46; background:#d1fae5; }
#opportunity-form { display:grid; gap:10px; }
#opportunity-form label { font-weight:800; }
#opportunity-form textarea { width:100%; resize:vertical; padding:13px; color:var(--ink); background:#fbfdff; border:1px solid var(--line); border-radius:8px; font:inherit; }
#opportunity-form textarea:focus { border-color:var(--blue); outline:3px solid rgba(37,99,235,.15); }
.agent-result { min-height:130px; margin-top:18px; padding:18px; background:#f3f6fa; border:1px solid #e4eaf2; border-radius:8px; }
.agent-result h4 { margin-bottom:8px; }
.agent-result ul { display:grid; gap:7px; margin-top:10px; padding-left:18px; color:var(--muted); }
.agent-result-empty { display:grid; place-items:center; min-height:92px; text-align:center; }
.privacy-note { margin-top:12px; font-size:.82rem; }
@media (max-width:980px) { .agent-lab-grid { grid-template-columns:1fr; } }
@media (max-width:620px) {
    .agent-tool-list li { grid-template-columns:1fr; gap:4px; }
    .agent-console-head { display:grid; }
    .agent-console { padding:20px; }
}
