:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-elevated: #ffffff;
    --bg-subtle: #eef3f8;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --text-primary: #111827;
    --text-secondary: #5d6677;
    --text-muted: #7a8495;
    --accent: #155eef;
    --accent-strong: #0f47b8;
    --accent-soft: #e8f0ff;
    --success: #087443;
    --warning: #b54708;
    --border: rgba(17, 24, 39, 0.11);
    --border-strong: rgba(17, 24, 39, 0.18);
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.11);
    --shadow-soft: 0 14px 40px rgba(16, 24, 40, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.84);
    --radius: 8px;
    --max-width: 1120px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1117;
    --bg-elevated: #171a22;
    --bg-subtle: #20242e;
    --surface: rgba(23, 26, 34, 0.9);
    --surface-solid: #171a22;
    --text-primary: #f4f7fb;
    --text-secondary: #b7c0ce;
    --text-muted: #8893a5;
    --accent: #78a6ff;
    --accent-strong: #a8c5ff;
    --accent-soft: rgba(120, 166, 255, 0.14);
    --success: #6ce9a6;
    --warning: #fdb022;
    --border: rgba(244, 247, 251, 0.12);
    --border-strong: rgba(244, 247, 251, 0.2);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.22);
    --nav-bg: rgba(15, 17, 23, 0.82);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(21, 94, 239, 0.09), transparent 34%),
        linear-gradient(245deg, rgba(8, 116, 67, 0.08), transparent 32%),
        var(--bg);
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.24;
    mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 100;
    width: min(calc(100% - 32px), var(--max-width));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 10px 12px 10px 14px;
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent-strong);
    outline: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 12px 0 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--accent);
    color: var(--text-primary);
    outline: none;
}

.theme-toggle:active {
    transform: translateY(1px);
}

.theme-toggle-track {
    display: inline-flex;
    align-items: center;
    width: 40px;
    height: 22px;
    padding: 3px;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}

.theme-toggle-thumb {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 3px 10px rgba(21, 94, 239, 0.35);
    transform: translateX(18px);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(0);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 128px 20px 86px;
}

.hero-content {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    min-width: 0;
    max-width: 720px;
}

.eyebrow,
.timeline-date,
.gallery-subtitle {
    color: var(--accent-strong);
}

