/* Portfolio — refined dark theme with mobile-first layout */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-base: #09090b;
    --bg-surface: #101116;
    --bg-elevated: #151720;
    --bg-card: #181a24;
    --bg-card-hover: #1f2230;
    --bg-highlight: #282c3e;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-highlight: rgba(99, 102, 241, 0.35);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-secondary: #38bdf8;
    --accent-glow: rgba(99, 102, 241, 0.22);
    --card-accent-glow: rgba(99, 102, 241, 0.16);
    --success: #34d399;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --sidebar-width: 252px;
    --topbar-height: 64px;
    --bottom-nav-height: 64px;
    --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 20px 48px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
    --content-max: 1200px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.site-body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

.seo-prerender ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 12px;
    color: var(--text-secondary);
}

.seo-prerender li + li {
    margin-top: 8px;
}

/* Business-facing short version */
.plain-brief-section {
    max-width: var(--content-max);
}

.plain-eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.plain-audience {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 8px;
}

.plain-tech-link {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    margin-top: 10px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plain-tech-link:hover {
    color: var(--accent-hover);
}

.plain-case-grid,
.plain-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.plain-case-card,
.plain-tool-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 22px;
}

.plain-case-card h3,
.plain-tool-card h3 {
    color: var(--text-primary);
    font-size: 1.06rem;
    line-height: 1.35;
    margin: 7px 0 15px;
}

.plain-case-audience,
.plain-tool-fit,
.plain-tools-note,
.plain-conversation-note {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.plain-case-card dl {
    display: grid;
    gap: 12px;
}

.plain-case-card dl div {
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
}

.plain-case-card dt {
    color: var(--accent-hover);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.plain-case-card dd {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.plain-tools-note {
    border-left: 3px solid var(--accent-secondary);
    background: rgba(129, 140, 248, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: -8px 0 18px;
    padding: 10px 14px;
}

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

.plain-tool-card__top {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.plain-tool-card__top h3 {
    margin-top: 0;
}

.plain-tool-status {
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--radius-pill);
    color: var(--success);
    flex: 0 0 auto;
    font-size: 0.7rem;
    padding: 3px 8px;
}

.plain-tool-fit {
    margin-bottom: 14px;
}

.plain-tool-row {
    border-top: 1px solid var(--border-subtle);
    display: grid;
    gap: 4px;
    grid-template-columns: 64px 1fr;
    padding: 10px 0 0;
    margin-top: 10px;
}

.plain-tool-row strong {
    color: var(--text-primary);
    font-size: 0.78rem;
}

.plain-tool-row span {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.plain-tool-row--setup strong {
    color: #fbbf24;
}

.plain-questions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plain-question {
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    padding: 16px;
}

.plain-question span {
    align-items: center;
    background: var(--accent);
    border-radius: 50%;
    color: #082f49;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 0.78rem;
    font-weight: 800;
    height: 24px;
    justify-content: center;
}

.plain-question p {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.plain-conversation-note {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .plain-case-grid,
    .plain-questions {
        grid-template-columns: minmax(0, 1fr);
    }

    .plain-tools-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

[v-cloak] {
    display: none !important;
}

/* ── App shell ── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: rgba(16, 17, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid var(--border-subtle);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px 24px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.brand-mark {
    font-size: 1.85rem;
    line-height: 1;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.25));
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.16s var(--ease-snappy), background 0.16s var(--ease-snappy), transform 0.12s var(--ease-snappy), box-shadow 0.16s var(--ease-snappy);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:active {
    transform: scale(0.98);
}

.nav-item i,
.nav-item .nav-icon-wrap {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s var(--ease-spring), color 0.16s ease, filter 0.22s var(--ease-smooth);
}

.nav-item i {
    font-size: 1rem;
    opacity: 0.85;
}

.nav-item .nav-icon-wrap svg {
    width: 20px;
    height: 20px;
    display: block;
    overflow: visible;
    transition: transform 0.22s var(--ease-spring), filter 0.22s var(--ease-smooth);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

.nav-item:hover i {
    transform: scale(1.12);
    color: var(--accent);
}

.nav-item:hover .nav-icon-wrap svg {
    transform: scale(1.15) translateY(-1px);
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0.06) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: inset 2px 0 0 var(--accent), 0 2px 8px rgba(99, 102, 241, 0.15);
}

.nav-item.active i {
    color: var(--accent);
    transform: scale(1.06);
}

.nav-item.active .nav-icon-wrap svg {
    transform: scale(1.12);
}

/* Individual accent glow on hover and active */
.nav-item[href="#home"].active .nav-icon-wrap svg,
.nav-item[href="#home"]:hover .nav-icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.65));
}
.nav-item[href="#showcase"].active .nav-icon-wrap svg,
.nav-item[href="#showcase"]:hover .nav-icon-wrap svg,
.nav-item[href="#plain-cases"].active .nav-icon-wrap svg,
.nav-item[href="#plain-cases"]:hover .nav-icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.7));
}
.nav-item[href="#tools"].active .nav-icon-wrap svg,
.nav-item[href="#tools"]:hover .nav-icon-wrap svg,
.nav-item[href="#services"].active .nav-icon-wrap svg,
.nav-item[href="#services"]:hover .nav-icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.7));
}
.nav-item[href="#flow-rag"].active .nav-icon-wrap svg,
.nav-item[href="#flow-rag"]:hover .nav-icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7));
}
.nav-item[href="#experience"].active .nav-icon-wrap svg,
.nav-item[href="#experience"]:hover .nav-icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.7));
}
.nav-item[href="#skills"].active .nav-icon-wrap svg,
.nav-item[href="#skills"]:hover .nav-icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}
.nav-item[href="#contact"].active .nav-icon-wrap svg,
.nav-item[href="#contact"]:hover .nav-icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.7));
}

