:root {
    --bg: #07080d;
    --bg-soft: #0c0f16;
    --surface: rgba(18, 22, 32, 0.72);
    --surface-strong: rgba(26, 31, 43, 0.86);
    --surface-muted: rgba(255, 255, 255, 0.045);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f2ede3;
    --text-soft: #c5bcaf;
    --text-muted: #8f877b;
    --gold: #c7a56d;
    --gold-deep: #8f6b3c;
    --cyan: #8fd2e3;
    --blue: #7c8dff;
    --rose: #ff668a;
    --shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
    --max: 1180px;
    --nav-height: 76px;
    --radius: 8px;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-sans: var(--font-body);
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text-soft);
    background:
        radial-gradient(circle at 20% 0%, rgba(231, 191, 120, 0.11), transparent 28rem),
        radial-gradient(circle at 85% 12%, rgba(114, 228, 255, 0.08), transparent 30rem),
        linear-gradient(180deg, #07080d 0%, #090b11 48%, #07080d 100%);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.012), transparent 28%, rgba(255,255,255,0.01));
    mix-blend-mode: screen;
}

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

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

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

::selection {
    color: #0a0b10;
    background: var(--gold);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-140%);
    padding: 10px 14px;
    color: #090b11;
    background: var(--gold);
    border-radius: var(--radius);
    font-weight: 700;
    transition: transform 0.2s ease;
}

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

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

.section-shell {
    position: relative;
    padding: 128px 0;
}

.section-header {
    display: grid;
    gap: 14px;
    max-width: 780px;
    margin-bottom: 48px;
}

.section-kicker,
.eyebrow {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(242, 237, 227, 0.58);
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 74px);
    font-weight: 600;
    line-height: 0.95;
}

.section-intro {
    max-width: 660px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
}

.button {
    --x: 0px;
    --y: 0px;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    transform: translate3d(var(--x), var(--y), 0);
    transition: transform 0.45s var(--ease), border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button-primary {
    color: #0a0b10;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), #d8bb8d);
    box-shadow: 0 12px 30px rgba(199, 165, 109, 0.14);
}

.button-gold {
    color: #12100a;
    border-color: rgba(231, 191, 120, 0.78);
    background:
        linear-gradient(135deg, rgba(255, 236, 190, 0.96), rgba(205, 156, 71, 0.94));
    box-shadow: 0 14px 34px rgba(199, 165, 109, 0.2);
}

.button-gold:hover {
    border-color: rgba(255, 229, 176, 0.92);
    background:
        linear-gradient(135deg, rgba(255, 243, 210, 1), rgba(222, 174, 88, 0.98));
}

.button-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.button:hover,
.contact-link:hover,
.project-actions a:hover {
    border-color: rgba(143, 210, 227, 0.5);
}

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(7, 8, 13, 0.66);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.28s ease, border-color 0.28s ease;
}

.nav.scrolled {
    background: rgba(7, 8, 13, 0.88);
    border-bottom-color: var(--line);
}

.nav-container {
    width: min(100% - 40px, var(--max));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.logo-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(231, 191, 120, 0.36);
    border-radius: 12px;
    color: var(--gold);
    background:
        radial-gradient(circle at 45% 15%, rgba(255,255,255,0.18), transparent 38%),
        linear-gradient(160deg, rgba(231,191,120,0.16), rgba(117,217,255,0.055));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 32px rgba(0,0,0,0.22);
}

.logo-mark svg {
    width: 19px;
    height: 19px;
}

.logo-blade {
    fill: currentColor;
    opacity: 0.96;
}

.logo-guard {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

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

.nav-link {
    position: relative;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s 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);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    background: rgba(7, 8, 13, 0.94);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: grid;
    gap: 22px;
    text-align: center;
}

.mobile-menu-link {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1;
}

.hero {
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: calc(var(--nav-height) + 42px) 0 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.54;
    transform: translateZ(0);
}

.ambient-one {
    width: 520px;
    height: 520px;
    left: 6%;
    top: 10%;
    background: rgba(231, 191, 120, 0.17);
    animation: float-one 9s ease-in-out infinite;
}

.ambient-two {
    width: 620px;
    height: 620px;
    right: -12%;
    bottom: -8%;
    background: rgba(114, 228, 255, 0.12);
    animation: float-two 11s ease-in-out infinite;
}

.circuit-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 48%, rgba(114, 228, 255, 0.12) 49%, transparent 50% 100%),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 22rem);
    opacity: 0.2;
    mask-image: radial-gradient(circle at 60% 42%, black 0%, transparent 70%);
}

.scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    height: 24%;
    transform: translateY(-100%);
    animation: scan 8s linear infinite;
    opacity: 0.08;
}

@keyframes float-one {
    50% { transform: translate(48px, 32px) scale(1.04); }
}

@keyframes float-two {
    50% { transform: translate(-38px, -24px) scale(1.06); }
}

@keyframes scan {
    to { transform: translateY(520%); }
}

.hero-layout {
    width: min(100% - 40px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 18px;
}

.hero-title {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 600;
    line-height: 1.04;
}

.hero-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    line-height: 0.92;
}

.hero-name-main {
    display: inline-block;
}

.motion-char {
    display: inline-block;
    transform-origin: 50% 80%;
}

.hero-name-main .motion-char {
    background: linear-gradient(180deg, #fffaf0 0%, #d9d2c5 58%, #8d8790 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-alias {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(231, 191, 120, 0.35);
    border-radius: 999px;
    color: var(--gold);
    background:
        linear-gradient(135deg, rgba(231, 191, 120, 0.18), rgba(117, 217, 255, 0.06)),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 16px 40px rgba(0, 0, 0, 0.22);
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.35vw, 18px);
    font-weight: 800;
    letter-spacing: 0;
}

.hero-roman {
    display: block;
    margin-top: 28px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 241, 233, 0.52);
    font-size: clamp(24px, 3.3vw, 44px);
}

.hero-name-note {
    max-width: 560px;
    margin: -6px 0 0;
    color: rgba(244, 241, 233, 0.68);
    font-size: 14px;
    line-height: 1.7;
}

.hero-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 620px;
}

.hero-signal-row span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 999px;
    padding: 5px 10px;
    color: rgba(242, 237, 227, 0.62);
    background: rgba(255,255,255,0.035);
    font-family: var(--font-mono);
    font-size: 11px;
}

.hero-subtitle {
    max-width: 660px;
    margin: 0;
    color: var(--text);
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.hero-subtitle span {
    display: block;
}

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

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 640px;
}

.hero-metrics div,
.hero-console,
.profile-panel,
.capability-card,
.featured-project,
.project-card,
.contact-panel {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,0.058), rgba(255,255,255,0.022));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-metrics div {
    padding: 16px;
    border-radius: var(--radius);
}

.metric-value {
    display: block;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.metric-link {
    display: inline-flex;
    margin-top: 6px;
    color: rgba(143, 210, 227, 0.92);
    font-family: var(--font-mono);
    font-size: 11px;
    transition: color 0.2s ease;
}

.metric-link:hover {
    color: var(--text);
}

.metric-label {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
}

.hero-console {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
}

.hero-console::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 0%, rgba(231,191,120,0.16), transparent 18rem);
}

.console-topbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.console-topbar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
}

