:root {
    --renault-yellow: #EFDF00;
    --soft-yellow: #F8EB4C;
    --renault-blue: #1883FD;
    --absolute-black: #000000;
    --pure-white: #FFFFFF;
    --charcoal: #222222;
    --pale-silver: #F2F2F2;
    --warm-gray: #D9D9D6;
    --border-gray: #D1D1D1;
    --success-green: #8DC572;
    --error-rose: #BE6464;
    --warning-amber: #F0AD4E;
    --info-blue: #337AB7;

    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    background: var(--pure-white);
    color: var(--absolute-black);
    line-height: 1.4;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

*:focus-visible {
    outline: 2px solid var(--renault-blue);
    outline-offset: 4px;
}

@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;
    }
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: var(--pure-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 21.92px;
    text-decoration: none;
    color: var(--absolute-black);
    letter-spacing: -0.02em;
}

.nav-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--absolute-black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

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

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

.nav-link {
    color: var(--absolute-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--renault-blue);
}

.nav-link.active {
    color: var(--absolute-black);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    gap: 0;
    padding: 0;
    background: transparent;
    align-items: center;
}

.lang-btn {
    padding: 6px 10px;
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--absolute-black);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--renault-blue);
}

.lang-btn.active {
    color: var(--absolute-black);
    background: var(--pale-silver);
}

.btn {
    padding: 10px 15px;
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 46px;
    min-height: 46px;
    letter-spacing: 0.009em;
}

.btn-super-primary {
    background: var(--renault-yellow);
    color: var(--absolute-black);
    border-color: var(--renault-yellow);
}

.btn-super-primary:hover {
    background: var(--soft-yellow);
    border-color: var(--soft-yellow);
}

.btn-primary {
    background: var(--absolute-black);
    color: var(--pure-white);
    border-color: var(--absolute-black);
}

.btn-primary:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-primary-inverted {
    background: var(--pure-white);
    color: var(--absolute-black);
    border-color: var(--pure-white);
}

.btn-primary-inverted:hover {
    background: var(--pale-silver);
    border-color: var(--pale-silver);
}

.btn-ghost {
    background: transparent;
    color: var(--absolute-black);
    border: 1px solid var(--absolute-black);
}

.btn-ghost:hover {
    background: var(--absolute-black);
    color: var(--pure-white);
}

.btn-ghost-inverted {
    background: transparent;
    color: var(--pure-white);
    border: 1px solid var(--pure-white);
}

.btn-ghost-inverted:hover {
    background: var(--pure-white);
    color: var(--absolute-black);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 40px 80px;
    position: relative;
    background: var(--absolute-black);
    overflow: hidden;
}

.hero-aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.aurora-layer-1 {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(255, 0, 128, 0.45) 0%, transparent 60%);
    animation: aurora-float-1 25s ease-in-out infinite;
}

.aurora-layer-2 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.4) 0%, transparent 60%);
    animation: aurora-float-2 30s ease-in-out infinite;
}

.aurora-layer-3 {
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 75%;
    height: 75%;
    background: radial-gradient(ellipse at center, rgba(0, 181, 173, 0.35) 0%, transparent 60%);
    animation: aurora-float-3 35s ease-in-out infinite;
}

@keyframes aurora-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(15%, 10%) scale(1.15) rotate(5deg); }
    66% { transform: translate(-10%, 5%) scale(0.95) rotate(-3deg); }
}

@keyframes aurora-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-12%, 12%) scale(1.1) rotate(-5deg); }
    66% { transform: translate(8%, -8%) scale(0.9) rotate(3deg); }
}

@keyframes aurora-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(10%, -10%) scale(1.05) rotate(4deg); }
    66% { transform: translate(-8%, 8%) scale(0.95) rotate(-4deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 0.95;
    color: var(--pure-white);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s ease forwards 0.2s;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--pure-white);
    max-width: 600px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s ease forwards 0.35s;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s ease forwards 0.5s;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 80px 40px;
    position: relative;
}

.section.is-alternative-mode {
    background: var(--absolute-black);
    color: var(--pure-white);
}

.section-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.section-header {
    text-align: left;
    max-width: 800px;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--absolute-black);
    margin-bottom: 16px;
}

.is-alternative-mode .section-eyebrow {
    color: var(--warm-gray);
}

.section-title {
    font-size: 40px;
    margin-bottom: 20px;
}

.section-description {
    font-size: 14px;
    color: var(--absolute-black);
    line-height: 1.4;
    font-weight: 400;
}

.is-alternative-mode .section-description {
    color: var(--warm-gray);
}

.promo-card {
    position: relative;
    overflow: hidden;
    background: var(--absolute-black);
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.promo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.promo-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.3), rgba(37, 99, 235, 0.3));
}

.promo-card-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.promo-card-title {
    font-size: 40px;
    color: var(--pure-white);
    margin-bottom: 12px;
}

