:root {
    color-scheme: light;
    --bg: #f4f7f5;
    --bg-soft: #e9efee;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-tint: #e9eeff;
    --ink: #111827;
    --ink-soft: #52606d;
    --ink-faint: #7b8794;
    --primary: #3157f6;
    --primary-strong: #1939bd;
    --primary-soft: #dce4ff;
    --cyan: #1fa994;
    --coral: #ff6b45;
    --line: #d8e0df;
    --line-strong: #b4c0be;
    --success: #0e9f6e;
    --code-bg: #111827;
    --code-ink: #eff4ff;
    --contrast-surface: #111a2e;
    --contrast-ink: #f6f8ff;
    --on-primary: #ffffff;
    --shadow-sm: 0 10px 28px rgba(23, 42, 70, 0.08);
    --shadow-md: 0 24px 64px rgba(23, 42, 70, 0.14);
    --radius-sm: 9px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1240px;
    --header-height: 76px;
    --font-display: "Nunito", "Noto Sans SC", sans-serif;
    --font-body: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --font-hand: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-soft: #131b2c;
    --surface: #172033;
    --surface-raised: #1c2740;
    --surface-tint: #202d52;
    --ink: #f3f7ff;
    --ink-soft: #b7c2d3;
    --ink-faint: #8895aa;
    --primary: #7792ff;
    --primary-strong: #aabdff;
    --primary-soft: #293968;
    --cyan: #70d6c6;
    --coral: #ff8c6f;
    --line: #2c3950;
    --line-strong: #46556e;
    --success: #62d6ad;
    --code-bg: #070b14;
    --code-ink: #edf3ff;
    --contrast-surface: #111a2e;
    --contrast-ink: #f6f8ff;
    --on-primary: #0b1020;
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 24px 56px rgba(0, 0, 0, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    transition: background-color 220ms ease, color 220ms ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 360px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 76% 10%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 42%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
    border-radius: 4px;
}

::selection { background: var(--primary-soft); color: var(--ink); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--surface);
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

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

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 180ms ease;
}

.loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--primary-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.header.is-scrolled {
    border-color: var(--line);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    box-shadow: var(--shadow-sm);
}

.nav {
    width: min(calc(100% - 40px), var(--container));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-logo { margin-right: auto; }

.logo-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.avatar {
    width: 42px;
    height: 42px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--primary);
}

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

.nav-links a {
    position: relative;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 6px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms var(--ease);
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

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

.language-toggle, .theme-toggle {
    display: inline-grid;
    min-width: 44px;
    height: 44px;
    place-items: center;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.language-toggle:hover, .theme-toggle:hover { border-color: var(--primary); color: var(--primary-strong); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { padding-top: var(--header-height); }

section {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 88px 0;
    opacity: 1;
    transform: none;
}

section.visible { opacity: 1; transform: none; }

h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.4rem); }
.page-title { margin-bottom: 38px; font-size: clamp(2.5rem, 6vw, 5rem); }
h3 { font-size: 1.3rem; }
p { margin-top: 0; }

.eyebrow {
    margin-bottom: 14px;
    color: var(--primary-strong);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.section-heading { margin-bottom: 36px; }

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: 64px;
}

.split-heading > p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.05rem; }

.hero-section {
    position: relative;
    min-height: calc(100svh - var(--header-height));
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: clamp(52px, 8vw, 112px);
    padding-top: 72px;
    padding-bottom: 92px;
}

.hero-copy h1 {
    max-width: 800px;
    margin-bottom: 26px;
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-copy h1::after {
    content: "";
    display: block;
    width: min(340px, 55%);
    height: 8px;
    margin-top: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='8' viewBox='0 0 340 8'%3E%3Cpath d='M2 5C77 1 131 7 205 4s93-2 133 0' fill='none' stroke='%234e55c7' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-description { max-width: 650px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    transition: box-shadow 200ms ease, transform 200ms var(--ease), background-color 200ms ease, border-color 200ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--surface); box-shadow: var(--shadow-sm); }
.button-primary:hover { box-shadow: var(--shadow-md); }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--primary); }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--ink-faint);
    font-size: 0.86rem;
}

.hero-utilities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.utility-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}
.utility-link:hover { border-color: var(--primary); color: var(--primary-strong); transform: translateY(-2px); }
.utility-link kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-faint); font-family: var(--font-display); font-size: 0.68rem; }

.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent); }
.meta-divider { width: 1px; height: 16px; background: var(--line-strong); }

.hero-portrait { position: relative; width: min(100%, 430px); justify-self: end; padding: 20px 16px 70px; }

.portrait-frame {
    position: relative;
    z-index: 2;
    padding: 14px 14px 58px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transform: rotate(1.6deg);
}

.portrait-frame::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 50%;
    width: 96px;
    height: 28px;
    z-index: 3;
    background: color-mix(in srgb, var(--primary-soft) 78%, transparent);
    transform: translateX(-50%) rotate(-3deg);
}

.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.portrait-signature { position: absolute; right: 28px; bottom: 12px; font-family: var(--font-hand); font-size: 2.1rem; color: var(--primary-strong); transform: rotate(-4deg); }

.status-card {
    position: absolute;
    right: 0;
    bottom: 28px;
    z-index: 4;
    width: min(310px, 78%);
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--coral);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
    transform: rotate(-1.5deg);
}

.status-label { display: block; margin-bottom: 3px; color: var(--ink-faint); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; }
.status-card strong { font-family: var(--font-display); font-size: 0.9rem; line-height: 1.45; }

.learning-path { position: absolute; inset: auto 0 18px -30px; width: calc(100% + 30px); overflow: visible; pointer-events: none; }
.learning-path path { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-dasharray: 7 7; }
.learning-path circle { fill: var(--coral); stroke: var(--surface); stroke-width: 3; }

.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 0;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: var(--ink-faint);
    font-size: 0.8rem;
}

.focus-section { border-top: 1px solid var(--line); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.focus-card {
    position: relative;
    min-height: 270px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease;
}

.focus-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.focus-index { position: absolute; top: 20px; right: 22px; color: var(--line-strong); font-family: var(--font-display); font-weight: 700; }
.focus-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-strong); font-size: 1.2rem; }
.focus-card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.focus-card p { margin-bottom: 0; color: var(--ink-soft); }

.projects-grid, .articles-grid, .search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.article-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.article-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-image-wrap { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 9; }
.article-image { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 450ms var(--ease); }
.article-card:hover .article-image { transform: scale(1.035); }

.card-type {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--ink);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 700;
}

.article-content { position: relative; display: flex; flex: 1; flex-direction: column; padding: 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; color: var(--ink-faint); font-size: 0.76rem; }
.article-title { margin-bottom: 10px; font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.3; }
.article-excerpt { display: -webkit-box; margin-bottom: 18px; overflow: hidden; color: var(--ink-soft); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-tags, .project-tags, .article-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-right: 42px; }

.tag {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 600;
}

.card-arrow { position: absolute; right: 22px; bottom: 24px; color: var(--primary); transition: transform 180ms ease; }
.article-card:hover .card-arrow { transform: translateX(4px); }

.section-footer { display: flex; justify-content: flex-end; margin-top: 26px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--primary-strong); font-weight: 700; }
.text-link i { transition: transform 180ms ease; }
.text-link:hover i { transform: translateX(4px); }