.console-topbar span:nth-child(1) { background: var(--rose); }
.console-topbar span:nth-child(2) { background: var(--gold); }
.console-topbar span:nth-child(3) { background: var(--cyan); }

.console-topbar strong {
    margin-left: auto;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
}

.console-body {
    position: relative;
    display: grid;
    gap: 1px;
    padding: 18px;
}

.console-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* 关键修复：.console-row 的 display:grid 会盖掉浏览器默认的 [hidden]{display:none}，
   这里显式补一条，保证 now 行在无状态时正确隐藏 */
.console-row[hidden] { display: none; }

.console-row span {
    color: var(--text-muted);
}

.console-row strong {
    color: var(--text);
    font-weight: 500;
}

.stage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.stage-tags span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 999px;
    color: rgba(244, 241, 233, 0.88);
    background: rgba(255,255,255,0.04);
    font-family: var(--font-mono);
    font-size: 10px;
}

.stage-tags span:nth-child(2) {
    border-color: rgba(231,191,120,0.28);
    color: var(--gold);
}

.console-row.live strong {
    color: var(--cyan);
}

/* now 行 — 站长此刻状态 */
.console-row-now {
    grid-template-columns: 96px 1fr auto;
    align-items: baseline;
}

.console-row-now strong {
    color: var(--cyan);
    font-weight: 500;
}

.now-time {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    opacity: 0.65;
}

.console-card {
    position: relative;
    margin: 0 18px 18px;
    padding: 16px;
    border: 1px solid rgba(231, 191, 120, 0.22);
    border-radius: var(--radius);
    color: var(--text);
    background: linear-gradient(135deg, rgba(231, 191, 120, 0.1), rgba(114, 228, 255, 0.045));
    font-family: var(--font-mono);
    font-size: 14px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    50% { opacity: 0.45; transform: scale(0.72); }
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-indicator svg {
    animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
    50% { transform: translateY(6px); }
}

.about {
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.025), transparent);
}

.projects {
    padding-bottom: 64px;
}

.life-section {
    padding: 36px 0 86px;
}

.life-section .life-panel {
    margin-top: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.42fr;
    gap: 22px;
    align-items: start;
}

.profile-panel,
.capability-card,
.project-card,
.timeline-card {
    border-radius: var(--radius);
}

.profile-panel {
    position: sticky;
    top: calc(var(--nav-height) + 26px);
    display: grid;
    gap: 22px;
    padding: 22px;
}

.portrait-wrap {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    background: var(--surface-muted);
}

.portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-panel h3,
.capability-card h3,
.project-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    line-height: 1.25;
}

.profile-panel p,
.capability-card p,
.project-card p,
.contact-panel p {
    margin: 0;
}

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

.capability-card {
    position: relative;
    min-height: 240px;
    padding: 24px;
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.25s ease;
}

.capability-card:hover,
.project-card:hover {
    border-color: rgba(231, 191, 120, 0.36);
    transform: translateY(-6px);
}

.card-index {
    display: inline-block;
    margin-bottom: 42px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 11px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.chip-row span,
.project-meta span,
.life-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255,255,255,0.035);
    font-family: var(--font-mono);
    font-size: 11px;
}

.life-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    margin-top: 22px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 0%, rgba(231, 191, 120, 0.16), transparent 18rem),
        radial-gradient(circle at 100% 80%, rgba(121, 223, 255, 0.11), transparent 18rem),
        linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 28px 80px rgba(0,0,0,0.34);
}

.life-copy h3 {
    max-width: 720px;
    margin: 10px 0 12px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
}

.life-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
}

.life-actions {
    margin-top: 18px;
}

.subtle-action {
    min-height: 40px;
    padding: 10px 14px;
    border-color: rgba(255,255,255,0.08);
    color: rgba(242, 237, 227, 0.86);
    background: rgba(255,255,255,0.024);
    box-shadow: none;
}

.subtle-action:hover {
    background: rgba(255,255,255,0.04);
}

.life-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.life-douyin {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(254,44,85,0.12), rgba(37,244,238,0.07)),
        rgba(255,255,255,0.04);
}

.life-douyin img {
    width: 104px;
    height: 104px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    object-fit: cover;
}

.life-douyin span {
    display: block;
    color: rgba(242, 237, 227, 0.56);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 4px;
}

.life-douyin strong {
    color: var(--text);
}

.life-douyin p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.life-entry-stack {
    display: grid;
    gap: 14px;
}

.life-entry-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 15px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.life-entry-card.mbti {
    border-color: rgba(231, 191, 120, 0.3);
    background:
        linear-gradient(135deg, rgba(231,191,120,0.18), rgba(255,255,255,0.045)),
        rgba(255,255,255,0.035);
}

.life-entry-card.douyin {
    background:
        linear-gradient(135deg, rgba(254,44,85,0.12), rgba(37,244,238,0.07)),
        rgba(255,255,255,0.04);
}

.life-entry-card img {
    width: 96px;
    height: 96px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.life-entry-card.douyin img {
    object-fit: cover;
}

.life-qr-link {
    display: block;
    border-radius: 12px;
}

.life-entry-card span {
    display: block;
    color: rgba(242, 237, 227, 0.56);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 4px;
}

.life-entry-card strong {
    color: var(--text);
}

.life-entry-card p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.featured-project {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 22px;
    padding: 34px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-visual {
    position: relative;
    display: grid;
    min-height: 320px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 50%, rgba(231, 191, 120, 0.2), transparent 11rem),
        linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
}

.featured-visual img {
    width: min(44%, 180px);
    border-radius: 28%;
    box-shadow: 0 26px 60px rgba(0,0,0,0.38);
}

.orbit-label {
    position: absolute;
    right: 22px;
    bottom: 22px;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 12px;
}

.featured-copy h3 {
    margin: 18px 0 12px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 0.95;
}

.project-meta,
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.project-detail-grid div,
.project-notes span {
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.035);
}

.project-detail-grid div {
    min-height: 86px;
    padding: 10px;
    border-radius: var(--radius);
}

.project-detail-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 11px;
}

.project-detail-grid strong {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}

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

.project-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 26px);
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.25s ease;
}

.project-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.project-card-head img,
.text-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    object-fit: cover;
}

.text-icon {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: var(--font-mono);
    font-weight: 700;
}

.project-label {
    display: block;
    color: rgba(242, 237, 227, 0.56);
    font-family: var(--font-mono);
    font-size: 11px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.2vw, 34px);
    font-weight: 600;
    line-height: 1.08;
}

.project-copy-stack {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    color: rgba(244, 241, 233, 0.68);
}

.project-copy-stack p {
    margin: 0;
    padding-left: 11px;
    border-left: 1px solid rgba(231,191,120,0.34);
    font-size: 13px;
    line-height: 1.58;
}

.project-copy-stack strong {
    color: rgba(244, 241, 233, 0.9);
    font-weight: 800;
}

.project-copy-stack code {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.bookstore-card {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: center;
}

.project-media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.035);
}

.project-media img {
    width: 100%;
    height: 100%;
    min-height: 238px;
    object-fit: cover;
    transform: scale(1.01);
}

.bookstore-copy {
    position: relative;
    z-index: 1;
}