.promo-card-text {
    font-size: 14px;
    color: var(--pure-white);
    margin-bottom: 24px;
    line-height: 1.4;
    max-width: 500px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.promo-card-large {
    grid-column: span 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-content p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--absolute-black);
    margin-bottom: 20px;
    font-weight: 400;
}

.is-alternative-mode .about-content p {
    color: var(--warm-gray);
}

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

.stat-card {
    padding: 40px;
    text-align: left;
    border: 1px solid var(--pale-silver);
    transition: var(--transition);
}

.stat-card:nth-child(1) {
    border-top: none;
    border-left: none;
}

.stat-card:nth-child(2) {
    border-top: none;
    border-right: none;
}

.stat-card:nth-child(3) {
    border-bottom: none;
    border-left: none;
}

.stat-card:nth-child(4) {
    border-bottom: none;
    border-right: none;
}

.is-alternative-mode .stat-card {
    border-color: var(--charcoal);
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 0.95;
    color: var(--absolute-black);
    margin-bottom: 8px;
}

.is-alternative-mode .stat-number {
    color: var(--renault-yellow);
}

.stat-label {
    font-size: 14px;
    color: var(--absolute-black);
    font-weight: 400;
}

.is-alternative-mode .stat-label {
    color: var(--warm-gray);
}

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

.skill-card {
    padding: 40px;
    background: var(--pure-white);
    border: 1px solid var(--pale-silver);
    transition: var(--transition);
    position: relative;
}

.skill-card:nth-child(1),
.skill-card:nth-child(2),
.skill-card:nth-child(3),
.skill-card:nth-child(4) {
    border-top: none;
}

.skill-card:nth-child(1),
.skill-card:nth-child(5) {
    border-left: none;
}

.skill-card:nth-child(4),
.skill-card:nth-child(8) {
    border-right: none;
}

.skill-card:nth-child(5),
.skill-card:nth-child(6),
.skill-card:nth-child(7),
.skill-card:nth-child(8) {
    border-bottom: none;
}

.skill-card:hover {
    background: var(--pale-silver);
}

.is-alternative-mode .skill-card {
    background: var(--absolute-black);
    border-color: var(--charcoal);
}

.is-alternative-mode .skill-card:hover {
    background: var(--charcoal);
}

.skill-icon {
    font-size: 40px;
    margin-bottom: 24px;
    line-height: 1;
}

.skill-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.skill-description {
    font-size: 14px;
    color: var(--absolute-black);
    line-height: 1.4;
    font-weight: 400;
}

.is-alternative-mode .skill-description {
    color: var(--warm-gray);
}

.work-grid {
    display: grid;
    gap: 0;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border-top: 1px solid var(--pale-silver);
    opacity: 0;
    transform: translateY(40px);
}

.is-alternative-mode .work-item {
    border-color: var(--charcoal);
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.work-item:first-child {
    border-top: none;
}

.work-preview {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(37, 99, 235, 0.2));
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.work-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent);
}

.work-preview-number {
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
    line-height: 0.95;
}

.work-preview-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.work-info {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--absolute-black);
    margin-bottom: 16px;
    font-weight: 700;
}

.is-alternative-mode .work-meta {
    color: var(--warm-gray);
}

.work-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.work-description {
    font-size: 14px;
    color: var(--absolute-black);
    line-height: 1.4;
    margin-bottom: 28px;
    font-weight: 400;
}

.is-alternative-mode .work-description {
    color: var(--warm-gray);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--absolute-black);
    font-size: 12px;
    font-weight: 700;
    color: var(--absolute-black);
    transition: var(--transition);
    line-height: 1;
}

.is-alternative-mode .tag {
    border-color: var(--warm-gray);
    color: var(--pure-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.testimonial {
    padding: 60px 40px;
    background: var(--pure-white);
    border: 1px solid var(--pale-silver);
    transition: var(--transition);
}

.testimonial:nth-child(1),
.testimonial:nth-child(2),
.testimonial:nth-child(3) {
    border-top: none;
}

.testimonial:nth-child(1),
.testimonial:nth-child(4) {
    border-left: none;
}

.testimonial:nth-child(3),
.testimonial:nth-child(6) {
    border-right: none;
}

.testimonial:nth-child(4),
.testimonial:nth-child(5),
.testimonial:nth-child(6) {
    border-bottom: none;
}

.testimonial:hover {
    background: var(--pale-silver);
}

.is-alternative-mode .testimonial {
    background: var(--absolute-black);
    border-color: var(--charcoal);
}

.is-alternative-mode .testimonial:hover {
    background: var(--charcoal);
}

.testimonial-quote {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 32px;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    background: var(--absolute-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--pure-white);
}

.is-alternative-mode .testimonial-avatar {
    background: var(--renault-yellow);
    color: var(--absolute-black);
}

.testimonial-name {
    font-weight: 700;
    font-size: 14px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--absolute-black);
    font-weight: 400;
}

.is-alternative-mode .testimonial-role {
    color: var(--warm-gray);
}

.contact {
    text-align: left;
}

.contact-content {
    max-width: 800px;
    padding: 80px 0;
    position: relative;
}

.contact-email {
    font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--absolute-black);
    text-decoration: none;
    display: inline-block;
    margin: 40px 0;
    transition: var(--transition);
    line-height: 0.95;
}