.blog-radar {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(38px, 7vw, 92px);
    margin-top: 18px;
    margin-bottom: 40px;
    padding: clamp(28px, 4vw, 58px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.radar-copy h2 { max-width: 570px; margin-bottom: 18px; font-size: clamp(2rem, 4.1vw, 4rem); }
.radar-copy > p:not(.eyebrow) { max-width: 510px; color: var(--ink-soft); }
.radar-copy .text-link { margin-top: 18px; }
.radar-panel {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--line));
    border-radius: 16px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--primary) 13%, transparent) 1px, transparent 1px),
        linear-gradient(color-mix(in srgb, var(--primary) 13%, transparent) 1px, transparent 1px),
        radial-gradient(circle at 96% 7%, color-mix(in srgb, var(--cyan) 29%, transparent), transparent 28%),
        var(--bg-soft);
    background-size: 20px 20px, 20px 20px, auto, auto;
}
.radar-panel::after { content: ""; position: absolute; width: 175px; height: 175px; right: -82px; bottom: -84px; border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); border-radius: 50%; box-shadow: 0 0 0 22px color-mix(in srgb, var(--primary) 9%, transparent), 0 0 0 45px color-mix(in srgb, var(--primary) 5%, transparent); pointer-events: none; }
.radar-panel-header, .radar-panel-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; color: var(--ink-faint); font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.radar-status { color: var(--primary-strong); }
.radar-status i { color: var(--success); font-size: 0.54rem; vertical-align: 1px; }
.radar-latest { position: relative; z-index: 1; display: block; margin: 36px 0 26px; padding: 20px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.radar-latest span { display: block; margin-bottom: 11px; color: var(--ink-faint); font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.radar-latest strong { display: block; max-width: 620px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.045em; transition: color 180ms ease; }
.radar-latest small { display: block; margin-top: 13px; color: var(--ink-soft); font-size: 0.78rem; }
.radar-latest:hover strong { color: var(--primary-strong); }
.radar-topics { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.radar-topic { display: inline-flex; align-items: center; gap: 9px; padding: 5px 8px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink-soft); font-size: 0.76rem; font-weight: 600; transition: border-color 180ms ease, color 180ms ease; }
.radar-topic:hover { border-color: var(--primary); color: var(--primary-strong); }
.radar-topic small { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong); font-size: 0.65rem; }
.radar-panel-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); letter-spacing: 0; }

.collection-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: -10px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.collection-count { min-width: max-content; margin: 6px 0 0; color: var(--ink-faint); font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.tag-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tag-filter { min-height: 34px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); cursor: pointer; font-size: 0.78rem; font-weight: 600; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.tag-filter:hover, .tag-filter[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--surface); }

.about-section {
    position: relative;
    padding: 64px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.about-header { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 42px; }
.about-image { position: relative; }
.about-image::after { content: ""; position: absolute; inset: 10px -8px -8px 10px; z-index: 0; border: 2px solid var(--primary); border-radius: 30% 70% 55% 45% / 42% 38% 62% 58%; }
.about-avatar { position: relative; z-index: 1; width: 170px; height: 170px; border-radius: 30% 70% 55% 45% / 42% 38% 62% 58%; object-fit: cover; }
.about-text h1, .about-text h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.about-text p { max-width: 750px; color: var(--ink-soft); font-size: 1.02rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; }

.social-link {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.social-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.skill-tags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin-top: 26px; }
.skill-tag { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink-soft); font-size: 0.82rem; font-weight: 600; }
.skill-level-bar { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--line); }
.skill-level { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

.about-content { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr); gap: 48px; margin-top: 54px; padding-top: 48px; border-top: 1px solid var(--line); }
.about-content h2 { font-size: 1.45rem; }
.experience-section .timeline { display: grid; gap: 12px; }
.experience-section .timeline-item { position: relative; padding: 18px 18px 18px 24px; border-left: 2px solid var(--primary); background: var(--bg-soft); }
.experience-section .timeline-item h3 { margin-bottom: 6px; font-size: 1rem; letter-spacing: -0.02em; }
.duration { display: inline-block; margin-bottom: 8px; color: var(--primary-strong); font-size: 0.76rem; font-weight: 700; }
.experience-section .timeline-item p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.88rem; }
.interests-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.interest-item { padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--ink-soft); font-size: 0.85rem; }

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
    margin-top: 88px;
    margin-bottom: 88px;
    padding: 54px 58px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--surface);
    box-shadow: var(--shadow-md);
}

.contact-section h2 { max-width: 760px; margin-bottom: 14px; color: var(--surface); font-size: clamp(2rem, 4vw, 3.4rem); }
.contact-section p:not(.eyebrow) { max-width: 700px; margin-bottom: 0; color: color-mix(in srgb, var(--surface) 74%, transparent); }
.contact-section .eyebrow { color: var(--coral); }
.contact-section .contact-actions { justify-content: flex-end; margin-top: 0; }
.contact-section .button-primary { background: var(--surface); color: var(--ink); }
.contact-section .button-secondary { border-color: color-mix(in srgb, var(--surface) 35%, transparent); background: transparent; color: var(--surface); }

