:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #fbfcff;
    --ink: #171927;
    --muted: #5d6374;
    --muted-strong: #424858;
    --line: #dde3ee;
    --line-soft: #edf0f6;
    --accent: #a400c9;
    --accent-deep: #7b009d;
    --green: #008c70;
    --green-soft: #e7f7f1;
    --blue: #0877c9;
    --blue-soft: #e8f4ff;
    --cyan: #00879c;
    --cyan-soft: #e5f8fb;
    --magenta-soft: #f8e8fb;
    --shadow: 0 24px 70px rgba(29, 33, 49, 0.08);
    --radius: 8px;
    --max-width: 1256px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: linear-gradient(180deg, #fbfcff 0, var(--bg) 42%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--accent);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    transform: translateY(-150%);
    border-radius: var(--radius);
    background: var(--ink);
    color: #ffffff;
    padding: 10px 14px;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.page-shell {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 32px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 314px;
    gap: 48px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 40px 48px;
}

.hero-main {
    min-width: 0;
}

.hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: 56px;
    line-height: 1.04;
    font-weight: 740;
    letter-spacing: 0;
}

.hero-role {
    margin: 12px 0 0;
    color: var(--accent-deep);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 650;
}

.hero-summary {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted-strong);
    font-size: 17px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 30px 0 0;
}

.metric-item {
    min-width: 0;
    border-left: 1px solid var(--line);
    padding: 0 16px;
}

.metric-item:first-child {
    border-left: 0;
    padding-left: 0;
}

.metric-item i,
.metric-item > .svg-inline--fa {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 22px;
}

.metric-item strong {
    display: block;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.1;
    white-space: nowrap;
}

.metric-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.3;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 650;
    line-height: 1.1;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(164, 0, 201, 0.18);
}

.button-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

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

.button-secondary:hover {
    border-color: #cfd6e4;
    color: var(--accent-deep);
}

.profile-panel {
    min-width: 0;
    border-left: 1px solid var(--line);
    padding-left: 42px;
}

.profile-photo-wrap {
    position: relative;
    width: 132px;
    margin: 0 auto 24px;
}

.profile-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ffffff;
    box-shadow: 0 16px 34px rgba(29, 33, 49, 0.14);
}

.profile-status {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 19px;
    height: 19px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--green);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
    color: var(--muted);
    font-size: 15px;
}

.contact-list i,
.contact-list .svg-inline--fa {
    color: var(--ink);
    text-align: center;
}

.contact-list a {
    overflow-wrap: anywhere;
    color: var(--muted-strong);
}

.contact-list a:hover {
    color: var(--accent-deep);
}

.profile-note {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.profile-note i {
    margin-top: 4px;
    color: var(--ink);
    text-align: center;
}

.profile-note strong,
.profile-note span {
    display: block;
}

.profile-note strong {
    color: var(--muted-strong);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.panel {
    min-width: 0;
    padding: 36px 42px;
}

.panel:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.panel:nth-child(n + 3) {
    border-top: 1px solid var(--line);
}

.section-heading h2 {
    position: relative;
    margin: 0 0 32px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 680;
    letter-spacing: 0;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 11px;
    background: var(--accent);
}

.project-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 26px;
    border-top: 1px solid var(--line-soft);
    padding: 28px 0;
}

.project-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.project-row:last-child {
    padding-bottom: 0;
}

.project-mark {
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 34px;
}

.project-mark .svg-inline--fa {
    color: currentColor;
}

.project-mark-green {
    background: var(--green-soft);
    color: var(--green);
}

.project-mark-blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.project-mark-magenta {
    background: var(--magenta-soft);
    color: var(--accent-deep);
}

.project-mark-cyan {
    background: var(--cyan-soft);
    color: var(--cyan);
}

.project-copy h3,
.timeline h3,
.impact-grid h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 680;
}

.project-copy p,
.timeline p,
.impact-grid p {
    margin: 10px 0 0;
    color: var(--muted-strong);
}

.project-points {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    color: var(--muted-strong);
    font-size: 14px;
}

.project-points li {
    position: relative;
    padding-left: 18px;
}

.project-points li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    color: var(--green);
    font-size: 14px;
    font-weight: 640;
}

.inline-stats li {
    position: relative;
}