.contact-email:hover {
    color: var(--renault-blue);
}

.is-alternative-mode .contact-email {
    color: var(--pure-white);
}

.is-alternative-mode .contact-email:hover {
    color: var(--renault-blue);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-link {
    padding: 10px 15px;
    background: transparent;
    border: 1px solid var(--absolute-black);
    color: var(--absolute-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background: var(--absolute-black);
    color: var(--pure-white);
}

.is-alternative-mode .social-link {
    border-color: var(--pure-white);
    color: var(--pure-white);
}

.is-alternative-mode .social-link:hover {
    background: var(--pure-white);
    color: var(--absolute-black);
}

.footer {
    padding: 40px;
    text-align: left;
    color: var(--absolute-black);
    font-size: 12.8px;
    border-top: 1px solid var(--pale-silver);
    font-weight: 400;
}

.is-alternative-mode .footer {
    border-color: var(--charcoal);
    color: var(--warm-gray);
}

@media (max-width: 1280px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-card {
        border: 1px solid var(--pale-silver);
    }

    .skill-card:nth-child(odd) {
        border-left: none;
    }

    .skill-card:nth-child(even) {
        border-right: none;
    }

    .skill-card:nth-child(1),
    .skill-card:nth-child(2) {
        border-top: none;
    }

    .skill-card:nth-child(7),
    .skill-card:nth-child(8) {
        border-bottom: none;
    }

    .is-alternative-mode .skill-card {
        border-color: var(--charcoal);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial {
        border: 1px solid var(--pale-silver);
    }

    .testimonial:nth-child(odd) {
        border-left: none;
    }

    .testimonial:nth-child(even) {
        border-right: none;
    }

    .testimonial:nth-child(1),
    .testimonial:nth-child(2) {
        border-top: none;
    }

    .testimonial:nth-child(5),
    .testimonial:nth-child(6) {
        border-bottom: none;
    }

    .is-alternative-mode .testimonial {
        border-color: var(--charcoal);
    }
}

@media (max-width: 900px) {
    .nav {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .nav-inner {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 180px 20px 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 60px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .promo-card-large {
        grid-column: span 1;
    }

    .work-item {
        grid-template-columns: 1fr;
    }

    .work-preview {
        min-height: 300px;
        order: -1;
    }

    .work-info {
        padding: 40px 20px;
    }

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

    .skill-card {
        border-left: none !important;
        border-right: none !important;
    }

    .skill-card:first-child {
        border-top: none !important;
    }

    .skill-card:last-child {
        border-bottom: none !important;
    }

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

    .testimonial {
        border-left: none !important;
        border-right: none !important;
    }

    .testimonial:first-child {
        border-top: none !important;
    }

    .testimonial:last-child {
        border-bottom: none !important;
    }

    .contact-content {
        padding: 48px 0;
    }

    .contact-email {
        font-size: 32px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .footer {
        padding: 40px 20px;
    }
}

[data-lang="zh"] {
    display: none;
}

html[lang="zh"] [data-lang="en"] {
    display: none;
}

html[lang="zh"] [data-lang="zh"] {
    display: block;
}

html[lang="zh"] body {
    font-family: 'Noto Sans SC', 'DM Sans', sans-serif;
}

html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] h4,
html[lang="zh"] h5,
html[lang="zh"] h6 {
    font-family: 'Noto Sans SC', 'DM Sans', sans-serif;
}

/* Keep the shared project palette; the actual site capture is a faint backdrop. */
.work-preview-reading img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) blur(3px);
    transform: scale(1.04);
}
.work-preview-reading::before {
    z-index: 1;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent),
        linear-gradient(135deg, rgba(249, 210, 218, 0.76), rgba(211, 224, 251, 0.76));
    pointer-events: none;
}
.work-actions { margin-top: 28px; }
.work-actions .btn {
    width: fit-content;
    color: var(--absolute-black);
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(37, 99, 235, 0.10));
    border-color: rgba(37, 99, 235, 0.25);
}
.work-actions .btn:hover {
    color: var(--absolute-black);
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.13), rgba(37, 99, 235, 0.17));
    border-color: rgba(37, 99, 235, 0.45);
}
@media (max-width: 900px) {
    .nav-link { padding: 8px; }
    .section[id] { scroll-margin-top: var(--nav-anchor-offset, 120px); }
    .about-grid > * { min-width: 0; }
    .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card { padding: 28px 20px; }
    .stat-number { font-size: clamp(38px, 12vw, 50px); }
}
