@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --bg: #0d1016;
    --bg-soft: #121722;
    --surface: #171d28;
    --surface-strong: #202838;
    --line: #313b4c;
    --text: #eef4fb;
    --muted: #9eaaba;
    --muted-strong: #c9d4e2;
    --accent: #ff6b57;
    --accent-strong: #ff9470;
    --mint: #4ddfb3;
    --sky: #78c7ff;
    --amber: #ffd166;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
    --header-height: 78px;
    --mobile-dock-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    background:
        linear-gradient(135deg, rgba(255, 107, 87, 0.08), rgba(77, 223, 179, 0.06) 34%, rgba(120, 199, 255, 0.08) 68%),
        linear-gradient(180deg, rgba(13, 16, 22, 0.92), rgba(13, 16, 22, 1) 46%),
        url('images/background.png') center top / cover fixed;
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::selection {
    background: var(--accent);
    color: #101216;
}

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

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

ul {
    list-style: none;
}

h1,
h2,
h3 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

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

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(13, 16, 22, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
}

.logo:hover {
    color: #ffffff;
}

.logo-image {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo span {
    font-size: 1.05rem;
}

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

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--muted-strong);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(249, 115, 79, 0.12);
    color: #ffffff;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(120, 199, 255, 0.65);
    outline-offset: 3px;
}

.hamburger-menu {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: #ffffff;
    cursor: pointer;
}

.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 72px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
    align-items: center;
    gap: 48px;
}

.hero-copy,
.hero-panel,
.project-detail-copy,
.project-content,
.about-story,
.timeline-card,
.research-card,
.detail-card,
.info-card,
.credential-card,
.timeline-content,
.highlight-content > *,
.project-detail-hero > *,
.project-card > * {
    min-width: 0;
}

.hero-copy h1,
.page-hero h1,
.project-detail-copy h1 {
    margin: 10px 0 22px;
    font-size: 4.6rem;
    max-width: 960px;
}

.hero-lead,
.page-hero p,
.project-detail-copy p {
    max-width: 720px;
    color: var(--muted-strong);
    font-size: 1.18rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mint);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--mint);
}

.hero-actions,
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #111318;
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-secondary,
.btn-ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

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

.hero-panel {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(25, 29, 36, 0.82);
    box-shadow: var(--shadow);
}

.hero-panel,
.project-card,
.detail-card,
.timeline-card,
.info-card,
.about-story,
.credential-card,
.research-card,
.timeline-entry,
.publication-list article {
    backdrop-filter: blur(16px);
}

.profile-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-kicker {
    margin-bottom: 4px;
    color: var(--amber);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-panel h2 {
    font-size: 1.6rem;
}

.quick-stats,
.skills-grid,
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-stats span,
.skills-grid span,
.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.section-block,
.project-showcase,
.about-layout,
.experience-grid,
.detail-grid,
.credential-grid,
.research-grid {
    padding: 76px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading h2,
.highlight-content h2,
.about-story h2,
.timeline-card h2,
.info-card h2,
.detail-card h2 {
    margin-top: 10px;
    font-size: 2.35rem;
}

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

.skills-grid span {
    min-height: 68px;
    justify-content: flex-start;
    padding: 0 18px;
    background: var(--surface);
}

.skills-grid i {
    color: var(--sky);
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: 20px;
}

.credential-card,
.research-card,
.timeline-entry,
.publication-list article {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(25, 29, 36, 0.78);
    box-shadow: var(--shadow);
}

.credential-card {
    padding: 22px;
}

.credential-card span,
.publication-list span {
    display: block;
    margin-bottom: 10px;
    color: var(--mint);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.credential-card strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.15rem;
}

.credential-card p {
    font-size: 0.94rem;
}

.research-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.research-card {
    padding: 28px;
}

.research-card h3,
.timeline-content h3,
.publication-list h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.research-card p {
    color: var(--muted-strong);
}

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

.link-grid a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 800;
}

.link-grid a:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.highlight-band {
    padding: 70px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(249, 115, 79, 0.14), rgba(110, 231, 183, 0.08), rgba(125, 211, 252, 0.1));
}

.highlight-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.highlight-content h2 {
    max-width: 720px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-strong);
    font-weight: 800;
    white-space: nowrap;
}

.page-hero {
    padding: 82px 0 34px;
}

.page-hero h1 {
    max-width: 820px;
}

.project-showcase {
    display: grid;
    gap: 24px;
    padding-top: 28px;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(25, 29, 36, 0.86);
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    border-color: rgba(255, 107, 87, 0.34);
    transform: translateY(-3px);
}

.project-media {
    min-height: 320px;
    background: var(--surface-strong);
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.03);
}

.project-media-word,
.word-detail,
.project-media-ai,
.ai-detail,
.project-media-proof,
.proof-detail {
    display: grid;
    place-items: center;
    min-height: 320px;
}