.sidebar-footer {
    padding: 12px 6px 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
}

/* ── Main view ── */
.main-view {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
        var(--bg-base);
    padding-bottom: 64px;
}

/* ── Top bar ── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 32px;
    height: var(--topbar-height);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-card);
}

.top-bar-brand {
    display: none;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.brand-avatar {
    font-size: 1.5rem;
    line-height: 1;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-meta strong {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-dot {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    flex-shrink: 0;
}

.search-pill {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(24, 26, 36, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition);
}

.search-pill:hover {
    border-color: var(--border-medium);
    background: rgba(28, 30, 42, 0.85);
}

.search-pill i,
.search-pill svg,
.search-pill__icon {
    color: var(--text-muted);
    width: 14px;
    height: 14px;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color var(--transition), transform 0.2s var(--ease-spring);
}

.search-pill:hover .search-pill__icon {
    color: var(--accent);
    transform: scale(1.1);
}

.search-pill::after {
    content: '⌘K';
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.lang-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
    justify-content: space-between;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.lang-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-medium);
}

.lang-btn__globe {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color var(--transition), transform 0.3s var(--ease-spring);
}

.lang-btn:hover .lang-btn__globe {
    color: var(--accent);
    transform: rotate(20deg);
}

.lang-btn__label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-btn__chevron {
    width: 12px;
    height: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.lang-dropdown--open .lang-btn__chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown--compact {
    width: auto;
}

.lang-dropdown--compact .lang-btn {
    width: auto;
}

.lang-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    z-index: 120;
    transform-origin: bottom center;
    animation: menuDropInUp 0.22s var(--ease-spring);
}

.lang-dropdown--compact .lang-menu {
    left: auto;
    right: 0;
    bottom: auto;
    top: calc(100% + 8px);
    min-width: 168px;
    transform-origin: top right;
    animation: menuDropInDown 0.22s var(--ease-spring);
}

@keyframes menuDropInUp {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes menuDropInDown {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-menu__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    border-radius: calc(var(--radius-lg) - 4px);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.lang-menu__item:hover {
    background: rgba(56, 189, 248, 0.1);
}

.lang-menu__item--active {
    color: var(--accent);
    font-weight: 600;
}

.lang-menu__check {
    width: 13px;
    height: 13px;
    font-size: 0.72rem;
    color: var(--accent);
    flex-shrink: 0;
    display: inline-block;
}

.lang-btn--compact {
    display: none;
}

/* ── Hero (MotionSites Bento Grid & Liquid Glass) ── */
.liquid-glass {
    background: rgba(18, 20, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 30%, rgba(99, 102, 241, 0.45) 50%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
    z-index: 0;
}

.hero-banner {
    position: relative;
    margin: 20px 28px 36px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    background: #09090b;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(139, 92, 246, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    filter: blur(60px);
    opacity: 0.9;
    animation: heroMeshDrift 20s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform;
}

@keyframes heroMeshDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-2%, 3%, 0) scale(1.04); }
    100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(9, 9, 11, 0.5) 60%, rgba(9, 9, 11, 0.95) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.08), transparent 50%);
}