.project-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.project-notes span {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: rgba(244, 241, 233, 0.78);
    font-family: var(--font-mono);
    font-size: 10px;
}

.qr-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.035);
}

.qr-block img {
    width: 68px;
    height: 68px;
    padding: 5px;
    border-radius: var(--radius);
    background: #fff;
}

.qr-block span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.project-qr {
    margin-top: 14px;
}

[data-lightbox-image],
[data-lightbox-src] {
    cursor: zoom-in;
}

.pet-preview {
    width: 100%;
    max-height: 132px;
    margin-top: 12px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #8d8d8d;
}

.project-actions.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.project-actions.compact a {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 34px;
    align-items: center;
    padding: 36px;
    border-radius: 12px;
}

.contact-links {
    display: grid;
    gap: 12px;
}

.contact-stack {
    display: grid;
    gap: 14px;
}

.contact-link {
    --x: 0px;
    --y: 0px;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255,255,255,0.045);
    font-weight: 700;
    transform: translate3d(var(--x), var(--y), 0);
    transition: transform 0.45s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.contact-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    color: var(--gold);
    background:
        radial-gradient(circle at 30% 20%, rgba(231, 191, 120, 0.18), transparent 58%),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.contact-link[href*="github"] .contact-icon svg {
    fill: currentColor;
    stroke: none;
}

.contact-link:hover {
    background: rgba(255,255,255,0.065);
}

.contact-link:hover .contact-icon {
    color: var(--cyan);
    border-color: rgba(117, 217, 255, 0.34);
    background:
        radial-gradient(circle at 30% 20%, rgba(117, 217, 255, 0.2), transparent 58%),
        rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.douyin-contact {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(254, 44, 85, 0.1), rgba(37, 244, 238, 0.055)),
        rgba(255,255,255,0.035);
}

.douyin-contact img {
    width: 96px;
    height: 96px;
    padding: 5px;
    border-radius: var(--radius);
    background: #fff;
    object-fit: cover;
}

.douyin-contact span {
    display: block;
    color: rgba(242, 237, 227, 0.54);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 3px;
}

.douyin-contact strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.douyin-contact p {
    color: var(--text-muted);
    font-size: 13px;
}

.social-link-panel {
    grid-column: 1 / -1;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-link-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.social-link-head h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 600;
    line-height: 1;
}

.social-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.social-link-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255,255,255,0.045);
    text-decoration: none;
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

button.social-link-card {
    width: 100%;
    font: inherit;
    cursor: pointer;
}

.social-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(117, 217, 255, 0.34);
    background: rgba(255,255,255,0.065);
}

.social-link-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    color: var(--gold);
    background:
        radial-gradient(circle at 30% 20%, rgba(231, 191, 120, 0.18), transparent 58%),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.social-link-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.social-link-card:hover .social-link-icon {
    color: var(--cyan);
    border-color: rgba(117, 217, 255, 0.34);
    background:
        radial-gradient(circle at 30% 20%, rgba(117, 217, 255, 0.2), transparent 58%),
        rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.social-link-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.social-link-card small {
    display: block;
    margin-top: 4px;
    color: rgba(242, 237, 227, 0.58);
    font-size: 12px;
    line-height: 1.35;
}

.social-qr-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.038);
}

.social-qr-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-qr-card img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.social-qr-card span {
    display: block;
    margin-top: 10px;
    color: rgba(242, 237, 227, 0.56);
    font-family: var(--font-mono);
    font-size: 11px;
}

.social-qr-card strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
}

.footer p {
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.footprint-row {
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.footprint-row.is-ready {
    opacity: 1;
}

.footprint-row.is-warming .footprint-text strong {
    color: var(--text-muted);
    opacity: 0.6;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 36px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 4, 6, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: zoom-out;
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(94vw, 900px);
    max-height: 92vh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
        #151515;
    box-shadow: 0 34px 100px rgba(0,0,0,0.58);
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: normal !important;
}

.lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lightbox-topbar span {
    display: block;
    color: rgba(242, 237, 227, 0.54);
    font-family: var(--font-mono);
    font-size: 11px;
}

.lightbox-topbar strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 18px;
}

.lightbox-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: var(--text);
    background: rgba(255,255,255,0.055);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.lightbox-image-wrap {
    display: grid;
    min-height: 0;
    place-items: center;
    padding: clamp(14px, 3vw, 30px);
    overflow: auto;
    background: #101112;
}

.lightbox-image-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 68vh;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.lightbox-actions .button {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
}

.lightbox-actions .button.is-copied {
    border-color: rgba(117, 217, 255, 0.35);
    color: var(--cyan);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.gsap-motion .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.gsap-motion .hero-copy,
.gsap-motion .hero-stage,
.gsap-motion .featured-project,
.gsap-motion .showcase-rail,
.gsap-motion .project-card,
.gsap-motion .contact-panel {
    will-change: transform, opacity;
}

.gsap-motion .motion-char,
.gsap-motion .hero-signal-row span,
.gsap-motion .hero-metrics > div {
    will-change: transform, opacity;
}

.cursor-aura {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 240px;
    height: 240px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 228, 255, 0.12), transparent 62%);
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.2s ease;
    mix-blend-mode: screen;
}

/* Apple keynote polish layer */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1400;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f6dba4, #79dfff, #ffffff);
    box-shadow: 0 0 26px rgba(121, 223, 255, 0.42);
    transform: scaleX(0);
    transform-origin: left;
}

body {
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.13), transparent 30rem),
        radial-gradient(ellipse at 72% 18%, rgba(94, 189, 255, 0.12), transparent 34rem),
        radial-gradient(ellipse at 18% 26%, rgba(231, 191, 120, 0.12), transparent 30rem),
        linear-gradient(180deg, #020306 0%, #08090f 45%, #020306 100%);
}

.hero {
    min-height: 100dvh;
}

.hero-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.82fr);
    gap: clamp(42px, 6vw, 82px);
}

.hero-copy {
    gap: 20px;
}

.eyebrow,
.section-kicker {
    color: rgba(242, 237, 227, 0.58);
}

.hero-title {
    max-width: 640px;
    font-size: clamp(42px, 5.2vw, 72px);
    line-height: 1.04;
    background: linear-gradient(180deg, #fffaf0 0%, #d9d2c5 56%, #7d7b83 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 28px 80px rgba(255, 255, 255, 0.12);
}

.hero-roman {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.36);
    text-shadow: none;
}

.hero-subtitle {
    max-width: 590px;
    color: rgba(255, 250, 240, 0.92);
    font-size: clamp(18px, 2.2vw, 25px);
}

.hero-metrics div {
    background:
        linear-gradient(160deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035)),
        rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 55px rgba(0,0,0,0.26);
    transition: transform 0.45s var(--ease), border-color 0.3s ease;
}

.hero-metrics div:hover {
    border-color: rgba(255,255,255,0.24);
    transform: translateY(-5px);
}

.hero-stage {
    isolation: isolate;
    min-height: 610px;
    padding-top: 330px;
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: var(--stage-fade, 1);
    transform: translateY(var(--stage-lift, 0));
}

.hero-stage:hover {
    border-color: rgba(126, 226, 255, 0.24);
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 14%;
    z-index: -3;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(121, 223, 255, 0.22), transparent 62%);
    filter: blur(28px);
}