.inline-stats li + li::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -10px;
    width: 1px;
    height: 14px;
    background: var(--line);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    font-weight: 650;
    font-size: 14px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-links a .svg-inline--fa {
    width: 12px;
    height: 12px;
}

.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 22px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 8px;
    left: 5px;
    width: 1px;
    background: var(--line);
}

.timeline li {
    position: relative;
    padding: 0 0 28px;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -21px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px #ffffff;
}

.timeline time {
    display: block;
    margin-bottom: 4px;
    color: var(--accent-deep);
    font-size: 14px;
    font-weight: 650;
}

.timeline h3 {
    font-size: 18px;
}

.timeline h3 span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.stack-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.stack-list li {
    display: grid;
    min-width: 0;
    gap: 8px;
    align-content: start;
    justify-items: center;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.history-details {
    margin-top: 28px;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
}

.history-details summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 650;
}

.history-details summary::marker {
    color: var(--accent-deep);
}

.history-list {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.history-list li {
    display: grid;
    gap: 3px;
    border-top: 1px solid var(--line-soft);
    padding-top: 14px;
}

.history-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.history-list time {
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 650;
}

.history-list strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
}

.history-list span {
    color: var(--muted);
    font-size: 14px;
}

.stack-list i,
.stack-list .svg-inline--fa {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--accent-deep);
    font-size: 20px;
}

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

.impact-grid article {
    min-width: 0;
}

.impact-grid i,
.impact-grid .svg-inline--fa {
    display: inline-flex;
    margin-bottom: 13px;
    color: var(--green);
    font-size: 24px;
}

.impact-grid h3 {
    font-size: 17px;
}

.impact-grid p {
    font-size: 14px;
}

.details-band {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 0;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(29, 33, 49, 0.05);
    overflow: hidden;
}

.details-band article {
    min-width: 0;
    border-left: 1px solid var(--line);
    padding: 28px 32px;
}

.details-band article:first-child {
    border-left: 0;
}

.details-band h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.details-band ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.details-band li {
    display: grid;
    gap: 2px;
    border-top: 1px solid var(--line-soft);
    padding: 13px 0;
}

.details-band li:first-child {
    border-top: 0;
    padding-top: 0;
}

.details-band li:last-child {
    padding-bottom: 0;
}

.details-band strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.details-band span {
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 34px;
    color: var(--muted);
    text-align: center;
}

.site-footer p {
    margin: 0 0 10px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .profile-panel {
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 22px 32px;
        align-items: start;
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-top: 32px;
        padding-left: 0;
    }

    .profile-photo-wrap {
        margin: 0;
    }

    .profile-note {
        grid-column: 2;
        margin-top: -8px;
    }

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

    .metric-item:nth-child(4) {
        border-left: 0;
        padding-left: 0;
    }

    .content-grid,
    .details-band {
        grid-template-columns: 1fr;
    }

    .panel:nth-child(odd),
    .details-band article {
        border-right: 0;
        border-left: 0;
    }

    .panel:nth-child(n + 2),
    .details-band article + article {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
    }

    .page-shell,
    .site-footer {
        width: min(100% - 28px, var(--max-width));
    }

    .page-shell {
        padding-top: 18px;
    }

    .hero {
        padding: 26px 22px;
        gap: 30px;
    }

    .hero h1 {
        font-size: 44px;
        line-height: 1.05;
    }

    .hero-role {
        font-size: 20px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
        margin-top: 30px;
    }

    .metric-item {
        padding: 0 16px;
    }

    .metric-item:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .metric-item:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .metric-item strong {
        font-size: 22px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-panel {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .profile-photo-wrap {
        width: 132px;
        margin: 0 auto;
    }

    .profile-photo {
        width: 132px;
        height: 132px;
    }

    .profile-note {
        grid-column: auto;
        margin-top: 0;
    }

    .panel {
        padding: 30px 22px;
    }

    .project-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-mark {
        width: 64px;
        height: 64px;
        font-size: 27px;
    }

    .inline-stats {
        gap: 8px 13px;
    }

    .inline-stats li + li::before {
        display: none;
    }

    .stack-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .details-band article {
        padding: 26px 22px;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    .contact-list li {
        grid-template-columns: 22px minmax(0, 1fr);
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