.footer { margin-top: 40px; padding: 56px 0 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-content, .footer-bottom { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.footer-content { display: grid; grid-template-columns: 1.6fr 0.7fr 0.7fr; gap: 48px; }
body:not(#home-page) .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand strong { font-family: var(--font-display); font-size: 1.5rem; }
.footer-brand p { max-width: 330px; margin-top: 8px; color: var(--ink-soft); }
.footer-section h3 { margin-bottom: 14px; font-size: 0.9rem; letter-spacing: 0; }
.footer-section ul { margin: 0; padding: 0; list-style: none; }
.footer-section li + li { margin-top: 8px; }
.footer-section li a { color: var(--ink-soft); font-size: 0.88rem; }
.footer-section li a:hover { color: var(--primary-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.78rem; }
.footer-bottom p { margin: 0; }

body:not(#home-page) main { min-height: 68vh; }
body:not(#home-page) main > section { padding-top: 88px; }
body:not(#home-page) main > section > h2:first-child { margin-bottom: 38px; }
.main-content { padding-top: var(--header-height); }
.main-content .about-section { margin-top: 88px; margin-bottom: 88px; }

.search-bar { max-width: 760px; margin-bottom: 34px; }
.search-bar input {
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.search-bar input:focus { border-color: var(--primary); }
.search-bar input::placeholder { color: var(--ink-faint); opacity: 1; }
.search-bar input { caret-color: var(--primary); }
.no-results, .not-found { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-soft); text-align: center; }
.search-results:has(.no-results) { display: block; }

.search-overlay { position: fixed; inset: 0; z-index: 200; display: none; padding: 8vh 20px; overflow-y: auto; background: rgba(8, 10, 17, 0.62); backdrop-filter: blur(6px); }
.search-overlay.active { display: block; }
.search-container, .search-content { position: relative; width: min(100%, 980px); margin: 0 auto; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.search-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search-header h2, .search-content > h2 { font-size: 2rem; }
.close-search { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.35rem; }
.search-content > .close-search { position: absolute; top: 22px; right: 22px; }

.timeline-container { position: relative; }
.timeline-year-section + .timeline-year-section { margin-top: 58px; }
.timeline-year-section > h3 { display: inline-flex; padding: 7px 13px; border-radius: 999px; background: var(--primary); color: var(--surface); font-size: 1rem; }
.timeline-year-section > .timeline { display: grid; gap: 16px; margin-top: 18px; }
.timeline-container .timeline-item { display: block; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease; }
.timeline-container .timeline-item:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.timeline-item-content { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 28px; padding: 22px; }
.timeline-date { color: var(--primary-strong); font-size: 0.78rem; font-weight: 700; }
.timeline-title { margin: 7px 0 8px; font-size: 1.22rem; }
.timeline-excerpt { margin-bottom: 14px; color: var(--ink-soft); font-size: 0.9rem; }
.timeline-item-right img { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); object-fit: cover; }

.content-section { width: min(calc(100% - 40px), 920px); }
.article-detail-wrapper { padding: clamp(24px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.article-detail-title { margin-bottom: 22px; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1.08; overflow-wrap: anywhere; }
@media (max-width: 360px) {
    .article-detail-title { font-size: 1.8rem; }
}
.article-detail-tags { margin-bottom: 16px; padding-right: 0; }
.article-detail-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; color: var(--ink-faint); font-size: 0.82rem; }
.share-article { margin: -15px 0 30px; font-size: 0.78rem; }
.article-outline { margin: -8px 0 26px; padding: 14px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink-soft); }
.article-outline summary { cursor: pointer; color: var(--ink); font-family: var(--font-display); font-size: 0.84rem; font-weight: 700; }
.article-outline ol { display: grid; gap: 7px; margin: 14px 0 0; padding-left: 19px; }
.article-outline li { padding-left: 2px; font-size: 0.82rem; line-height: 1.45; }
.article-outline .outline-subitem { margin-left: 14px; font-size: 0.78rem; }
.article-outline a:hover { color: var(--primary-strong); }
.article-detail-image { width: 100%; margin: 0 0 42px; border-radius: var(--radius-md); aspect-ratio: 16 / 9; object-fit: cover; }
.article-detail-content { max-width: 74ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.02rem; }
.article-detail-content h2 { margin: 2.2em 0 0.7em; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.article-detail-content h3 { margin: 1.8em 0 0.6em; }
.article-detail-content p, .article-detail-content li { line-height: 1.85; }
.article-detail-content a { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.article-detail-content blockquote, .translation-note { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--primary); background: var(--surface-tint); color: var(--ink-soft); }
.article-detail-content pre { max-width: 100%; margin: 28px 0; padding: 20px; overflow-x: auto; border-radius: var(--radius-sm); background: var(--code-bg); color: var(--code-ink); line-height: 1.65; }
.article-detail-content code { padding: 0.15em 0.38em; border-radius: 5px; background: var(--bg-soft); color: var(--primary-strong); font-size: 0.9em; }
.article-detail-content pre code { padding: 0; background: transparent; color: inherit; }
.article-detail-wrapper > .button, .article-detail-wrapper > p .button { margin-top: 24px; background: var(--ink); color: var(--surface); }
.related-reading { margin-top: 68px; padding-top: 38px; border-top: 1px solid var(--line); }
.related-reading > h2 { margin-bottom: 20px; font-size: 1.7rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-grid .article-content { padding: 17px; }
.related-grid .article-title { font-size: 1rem; }
.related-grid .article-excerpt { display: none; }
.related-grid .article-image-wrap { aspect-ratio: 16 / 9; }
.reading-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 300; height: 3px; background: transparent; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); transform: scaleX(0); transform-origin: left; }

@media (max-width: 980px) {
    .nav { width: min(calc(100% - 28px), var(--container)); }
    .nav-links { gap: 0; }
    .nav-links a { padding-inline: 8px; }
    .hero-section { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
    .hero-copy h1 { font-size: clamp(3rem, 7vw, 5rem); }
    .projects-grid, .articles-grid, .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-section { padding: 42px; }
    .contact-section { grid-template-columns: 1fr; }
    .contact-section .contact-actions { justify-content: flex-start; }
    .blog-radar { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 780px) {
    :root { --header-height: 68px; }
    body.nav-open { overflow: hidden; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 14px;
        left: 14px;
        display: grid;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: var(--surface-raised);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        visibility: hidden;
        transition: opacity 180ms ease, transform 180ms var(--ease);
    }
    .nav-links.active { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
    .nav-links a { width: 100%; padding: 11px 14px; }
    .nav-links a::after { right: auto; left: 14px; width: 28px; }
    .nav-toggle { display: block; }
    .nav-actions { margin-left: 0; }
    section { width: min(calc(100% - 28px), var(--container)); padding: 68px 0; }
    .hero-section { min-height: auto; grid-template-columns: 1fr; padding-top: 54px; }
    .hero-copy { order: 1; }
    .hero-portrait { order: 2; width: min(90%, 420px); justify-self: center; }
    .hero-copy h1 { font-size: clamp(2.7rem, 13vw, 4.7rem); }
    .scroll-hint { display: none; }
    .split-heading { grid-template-columns: 1fr; gap: 0; }
    .focus-grid { grid-template-columns: 1fr; }
    .focus-card { min-height: 230px; }
    .focus-icon { margin-bottom: 32px; }
    .about-header { grid-template-columns: 130px minmax(0, 1fr); gap: 26px; }
    .about-avatar { width: 130px; height: 130px; }
    .about-content { grid-template-columns: 1fr; }
    .contact-section { width: min(calc(100% - 28px), var(--container)); margin-block: 68px; padding: 42px 32px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .timeline-item-content { grid-template-columns: 1fr; }
    .timeline-item-right { order: -1; }
    .timeline-item-right img { max-height: 260px; }
    .collection-toolbar { align-items: stretch; flex-direction: column; }
    .tag-filters { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .logo-link span { display: none; }
    .nav { gap: 8px; }
    .language-toggle, .theme-toggle { min-width: 42px; height: 42px; }
    .hero-section { gap: 32px; }
    .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button, .contact-actions .button { width: 100%; }
    .hero-meta { align-items: flex-start; flex-direction: column; }
    .meta-divider { display: none; }
    .hero-portrait { width: 88%; padding-inline: 0; }
    .status-card { right: -18px; width: 88%; }
    .projects-grid, .articles-grid, .search-results, .featured-grid { grid-template-columns: 1fr; }
    .about-section { width: min(calc(100% - 28px), var(--container)); padding: 28px 20px; border-radius: var(--radius-md); }
    .about-header { grid-template-columns: 1fr; }
    .about-image { width: 140px; }
    .skill-tags { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .article-detail-wrapper { padding: 24px 18px; border-radius: var(--radius-md); }
    .content-section { width: min(calc(100% - 24px), 920px); }
    .search-container, .search-content { padding: 24px 18px; }
    .hero-utilities { display: grid; grid-template-columns: 1fr; }
    .utility-link { justify-content: space-between; }
    .blog-radar { padding: 28px 20px; border-radius: var(--radius-md); }
    .radar-panel { padding: 17px; }
    .radar-panel-header, .radar-panel-footer { flex-direction: column; gap: 6px; }
    .related-grid { grid-template-columns: 1fr; }
}

/* 2026 visual system: AI field atlas */
.header {
    border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    box-shadow: none;
}

.header.is-scrolled { box-shadow: 0 10px 32px rgba(16, 34, 60, 0.07); }
.avatar { width: 36px; height: 36px; border: 0; border-radius: 10px; box-shadow: none; }
.logo-link { gap: 9px; font-size: 0.92rem; letter-spacing: -0.02em; }
.logo-link::after { content: "/ LAB"; color: var(--primary); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; }
.nav-links { gap: 1px; }
.nav-links a { font-size: 0.82rem; font-weight: 600; }
.nav-links a::after { right: 10px; bottom: 4px; left: 10px; height: 3px; border-radius: 999px; }
.language-toggle, .theme-toggle { border-radius: 10px; background: color-mix(in srgb, var(--surface) 78%, transparent); }

#home-page {
    background:
        radial-gradient(circle at 88% 9%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 27rem),
        radial-gradient(circle at 8% 36%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 24rem),
        var(--bg);
}

#home-page main { overflow: clip; }
#home-page section { width: min(calc(100% - 56px), var(--container)); padding-block: 104px; }

#home-page .hero-section {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    column-gap: clamp(30px, 5vw, 78px);
    row-gap: 32px;
    padding-top: clamp(72px, 8vh, 112px);
    padding-bottom: 54px;
}

#home-page .hero-copy { position: relative; z-index: 2; }
.hero-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
#home-page .hero-kicker-row .eyebrow { margin: 0; }
.hero-issue { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.08em; white-space: nowrap; }

#home-page .hero-copy h1 {
    max-width: 720px;
    margin-bottom: 30px;
    font-size: clamp(3.35rem, 6.05vw, 6.6rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.075em;
    text-wrap: balance;
}

#home-page .hero-copy h1::after { display: none; }
#home-page .hero-copy h1::first-letter { color: var(--primary); }
#home-page .hero-description { max-width: 610px; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.17rem); line-height: 1.85; }
.academic-profile {
    display: grid;
    max-width: 610px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin-top: 23px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-style: normal;
}
.academic-profile-main { display: grid; gap: 1px; }
.academic-profile-main strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 800; letter-spacing: -0.025em; }
.academic-profile-main span { font-size: 0.74rem; line-height: 1.55; }
.academic-profile > a { color: var(--primary-strong); font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; white-space: nowrap; }
.academic-profile > a span { color: var(--ink-faint); }
.academic-profile > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.about-academic-profile { max-width: none; margin: 20px 0; }
#home-page .hero-actions { margin-top: 32px; }

#home-page .button { min-height: 50px; padding: 13px 21px; border-radius: 10px; font-size: 0.86rem; }
#home-page .button-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 11px 26px color-mix(in srgb, var(--primary) 27%, transparent); }
#home-page .button-primary:hover { background: var(--primary-strong); box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 33%, transparent); }
#home-page .button-secondary { background: transparent; }
#home-page .hero-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.02em; }

.knowledge-map {
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    min-height: 560px;
    isolation: isolate;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--primary) 17%, transparent), transparent 31%),
        linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
        color-mix(in srgb, var(--surface) 78%, transparent);
    background-size: auto, 28px 28px, 28px 28px, auto;
    box-shadow: inset 0 0 0 12px color-mix(in srgb, var(--surface) 42%, transparent), var(--shadow-md);
    transform: perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
    transform-style: preserve-3d;
    transition: transform 280ms var(--ease), box-shadow 220ms ease;
}

.knowledge-map::before,
.knowledge-map::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.knowledge-map::before { inset: 18px; border: 1px dashed color-mix(in srgb, var(--primary) 28%, transparent); border-radius: 22px; }
.knowledge-map::after { width: 170px; height: 170px; right: -55px; top: -55px; border: 24px solid color-mix(in srgb, var(--coral) 13%, transparent); border-radius: 50%; }
.map-readout {
    position: absolute;
    top: 23px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 0.51rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transform: translateX(-50%);
}
.map-readout span { display: inline-flex; align-items: center; gap: 4px; }
.map-readout strong { color: var(--ink); font-size: 0.58rem; }
.map-live { color: var(--success); }
.map-live i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent); }
.map-scan {
    position: absolute;
    z-index: 1;
    top: 34px;
    right: 22px;
    left: 22px;
    height: 78px;
    border-top: 1px solid color-mix(in srgb, var(--cyan) 48%, transparent);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--cyan) 8%, transparent), transparent);
    opacity: 0.55;
    pointer-events: none;
    animation: mapScan 8s var(--ease) infinite;
}
.map-lines { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); overflow: visible; pointer-events: none; }
.map-lines path { fill: none; stroke: color-mix(in srgb, var(--primary) 68%, var(--line)); stroke-width: 1.7; stroke-dasharray: 6 7; animation: mapSignal 18s linear infinite; }
.map-lines .map-line-accent { stroke: color-mix(in srgb, var(--coral) 65%, var(--line)); stroke-dasharray: 2 9; animation-direction: reverse; animation-duration: 24s; }

@keyframes mapScan {
    0%, 12% { opacity: 0; transform: translateY(0); }
    25% { opacity: 0.55; }
    76% { opacity: 0.35; }
    88%, 100% { opacity: 0; transform: translateY(430px); }
}
@keyframes mapSignal { to { stroke-dashoffset: -130; } }

.map-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 166px;
    min-height: 178px;
    place-items: center;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
    border-radius: 28px 28px 28px 7px;
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(23, 42, 70, 0.17), 0 0 0 10px color-mix(in srgb, var(--primary) 8%, transparent);
    transform: translate3d(-50%, -50%, 40px);
}
.map-core img { width: 88px; height: 88px; border-radius: 21px 21px 21px 5px; object-fit: cover; }
.map-core span { margin-top: 9px; font-family: var(--font-display); font-size: 0.96rem; font-weight: 800; letter-spacing: -0.03em; }
.map-core small { color: var(--primary); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; }
.map-core::after { content: ""; position: absolute; right: 11px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 14%, transparent); animation: mapPulse 2.6s ease-in-out infinite; }