.blade-stage {
    --blade-rotate: 0deg;
    --blade-tilt: -8deg;
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 0;
    display: grid;
    width: min(86%, 430px);
    height: 370px;
    place-items: center;
    cursor: grab;
    perspective: 900px;
    touch-action: pan-y;
    transform: translateX(-50%);
}

.blade-stage.is-dragging {
    cursor: grabbing;
}

.blade-aura,
.blade-orbit {
    position: absolute;
    pointer-events: none;
}

.blade-aura {
    inset: 4% 0 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 25%, rgba(255,255,255,0.2), transparent 10%),
        radial-gradient(circle at 50% 42%, rgba(117,217,255,0.2), transparent 36%),
        radial-gradient(circle at 50% 58%, rgba(255,255,255,0.06), transparent 62%);
    filter: blur(6px);
    opacity: 0.78;
}

.blade-orbit {
    inset: 12% 5% 3%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.13);
    background:
        conic-gradient(from 120deg, transparent, rgba(255,255,255,0.22), transparent 30%, rgba(117,217,255,0.38), transparent 68%),
        radial-gradient(circle, rgba(255,255,255,0.05), transparent 58%);
    box-shadow: inset 0 0 80px rgba(255,255,255,0.045), 0 34px 90px rgba(0,0,0,0.44);
    transform: rotateX(68deg) rotateZ(-10deg);
    animation: blade-orbit-drift 18s linear infinite;
    mask-image: radial-gradient(ellipse, transparent 47%, black 49%);
}

.blade-object {
    position: relative;
    width: 230px;
    height: 500px;
    display: grid;
    place-items: center;
    transform: rotateX(var(--blade-tilt)) rotateY(var(--blade-rotate)) translateZ(20px);
    transform-style: preserve-3d;
    filter: drop-shadow(0 34px 38px rgba(0,0,0,0.5));
    transition: filter 0.35s ease;
    will-change: transform;
}

.blade-object::before {
    content: "";
    position: absolute;
    inset: 6% 28% 6%;
    z-index: -1;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, rgba(117,217,255,0.22), rgba(255,255,255,0.26), rgba(255,255,255,0.08), transparent),
        radial-gradient(ellipse, rgba(231,191,120,0.18), transparent 64%);
    filter: blur(24px);
    opacity: 0.62;
    transform: translateZ(-45px) rotateZ(6deg);
}

.blade-object::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,0.5) 43%, transparent 56%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-42%) skewX(-12deg);
    animation: blade-sheen 5.8s ease-in-out infinite;
}

.blade-stage:hover .blade-object {
    filter: drop-shadow(0 36px 45px rgba(0,0,0,0.5)) drop-shadow(0 0 24px rgba(117,217,255,0.14));
}

.kunwu-sword-photo {
    width: auto;
    height: 500px;
    display: block;
    max-width: none;
    filter:
        contrast(1.05)
        saturate(0.96)
        brightness(1.02)
        drop-shadow(0 26px 34px rgba(0,0,0,0.48))
        drop-shadow(0 0 18px rgba(117,217,255,0.12));
    transform: translateY(-30px);
    user-select: none;
    -webkit-user-drag: none;
    opacity: 1;
    transition: filter 0.35s ease, transform 0.35s ease;
    animation: blade-product-breathe 7s ease-in-out infinite;
}

.blade-hint {
    position: absolute;
    bottom: 2px;
    left: 50%;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: rgba(244,241,233,0.5);
    background: rgba(255,255,255,0.035);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.blade-stage:hover .blade-hint {
    opacity: 1;
}

@keyframes blade-orbit-drift {
    to { transform: rotateX(68deg) rotateZ(350deg); }
}

@keyframes blade-product-breathe {
    0%, 100% {
        filter:
            contrast(1.04)
            saturate(0.96)
            brightness(1)
            drop-shadow(0 26px 34px rgba(0,0,0,0.48))
            drop-shadow(0 0 14px rgba(117,217,255,0.1));
    }
    50% {
        filter:
            contrast(1.08)
            saturate(1)
            brightness(1.06)
            drop-shadow(0 30px 40px rgba(0,0,0,0.52))
            drop-shadow(0 0 22px rgba(117,217,255,0.18));
    }
}

@keyframes blade-sheen {
    0%, 46%, 100% { opacity: 0; transform: translateX(-48%) skewX(-12deg); }
    54% { opacity: 0.52; }
    68% { opacity: 0; transform: translateX(42%) skewX(-12deg); }
}

.stage-caption {
    margin: 0 18px 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.045);
}

.stage-timeline {
    position: absolute;
    right: 18px;
    top: 96px;
    display: grid;
    gap: 46px;
    opacity: 0.75;
}

.stage-timeline span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(126, 226, 255, 0.82);
    box-shadow: 0 0 22px rgba(126, 226, 255, 0.45);
}

.stage-timeline::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 1px;
    height: calc(100% - 12px);
    background: linear-gradient(180deg, rgba(126,226,255,0.6), rgba(231,191,120,0.36));
}

.stage-caption span {
    display: block;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 5px;
}

.stage-caption strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

.section-shell {
    --cinema-y: 0px;
    --cinema-scale: 1;
    --cinema-presence: 1;
}

.section-header,
.profile-grid,
.featured-project,
.showcase-rail,
.contact-panel {
    transform: translateY(var(--cinema-y)) scale(var(--cinema-scale));
    transform-origin: center top;
    transition: transform 0.24s linear;
}

.section-shell::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 16%;
    z-index: -1;
    width: min(70vw, 860px);
    height: 360px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.055), transparent 66%);
    opacity: calc(var(--cinema-presence) * 0.85);
    transform: translateX(-50%);
    filter: blur(18px);
}

.featured-project,
.showcase-rail,
.contact-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.032)),
        rgba(255,255,255,0.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 32px 90px rgba(0,0,0,0.42);
}

.featured-project::before,
.showcase-rail::before,
.contact-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 22%, rgba(255,255,255,0.09) 42%, transparent 58%);
    transform: translateX(-75%);
    transition: transform 0.9s var(--ease);
}

.featured-project:hover::before,
.showcase-rail:hover::before,
.contact-panel:hover::before {
    transform: translateX(75%);
}

.featured-project {
    grid-template-columns: minmax(300px, 0.88fr) 1fr;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 18px;
}

.featured-visual {
    min-height: 390px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 8rem),
        radial-gradient(circle at 50% 50%, rgba(231, 191, 120, 0.19), transparent 17rem),
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
}

.featured-visual img {
    width: min(48%, 210px);
    transform: translateZ(35px);
    transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.featured-project:hover .featured-visual img {
    filter: drop-shadow(0 20px 34px rgba(143, 210, 227, 0.12));
    transform: translateY(-5px) scale(1.02);
}

.showcase-rail {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.projects-grid {
    position: relative;
    z-index: 1;
}

.project-card {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
    min-height: 440px;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.12), transparent 14rem),
        linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 42px rgba(0,0,0,0.28);
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
    transform-style: preserve-3d;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,0.16) 45%, transparent 60%);
    opacity: 0;
    transform: translateX(-80%);
    transition: opacity 0.4s ease, transform 0.8s var(--ease);
}