.bento-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 16px;
    padding: 24px;
}

.bento-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: rgba(18, 20, 28, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s var(--ease-snappy), border-color 0.25s, box-shadow 0.25s;
}

.bento-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 0 24px -4px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bento-card--main {
    gap: 18px;
}

.bento-card__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.radar-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.radar-pulse {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    flex-shrink: 0;
}

.radar-pulse::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid var(--success);
    transform: translate(-50%, -50%) scale(1);
    animation: beaconPulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes beaconPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
    70%, 100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-hover);
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(1.75rem, 3.4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
    color: #fafafa;
    background: linear-gradient(135deg, #ffffff 40%, #e0e7ff 75%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 680px;
}

.hero-subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hero-chip {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: #d1d5db;
    transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.hero-chip:hover {
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
    background: rgba(99, 102, 241, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.btn-primary,
.btn-secondary {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.16s var(--ease-snappy), box-shadow 0.16s, background 0.16s, border-color 0.16s;
    touch-action: manipulation;
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, #6d70f5 0%, #5850ec 100%);
}

.btn-arrow-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-spring);
}

.btn-primary:hover .btn-arrow-svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Bento Card: Stats & Metrics */
.bento-card--stats {
    justify-content: space-between;
}

.bento-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-hover);
    text-transform: uppercase;
    margin-bottom: 14px;
}

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

.hero-stat-card {
    background: rgba(14, 16, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-stat-num {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 80%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 6px;
}

.bento-role-highlight {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #e0e7ff;
}

.role-pill-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Fallback styles for static prerender & backwards compatibility */
.hero-inner {
    position: relative;
    z-index: 1;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px 32px;
    align-items: start;
}

.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-content {
    min-width: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.hero-stat {
    background: rgba(10, 13, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
}

/* Bento Card: Marquee (Full width) */
.bento-card--marquee {
    grid-column: 1 / -1;
    padding: 16px 22px;
}

.marquee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.marquee-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
}

.marquee-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.marquee-container {
    overflow: hidden;
    position: relative;
    padding: 4px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tech-badge:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
}

.tech-icon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    display: inline-block;
}

/* Bento Card: Flow Entries */
.bento-card--flows {
    grid-column: 1 / -1;
    padding: 22px 26px;
}

.bento-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.bento-flow-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.bento-flow-tile:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.bento-flow-tile:active {
    transform: scale(0.98);
}

.bento-flow-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-spring);
}

.bento-flow-tile:hover .bento-flow-icon {
    transform: scale(1.08);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.bento-flow-text {
    flex: 1;
    min-width: 0;
}

.bento-flow-text strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.bento-flow-text span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.bento-flow-arrow {
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.bento-flow-tile:hover .bento-flow-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

/* ── Sections ── */
.content-section {
    padding: 0 28px 44px;
    scroll-margin-top: calc(var(--topbar-height) + 20px);
    max-width: calc(var(--content-max) + 56px);
}

.section-head {
    margin-bottom: 20px;
    padding: 0 4px;
}

.section-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.section-motto {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.section-motto strong {
    color: var(--text-primary);
}

/* ── Media rows ── */
.media-row-wrap {
    margin: 0 -4px;
}

.media-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    padding: 4px;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: background 0.24s var(--ease-smooth),
                transform 0.24s var(--ease-smooth),
                border-color 0.24s var(--ease-smooth),
                box-shadow 0.24s var(--ease-smooth);
    cursor: default;
    will-change: transform;
}

.media-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px -6px var(--card-accent, var(--card-accent-glow));
}

.media-card-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    background: #0d0f17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.media-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 10%, var(--card-accent, rgba(56, 189, 248, 0.25)) 0%, transparent 65%),
        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: 100% 100%, 20px 20px, 20px 20px;
    opacity: 0.85;
    pointer-events: none;
}