@keyframes mapPulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--success) 3%, transparent); } }

.map-node {
    position: absolute;
    z-index: 2;
    display: grid;
    min-width: 132px;
    gap: 1px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 91%, transparent);
    box-shadow: var(--shadow-sm);
    transform: translateZ(24px);
    transition: border-color 180ms ease, transform 220ms var(--ease), box-shadow 180ms ease;
}
.map-node:hover { z-index: 4; border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateZ(38px) translateY(-4px); }
.map-node::after { content: ""; position: absolute; top: 9px; right: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); opacity: 0.62; }
.map-node > span { color: var(--coral); font-family: var(--font-mono); font-size: 0.56rem; }
.map-node strong { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: -0.02em; }
.map-node small { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.55rem; }
.node-models { top: 11%; left: 5%; }
.node-llm { top: 14%; right: 5%; }
.node-build { right: 4%; bottom: 12%; }
.node-writing { left: 5%; bottom: 10%; }
.map-coordinate { position: absolute; right: 26px; bottom: 18px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; writing-mode: vertical-rl; }

@keyframes fieldEnter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mapEnter {
    from { opacity: 0; transform: perspective(1100px) rotateX(2deg) rotateY(-2deg) translateY(22px) scale(0.985); }
    to { opacity: 1; transform: perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(0) scale(1); }
}
.site-ready#home-page .hero-kicker-row,
.site-ready#home-page .hero-copy h1,
.site-ready#home-page .hero-description,
.site-ready#home-page .academic-profile,
.site-ready#home-page .hero-actions,
.site-ready#home-page .hero-meta { animation: fieldEnter 720ms var(--ease) both; }
.site-ready#home-page .hero-copy h1 { animation-delay: 70ms; }
.site-ready#home-page .hero-description { animation-delay: 130ms; }
.site-ready#home-page .academic-profile { animation-delay: 180ms; }
.site-ready#home-page .hero-actions { animation-delay: 230ms; }
.site-ready#home-page .hero-meta { animation-delay: 280ms; }
.site-ready#home-page .knowledge-map { animation: mapEnter 900ms var(--ease) 150ms both; }