.project-card:hover {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 22px 54px rgba(0,0,0,0.36);
}

.project-card:hover::after {
    opacity: 1;
    transform: translateX(70%);
}

.project-card-head,
.project-card p,
.project-copy-stack,
.qr-block,
.pet-preview,
.project-actions {
    position: relative;
    z-index: 1;
}

.contact-panel {
    border-radius: 18px;
}

.cursor-aura {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.14), rgba(121,223,255,0.08) 34%, transparent 68%);
}

/* Sword-qi slash trail — elongated streaks following cursor motion */
.sword-qi {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--qlen, 38px);
    height: 2.6px;
    margin-left: calc(var(--qlen, 38px) / -2);
    margin-top: -1.3px;
    transform: translate3d(var(--qx, 0), var(--qy, 0), 0) rotate(var(--qrot, 0deg)) scaleX(0.25);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, var(--qhue, #c7a56d) 55%, transparent);
    pointer-events: none;
    opacity: 0;
    z-index: 9998;
    will-change: transform, opacity;
    mix-blend-mode: screen;
    box-shadow: 0 0 6px 1px var(--qhue, #c7a56d);
    border-radius: 2px;
}

.sword-qi.is-live {
    animation: sword-qi-slash 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sword-qi-slash {
    0% {
        opacity: 0;
        transform: translate3d(var(--qx, 0), var(--qy, 0), 0) rotate(var(--qrot, 0deg)) scaleX(0.25);
    }
    16% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--qx, 0), var(--qy, 0), 0) rotate(var(--qrot, 0deg)) scaleX(1.6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sword-qi { display: none; }
}

/* ── Footer 驻足印记 + 题字入口 ─────────────────── */
.footprint-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 0.45em;
    font-size: 0.8rem;
    color: rgba(154, 163, 173, 0.65);
    margin-top: 0.35rem;
    line-height: 1.6;
}

.footprint-text strong {
    color: var(--gold, #c7a56d);
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-weight: 500;
}


/* Premium editorial issue layer */
.hero::before {
    content: "KUNWU";
    position: absolute;
    left: 50%;
    top: 47%;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
    font-family: var(--font-body);
    font-size: clamp(108px, 19vw, 292px);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8%;
    z-index: -1;
    width: min(72vw, 880px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    box-shadow: 0 0 80px rgba(231, 191, 120, 0.24);
    transform: translateX(-50%);
}

.hero-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.96fr);
    align-items: center;
}

.hero-copy {
    max-width: 690px;
}

.hero-edition {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 600px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.026);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-edition span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    color: rgba(244, 241, 233, 0.74);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
}

.hero-edition span:first-child {
    color: #08090f;
    background: linear-gradient(135deg, #fff7df, #e7bf78);
}

.hero-title {
    display: grid;
    gap: 12px;
    max-width: 620px;
    font-family: var(--font-body);
    font-size: clamp(38px, 4.6vw, 66px);
    font-weight: 800;
    line-height: 0.98;
}

.hero-name-row {
    display: grid;
    justify-items: start;
    gap: 12px;
    line-height: 1;
}

.hero-name-main {
    letter-spacing: 0;
    line-height: 0.95;
}

.hero-alias {
    order: -1;
    min-height: 38px;
    margin-bottom: 0;
    padding: 6px 13px;
    border-radius: 10px;
    font-size: clamp(15px, 1.5vw, 19px);
}

.hero-roman {
    margin-top: 0;
    font-family: var(--font-mono);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 500;
    -webkit-text-stroke: 0;
    color: rgba(244, 241, 233, 0.58);
}

.hero-subtitle {
    max-width: 620px;
    font-size: clamp(18px, 1.65vw, 23px);
    line-height: 1.5;
    font-weight: 650;
}

.hero-dossier {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 620px;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hero-dossier div {
    display: grid;
    grid-template-columns: 42px 120px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.075);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-dossier div:last-child {
    border-bottom: 0;
}

.metric-index {
    color: rgba(126, 226, 255, 0.72);
    font-family: var(--font-mono);
    font-size: 11px;
}

.hero-dossier .metric-value {
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
}

.hero-dossier .metric-label {
    margin: 0;
    color: rgba(244, 241, 233, 0.72);
}

.hero-artifact {
    min-height: 752px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-artifact::before {
    content: "";
    position: absolute;
    inset: 8% 3% 4%;
    z-index: -2;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 32%, rgba(255,255,255,0.14), transparent 17%),
        radial-gradient(circle at 50% 46%, rgba(126,226,255,0.14), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.012));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 50px 110px rgba(0,0,0,0.48);
}

.hero-artifact::after {
    inset: 22% 4% 10%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(231,191,120,0.18), transparent 42%),
        radial-gradient(circle, rgba(126,226,255,0.14), transparent 64%);
    filter: blur(26px);
}

.artifact-label span {
    color: rgba(126,226,255,0.78);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

.artifact-label span {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
}

.hero-artifact .blade-stage {
    top: 42px;
    width: min(90%, 500px);
    height: 468px;
}

.hero-artifact .blade-aura {
    filter: blur(10px);
    opacity: 0.92;
}

.hero-artifact .blade-orbit {
    inset: 21% 0 5%;
    border-color: rgba(255,255,255,0.17);
    opacity: 0.9;
}

.hero-artifact .blade-object {
    width: 222px;
    height: 530px;
    transform: rotateX(var(--blade-tilt)) rotateY(var(--blade-rotate)) rotateZ(-1.8deg) translateZ(58px);
}

.hero-artifact .blade-object::before {
    inset: 4% 20% 8%;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.14), rgba(126,226,255,0.22), transparent),
        radial-gradient(ellipse, rgba(231,191,120,0.18), transparent 62%);
    filter: blur(30px);
    transform: translateZ(-70px) rotateZ(8deg);
}

.hero-artifact .kunwu-sword-photo {
    height: 508px;
    transform: translateY(-34px);
    filter:
        contrast(1.1)
        saturate(0.98)
        brightness(1.05)
        drop-shadow(10px 28px 28px rgba(0,0,0,0.58))
        drop-shadow(-12px 0 0 rgba(255,255,255,0.045))
        drop-shadow(12px 0 0 rgba(0,0,0,0.32))
        drop-shadow(0 0 24px rgba(126,226,255,0.13));
}

