*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

:root {
    --bg:           #FDFCFA;
    --bg-alt:       #F7F6F3;
    --surface:      #FFFFFF;
    --surface-2:    #F2F1EE;

    --text:         #1C1C1E;
    --text-muted:   #6E6E73;
    --text-subtle:  #A1A1A6;

    --accent:       #D4664A;
    --accent-dark:  #B3523A;
    --accent-light: #FDF0EC;
    --accent-rgb:   212, 102, 74;

    --border:       #EBEAE6;
    --border-hover: #DEDDD8;

    --shadow-sm:    0 1px 2px rgba(28,28,30,0.04);
    --shadow:       0 4px 16px rgba(28,28,30,0.06);
    --shadow-lg:    0 16px 48px rgba(28,28,30,0.08);

    --radius:       16px;
    --radius-sm:    10px;
    --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font:         'DM Sans', system-ui, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --mono:         'JetBrains Mono', monospace;
}

[data-theme="dark"] {
    --bg:           #0D0D0F;
    --bg-alt:       #141416;
    --surface:      #1A1A1C;
    --surface-2:    #222224;

    --text:         #F2F2F5;
    --text-muted:   #9E9EA3;
    --text-subtle:  #6E6E73;

    --accent:       #E07A5F;
    --accent-dark:  #F0947A;
    --accent-light: rgba(224, 122, 95, 0.12);
    --accent-rgb:   224, 122, 95;

    --border:       #2A2A2C;
    --border-hover: #3A3A3C;

    --shadow-sm:    0 1px 2px rgba(0,0,0,0.3);
    --shadow:       0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg:    0 16px 48px rgba(0,0,0,0.4);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

::selection { background: rgba(var(--accent-rgb), 0.2); color: var(--text); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(253,252,250,0.85);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid transparent;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 64px);
    transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .navbar {
    background: rgba(13,13,15,0.85);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 100px;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--surface-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-theme {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all var(--transition);
}
.nav-theme:hover { color: var(--accent); background: var(--accent-light); }

.nav-resume {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.nav-resume:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.nav-hamburger {
    display: none;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--surface-2);
}
.nav-hamburger span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mob-drawer {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 99;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-drawer.open { transform: translateX(0); }
.mob-drawer a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}
.mob-drawer a:hover { color: var(--text); background: var(--surface-2); }
.mob-drawer-socials {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.mob-drawer-socials a {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition);
}
.mob-drawer-socials a:hover { color: var(--accent); background: var(--accent-light); }

.mob-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mob-backdrop.show { opacity: 1; pointer-events: auto; }

.main { padding-top: 64px; }

.section {
    padding: clamp(80px, 12vh, 140px) clamp(24px, 5vw, 64px);
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sec-head {
    margin-bottom: 56px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}
.sec-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    flex-shrink: 0;
}
.sec-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
}

.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 8vh, 80px) clamp(24px, 5vw, 64px);
    position: relative;
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text);
}
.hero-name-accent { color: var(--accent); }

.hero-role {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 28px;
    min-height: 1.6em;
}
.hero-role .cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition);
}
.hero-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    text-transform: uppercase;
    transition: color var(--transition);
}
.hero-scroll:hover { color: var(--accent); }
.hero-scroll i { font-size: 0.75rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--text);
    color: var(--bg);
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.about-top {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: start;
    margin-bottom: 64px;
}
.about-photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
}
.photo-frame {
    width: 100%; height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.photo-frame:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.1);
}
.photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
}
.about-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-quote {
    padding: 20px 24px;
    border-left: 2px solid var(--accent);
    background: var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.focus-section {
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.focus-heading {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-subtle);
    margin-bottom: 24px;
}
.focus-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.focus-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.focus-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.focus-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}
.filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}
.project-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.project-item:hover {
    padding-left: 12px;
    padding-right: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-bottom-color: transparent;
    margin: 0 -12px;
}
.project-item:hover + .project-item { border-top-color: transparent; }