.eyebrow {
    margin-bottom: 18px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.title {
    max-width: 760px;
    font-size: clamp(2.8rem, 6vw, 5.7rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.96;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.gradient-text {
    color: var(--accent);
}

.title-sub {
    color: var(--text-secondary);
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 700;
}

.subtitle {
    max-width: 680px;
    margin-top: 24px;
    color: var(--text-primary);
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 650;
    overflow-wrap: break-word;
}

.description {
    max-width: 660px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 1.03rem;
    overflow-wrap: break-word;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.hero-stats div {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.hero-stats strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.55rem;
    line-height: 1.1;
}

.hero-stats span {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.primary-btn {
    background: var(--text-primary);
    color: var(--bg);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

html[data-theme="dark"] .primary-btn {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.secondary-btn {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.hero-card {
    min-width: 0;
    overflow: hidden;
    align-self: stretch;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.hero-profile-pic {
    width: 100%;
    min-height: 360px;
    flex: 1;
    object-fit: cover;
    object-position: center 32%;
    border-bottom: 1px solid var(--border);
}

.hero-card-body {
    padding: 24px;
}

.status-pill {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-card h2 {
    font-size: 1.45rem;
    line-height: 1.2;
}

.hero-card p {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section {
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
    padding: 90px 0;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 34px;
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-align: center;
}

.skills-grid,
.projects-grid {
    display: grid;
    gap: 18px;
}

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

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

.skill-level-panel {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.42fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 24px;
    padding: 28px;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.skill-level-intro h3 {
    max-width: 420px;
    color: var(--text-primary);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.skill-level-intro p:not(.section-kicker) {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skill-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.skill-summary-pills span,
.level-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1;
}

.skill-summary-pills span {
    padding: 0 10px;
}

.level-list {
    display: grid;
    gap: 16px;
}

.level-item {
    min-width: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.level-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.level-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.level-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.level-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.level-copy {
    min-width: 0;
}

.level-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
}

.level-header strong {
    color: var(--accent-strong);
    font-size: 0.8rem;
    white-space: nowrap;
}

.level-track {
    height: 10px;
    margin: 10px 0 0 58px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-subtle);
}

.level-track span {
    display: block;
    width: var(--level);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.level-copy p {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

.level-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0 58px;
}

.level-tags span {
    padding: 0 9px;
}

.skill-card {
    padding: 26px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 52px;
    margin-bottom: 18px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.capability-card {
    display: flex;
    flex-direction: column;
}

.phase-label {
    margin-bottom: 8px;
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.skill-card h3,
.timeline-item h3,
.project-content h3 {
    color: var(--text-primary);
    font-weight: 750;
    line-height: 1.2;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
}

.skill-card p,
.timeline-item p,
.project-content p {
    color: var(--text-secondary);
}

.skill-card p,
.project-content p {
    font-size: 0.95rem;
}

.capability-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    list-style: none;
}

.capability-list li {
    position: relative;
    padding-left: 18px;
}

.capability-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 16px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 1px;
    background: var(--border-strong);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: calc(50% - 34px);
    padding: 24px;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 28px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft);
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    text-align: right;
}

.timeline-item:nth-child(odd)::after {
    right: -41px;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    text-align: left;
}

.timeline-item:nth-child(even)::after {
    left: -41px;
}

.timeline-date {
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin-bottom: 10px;
    font-size: 1.22rem;
}

.timeline-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.timeline-gallery:empty {
    display: none;
}

.timeline-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-img:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-soft);
}

.glowing-border {
    border-color: rgba(21, 94, 239, 0.38);
}

.glowing-border-gold {
    border-color: rgba(181, 71, 8, 0.42);
}

.glowing-border-gold .timeline-date {
    color: var(--warning);
}

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

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.project-image {
    width: 100%;
    height: 224px;
    object-fit: cover;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.project-image.contain {
    object-fit: contain;
    padding: 24px;
}

.project-image.bg-white {
    background: #ffffff;
}

.project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 6px 10px 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-tag.research {
    background: rgba(21, 94, 239, 0.12);
    color: var(--accent-strong);
}

.project-tag.competition,
.project-tag.dev,
.project-tag.intern {
    background: rgba(8, 116, 67, 0.12);
    color: var(--success);
}

.project-tag.fulltime,
.project-tag.winner {
    background: rgba(181, 71, 8, 0.12);
    color: var(--warning);
}

.project-content h3 {
    margin: 6px 0 10px;
    font-size: 1.22rem;
}

.project-content p {
    flex: 1;
    margin-bottom: 20px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-1px);
    outline: none;
}

.doc-btn {
    border-color: rgba(21, 94, 239, 0.28);
}

.gallery-subtitle {
    margin: 42px 0 18px;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.masonry-grid {
    column-count: 3;
    column-gap: 18px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 18px;
}

.masonry-item img,
.masonry-item video {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.masonry-item img:hover,
.masonry-item video:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.contact-box {
    max-width: 880px;
    margin: 0 auto;
    padding: 54px;
    text-align: center;
}

.contact-box h2 {
    max-width: 720px;
    margin: 0 auto 14px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.contact-box p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: var(--text-secondary);
}

footer {
    padding: 36px 20px 48px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.fade-in-up,
.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up {
    transform: translateY(26px);
}

.fade-in-left {
    transform: translateX(-28px);
}

.fade-in-right {
    transform: translateX(28px);
}

.fade-in-up.visible,
.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

.delay-3 {
    transition-delay: 0.36s;
}

@media (max-width: 960px) {
    .navbar {
        align-items: center;
        border-radius: 18px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 112px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-card {
        min-height: auto;
    }

    .hero-profile-pic {
        max-height: 460px;
    }

    .skill-level-panel {
        grid-template-columns: 1fr;
    }

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

    .timeline::before {
        left: 8px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: calc(100% - 36px);
        align-self: flex-end;
        text-align: left;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: -34px;
        right: auto;
    }

    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .navbar {
        top: 12px;
        width: calc(100% - 24px);
        padding: 7px 8px;
        border-radius: 18px;
    }

    .logo span:last-child,
    .theme-toggle-text {
        display: none;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 0.68rem;
    }

    .theme-toggle {
        min-height: 34px;
        padding: 0 6px;
    }

    .hero {
        min-height: auto;
        padding: 92px 16px 46px;
    }

    .hero-content {
        width: min(100%, 420px);
        max-width: min(100%, 420px);
        margin: 0;
        gap: 20px;
    }

    .hero-copy {
        width: 100%;
        max-width: 100%;
    }

    .eyebrow {
        margin-bottom: 12px;
        font-size: 0.74rem;
        letter-spacing: 0.14em;
    }

    .title {
        max-width: 10em;
        font-size: clamp(2rem, 9vw, 2.32rem);
        letter-spacing: -0.035em;
        line-height: 1.02;
        text-wrap: auto;
    }

    .subtitle {
        margin-top: 18px;
        font-size: 0.94rem;
        line-height: 1.45;
    }

    .description {
        margin-top: 12px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 22px;
    }

    .hero-stats div {
        min-width: 0;
        padding: 11px 8px;
        text-align: center;
    }

    .hero-stats strong {
        font-size: 1.25rem;
    }

    .hero-stats span {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .cta-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 20px;
    }

    .btn {
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .hero-card {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: stretch;
        min-height: auto;
    }

    .hero-profile-pic {
        width: 92px;
        min-height: 0;
        height: 100%;
        max-height: none;
        border-right: 1px solid var(--border);
        border-bottom: 0;
        object-position: center 30%;
    }

    .hero-card-body {
        min-width: 0;
        padding: 15px;
    }

    .status-pill {
        max-width: 100%;
        margin-bottom: 9px;
        padding: 5px 8px;
        font-size: 0.62rem;
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    .hero-card h2 {
        font-size: 1.15rem;
    }

    .hero-card p {
        font-size: 0.83rem;
        line-height: 1.45;
    }

    .section {
        width: min(100% - 32px, var(--max-width));
        padding: 64px 0;
    }

    .skill-level-panel {
        gap: 22px;
        margin-bottom: 18px;
        padding: 20px;
    }

    .skill-level-intro h3 {
        font-size: 1.4rem;
    }

    .skill-level-intro p:not(.section-kicker) {
        font-size: 0.9rem;
    }

    .level-list {
        gap: 14px;
    }

    .level-header {
        display: grid;
        gap: 2px;
        font-size: 0.9rem;
    }

    .level-header strong {
        font-size: 0.76rem;
    }

    .level-top {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .level-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .level-icon svg {
        width: 20px;
        height: 20px;
    }

    .level-copy p {
        font-size: 0.8rem;
    }

    .level-track,
    .level-tags {
        margin-left: 50px;
    }

    .level-tags span,
    .skill-summary-pills span {
        min-height: 26px;
        font-size: 0.7rem;
    }

    .timeline-gallery {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        column-count: 1;
    }

    .contact-box {
        padding: 34px 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;
    }
}