.hero-artifact .console-topbar,
.hero-artifact .console-body,
.hero-artifact .stage-caption {
    position: relative;
    z-index: 2;
    width: min(88%, 470px);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255,255,255,0.105);
    background: rgba(6, 8, 12, 0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 42px rgba(0,0,0,0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-artifact .console-topbar {
    margin-top: 560px;
    justify-content: space-between;
    border-radius: 14px 14px 0 0;
}

.hero-artifact .console-topbar strong {
    margin-left: 0;
    color: rgba(244, 241, 233, 0.86);
}

.hero-artifact .console-body {
    padding: 6px 18px 10px;
    border-top: 0;
    border-radius: 0;
}

.hero-artifact .stage-caption {
    margin-top: 0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
}

.project-ledger {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: -18px 0 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.project-ledger span {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: rgba(244, 241, 233, 0.72);
    font-size: 13px;
    font-weight: 650;
}

.project-ledger span:last-child {
    border-right: 0;
}

.project-ledger strong {
    color: rgba(242, 237, 227, 0.46);
    font-family: var(--font-mono);
    font-size: 11px;
}

.project-number {
    position: absolute;
    right: 18px;
    top: 14px;
    z-index: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.14);
    font-family: var(--font-body);
    font-size: clamp(52px, 8vw, 112px);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.featured-project .project-number {
    right: 30px;
    top: 24px;
    font-size: clamp(82px, 12vw, 156px);
}

.featured-copy,
.featured-visual,
.project-card-head,
.project-card p,
.project-notes,
.project-copy-stack,
.qr-block,
.pet-preview,
.project-actions {
    position: relative;
    z-index: 1;
}

.featured-project {
    border-radius: 24px;
}

.showcase-rail {
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.022)),
        rgba(255,255,255,0.025);
}

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

@media (max-width: 1080px) {
    .hero-layout,
    .profile-grid,
    .featured-project,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        position: relative;
        top: auto;
    }

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

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

    .project-ledger span:nth-child(even) {
        border-right: 0;
    }

}

@media (max-width: 760px) {
    :root {
        --nav-height: 66px;
    }

    body {
        font-size: 15px;
    }

    .container,
    .nav-container,
    .hero-layout {
        width: min(100% - 28px, var(--max));
    }

    .section-shell {
        padding: 86px 0;
    }

    .nav-logo span:last-child {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 34px);
    }

    .hero-layout {
        gap: 34px;
    }

    .hero-title {
        font-size: clamp(42px, 13vw, 62px);
    }

    .hero-name-row {
        gap: 9px;
    }

    .hero-alias {
        min-height: 32px;
        margin-bottom: 6px;
        padding: 5px 10px;
        font-size: 14px;
    }

    .hero-roman {
        font-size: clamp(24px, 7.5vw, 34px);
    }

    .hero-name-note {
        max-width: 330px;
        margin-top: -6px;
        font-size: 13px;
        line-height: 1.65;
    }

    .hero-subtitle {
        max-width: 330px;
        font-size: 18px;
        line-height: 1.45;
        word-break: normal;
    }

    .hero-stage {
        width: 100%;
        max-width: 100%;
        min-height: 500px;
        padding-top: 250px;
    }

    .hero::before {
        top: 35%;
        font-size: clamp(78px, 22vw, 140px);
    }

    .hero-edition {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: 14px;
    }

    .hero-edition span {
        width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .hero-title {
        line-height: 1.08;
    }

    .hero-name-row {
        line-height: 1.05;
    }

    .hero-roman {
        margin-top: 0;
        font-size: clamp(20px, 6.6vw, 28px);
        line-height: 1.1;
    }

    .hero-dossier div {
        grid-template-columns: 34px 96px 1fr;
        gap: 8px;
    }

    .hero-artifact {
        min-height: 678px;
        padding: 0;
    }

    .hero-artifact::before {
        inset: 7% 0 5%;
    }

    .blade-stage {
        top: 12px;
        width: min(92%, 320px);
        height: 280px;
    }

    .blade-object {
        width: 164px;
        height: 352px;
    }

    .kunwu-sword-photo {
        height: 352px;
    }

    .hero-artifact .blade-stage {
        top: 54px;
        width: min(96%, 360px);
        height: 330px;
    }

    .hero-artifact .blade-object {
        width: 152px;
        height: 370px;
    }

    .hero-artifact .kunwu-sword-photo {
        height: 360px;
        transform: translateY(-24px);
    }

    .hero-artifact .console-topbar {
        margin-top: 428px;
    }

    .hero-artifact .console-topbar,
    .hero-artifact .console-body,
    .hero-artifact .stage-caption {
        width: 100%;
    }

    .stage-timeline {
        display: none;
    }

    .blade-hint {
        display: none;
    }

    .hero-metrics,
    .capability-grid,
    .project-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .bookstore-card {
        grid-column: auto;
    }

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

    .life-douyin {
        grid-template-columns: 86px 1fr;
    }

    .life-douyin img {
        width: 86px;
        height: 86px;
    }

    .life-entry-card {
        grid-template-columns: 86px 1fr;
    }

    .life-entry-card img {
        width: 86px;
        height: 86px;
    }

    .console-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .featured-project,
    .contact-panel {
        padding: 22px;
    }

    .projects {
        padding-bottom: 48px;
    }

    .life-section {
        padding: 28px 0 70px;
    }

    .featured-visual {
        min-height: 240px;
    }

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

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

    .project-ledger span,
    .project-ledger span:nth-child(even) {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .project-ledger span:last-child {
        border-bottom: 0;
    }

    .contact-link {
        justify-content: flex-start;
        overflow-wrap: anywhere;
    }

    .social-link-head {
        display: block;
    }

    .social-link-head h3 {
        margin-top: 8px;
    }

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

    .social-link-card {
        align-items: flex-start;
        padding: 12px;
    }

    .douyin-contact {
        grid-template-columns: 82px 1fr;
    }

    .douyin-contact img {
        width: 82px;
        height: 82px;
    }
}

/* Apple Keynote product-showcase redesign layer */
main {
    display: flex;
    flex-direction: column;
}

.hero { order: 1; }
.projects { order: 2; }
.about { order: 3; }
.life-section { order: 4; }
.contact { order: 5; }

.hero {
    min-height: 100svh;
    padding: calc(var(--nav-height) + 30px) 0 58px;
    background:
        radial-gradient(circle at 72% 44%, rgba(138, 222, 255, 0.15), transparent 29rem),
        radial-gradient(circle at 30% 38%, rgba(238, 194, 119, 0.11), transparent 30rem),
        linear-gradient(180deg, rgba(255,255,255,0.018), transparent 45%);
}

.hero::before {
    content: "PRODUCT ENGINEER";
    top: 54%;
    width: min(100% - 40px, 1180px);
    color: rgba(255,255,255,0.018);
    -webkit-text-stroke: 1px rgba(255,255,255,0.038);
    font-size: clamp(48px, 9.2vw, 132px);
    letter-spacing: 0;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    bottom: 6%;
    width: min(82vw, 1080px);
    opacity: 0.75;
}

.hero-layout {
    width: min(100% - 48px, 1240px);
    grid-template-columns: minmax(0, 0.86fr) minmax(440px, 0.9fr);
    gap: clamp(44px, 7vw, 110px);
}

.hero-copy {
    gap: 18px;
}

.eyebrow {
    color: rgba(242, 237, 227, 0.58);
}

.hero-edition {
    max-width: 520px;
    padding: 5px;
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
}

.hero-edition span {
    min-height: 25px;
    font-size: 10px;
    color: rgba(242, 237, 227, 0.68);
}

.hero-title {
    max-width: 520px;
    gap: 10px;
    font-size: clamp(40px, 4.4vw, 64px);
    letter-spacing: 0;
}

.hero-name-main {
    color: #f7f2e7;
    text-shadow: 0 18px 60px rgba(255,255,255,0.16);
}

.hero-alias {
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,235,184,0.22), rgba(117,217,255,0.06)),
        rgba(255,255,255,0.045);
}

.hero-roman {
    color: rgba(247, 242, 231, 0.54);
}

.hero-name-note {
    max-width: 540px;
    color: rgba(247,242,231,0.62);
}