#home-page .hero-utilities {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0;
    margin-top: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
#home-page .utility-link,
.utility-status { min-height: 54px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
#home-page .utility-link { padding: 10px 18px; }
#home-page .utility-link:first-child { padding-left: 0; }
#home-page .utility-link:hover { transform: none; }
.utility-status { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding-left: 18px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.65rem; }
.utility-status > i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.utility-status strong { color: var(--ink-soft); font-weight: 600; }

#home-page .home-editorial-section { border-top: 1px solid var(--line); }
.editorial-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr); align-items: end; gap: 40px; }
.editorial-heading > p { margin: 0 0 10px; color: var(--ink-soft); }
#home-page .section-heading h2 { font-size: clamp(2.7rem, 5vw, 5.2rem); font-weight: 800; letter-spacing: -0.065em; }
#home-page .eyebrow { color: var(--primary); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.13em; }

#home-page #latest-articles .articles-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
#home-page #latest-articles .article-card:first-child { grid-column: span 6; grid-row: auto; }
#home-page #latest-articles .article-card:nth-child(2),
#home-page #latest-articles .article-card:nth-child(3) { grid-column: span 3; display: flex; }
#home-page #latest-articles .article-card:nth-child(2) .article-image-wrap,
#home-page #latest-articles .article-card:nth-child(3) .article-image-wrap { height: auto; aspect-ratio: 16 / 9; }
#home-page #latest-articles .article-card:nth-child(2) .article-excerpt,
#home-page #latest-articles .article-card:nth-child(3) .article-excerpt { -webkit-line-clamp: 2; font-size: 0.82rem; }

#home-page .article-card { border-radius: 14px; box-shadow: none; }
#home-page .article-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(22, 42, 72, 0.11); }
#home-page .article-image-wrap { border-bottom: 1px solid var(--line); }
#home-page .card-type { border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 6px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; }
#home-page .article-title { font-weight: 800; letter-spacing: -0.045em; }
#home-page #latest-articles .article-card:first-child .article-title { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
#home-page .article-meta { font-family: var(--font-mono); font-size: 0.64rem; }
#home-page .tag { border: 0; border-radius: 5px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 0.58rem; }

#home-page #featured-projects .featured-grid { grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); gap: 18px; }
#home-page #featured-projects .article-card:first-child .article-image-wrap { aspect-ratio: 16 / 9; }
#home-page #featured-projects .article-card:nth-child(2) { border-color: color-mix(in srgb, var(--contrast-ink) 14%, transparent); background: var(--contrast-surface); color: var(--contrast-ink); }
#home-page #featured-projects .article-card:nth-child(2) .article-title { color: var(--contrast-ink); }
#home-page #featured-projects .article-card:nth-child(2) .article-excerpt,
#home-page #featured-projects .article-card:nth-child(2) .article-meta { color: rgba(255, 255, 255, 0.68); }
#home-page #featured-projects .article-card:nth-child(2) .tag { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.78); }
#home-page #featured-projects .article-card:nth-child(2) .card-arrow { color: var(--cyan); }

#home-page .focus-section { position: relative; border-top: 1px solid var(--line); }
#home-page .focus-grid { position: relative; gap: 0; padding-top: 26px; }
#home-page .focus-grid::before { content: ""; position: absolute; top: 52px; right: 15%; left: 15%; height: 1px; background: linear-gradient(90deg, var(--primary), var(--cyan), var(--coral)); }
#home-page .focus-card { min-height: 230px; padding: 0 34px 24px; overflow: visible; border: 0; border-radius: 0; background: transparent; text-align: center; }
#home-page .focus-card:hover { box-shadow: none; transform: none; }
#home-page .focus-index { position: static; display: block; margin-bottom: 15px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.57rem; letter-spacing: 0.12em; }
#home-page .focus-icon { position: relative; z-index: 2; width: 54px; height: 54px; margin: 0 auto 28px; border: 8px solid var(--bg); border-radius: 50%; background: var(--primary); color: #fff; }
#home-page .focus-card:nth-child(2) .focus-icon { background: var(--cyan); }
#home-page .focus-card:nth-child(3) .focus-icon { background: var(--coral); }
#home-page .focus-card h3 { font-size: 1.45rem; font-weight: 800; }

#home-page .blog-radar {
    align-items: stretch;
    margin-block: 48px 104px;
    padding: clamp(34px, 5vw, 72px);
    border: 0;
    border-radius: 24px;
    background: #10182a;
    color: #eef4ff;
    box-shadow: 0 30px 80px rgba(9, 17, 34, 0.22);
}
#home-page .blog-radar h2 { color: #fff; }
#home-page .blog-radar .radar-copy > p:not(.eyebrow) { color: #aab8cb; }
#home-page .blog-radar .text-link { color: #9fb2ff; }
#home-page .blog-radar .eyebrow { color: var(--cyan); }
#home-page .radar-panel { border-color: rgba(255, 255, 255, 0.16); background: linear-gradient(rgba(125, 151, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 151, 255, 0.08) 1px, transparent 1px), #17233a; background-size: 20px 20px; }
#home-page .radar-panel-header, #home-page .radar-panel-footer, #home-page .radar-latest small { color: #8fa0b8; }
#home-page .radar-latest { border-color: rgba(255, 255, 255, 0.16); }
#home-page .radar-latest strong { color: #fff; }
#home-page .radar-topic { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #d7e0ee; }

#home-page .about-section { padding: clamp(36px, 6vw, 74px); border-radius: 24px 24px 24px 6px; box-shadow: none; }
#home-page .about-header { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(34px, 6vw, 76px); }
#home-page .about-avatar { width: 210px; height: 250px; border-radius: 22px 22px 22px 5px; filter: saturate(0.82); }
#home-page .about-image::after { inset: 14px -12px -12px 14px; border-color: var(--coral); border-radius: 22px 22px 22px 5px; }
#home-page .about-text h2 { font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 800; }
#home-page .about-content { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); }

#home-page .contact-section { padding: clamp(38px, 5vw, 64px); border-radius: 6px 24px 24px 24px; background: var(--primary); box-shadow: 0 22px 54px color-mix(in srgb, var(--primary) 26%, transparent); }
#home-page .contact-section .eyebrow { color: var(--on-primary); }
#home-page .contact-section p:not(.eyebrow) { color: var(--on-primary); opacity: 0.78; }
#home-page .contact-section .button-primary { background: #fff; color: #172033; }
#home-page .contact-section .button-secondary { border-color: color-mix(in srgb, var(--on-primary) 42%, transparent); color: var(--on-primary); }

@media (max-width: 1060px) {
    #home-page .hero-section { grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1.1fr); column-gap: 28px; }
    .knowledge-map { min-height: 510px; }
    #home-page #latest-articles .article-card:first-child { grid-column: 1 / -1; }
    #home-page #latest-articles .article-card:nth-child(2),
    #home-page #latest-articles .article-card:nth-child(3) { grid-column: span 6; }
    #home-page #latest-articles .article-card:nth-child(2) .article-image-wrap,
    #home-page #latest-articles .article-card:nth-child(3) .article-image-wrap { height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
    #home-page section { width: min(calc(100% - 32px), var(--container)); padding-block: 76px; }
    #home-page .hero-section { grid-template-columns: 1fr; padding-top: 54px; }
    #home-page .hero-copy { order: 0; max-width: 760px; }
    .knowledge-map { order: 1; width: min(100%, 660px); min-height: 560px; justify-self: center; }
    #home-page .hero-utilities { order: 2; grid-template-columns: 1fr 1fr; }
    .utility-status { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); }
    .editorial-heading { grid-template-columns: 1fr; gap: 4px; }
    .editorial-heading > p { max-width: 620px; }
    #home-page #latest-articles .article-card:first-child { grid-column: 1 / -1; }
    #home-page #latest-articles .article-card:nth-child(2),
    #home-page #latest-articles .article-card:nth-child(3) { grid-column: span 6; }
    #home-page #featured-projects .featured-grid { grid-template-columns: 1fr; }
    #home-page .focus-card { padding-inline: 18px; }
    #home-page .about-header { grid-template-columns: 170px 1fr; }
    #home-page .about-avatar { width: 160px; height: 200px; }
}