.project-media-word,
.word-detail {
    background:
        linear-gradient(135deg, rgba(110, 231, 183, 0.2), rgba(125, 211, 252, 0.12)),
        var(--surface-strong);
}

.project-media-ai,
.ai-detail {
    background:
        linear-gradient(135deg, rgba(120, 199, 255, 0.22), rgba(255, 107, 87, 0.12)),
        var(--surface-strong);
}

.project-media-proof,
.proof-detail {
    background:
        linear-gradient(135deg, rgba(248, 199, 78, 0.2), rgba(120, 199, 255, 0.12)),
        var(--surface-strong);
}

.ai-tutor-preview {
    width: min(86%, 430px);
}

.ai-window {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(13, 16, 22, 0.72);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.ai-window-bar {
    display: flex;
    gap: 7px;
}

.ai-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.ai-window-bar span:nth-child(1) {
    background: rgba(255, 107, 87, 0.86);
}

.ai-window-bar span:nth-child(2) {
    background: rgba(248, 199, 78, 0.86);
}

.ai-window-bar span:nth-child(3) {
    background: rgba(77, 223, 179, 0.86);
}

.ai-message {
    max-width: 92%;
    padding: 12px 14px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ai-message strong {
    display: block;
    margin-bottom: 3px;
    color: var(--mint);
}

.ai-message-user {
    justify-self: end;
    background: rgba(120, 199, 255, 0.2);
    border: 1px solid rgba(120, 199, 255, 0.34);
}

.ai-message-bot {
    justify-self: start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.equation-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(77, 223, 179, 0.38);
    border-radius: 8px;
    background: rgba(77, 223, 179, 0.12);
    color: #ffffff;
    font-weight: 800;
}

.proof-preview {
    width: min(88%, 460px);
}

.proof-sheet {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(13, 16, 22, 0.74);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.proof-line {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.proof-line span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(248, 199, 78, 0.17);
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 800;
}

.proof-line code {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proof-line em {
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.proof-line-result {
    border-color: rgba(77, 223, 179, 0.34);
    background: rgba(77, 223, 179, 0.12);
}

.proof-rule {
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid rgba(120, 199, 255, 0.28);
    border-radius: 8px;
    background: rgba(120, 199, 255, 0.1);
    color: #ffffff;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
}

.word-preview {
    display: grid;
    grid-template-columns: repeat(5, 58px);
    gap: 10px;
}

.word-preview span {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(15, 17, 21, 0.72);
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 800;
}

.word-preview span:nth-child(1),
.word-preview span:nth-child(4) {
    background: rgba(110, 231, 183, 0.32);
    border-color: rgba(110, 231, 183, 0.7);
}

.word-preview span:nth-child(2) {
    background: rgba(248, 199, 78, 0.3);
    border-color: rgba(248, 199, 78, 0.72);
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.project-content h2 {
    margin: 18px 0 14px;
    font-size: 2.1rem;
}

.project-content p {
    max-width: 660px;
    color: var(--muted-strong);
}

.project-meta span {
    color: #ffffff;
    font-size: 0.78rem;
}

.project-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: 44px;
    padding: 72px 0 42px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--muted-strong);
    font-weight: 800;
}

.back-link:hover {
    color: var(--accent-strong);
}

.detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.85fr;
    gap: 20px;
    padding-top: 30px;
}

.detail-card,
.timeline-card,
.info-card,
.about-story {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(25, 29, 36, 0.78);
    box-shadow: var(--shadow);
}

.detail-card {
    padding: 26px;
}

.detail-card h2,
.timeline-card h2,
.info-card h2,
.about-story h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.check-list {
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted-strong);
}

.check-list li::before {
    content: '\f00c';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--mint);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.detail-tags {
    align-content: start;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    padding-top: 34px;
}

.compact-actions {
    margin-top: 24px;
}

.about-story,
.timeline-card {
    padding: 30px;
}

.about-story p + p {
    margin-top: 16px;
}

.social-strip {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.social-strip a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.2rem;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-strip a:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.timeline-list {
    display: grid;
    gap: 22px;
}

.timeline-list li {
    position: relative;
    padding-left: 24px;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-list span {
    display: block;
    margin-bottom: 4px;
    color: var(--mint);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-list strong {
    display: block;
    color: #ffffff;
    line-height: 1.25;
}

.timeline-list p {
    margin-top: 5px;
    font-size: 0.96rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 0;
}

.timeline-modern {
    position: relative;
    display: grid;
    gap: 16px;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 148px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 34px;
    padding: 22px;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: 144px;
    top: 31px;
    width: 10px;
    height: 10px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--accent);
    z-index: 1;
}

.timeline-date {
    color: var(--mint);
    font-weight: 800;
}

.timeline-content p {
    color: var(--muted-strong);
}

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

.publication-list article {
    padding: 24px;
}

.info-card {
    padding: 26px;
}

.info-card i {
    color: var(--amber);
    font-size: 1.65rem;
}

.info-card h2 {
    margin-top: 16px;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 16, 22, 0.86);
}

footer .container {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    :root {
        --header-height: 70px;
    }

    .hero-content,
    .project-detail-hero,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1,
    .project-detail-copy h1 {
        font-size: 3.5rem;
    }

    .hero-panel {
        max-width: 520px;
    }

    .hero-section {
        min-height: auto;
        padding: 56px 0;
    }

    .skills-grid,
    .detail-grid,
    .experience-grid,
    .credential-grid,
    .research-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .research-split {
        grid-template-columns: 1fr;
    }

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

    .project-media {
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    body {
        background:
            linear-gradient(135deg, rgba(255, 107, 87, 0.08), rgba(77, 223, 179, 0.06) 34%, rgba(120, 199, 255, 0.08) 68%),
            linear-gradient(180deg, rgba(13, 16, 22, 0.94), rgba(13, 16, 22, 1) 46%),
            url('images/background.png') center top / cover scroll;
    }

    .site-wrapper {
        padding-bottom: calc(var(--mobile-dock-height) + 18px);
    }

    .container {
        width: min(100% - 30px, 1120px);
    }

    .nav-shell {
        min-height: var(--header-height);
    }

    .hamburger-menu {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: max(12px, env(safe-area-inset-bottom));
        transform: none;
        opacity: 1;
        pointer-events: auto;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(23, 29, 40, 0.94);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
        z-index: 30;
    }

    .nav-menu ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }

    .nav-menu a {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        padding: 0 8px;
        font-size: 0.9rem;
    }

    .hero-section,
    .page-hero,
    .project-detail-hero {
        padding-top: 48px;
    }

    .hero-section {
        padding-bottom: 44px;
    }

    .hero-copy h1,
    .page-hero h1,
    .project-detail-copy h1 {
        font-size: 2.55rem;
        line-height: 1.08;
    }

    .hero-lead,
    .page-hero p,
    .project-detail-copy p {
        font-size: 1.03rem;
    }

    .hero-actions,
    .project-actions {
        gap: 10px;
    }

    .hero-panel {
        padding: 18px;
    }

    .profile-photo {
        max-height: 360px;
    }

    .section-block,
    .project-showcase,
    .about-layout,
    .experience-grid,
    .detail-grid,
    .credential-grid,
    .research-grid {
        padding: 50px 0;
    }

    .section-heading h2,
    .highlight-content h2 {
        font-size: 1.85rem;
        line-height: 1.14;
    }

    .page-hero {
        padding: 50px 0 18px;
    }

    .highlight-content {
        display: grid;
        align-items: start;
    }

    .text-link {
        white-space: normal;
    }

    .skills-grid,
    .detail-grid,
    .experience-grid,
    .credential-grid,
    .research-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }

    .project-content,
    .about-story,
    .timeline-card,
    .detail-card,
    .info-card,
    .credential-card,
    .research-card,
    .publication-list article {
        padding: 22px;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-content h2 {
        font-size: 1.62rem;
        line-height: 1.14;
    }

    .project-media,
    .project-media-word {
        min-height: 220px;
    }

    .project-detail-hero {
        gap: 24px;
        padding-bottom: 26px;
    }

    .detail-grid {
        padding-top: 18px;
    }

    .timeline-modern::before {
        left: 18px;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-left: 44px;
    }

    .timeline-entry::before {
        left: 14px;
    }

    .timeline-content h3,
    .publication-list h3,
    .research-card h3 {
        font-size: 1.18rem;
        line-height: 1.2;
    }

    .word-preview {
        grid-template-columns: repeat(5, 44px);
        gap: 7px;
    }

    .word-preview span {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

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

    .logo span {
        font-size: 0.94rem;
    }

    .logo-image {
        width: 44px;
        height: 44px;
    }

    .hero-copy h1,
    .page-hero h1,
    .project-detail-copy h1 {
        font-size: 2.1rem;
    }

    .hero-actions,
    .project-actions {
        display: grid;
    }

    .btn {
        width: 100%;
        min-height: 46px;
        padding: 0 14px;
    }

    .project-media {
        min-height: 210px;
    }

    .eyebrow {
        align-items: flex-start;
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .eyebrow::before {
        width: 22px;
        margin-top: 8px;
        flex: 0 0 22px;
    }

    .quick-stats span,
    .skills-grid span,
    .project-meta span {
        font-size: 0.84rem;
    }

    .word-preview {
        grid-template-columns: repeat(5, 38px);
        gap: 6px;
    }

    .word-preview span {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }
}

@media (max-width: 360px) {
    .logo span {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .project-detail-copy h1 {
        font-size: 1.85rem;
    }

    .nav-menu a {
        font-size: 0.82rem;
    }
}