.media-card-diagram {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.showcase-visual-svg {
    width: 100%;
    height: 100%;
    max-height: 190px;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.35s var(--ease-spring), filter 0.35s var(--ease-smooth);
}

.media-card:hover .showcase-visual-svg {
    transform: scale(1.03) translateY(-2px);
    filter: drop-shadow(0 8px 24px var(--card-accent, rgba(56, 189, 248, 0.4)));
}

.media-card-visual--sm {
    aspect-ratio: 16 / 9;
    max-height: 96px;
}

.media-card-visual--sm .media-card-emoji {
    font-size: 2rem;
}

.media-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-pill);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.media-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-sub {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.media-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-highlights {
    list-style: none;
    margin-bottom: 12px;
}

.media-card-highlights li {
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 2px 0 2px 14px;
    position: relative;
    line-height: 1.45;
}

.media-card-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Business flows ── */
.flow-section {
    border-left: 3px solid var(--flow-accent, var(--accent));
    padding-left: 24px;
    margin-left: 4px;
}

.flow-persona {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    margin-top: 6px;
}

.flow-oneliner {
    color: var(--flow-accent, var(--accent));
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2px;
}

.flow-track {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    padding-left: 22px;
}

.flow-track::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--flow-accent, var(--accent)) 0%,
        rgba(255, 255, 255, 0.7) 35%,
        var(--flow-accent, var(--accent)) 70%,
        transparent 100%
    );
    background-size: 100% 200%;
    opacity: 0.45;
    border-radius: 2px;
    animation: pipelinePulse 8s linear infinite;
}

@keyframes pipelinePulse {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 200%;
    }
}

.flow-node {
    position: relative;
}

.flow-node::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--flow-accent, var(--accent));
    box-shadow: 0 0 0 4px var(--bg-base), 0 0 8px var(--flow-accent, var(--accent-glow));
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-smooth);
}

.flow-node:hover::before {
    transform: scale(1.25);
    box-shadow: 0 0 0 4px var(--bg-base), 0 0 14px var(--flow-accent, var(--accent));
}

.flow-node-head {
    margin-bottom: 12px;
}

.flow-stage {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--flow-accent, var(--accent));
    margin-bottom: 4px;
}

.flow-pain {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.flow-pain-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.flow-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.flow-project-card {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: background 0.2s var(--ease-smooth),
                transform 0.2s var(--ease-smooth),
                border-color 0.2s var(--ease-smooth),
                box-shadow 0.2s var(--ease-smooth);
}

.flow-project-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--border-medium);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.flow-project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-spring), border-color 0.2s, background-color 0.2s;
}

.flow-project-card:hover .flow-project-icon {
    transform: scale(1.1) rotate(2deg);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.28);
}

.flow-p-svg {
    display: block;
    flex-shrink: 0;
}

.flow-project-body strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.35;
}

.flow-project-body p {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

/* ── Hero flow entries ── */
.hero-flow-entries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.hero-flow-entry {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s var(--ease-smooth),
                transform 0.2s var(--ease-smooth),
                border-color 0.2s var(--ease-smooth),
                box-shadow 0.2s var(--ease-smooth);
    color: inherit;
    touch-action: manipulation;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-flow-entry:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-flow-entry:active {
    transform: scale(0.98);
}

.hero-flow-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-flow-entry-icon svg {
    display: block;
}

.hero-flow-entry:hover .hero-flow-entry-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.hero-flow-entry strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-flow-entry span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-pill);
    color: var(--accent-hover);
}

.tag-pill--muted {
    background: var(--bg-highlight);
    border-color: transparent;
    color: var(--text-secondary);
}