@media (max-width: 600px) {
    .logo-link span { display: inline; }
    #home-page section { width: min(calc(100% - 24px), var(--container)); padding-block: 62px; }
    #home-page .hero-section { row-gap: 26px; padding-top: 40px; }
    .hero-kicker-row { align-items: flex-start; flex-direction: column; gap: 7px; }
    #home-page .hero-copy h1 { max-width: 11ch; font-size: clamp(2.65rem, 13.2vw, 3.65rem); line-height: 1; letter-spacing: -0.06em; }
    .academic-profile { grid-template-columns: 1fr; align-items: start; gap: 11px; }
    .academic-profile > a { white-space: normal; overflow-wrap: anywhere; }
    #home-page .hero-actions { align-items: stretch; flex-direction: column; }
    #home-page .hero-actions .button { width: 100%; }
    .knowledge-map { min-height: 460px; border-radius: 22px; box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--surface) 42%, transparent), var(--shadow-md); }
    .knowledge-map::before { inset: 12px; }
    .map-readout { top: 18px; gap: 8px; }
    .map-live { display: none; }
    .map-scan { top: 30px; right: 15px; left: 15px; }
    .map-core { width: 132px; min-height: 148px; padding: 14px; }
    .map-core img { width: 68px; height: 68px; }
    .map-node { min-width: 105px; padding: 9px 10px; }
    .map-node strong { font-size: 0.7rem; }
    .map-node small { display: none; }
    .node-models { top: 10%; left: 4%; }
    .node-llm { top: 13%; right: 4%; }
    .node-build { right: 3%; bottom: 10%; }
    .node-writing { left: 4%; bottom: 9%; }
    #home-page .hero-utilities { grid-template-columns: 1fr; }
    #home-page .utility-link { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
    .utility-status { grid-column: auto; padding-left: 0; }
    #home-page #latest-articles .articles-grid { display: grid; grid-template-columns: 1fr; }
    #home-page #latest-articles .article-card:first-child,
    #home-page #latest-articles .article-card:nth-child(2),
    #home-page #latest-articles .article-card:nth-child(3) { grid-column: auto; }
    #home-page #latest-articles .article-card:nth-child(2),
    #home-page #latest-articles .article-card:nth-child(3) { display: flex; }
    #home-page .focus-grid { grid-template-columns: 1fr; gap: 22px; }
    #home-page .focus-grid::before { top: 8%; bottom: 8%; left: 45px; width: 1px; height: auto; }
    #home-page .focus-card { display: grid; min-height: auto; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 0; text-align: left; }
    #home-page .focus-index { grid-column: 2; margin: 0 0 3px; }
    #home-page .focus-icon { grid-row: 1 / 4; margin: 0; }
    #home-page .focus-card h3, #home-page .focus-card p { grid-column: 2; }
    #home-page .focus-card h3 { margin-bottom: 6px; }
    #home-page .blog-radar { margin-bottom: 72px; padding: 32px 20px; }
    #home-page .about-section { width: min(calc(100% - 24px), var(--container)); padding: 28px 19px; }
    #home-page .about-header { grid-template-columns: 1fr; }
    #home-page .about-avatar { width: 150px; height: 180px; }
    #home-page .about-content { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    section { opacity: 1; transform: none; }
    .portrait-frame, .status-card, .knowledge-map { transform: none; }
    .map-core::after, .map-lines path, .map-scan { animation: none; }
    .site-ready#home-page .hero-kicker-row,
    .site-ready#home-page .hero-copy h1,
    .site-ready#home-page .hero-description,
    .site-ready#home-page .academic-profile,
    .site-ready#home-page .hero-actions,
    .site-ready#home-page .hero-meta,
    .site-ready#home-page .knowledge-map { animation: none; }
}

@media print {
    .header, .footer, .loading-screen, .nav-actions, .nav-toggle, .contact-section { display: none !important; }
    body { background: #fff; color: #111; }
    main { padding-top: 0; }
    section { opacity: 1; transform: none; }
    .article-detail-wrapper { border: 0; box-shadow: none; }
}

/* 2026 refresh: apple-pie character journal */
:root {
    --bg: #fff8f2;
    --bg-soft: #f8ece4;
    --surface: #fffdf9;
    --surface-raised: #ffffff;
    --surface-tint: #fff0e9;
    --ink: #3e2928;
    --ink-soft: #725953;
    --ink-faint: #9a7d73;
    --primary: #c85f58;
    --primary-strong: #98423f;
    --primary-soft: #f5d7d0;
    --cyan: #88a184;
    --coral: #d9484f;
    --line: #ead8cf;
    --line-strong: #d4b9ae;
    --success: #71966d;
    --contrast-surface: #4a2d2c;
    --contrast-ink: #fff9f2;
    --on-primary: #fffaf5;
    --shadow-sm: 0 10px 28px rgba(99, 55, 45, 0.09);
    --shadow-md: 0 26px 70px rgba(99, 55, 45, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
}

:root[data-theme="dark"] {
    --bg: #1d1717;
    --bg-soft: #281f20;
    --surface: #302526;
    --surface-raised: #382b2c;
    --surface-tint: #442d2d;
    --ink: #fff8f0;
    --ink-soft: #dbc5bb;
    --ink-faint: #aa8f88;
    --primary: #e8847e;
    --primary-strong: #f3aaa4;
    --primary-soft: #593837;
    --cyan: #a9c2a4;
    --coral: #f06e73;
    --line: #4c3a39;
    --line-strong: #705451;
    --success: #a2c29d;
    --contrast-surface: #120e0f;
    --contrast-ink: #fff8f0;
    --on-primary: #211617;
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 26px 70px rgba(0, 0, 0, 0.34);
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(color-mix(in srgb, var(--primary) 9%, transparent) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
}

body::before {
    height: 520px;
    background:
        radial-gradient(circle at 83% 10%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 38%),
        radial-gradient(circle at 8% 24%, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 32%);
}

.header {
    border-bottom-color: color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.header.is-scrolled { box-shadow: 0 8px 30px rgba(91, 52, 45, 0.08); }
.avatar { width: 38px; height: 38px; border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 2px var(--primary-soft); }
.logo-link { font-size: 0.96rem; }
.logo-link::after { content: "の LOG"; color: var(--primary); font-family: var(--font-hand); font-size: 0.72rem; letter-spacing: 0; }
.nav-links a::after { background: var(--coral); }
.language-toggle, .theme-toggle { border-radius: 50%; background: var(--surface); }

h1, h2, h3, h4 { letter-spacing: -0.035em; }
.page-title { position: relative; display: inline-block; }
.page-title::after {
    content: "";
    position: absolute;
    right: 3%;
    bottom: -7px;
    left: 5%;
    height: 9px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 12'%3E%3Cpath d='M3 8c92-8 167 5 260-1 48-3 88-2 134 1' fill='none' stroke='%23d9484f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    opacity: 0.72;
}

.eyebrow { color: var(--primary-strong); }
.button { border-radius: 14px 14px 14px 5px; }
.button-primary { background: var(--primary); color: var(--on-primary); }
.button-primary:hover { background: var(--primary-strong); }
.button-secondary { background: color-mix(in srgb, var(--surface) 88%, transparent); }

.article-card,
.timeline-container .timeline-item,
.article-detail-wrapper,
.search-container,
.search-content,
.no-results,
.not-found { border-color: var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); }

.article-card { border-radius: 22px 22px 22px 8px; box-shadow: var(--shadow-sm); }
.article-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.article-image-wrap { border-bottom-color: var(--line); }
.card-type { border-color: var(--line); background: color-mix(in srgb, var(--surface) 91%, transparent); color: var(--primary-strong); }
.tag { border-color: transparent; background: var(--primary-soft); color: var(--primary-strong); }
.tag-filter { border-radius: 12px 12px 12px 4px; }
.tag-filter:hover, .tag-filter[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.timeline-year-section > h3 { border-radius: 12px 12px 12px 4px; background: var(--primary); color: var(--on-primary); }
.reading-progress span { background: linear-gradient(90deg, var(--coral), var(--primary), var(--cyan)); }

#home-page {
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 30rem),
        radial-gradient(circle at 6% 34%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 26rem),
        var(--bg);
}

#home-page section { width: min(calc(100% - 56px), 1200px); }

#home-page .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 0.82fr);
    column-gap: clamp(36px, 6vw, 86px);
    padding-top: clamp(62px, 8vh, 100px);
    padding-bottom: 58px;
}

#home-page .hero-kicker-row .eyebrow { color: var(--primary-strong); }
.hero-issue { padding: 5px 9px; border: 1px dashed var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-faint); }