.hero-subtitle {
    max-width: 560px;
    font-size: clamp(20px, 1.75vw, 26px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.hero-dossier {
    max-width: 560px;
}

.hero-artifact {
    min-height: 704px;
    transform-origin: center;
}

.hero-artifact::before {
    inset: 4% 0 7%;
    border-radius: 46% 46% 42% 42% / 39% 39% 24% 24%;
    background:
        radial-gradient(circle at 50% 25%, rgba(255,255,255,0.17), transparent 13%),
        radial-gradient(circle at 50% 43%, rgba(126,226,255,0.17), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.014));
}

.hero-artifact .blade-stage {
    top: 10px;
    width: min(90%, 520px);
    height: 536px;
}

.hero-artifact .blade-object {
    width: 228px;
    height: 548px;
}

.hero-artifact .kunwu-sword-photo {
    height: 528px;
    transform: translateY(0);
}

.hero-artifact .console-topbar {
    margin-top: 556px;
}

.hero-artifact .console-topbar,
.hero-artifact .console-body,
.hero-artifact .stage-caption {
    width: min(84%, 448px);
}

.projects {
    padding-top: 96px;
}

.projects .section-header {
    margin-bottom: 24px;
}

.project-ledger {
    margin: -8px 0 18px;
}

.featured-project {
    grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 36px);
    min-height: auto;
    padding: clamp(24px, 3.2vw, 40px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 25% 40%, rgba(231,191,120,0.16), transparent 17rem),
        radial-gradient(circle at 68% 28%, rgba(120,224,255,0.12), transparent 20rem),
        linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.022));
}

.featured-visual {
    min-height: 250px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,0.22), transparent 7rem),
        radial-gradient(circle at 50% 52%, rgba(231,191,120,0.22), transparent 17rem),
        linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.02));
}

.fit-stage-glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: conic-gradient(from 130deg, rgba(231,191,120,0.05), rgba(255,255,255,0.28), rgba(126,226,255,0.11), rgba(231,191,120,0.05));
    filter: blur(4px);
    animation: keynote-spin 18s linear infinite;
}

.featured-visual img {
    width: min(42%, 124px);
    position: relative;
    z-index: 1;
}

.featured-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.featured-copy > p {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.62;
}

.launch-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.launch-strip span {
    min-height: 58px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: rgba(247,242,231,0.7);
    background: rgba(255,255,255,0.035);
    font-size: 12px;
}

.launch-strip strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 11px;
}

.showcase-rail {
    padding: 12px;
    border-radius: 22px;
}

.project-card {
    min-height: 0;
    border-radius: 18px;
}

.about {
    padding-top: 126px;
}

.profile-grid {
    grid-template-columns: 0.72fr 1.55fr;
}

.capability-card {
    min-height: 218px;
    border-radius: 20px;
}

.card-index {
    margin-bottom: 28px;
}

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

