:root {
    --bg: #f3f4f6;
    --bg-soft: #e5e7eb;
    --card: #ffffff;
    --accent: #2563eb;
    --text: #111827;
    --muted: #6b7280;
    --border-subtle: rgba(209, 213, 219, 0.9);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #e5e7eb 0, #f9fafb 55%);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

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

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(249, 250, 251, 0.96), rgba(249, 250, 251, 0.85), transparent);
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.nav-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0.45rem 1.5rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0, #eff6ff, #2563eb 45%, #1d4ed8 100%);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5), 0 10px 20px rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #eff6ff;
}

.brand span {
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

nav a {
    position: relative;
    padding-bottom: 0.15rem;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.18s ease-out;
}

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

main {
    margin-top: 1.2rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 2.4rem;
    padding: 1.8rem 1.6rem 2.2rem;
    border-radius: 1.6rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.06),
        0 1px 0 rgba(148, 163, 184, 0.2);
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: #eff6ff;
    font-size: 0.75rem;
    color: #1d4ed8;
    margin-bottom: 0.8rem;
}

.hero-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-title {
    font-size: clamp(2rem, 3vw + 0.8rem, 2.6rem);
    line-height: 1.15;
    letter-spacing: 0.03em;
    margin: 0 0 0.6rem;
    color: #0f172a;
}

.hero-title span {
    display: inline-block;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0 0 1.1rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: #f9fafb;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.btn-primary {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent);
    color: #f9fafb;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}

.btn-ghost {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    font-size: 0.82rem;
    background: #ffffff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.4rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.hero-meta-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.hero-right {
    position: relative;
    padding: 1.6rem 1.4rem 1.4rem;
    border-radius: 1.4rem;
    background: #f9fafb;
    border: 1px solid var(--border-subtle);
}

.avatar-ring {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 0, #eff6ff, #bfdbfe 55%);
    padding: 2px;
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.5);
}

.avatar-inner {
    width: 86px;
    height: 86px;
    border-radius: inherit;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 600;
    color: #1f2937;
}

.hero-right h2 {
    font-size: 1rem;
    margin: 0 0 0.15rem;
    color: #111827;
}

.hero-role {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.hero-summary {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    color: var(--muted);
}

.hero-highlight {
    font-size: 0.78rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.9rem;
    background: #eff6ff;
    border: 1px solid rgba(191, 219, 254, 0.9);
    color: #1f2937;
}

.hero-highlight span {
    font-weight: 600;
    color: #1d4ed8;
}

.sections {
    margin-top: 2.3rem;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.2fr);
    gap: 2rem;
    align-items: flex-start;
}

section {
    margin-bottom: 2.2rem;
}

.section-card {
    background: var(--card);
    border-radius: 1.4rem;
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.5rem 1.5rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.section-title {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-caption {
    font-size: 0.75rem;
    color: var(--muted);
}

.profile-text {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.2rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.profile-grid dt {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.profile-grid dd {
    margin: 0;
}

.chips {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chip {
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid rgba(209, 213, 219, 0.9);
    color: var(--muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.4rem;
}

.skill-card {
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: #f9fafb;
    border: 1px solid rgba(229, 231, 235, 0.9);
    font-size: 0.8rem;
}

.skill-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: #111827;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.skill-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    color: var(--muted);
}

.timeline {
    margin-top: 0.6rem;
    border-left: 1px solid rgba(209, 213, 219, 0.9);
    padding-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.3rem;
    padding-left: 0.1rem;
}

.timeline-item:last-child {
    margin-bottom: 0.3rem;
}

.timeline-bullet {
    position: absolute;
    left: -1.25rem;
    top: 0.2rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid var(--accent);
}

.timeline-meta {
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.timeline-title {
    font-size: 0.83rem;
    margin: 0 0 0.2rem;
    color: #111827;
}

.timeline-subtitle {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 0.25rem;
}

.timeline-body {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.7;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.6rem;
}

.work-card {
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: #f9fafb;
    border: 1px solid rgba(229, 231, 235, 0.9);
    font-size: 0.8rem;
}

.work-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.work-title {
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
    color: #111827;
}

.work-meta {
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.work-body {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.7;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.cert-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.cert-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed rgba(209, 213, 219, 0.9);
}

.cert-name {
    display: block;
    color: #111827;
}

.cert-meta {
    font-size: 0.72rem;
    color: var(--muted);
}

.contact-card {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(209, 213, 219, 0.9);
    background: #f9fafb;
    font-size: 0.78rem;
    color: var(--muted);
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.contact-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-main strong {
    color: #111827;
    font-size: 0.8rem;
}

.contact-note {
    font-size: 0.72rem;
}

.contact-email {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-email span {
    font-size: 0.75rem;
    color: var(--muted);
}

footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(209, 213, 219, 0.9);
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.75rem;
}

@media (max-width: 800px) {
    .nav-inner {
        padding-inline: 1rem;
    }

    .brand span:last-child {
        display: none;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        order: -1;
    }

    .sections {
        grid-template-columns: minmax(0, 1fr);
    }

    .works-grid,
    .skills-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding-inline: 1.1rem;
    }

    nav ul {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.55rem 0.9rem;
        font-size: 0.78rem;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .page {
        padding-inline: 1.1rem;
    }

    .hero {
        padding: 1.4rem 1.2rem 1.6rem;
    }

    .section-card {
        padding-inline: 1.2rem;
    }
}