.project-main { display: flex; flex-direction: column; gap: 10px; }
.project-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.project-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 560px;
}
.project-tech {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 4px;
}
.project-tech span {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.project-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--text-subtle);
    font-size: 0.8rem;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-top: 4px;
}
.project-item:hover .project-arrow {
    background: var(--accent);
    color: #fff;
    transform: translateX(4px);
}

.skills-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}
.skill-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 32px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.skill-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding-top: 5px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.skill-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.pub-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.pub-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.pub-item:hover {
    padding-left: 12px;
    padding-right: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-bottom-color: transparent;
    margin: 0 -12px;
}
.pub-item:hover + .pub-item { border-top-color: transparent; }

.pub-year-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pub-year {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
}
.pub-venue {
    font-size: 0.72rem;
    color: var(--text-subtle);
    font-weight: 500;
}
.pub-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 6px;
}
.pub-authors {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.pub-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.pub-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pub-meta a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}
.blog-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.blog-item:hover {
    padding-left: 12px;
    padding-right: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-bottom-color: transparent;
    margin: 0 -12px;
}
.blog-item:hover + .blog-item { border-top-color: transparent; }

.blog-main { display: flex; flex-direction: column; gap: 8px; }
.blog-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.blog-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-subtle);
}
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-tags span {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.blog-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--text-subtle);
    font-size: 0.8rem;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}
.blog-item:hover .blog-arrow {
    background: var(--accent);
    color: #fff;
    transform: translateX(4px);
}

.footer {
    padding: 48px clamp(24px, 5vw, 64px);
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-built {
    font-size: 0.72rem;
    color: var(--text-subtle);
    font-family: var(--mono);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: all var(--transition);
}
.footer-socials a:hover {
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.show .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all var(--transition);
    z-index: 10;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-scroll { overflow-y: auto; padding: 36px; -webkit-overflow-scrolling: touch; }
.modal-body { display: flex; flex-direction: column; gap: 0; }

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 14px;
    padding-right: 44px;
}
.modal-links {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.modal-links a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 500;
    padding: 5px 14px; border-radius: 100px;
    border: 1.5px solid var(--border); color: var(--text-muted);
    transition: all var(--transition);
}
.modal-links a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

.modal-tech {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px;
}
.modal-tech span {
    font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
    padding: 4px 12px; border-radius: 100px;
    background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}

.modal-sep { border: none; height: 1px; background: var(--border); margin: 16px 0; }

.modal-detail { display: flex; flex-direction: column; gap: 0; }
.modal-detail h4 {
    font-size: 0.9rem; font-weight: 700; color: var(--text);
    margin: 18px 0 8px; letter-spacing: -0.01em;
}
.modal-detail h4:first-child { margin-top: 0; }
.modal-detail p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 8px; }
.modal-detail ul {
    list-style: disc; padding-left: 20px;
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px;
}
.modal-detail ul li { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-resume { display: none; }
    .focus-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .about-top { grid-template-columns: 1fr; }
    .about-photo-wrap { max-width: 180px; aspect-ratio: 1; margin: 0 auto; }
    .about-text { padding-top: 0; text-align: center; }
    .about-quote { text-align: left; }
    .focus-row { grid-template-columns: repeat(2, 1fr); }
    .skill-row { grid-template-columns: 120px 1fr; gap: 20px; }
    .project-item { grid-template-columns: 1fr; gap: 16px; }
    .project-arrow { display: none; }
}

@media (max-width: 680px) {
    .hero-name { font-size: clamp(2.4rem, 10vw, 3.5rem); }
    .skill-row { grid-template-columns: 1fr; gap: 10px; }
    .blog-item { grid-template-columns: 1fr; gap: 16px; }
    .blog-arrow { display: none; }
    .pub-item { grid-template-columns: 1fr; gap: 8px; }
    .pub-year-col { flex-direction: row; gap: 10px; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .modal-scroll { padding: 24px 18px; }
    .focus-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-cta { justify-content: flex-start; }
    .section { padding: 56px 20px; }
}