/* ── Timeline (Milestone Tech Journey) ── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 4px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-secondary) 50%, rgba(56, 189, 248, 0.15) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.timeline-item {
    position: relative;
    padding: 0 0 24px 50px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-smooth), border-color 0.25s;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--accent);
    border-color: #fff;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    transition: background 0.22s var(--ease-smooth),
                transform 0.22s var(--ease-smooth),
                border-color 0.22s var(--ease-smooth),
                box-shadow 0.22s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px -4px rgba(56, 189, 248, 0.15);
}

.timeline-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.timeline-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 10px 0 6px;
    color: var(--text-primary);
}

.timeline-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ── Skills grid ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    padding: 0 4px;
}

.skill-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: background 0.22s var(--ease-smooth),
                border-color 0.22s var(--ease-smooth),
                transform 0.22s var(--ease-smooth),
                box-shadow 0.22s var(--ease-smooth);
}

.skill-tile:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.skill-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 14px;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-tile-icon svg {
    display: block;
}

.skill-tile:hover .skill-tile-icon {
    transform: scale(1.1) translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.skill-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-tile p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.55;
}

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0 4px;
    margin-bottom: 32px;
}

.service-tile {
    background: rgba(24, 26, 36, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    transition: background 0.22s var(--ease-snappy),
                border-color 0.22s var(--ease-snappy),
                transform 0.22s var(--ease-snappy),
                box-shadow 0.22s var(--ease-snappy);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}

.service-tile:hover {
    background: rgba(30, 33, 46, 0.85);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(99, 102, 241, 0.15);
}

/* 推荐方案高亮: 标杆工程交付全案 */
.service-tile:nth-child(3) {
    border-color: rgba(99, 102, 241, 0.45);
    background: linear-gradient(180deg, rgba(30, 28, 55, 0.75) 0%, rgba(20, 22, 32, 0.85) 100%);
    box-shadow: 0 8px 30px -4px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(165, 180, 252, 0.3);
}

.service-tile:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.8), transparent);
}

.service-tile:nth-child(3):hover {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 20px 40px -4px rgba(99, 102, 241, 0.35);
}

.service-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.service-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-tile-icon svg {
    display: block;
}

.service-tile:hover .service-tile-icon {
    transform: scale(1.1) translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.service-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-hover);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-pill);
}

.service-tile:nth-child(3) .service-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    color: #e0e7ff;
    border-color: rgba(165, 180, 252, 0.5);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.service-tile h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.35;
}

.service-tile p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.partners-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin: 0 4px;
}

.partners-banner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.partners-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.partner-pill {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color 0.2s var(--ease-smooth),
                transform 0.2s var(--ease-smooth),
                box-shadow 0.2s var(--ease-smooth),
                background 0.2s var(--ease-smooth);
}

.partner-pill:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: var(--bg-card-hover);
}

.partner-pill .partner-pill-icon,
.partner-pill span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-spring), border-color 0.2s;
}

.partner-pill:hover .partner-pill-icon {
    transform: scale(1.08);
    border-color: var(--border-medium);
}

.partner-pill strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.partner-pill p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.partners-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.partners-note strong {
    color: var(--text-primary);
}

/* ── Philosophy ── */
.philosophy-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(129, 140, 248, 0.06) 50%, var(--bg-card) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin: 0 4px;
}

.philosophy-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.16), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(253, 224, 71, 0.28);
    box-shadow: 0 4px 18px rgba(253, 224, 71, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.philosophy-card-icon svg {
    display: block;
}

.philosophy-card:hover .philosophy-card-icon {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 6px 24px rgba(253, 224, 71, 0.3);
}

.philosophy-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    padding: 0 4px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: border-color var(--transition);
}

.contact-card:hover {
    border-color: var(--border-medium);
}

.contact-card--hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-card) 55%);
    border-color: rgba(56, 189, 248, 0.15);
}

.intro-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 10px;
}

.contact-card h3,
.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.contact-card p.muted {
    font-size: 0.78rem;
    margin-top: 8px;
    color: var(--text-muted);
}

.contact-card strong {
    color: var(--accent);
}

.contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.875rem;
}

.contact-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-line > span:first-child {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.collab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
    text-align: right;
    word-break: break-all;
}

.link-btn:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.footer-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 0 4px;
}

.footer-chips span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    background: var(--bg-elevated);
}

/* ── Contact Form ── */
.contact-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    padding: 0 4px;
    align-items: start;
}

.contact-intro-card {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-card) 50%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.contact-intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 14px;
}

.contact-intro-svg {
    display: block;
}