#home-page .hero-copy h1 {
    max-width: 670px;
    font-size: clamp(3.3rem, 5.8vw, 6.25rem);
    font-weight: 800;
    line-height: 1.01;
    letter-spacing: -0.055em;
}

#home-page .hero-copy h1::first-letter { color: inherit; }
#home-page .hero-copy h1::after {
    display: block;
    width: min(260px, 48%);
    height: 11px;
    margin-top: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14'%3E%3Cpath d='M4 9c64-10 113 5 181-1 43-4 76-3 111 1' fill='none' stroke='%23d9484f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    opacity: 0.78;
}

#home-page .hero-description { font-size: clamp(1rem, 1.25vw, 1.16rem); }
.academic-profile { border-color: var(--line-strong); }
.academic-profile-main strong { color: var(--primary-strong); }
#home-page .button { border-radius: 14px 14px 14px 5px; }
#home-page .button-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 26%, transparent); }
#home-page .button-primary:hover { background: var(--primary-strong); }
#home-page .hero-meta { color: var(--ink-faint); }

.profile-card.knowledge-map {
    --pointer-x: 50%;
    --pointer-y: 50%;
    --scene-x: 0px;
    --scene-y: 0px;
    position: relative;
    min-height: 650px;
    padding: 24px 26px 28px;
    overflow: visible;
    isolation: isolate;
    border: 2px solid var(--line-strong);
    border-radius: 34px 34px 34px 12px;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--primary) 12%, transparent), transparent 31%),
        linear-gradient(color-mix(in srgb, var(--primary) 5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--primary) 5%, transparent) 1px, transparent 1px),
        var(--surface);
    background-size: auto, 24px 24px, 24px 24px, auto;
    box-shadow: var(--shadow-md);
    transform: perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
    transform-style: preserve-3d;
    transition: transform 280ms var(--ease), box-shadow 220ms ease;
}

.profile-card.knowledge-map::before {
    content: "";
    position: absolute;
    inset: 16px -14px -14px 16px;
    z-index: -2;
    border: 2px solid var(--line);
    border-radius: inherit;
    background: var(--primary-soft);
    transform: rotate(1.2deg);
}