@media (max-width: 1080px) {
    .hero-layout,
    .featured-project,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .featured-project {
        min-height: auto;
    }

    .launch-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero-layout {
        width: min(100% - 28px, var(--max));
        gap: 28px;
    }

    .hero::before {
        content: "AI";
        top: 44%;
        font-size: clamp(92px, 34vw, 148px);
    }

    .hero-title {
        font-size: clamp(42px, 12vw, 58px);
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: clamp(20px, 6vw, 25px);
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-artifact {
        min-height: 638px;
    }

    .hero-artifact .blade-stage {
        top: 20px;
        height: 360px;
    }

    .hero-artifact .blade-object {
        width: 152px;
        height: 360px;
    }

    .hero-artifact .kunwu-sword-photo {
        height: 340px;
        transform: translateY(0);
    }

    .hero-artifact .console-topbar {
        margin-top: 394px;
    }

    .featured-project {
        padding: 22px;
        border-radius: 22px;
    }

    .featured-visual {
        min-height: 260px;
        border-radius: 18px;
    }

    .featured-copy h3 {
        font-size: clamp(40px, 13vw, 58px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .blade-orbit,
    .kunwu-sword-photo,
    .blade-object::after {
        animation: none !important;
    }

    .cursor-aura {
        display: none;
    }
}

/* Editorial restraint patch */
body {
    background:
        radial-gradient(circle at 18% 0%, rgba(199, 165, 109, 0.08), transparent 26rem),
        radial-gradient(circle at 82% 10%, rgba(143, 210, 227, 0.045), transparent 28rem),
        linear-gradient(180deg, #050608 0%, #090a0f 46%, #050608 100%);
}

body::before {
    opacity: 0.55;
}

body::after,
.circuit-grid,
.scanline,
.cursor-aura {
    opacity: 0.06;
}

.section-kicker,
.eyebrow,
.project-label,
.life-douyin span,
.douyin-contact span,
.project-ledger strong {
    color: rgba(242, 237, 227, 0.52) !important;
    letter-spacing: 0.12em;
}

.hero-actions .button-primary {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #cfb07d, #dfc59b);
    box-shadow: 0 10px 24px rgba(199, 165, 109, 0.16);
}

.button-ghost,
.subtle-action {
    border-radius: 999px;
    background: rgba(255,255,255,0.028);
}

.hero-dossier {
    gap: 0;
    max-width: 580px;
}

.hero-dossier div {
    grid-template-columns: 38px 108px 1fr;
    min-height: 54px;
    padding: 11px 0;
}

.hero-dossier .metric-value {
    color: rgba(242, 237, 227, 0.92);
    letter-spacing: 0.04em;
}

.hero-dossier .metric-label {
    color: rgba(242, 237, 227, 0.68);
}

.metric-link {
    display: inline;
    margin: 0;
    color: var(--gold);
    font-size: inherit;
}

.metric-link-inline:hover {
    color: rgba(242, 237, 227, 0.92);
}

.life-panel,
.featured-project,
.showcase-rail,
.project-card,
.capability-card,
.contact-panel,
.hero-artifact .console-topbar,
.hero-artifact .console-body,
.hero-artifact .stage-caption {
    border-color: rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014)) !important;
    box-shadow: 0 16px 44px rgba(0,0,0,0.24) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.featured-project,
.showcase-rail,
.contact-panel {
    border-radius: 26px;
}

.project-card,
.capability-card {
    border-radius: 20px;
}

.project-card {
    min-height: 0;
}

.project-card::after,
.featured-project::before,
.showcase-rail::before,
.contact-panel::before {
    opacity: 0.35;
}

.project-card:hover {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px);
}

.featured-project:hover .featured-visual img {
    transform: translateY(-4px) scale(1.018);
}

.featured-copy h3,
.project-card h3,
.life-copy h3,
.section-title {
    letter-spacing: 0.01em;
}

.featured-copy h3,
.project-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
}

.project-copy-stack p {
    border-left-color: rgba(199, 165, 109, 0.24);
    color: rgba(242, 237, 227, 0.64);
}

.life-actions .subtle-action {
    min-height: 42px;
    padding: 0 16px;
    color: rgba(242, 237, 227, 0.9);
    border-color: rgba(199, 165, 109, 0.18);
}

.life-actions .subtle-action:hover {
    border-color: rgba(199, 165, 109, 0.34);
    background: rgba(199, 165, 109, 0.08);
}

@media (max-width: 760px) {
    .hero-dossier div {
        grid-template-columns: 34px 92px 1fr;
    }

    .hero-actions .button-primary,
    .life-actions .subtle-action {
        width: fit-content;
    }

    .credentials-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .credentials-line {
        border-left: none;
        padding-left: 0;
        gap: 6px 14px;
    }
}

/* =============================================
   Credentials Strip — 能力凭证
   ============================================= */

.credentials-strip {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 28px;
    padding: 0;
    border: none;
    border-radius: 0;
    max-width: 100%;
}

.credentials-kicker {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: rgba(242, 237, 227, 0.32);
    text-transform: uppercase;
    padding-top: 1px;
}

/* --- the inline credential line --- */
.credentials-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    padding: 10px 0;
    border-left: 1px solid rgba(255,255,255,0.06);
    padding-left: 18px;
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.credential-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* --- the tier dot --- */
.cred-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.dot-national    { background: #e7bf78; box-shadow: 0 0 4px rgba(231,191,120,0.5); }
.dot-international { background: #8fd2e3; box-shadow: 0 0 4px rgba(143,210,227,0.45); }
.dot-provincial  { background: rgba(212,165,76,0.65); }
.dot-school      { background: rgba(255,255,255,0.28); }

.credential-item:hover .cred-dot {
    transform: scale(1.6);
}
.credential-item:hover .dot-national    { box-shadow: 0 0 12px rgba(231,191,120,0.9); }
.credential-item:hover .dot-international { box-shadow: 0 0 12px rgba(143,210,227,0.8); }
.credential-item:hover .dot-provincial  { box-shadow: 0 0 8px rgba(212,165,76,0.5); }
.credential-item:hover .dot-school      { box-shadow: 0 0 6px rgba(255,255,255,0.25); }

/* --- text --- */
.cred-name {
    color: rgba(242, 237, 227, 0.8);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.credential-item time {
    color: rgba(242, 237, 227, 0.32);
    font-family: var(--font-mono);
    font-size: 10px;
    transition: color 0.3s ease;
}

.credential-item:hover .cred-name { color: #f2ede3; }
.credential-item:hover time       { color: rgba(242, 237, 227, 0.52); }

/* =============================================
   Advanced Dynamic Interactions
   ============================================= */

/* --- Sword Aura Mist --- */
.sword-aura-mist {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.58;
    filter: saturate(0.9);
}

.sword-aura-mist__veil {
    position: absolute;
    inset: auto;
    display: block;
    border-radius: 999px;
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(48px);
    will-change: transform, opacity;
}

.sword-aura-mist__veil--gold {
    width: 62vw;
    height: 16rem;
    left: -12vw;
    top: 14vh;
    background:
        linear-gradient(92deg, transparent 0%, rgba(199, 165, 109, 0.04) 18%, rgba(231, 191, 120, 0.11) 52%, rgba(199, 165, 109, 0.03) 78%, transparent 100%);
    transform: rotate(-10deg);
    animation: sword-aura-drift 28s ease-in-out infinite alternate;
}

.sword-aura-mist__veil--cyan {
    width: 48vw;
    height: 13rem;
    right: -10vw;
    top: 38vh;
    background:
        linear-gradient(96deg, transparent 0%, rgba(143, 210, 227, 0.015) 18%, rgba(143, 210, 227, 0.055) 54%, rgba(143, 210, 227, 0.015) 86%, transparent 100%);
    transform: rotate(-14deg);
    animation: sword-aura-drift 34s ease-in-out infinite alternate-reverse;
    animation-delay: -8s;
}

.sword-aura-mist__veil--smoke {
    width: 72vw;
    height: 18rem;
    left: 10vw;
    bottom: 10vh;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 248, 236, 0.018) 24%, rgba(199, 165, 109, 0.038) 48%, rgba(255, 248, 236, 0.012) 70%, transparent 100%);
    transform: rotate(-6deg);
    animation: sword-aura-drift 42s ease-in-out infinite alternate;
    animation-delay: -15s;
}

@keyframes sword-aura-drift {
    0% {
        opacity: 0.16;
        transform: translate3d(-2vw, -1vh, 0) rotate(-10deg) scaleX(0.96);
    }
    50% {
        opacity: 0.28;
    }
    100% {
        opacity: 0.12;
        transform: translate3d(3vw, 2vh, 0) rotate(-5deg) scaleX(1.04);
    }
}

/* --- Typewriter Cursor --- */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 2px;
    background: var(--gold);
    vertical-align: text-bottom;
    animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Enhanced Mouse Trail --- */
.mouse-trail {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: trail-fade 0.8s ease-out forwards;
}

@keyframes trail-fade {
    0% { 
        opacity: 0.8;
        transform: scale(1);
    }
    100% { 
        opacity: 0;
        transform: scale(0.2);
    }
}

/* --- Scroll-driven Accent Shift --- */
:root {
    --accent-shift: 0deg;
}

.hero-actions .button-primary {
    filter: hue-rotate(var(--accent-shift));
}

/* --- Section Overlay Transitions --- */
.section-shell {
    transition: filter 0.6s ease;
}

.section-shell.is-entering {
    filter: brightness(1.08) saturate(1.05);
}

/* --- Enhanced Card Glare --- */
.project-card .card-glare {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.03) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-glare {
    opacity: 1;
}

/* --- Hero Particle Glow --- */
.hero-particle-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 191, 120, 0.3), transparent 70%);
    filter: blur(20px);
    animation: particle-pulse 3s ease-in-out infinite;
}

@keyframes particle-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* --- Scroll-Reveal Line Animation --- */
.hero::after {
    animation: accent-line-pulse 4s ease-in-out infinite;
}

@keyframes accent-line-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* --- Gold Gleam on Hero Title --- */
.hero-title {
    position: relative;
    z-index: 0;
}

.hero-title::after {
    content: "";
    position: absolute;
    inset: -20% -10%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at var(--gleam-x, 50%) var(--gleam-y, 30%),
        rgba(231, 191, 120, 0.28),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    mix-blend-mode: screen;
}

.hero-layout:hover .hero-title::after {
    opacity: 1;
}

/* --- Signal Tags Pulse --- */
.hero-signal-row span {
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.hero-signal-row span:nth-child(1):hover {
    border-color: rgba(199, 165, 109, 0.6);
    box-shadow: 0 0 20px rgba(199, 165, 109, 0.2);
    transform: translateY(-2px);
}

.hero-signal-row span:nth-child(2):hover {
    border-color: rgba(143, 210, 227, 0.6);
    box-shadow: 0 0 20px rgba(143, 210, 227, 0.2);
    transform: translateY(-2px);
}

/* --- Dossier Row Hover --- */
.hero-dossier div {
    transition: background 0.4s ease, border-color 0.4s ease;
}

.hero-dossier div:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

/* --- Mobile: reduce effects --- */
@media (max-width: 760px) {
    .sword-aura-mist {
        opacity: 0.34;
    }
    
    .mouse-trail {
        display: none;
    }
    
    .project-card .card-glare {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sword-aura-mist,
    .mouse-trail,
    .typewriter-cursor,
    .card-glare {
        display: none !important;
    }
    
    .hero-title::after {
        display: none;
    }
}