.contact-intro-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-intro-card > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}

.contact-meta-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-meta-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.contact-meta-svg {
    display: block;
}

.tag-pill-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    vertical-align: middle;
}

.tag-pill-icon svg {
    display: block;
}

.contact-meta-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-meta-item p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.contact-meta-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.contact-collab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.contact-collab-tags .tag-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
}

.contact-form {
    background: rgba(24, 26, 36, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 11px 16px;
    background: rgba(14, 16, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.875rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    background: rgba(18, 20, 28, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-submit {
    width: 100%;
    padding: 13px 24px;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.16s var(--ease-snappy), box-shadow 0.16s var(--ease-snappy), opacity 0.16s var(--ease-snappy);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(180deg, #6d70f5 0%, #5850ec 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.16s var(--ease-snappy), box-shadow 0.16s var(--ease-snappy), opacity 0.16s var(--ease-snappy);
    box-shadow: 0 4px 16px var(--accent-glow);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.btn-submit:hover:not(:disabled)::after {
    animation: btnShimmer 1.2s infinite;
}

@keyframes btnShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-submit__icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-spring);
}

.btn-submit:hover:not(:disabled) .btn-submit__icon {
    transform: translate(2px, -2px) scale(1.1);
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-feedback {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    animation: feedbackPopIn 0.3s var(--ease-spring);
}

@keyframes feedbackPopIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-feedback.success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Mobile bottom nav ── */
.mobile-bottom-nav {
    display: none;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 3000;
    box-shadow: var(--shadow-elevated), 0 0 20px rgba(0, 0, 0, 0.5);
    animation: toastSpringIn 0.35s var(--ease-spring);
}

@keyframes toastSpringIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.92);
    }
    70% {
        transform: translateX(-50%) translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 90;
}

.sidebar-overlay.open {
    display: block;
}

/* ── Responsive: tablet ── */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .hero-profile {
        grid-row: auto;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .hero-avatar-ring {
        width: 44px;
        height: 44px;
    }

    .hero-avatar {
        font-size: 1.75rem;
    }

    .hero-stats {
        grid-column: 1;
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Responsive: mobile ── */
@media (max-width: 768px) {
    :root {
        --topbar-height: 52px;
        --bottom-nav-height: 56px;
    }

    /* 手机端隐藏侧栏，仅用底部导航 */
    .sidebar,
    .sidebar-overlay,
    .mobile-menu-btn {
        display: none !important;
    }

    .main-view {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
    }

    .top-bar {
        padding: max(8px, env(safe-area-inset-top)) 14px 8px;
        gap: 10px;
        height: auto;
        min-height: var(--topbar-height);
    }

    .top-bar-brand {
        display: flex;
        flex: 1;
        min-width: 0;
    }

    .lang-btn--compact {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        padding: 10px 12px;
        gap: 6px;
    }

    .lang-dropdown--compact .lang-btn__label {
        display: none;
    }

    .search-pill {
        display: none;
    }

    /* Hero 紧凑布局 (Bento Grid Mobile) */
    .hero-banner {
        margin: 10px 12px 20px;
        border-radius: var(--radius-lg);
        max-width: calc(100% - 24px);
        overflow: hidden;
        box-sizing: border-box;
    }

    .bento-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bento-card {
        padding: 18px 16px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .bento-card__header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
    }

    .radar-status-badge {
        flex: 0 0 auto;
        max-width: 100%;
        white-space: nowrap;
        align-self: flex-start;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: clamp(1.35rem, 5.5vw, 1.65rem);
        margin-bottom: 10px;
        line-height: 1.25;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 14px;
        line-height: 1.55;
        word-break: break-word;
    }

    .hero-chips {
        gap: 6px;
        margin-bottom: 14px;
        max-width: 100%;
    }

    .hero-chip {
        font-size: 0.68rem;
        padding: 5px 10px;
        max-width: 100%;
        word-break: break-word;
    }

    .hero-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        min-height: 44px;
        padding: 12px 18px;
        box-sizing: border-box;
        text-align: center;
        word-break: break-word;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .hero-stat-card {
        padding: 12px 8px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-stat-num {
        font-size: 1.35rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        word-break: break-word;
    }

    .bento-flow-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .bento-flow-tile,
    .hero-flow-entry {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bento-flow-text {
        min-width: 0;
        flex: 1;
    }

    .bento-flow-text strong,
    .hero-flow-entry strong {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .bento-flow-text span,
    .hero-flow-entry span {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    /* 区块间距 */
    .content-section {
        padding: 0 12px 28px;
        scroll-margin-top: calc(var(--topbar-height) + 8px);
        max-width: 100%;
    }

    .section-head {
        margin-bottom: 14px;
    }

    .section-head h2 {
        font-size: 1.15rem;
    }

    .section-head p,
    .section-motto {
        font-size: 0.82rem;
    }

    /* 大白话 / 商业简版移动端适配 */
    .plain-brief-section {
        padding: 0 12px 28px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .plain-case-grid,
    .plain-tools-grid,
    .plain-questions {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .plain-case-card,
    .plain-tool-card {
        padding: 16px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .plain-case-card h3,
    .plain-tool-card h3 {
        word-break: break-word;
    }

    .plain-case-card dl,
    .plain-case-card dl div {
        min-width: 0;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .plain-tool-card__top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .plain-tool-card__top h3 {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.35;
        word-break: break-word;
    }

    .plain-tool-status {
        flex: 0 1 auto;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.35;
    }

    .plain-tool-row {
        grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
        gap: 6px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .plain-tool-row strong,
    .plain-tool-row span {
        min-width: 0;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .plain-tech-link {
        text-align: left;
        max-width: 100%;
        word-break: break-word;
        line-height: 1.4;
    }

    .plain-question {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .plain-question p {
        min-width: 0;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 业务流流水线移动端 */
    .flow-section {
        padding-left: 14px;
        margin-left: 0;
        border-left-width: 2px;
    }

    .flow-track {
        padding-left: 14px;
        gap: 18px;
    }

    .flow-track::before {
        left: 2px;
    }

    .flow-node::before {
        left: -14px;
        width: 10px;
        height: 10px;
        top: 5px;
    }

    .flow-pain {
        word-break: break-word;
    }

    .flow-pain-detail {
        word-break: break-word;
    }

    .flow-projects {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
    }

    .flow-project-card {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .flow-project-body {
        min-width: 0;
        flex: 1;
        word-break: break-word;
    }

    .flow-project-body strong,
    .flow-project-body p {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 单列卡片，取消文字截断 */
    .media-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
    }

    .media-card {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px 12px;
        align-items: start;
        padding: 14px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .media-card-visual {
        grid-row: 1 / 2;
        width: 72px;
        height: 72px;
        aspect-ratio: 1;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .media-card-visual--sm {
        max-height: none;
        height: 72px;
    }

    .media-card-emoji {
        font-size: 1.75rem;
    }

    .media-card-body {
        grid-column: 2;
        min-width: 0;
        word-break: break-word;
    }

    .media-card-body h3 {
        font-size: 0.92rem;
        -webkit-line-clamp: unset;
        word-break: break-word;
    }

    .media-card-desc {
        -webkit-line-clamp: unset;
        font-size: 0.8rem;
        margin-bottom: 8px;
        word-break: break-word;
    }

    .media-card--featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .media-card--featured .media-card-visual {
        grid-row: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 120px;
    }

    .media-card--featured .media-card-body {
        grid-column: 1;
    }

    .media-card--featured .media-card-highlights,
    .media-card--featured .tag-row {
        grid-column: 1;
        max-width: 100%;
    }

    .media-card-highlights li {
        font-size: 0.75rem;
        word-break: break-word;
    }

    /* 履历时间线 */
    .timeline::before {
        left: 14px;
    }

    .timeline-item {
        padding-left: 36px;
        padding-bottom: 16px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .timeline-marker {
        left: 7px;
        width: 14px;
        height: 14px;
    }

    .timeline-card {
        padding: 16px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .timeline-card h3 {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .timeline-card p {
        font-size: 0.82rem;
        word-break: break-word;
    }

    /* 技能 / 服务单列 */
    .skills-grid,
    .services-grid,
    .partners-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
    }

    .skill-tile,
    .service-tile {
        padding: 18px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .partners-banner {
        padding: 18px 14px;
        margin: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .partner-pill {
        padding: 14px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .philosophy-card {
        flex-direction: column;
        padding: 18px 16px;
        margin: 0;
        gap: 12px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .philosophy-card h3 {
        font-size: 1rem;
        word-break: break-word;
    }

    .philosophy-card p {
        font-size: 0.85rem;
        word-break: break-word;
    }

    /* 底部导航 */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 80;
        background: rgba(15, 17, 23, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-subtle);
        padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        gap: 0;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 2px;
        min-width: 0;
        min-height: 48px;
        flex: 1;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 500;
        border-radius: var(--radius-sm);
        transition: color 0.15s var(--ease-snappy), background 0.15s var(--ease-snappy), transform 0.15s var(--ease-snappy);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    .mobile-nav-item:active {
        transform: scale(0.92);
        opacity: 0.82;
    }

    .mobile-nav-item i,
    .mobile-nav-item .nav-icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        transition: transform 0.25s var(--ease-spring);
    }

    .mobile-nav-item i {
        font-size: 1.15rem;
    }

    .mobile-nav-item .nav-icon-wrap svg {
        width: 20px;
        height: 20px;
        display: block;
        transition: transform 0.25s var(--ease-spring), filter 0.22s var(--ease-smooth);
    }

    .mobile-nav-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }

    .mobile-nav-item.active {
        color: var(--accent);
        font-weight: 700;
        background: rgba(56, 189, 248, 0.08);
    }

    .mobile-nav-item.active i {
        transform: scale(1.1);
        filter: drop-shadow(0 0 6px var(--accent-glow));
    }

    .mobile-nav-item.active .nav-icon-wrap svg {
        transform: scale(1.15);
    }

    .mobile-nav-item[href="#home"].active .nav-icon-wrap svg {
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
    }
    .mobile-nav-item[href="#showcase"].active .nav-icon-wrap svg,
    .mobile-nav-item[href="#plain-cases"].active .nav-icon-wrap svg {
        filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.75));
    }
    .mobile-nav-item[href="#tools"].active .nav-icon-wrap svg,
    .mobile-nav-item[href="#services"].active .nav-icon-wrap svg {
        filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.75));
    }
    .mobile-nav-item[href="#flow-rag"].active .nav-icon-wrap svg {
        filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.75));
    }
    .mobile-nav-item[href="#experience"].active .nav-icon-wrap svg {
        filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.75));
    }
    .mobile-nav-item[href="#skills"].active .nav-icon-wrap svg {
        filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.75));
    }
    .mobile-nav-item[href="#contact"].active .nav-icon-wrap svg {
        filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.75));
    }

    .toast {
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px);
        max-width: calc(100vw - 32px);
        text-align: center;
    }

    /* 联系人表单移动端 */
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        width: 100%;
    }

    .contact-intro-card,
    .contact-form {
        padding: 20px 16px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .contact-line {
        flex-wrap: wrap;
        gap: 6px;
    }

    .form-field input,
    .form-field textarea {
        font-size: 0.82rem;
        padding: 10px 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .btn-submit {
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }
}

@media (max-width: 380px) {
    .bento-hero-grid {
        padding: 10px;
    }

    .bento-card {
        padding: 14px 12px;
    }

    .hero-stat-card {
        padding: 10px 6px;
    }

    .hero-stat-num {
        font-size: 1.2rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }

    .hero-chip {
        font-size: 0.62rem;
        padding: 4px 7px;
    }

    .mobile-nav-item span {
        font-size: 0.55rem;
    }
}

/* Legacy body class alias */
body.spotify-body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Viewport Scroll Reveal (IntersectionObserver) ── */
.motion-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
    will-change: opacity, transform;
}

.motion-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals for items inside a section */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.34s; }

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

    .hero-bg::before,
    .hero-status-badge::after,
    .flow-track::before,
    .btn-submit::after {
        animation: none !important;
    }

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

/* ── Vector Brand Avatar & Partner Badge ── */
.brand-avatar-svg {
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.25));
}

.brand-avatar-svg--lg {
    filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.4));
}

.partner-icon-svg {
    display: block;
    flex-shrink: 0;
}