.profile-card.knowledge-map::after {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    width: 118px;
    height: 34px;
    z-index: 5;
    border: 0;
    border-radius: 2px;
    background: color-mix(in srgb, #efd59c 74%, transparent);
    box-shadow: none;
    transform: translateX(-50%) rotate(-3deg);
}

.profile-card-topline {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px dashed var(--line-strong);
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 0.59rem;
    letter-spacing: 0.08em;
}

.profile-card-topline strong { color: var(--primary-strong); }

.profile-portrait {
    position: relative;
    width: min(82%, 360px);
    margin: 28px auto 18px;
    isolation: isolate;
    transform: translate(var(--scene-x), var(--scene-y));
    transition: transform 420ms var(--ease);
}

.pie-lattice {
    position: absolute;
    inset: -20px;
    z-index: -1;
    border: 12px solid color-mix(in srgb, #cb875c 54%, var(--surface));
    border-radius: 50%;
    background:
        repeating-linear-gradient(45deg, transparent 0 15px, color-mix(in srgb, #c77c50 42%, transparent) 16px 22px, transparent 23px 38px),
        repeating-linear-gradient(-45deg, transparent 0 15px, color-mix(in srgb, #c77c50 42%, transparent) 16px 22px, transparent 23px 38px),
        #f5d5b7;
    box-shadow: inset 0 0 0 7px color-mix(in srgb, #fff5e8 74%, transparent), 0 16px 34px rgba(110, 67, 48, 0.15);
    transform: rotate(-3deg);
}

.portrait-art {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 8px solid var(--surface);
    border-radius: 50% 50% 46% 46%;
    box-shadow: 0 0 0 2px var(--line-strong);
}

.portrait-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: portraitBreathe 11s ease-in-out infinite alternate;
}

@keyframes portraitBreathe {
    from { transform: scale(1.025) translate(-0.4%, 0.3%); }
    to { transform: scale(1.065) translate(0.4%, -0.5%); }
}

.portrait-chip {
    position: absolute;
    right: -28px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-mono);
    font-size: 0.59rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transform: rotate(3deg);
}

.portrait-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent); }

.profile-identity {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 10px 4px 18px;
}

.profile-identity > div { display: grid; }
.profile-identity span { color: var(--primary-strong); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; }
.profile-identity strong { font-family: var(--font-display); font-size: 2.05rem; line-height: 1.05; letter-spacing: -0.045em; }
.profile-identity small { padding: 6px 9px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.62rem; }

.profile-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.profile-paths a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px 14px 14px 5px;
    background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
    transition: border-color 180ms ease, transform 180ms var(--ease), background-color 180ms ease;
}

.profile-paths a:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px) rotate(-0.4deg); }
.profile-paths i { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong); font-size: 0.76rem; }
.profile-paths span { min-width: 0; color: var(--ink); font-size: 0.76rem; font-weight: 700; }
.profile-paths small { display: block; overflow: hidden; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.5rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.profile-sticker { position: absolute; z-index: 4; display: grid; place-items: center; filter: drop-shadow(0 6px 8px rgba(92, 47, 39, 0.16)); }
.sticker-apple { top: 74px; right: -22px; width: 62px; height: 62px; border: 2px solid var(--surface); border-radius: 47% 53% 48% 52%; background: #f3c7bd; font-size: 2rem; animation: stickerFloat 6s ease-in-out infinite alternate; }
.sticker-sparkle { top: 190px; left: -20px; color: #d29d42; font-size: 2.2rem; animation: sparkleFloat 7s ease-in-out infinite alternate; }
.profile-handnote { position: absolute; right: 28px; bottom: -18px; z-index: 4; padding: 6px 10px; background: color-mix(in srgb, #efd59c 82%, var(--surface)); color: #6e5148; font-family: var(--font-hand); font-size: 0.91rem; transform: rotate(-3deg); }

.profile-petal {
    position: absolute;
    z-index: 3;
    width: 12px;
    height: 19px;
    border-radius: 75% 15% 75% 15%;
    background: linear-gradient(140deg, #fff7e9, #e9a6a0 85%);
    box-shadow: 0 3px 8px rgba(130, 64, 61, 0.13);
    pointer-events: none;
    animation: petalDrift 8s ease-in-out infinite alternate;
}
.petal-one { top: 30%; right: 8%; transform: rotate(28deg); }
.petal-two { top: 46%; left: 7%; width: 9px; height: 14px; animation-delay: -4s; }

@keyframes stickerFloat {
    from { transform: translate(var(--scene-x), var(--scene-y)) rotate(11deg); }
    to { transform: translate(var(--scene-x), calc(var(--scene-y) - 8px)) rotate(5deg); }
}
@keyframes sparkleFloat {
    from { transform: translate(var(--scene-x), var(--scene-y)) rotate(-8deg) scale(0.92); opacity: 0.75; }
    to { transform: translate(var(--scene-x), calc(var(--scene-y) - 9px)) rotate(8deg) scale(1.07); opacity: 1; }
}
@keyframes petalDrift {
    from { translate: 0 0; rotate: -10deg; opacity: 0.58; }
    to { translate: 13px -16px; rotate: 25deg; opacity: 0.94; }
}

#home-page .hero-utilities { border-color: var(--line-strong); }
#home-page .utility-link, .utility-status { border-color: var(--line-strong); }

#home-page .home-editorial-section { border-top: 1px dashed var(--line-strong); }
#home-page .section-heading h2 { font-size: clamp(2.65rem, 5vw, 5rem); letter-spacing: -0.045em; }
#home-page .eyebrow { color: var(--primary-strong); }
#home-page .article-card { border-radius: 22px 22px 22px 8px; box-shadow: var(--shadow-sm); }
#home-page .article-card:hover { box-shadow: var(--shadow-md); }
#home-page .article-card.motion-pending { opacity: 0; transform: translateY(24px) rotate(-0.5deg); }
#home-page .article-card.motion-pending.motion-visible { opacity: 1; transform: translateY(0) rotate(0); transition: opacity 700ms var(--ease) var(--reveal-delay), transform 700ms var(--ease) var(--reveal-delay), box-shadow 220ms ease, border-color 220ms ease; }
#home-page .article-card.motion-visible:hover,
#home-page .article-card.motion-visible:focus-visible { transform: translateY(-6px) rotate(-0.35deg); }
#home-page .article-card.motion-visible:hover .article-image,
#home-page .article-card.motion-visible:focus-visible .article-image { transform: scale(1.055) rotate(-0.5deg); }
#home-page .card-type { border-radius: 999px; color: var(--primary-strong); }
#home-page .tag { border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); }

#home-page #featured-projects .article-card:nth-child(2) { border-color: #694947; background: var(--contrast-surface); color: var(--contrast-ink); }
#home-page #featured-projects .article-card:nth-child(2) .card-type { color: #7a3c3c; }
#home-page #featured-projects .article-card:nth-child(2) .card-arrow { color: #f3b1a7; }

#home-page .focus-section { border-top: 1px dashed var(--line-strong); }
#home-page .focus-grid::before { background: linear-gradient(90deg, var(--primary), #d9aa59, var(--cyan)); }
#home-page .focus-icon { border-color: var(--bg); background: var(--primary); }
#home-page .focus-card:nth-child(2) .focus-icon { background: #d39b45; }
#home-page .focus-card:nth-child(3) .focus-icon { background: var(--cyan); }

#home-page .blog-radar {
    border: 2px solid #674342;
    border-radius: 30px 30px 30px 10px;
    background: var(--contrast-surface);
    color: var(--contrast-ink);
    box-shadow: 0 30px 80px rgba(72, 38, 35, 0.24);
}

#home-page .blog-radar .eyebrow { color: #f3b1a7; }
#home-page .blog-radar .text-link { color: #ffd0c6; }
#home-page .radar-panel { border-color: rgba(255, 244, 232, 0.18); background: linear-gradient(rgba(255, 216, 203, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 216, 203, 0.07) 1px, transparent 1px), #593635; background-size: 20px 20px; }
#home-page .radar-topic small { background: rgba(255, 208, 198, 0.14); color: #ffd0c6; }

#home-page .about-section { border: 2px solid var(--line); border-radius: 30px 30px 30px 10px; background: var(--surface); }
#home-page .about-image { --portrait-size: 210px; width: var(--portrait-size); }
#home-page .about-avatar { width: var(--portrait-size); height: var(--portrait-size); border-radius: 50%; filter: saturate(0.96); }
#home-page .about-image::after { inset: 10px auto auto 10px; width: var(--portrait-size); aspect-ratio: 1; border-color: var(--primary); border-radius: 50%; }
#home-page .contact-section { border-radius: 10px 30px 30px 30px; background: var(--primary); }

.footer { background: color-mix(in srgb, var(--bg-soft) 92%, transparent); }

@media (max-width: 1060px) {
    #home-page .hero-section { grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.82fr); column-gap: 34px; }
    .profile-card.knowledge-map { min-height: 620px; }
    .profile-portrait { width: min(78%, 330px); }
}

@media (max-width: 860px) {
    #home-page .hero-section { grid-template-columns: 1fr; }
    .profile-card.knowledge-map { order: 1; width: min(100%, 560px); min-height: 650px; justify-self: center; }
    #home-page .about-image { --portrait-size: 160px; }
}

@media (max-width: 600px) {
    #home-page .hero-copy h1 { max-width: 11ch; font-size: clamp(2.6rem, 12.8vw, 3.55rem); }
    .profile-card.knowledge-map { min-height: 565px; padding: 20px 17px 24px; border-radius: 25px 25px 25px 9px; }
    .profile-card.knowledge-map::before { inset: 12px -8px -8px 12px; }
    .profile-card-topline { font-size: 0.49rem; }
    .profile-portrait { width: min(76%, 280px); margin-top: 31px; }
    .pie-lattice { inset: -13px; border-width: 9px; }
    .portrait-chip { right: -20px; padding: 6px 9px; }
    .profile-identity { margin-top: 16px; }
    .profile-identity strong { font-size: 1.65rem; }
    .profile-paths { gap: 7px; }
    .profile-paths a { gap: 7px; padding: 8px; }
    .profile-paths i { width: 27px; height: 27px; }
    .profile-paths span { font-size: 0.68rem; }
    .sticker-apple { top: 66px; right: -9px; width: 48px; height: 48px; font-size: 1.5rem; }
    .sticker-sparkle { top: 158px; left: -8px; font-size: 1.7rem; }
    .profile-handnote { right: 18px; font-size: 0.78rem; }
    #home-page .about-image { --portrait-size: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    .profile-card.knowledge-map { transform: none; }
    .profile-portrait { transform: none; }
    .portrait-art img, .profile-sticker, .profile-petal { animation: none; }
    #home-page .article-card.motion-pending { opacity: 1; transform: none; }
}

@media print {
    body { background-image: none; }
    .profile-sticker, .profile-handnote { display: none; }
}
