/* ========================================
   个人简历网站 - 全局样式
   文件：style.css
   ======================================== */

/* ----------------------------------------
   1. CSS Variables & Reset
   ---------------------------------------- */
:root {
    --bg: #08080a;
    --bg-elevated: rgba(255, 255, 255, 0.03);
    --text: #f4f4f5;
    --text-muted: #9ca3af;
    --accent-gold: #c9a227;
    --accent-navy: #5b7eb8;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ----------------------------------------
   2. Global Background Effects
   ---------------------------------------- */

/* Animated mesh gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 20% 30%, rgba(92, 126, 184, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(92, 126, 184, 0.05) 0%, transparent 60%);
    animation: meshMove 40s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Noise grain overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, -2%) scale(1.05); }
    66% { transform: translate(-2%, 2%) scale(0.98); }
}

/* ----------------------------------------
   3. Layout Utilities
   ---------------------------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(91, 126, 184, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(91, 126, 184, 0.08) 0%, transparent 50%);
    animation: sectionGradientFlow 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

section::after {
    content: '';
    position: absolute;
    inset: -30%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(2, 4, 10, 1) 0%, rgba(2, 4, 10, 0.3) 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(2, 4, 10, 1) 0%, rgba(2, 4, 10, 0.3) 40%, transparent 70%);
}

section > .container {
    position: relative;
    z-index: 1;
}

@keyframes sectionGradientFlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: translate(3%, -3%) scale(1.06);
        opacity: 0.9;
    }
    66% {
        transform: translate(-2%, 2%) scale(0.96);
        opacity: 0.75;
    }
}

@keyframes sectionGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-80px, -80px); }
}

/* ----------------------------------------
   4. Scroll Reveal Animations
   ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.35s; }
.stagger-4 { transition-delay: 0.5s; }
.stagger-5 { transition-delay: 0.65s; }
.stagger-6 { transition-delay: 0.8s; }

/* ----------------------------------------
   5. Brand Logo
   ---------------------------------------- */
.brand-logo {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-logo img {
    width: 112px;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Welcome Overlay */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.welcome-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-video-wrap {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.welcome-video-box {
    position: relative;
    width: 100%;
    max-width: 720px;
}

.welcome-video-box video {
    width: 100%;
    max-height: 70vh;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 80px rgba(2, 4, 10, 0.6);
    background: #050507;
    display: block;
}

.welcome-sound-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: blur(10px);
    color: var(--accent-gold);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: soundHintPulse 2.4s ease-in-out infinite;
    white-space: nowrap;
    pointer-events: auto;
}

.welcome-sound-hint:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: rgba(201, 162, 39, 0.4);
    transform: translateY(-1px);
}

.welcome-sound-hint.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

.welcome-sound-hint svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

@keyframes soundHintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.welcome-enter {
    padding: 14px 36px;
    border-radius: 999px;
    border: 1.5px solid var(--accent-gold);
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.welcome-enter:hover {
    background: rgba(201, 162, 39, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}

.welcome-skip {
    padding: 6px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.25s ease;
}

.welcome-skip:hover {
    color: var(--text);
}

/* Music Toggle */
.music-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 10, 0.6);
    backdrop-filter: blur(10px);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    border-color: rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.1);
    transform: scale(1.08);
}

.music-toggle.is-playing {
    animation: musicPulse 2.2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.25); }
    50% { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0); }
}

.music-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* ----------------------------------------
   6. Hero Section
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-family: 'Cormorant', Georgia, serif;
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #c9c9c9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e8c85a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .cfa-badge {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.42em;
    font-weight: 600;
    font-style: normal;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 0.18em 0.45em;
    margin-left: 0.3em;
    vertical-align: middle;
    letter-spacing: 0.06em;
    -webkit-text-fill-color: var(--accent-gold);
    background: rgba(201, 162, 39, 0.08);
}

.hero-tagline {
    font-size: 1.1875rem;
    color: rgba(244, 244, 245, 0.82);
    max-width: 600px;
    line-height: 1.75;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: justify;
    text-align-last: justify;
}

.hero-motto {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 44px;
    letter-spacing: 0.04em;
    max-width: 600px;
}

.motto-line1 {
    display: block;
    text-align: justify;
    text-align-last: justify;
}

.motto-line2 {
    display: block;
    text-align: center;
}

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

.nav-ring-row {
    display: flex;
    gap: 26px;
    justify-content: center;
}

.nav-ring-row--lower {
    margin-left: 14px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    width: 132px;
    height: 132px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(244, 244, 245, 0.95);
    font-size: 1.275rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    line-height: 1.3;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--accent-gold), transparent 25%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    filter: blur(4px);
    animation: rotateGlow 8s linear infinite;
}

.nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.nav-btn:hover {
    border-color: rgba(201, 162, 39, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.15), 0 8px 24px rgba(2, 4, 10, 0.3);
}

.nav-btn:hover::before,
.nav-btn:hover::after {
    opacity: 1;
}

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

/* Hero Avatar */
.hero-avatar {
    position: relative;
    justify-self: center;
}

.hero-avatar img,
.hero-avatar .avatar-video {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(2, 4, 10, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    position: relative;
    z-index: 2;
}

.hero-avatar:hover img,
.hero-avatar:hover .avatar-video {
    transform: scale(1.03);
    box-shadow: 0 30px 80px rgba(2, 4, 10, 0.6), 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.hero-avatar::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--accent-gold), transparent 30%);
    opacity: 0.15;
    animation: rotateGlow 8s linear infinite;
    z-index: 1;
    filter: blur(8px);
}

.hero-name-en {
    text-align: center;
    margin-top: 20px;
    font-family: 'Cormorant', Georgia, serif;
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.hero-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    gap: 8px;
}

.hero-qrcode img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(2, 4, 10, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.hero-qrcode img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(2, 4, 10, 0.35);
}

.hero-qrcode span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ----------------------------------------
   7. Section Titles
   ---------------------------------------- */
.section-title {
    font-family: 'Cormorant', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 52px;
    color: var(--text);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.section-title i,
.section-title svg {
    color: var(--accent-gold);
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
    flex-shrink: 0;
}

/* ----------------------------------------
   8. Stats Grid
   ---------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 42px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 24px 48px rgba(2, 4, 10, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 60%, #e8c85a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    display: inline-block;
    transform-origin: center bottom;
    font-variant-numeric: tabular-nums;
}

@keyframes statPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.14); }
    100% { transform: scale(1); }
}

.stat-number.counted-done {
    animation: statPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-label {
    font-size: 1.0625rem;
    color: rgba(244, 244, 245, 0.92);
    line-height: 1.45;
    letter-spacing: 0.01em;
    font-weight: 600;
}

/* ----------------------------------------
   9. Experience Timeline
   ---------------------------------------- */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 200px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.12) 80%, transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
}

.timeline-date {
    font-size: 1.40625rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-top: 10px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
}

.timeline-date::after {
    content: '';
    position: absolute;
    left: 0;
    top: 52px;
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    opacity: 0.35;
}

.timeline-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    contain: layout style paint;
}

.timeline-content:hover {
    transform: translateX(6px);
    border-color: rgba(91, 126, 184, 0.3);
    box-shadow: 0 16px 40px rgba(2, 4, 10, 0.25);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 44px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent-gold), 0 0 16px var(--accent-gold);
}

.timeline-role {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.timeline-company {
    font-size: 1.125rem;
    color: var(--accent-navy);
    margin-bottom: 18px;
    font-weight: 600;
}

.timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    color: rgba(244, 244, 245, 0.75);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 500;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 2px;
    background: var(--accent-gold);
}

/* Timeline reveal animations */
.timeline::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline.is-revealed::before {
    transform: scaleY(1);
}

.timeline-item.reveal {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.reveal .timeline-date {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.reveal.active .timeline-date {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.reveal .timeline-content::before {
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.reveal.active .timeline-content::before {
    transform: scale(1);
}

.timeline-item.reveal .timeline-list li {
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.reveal.active .timeline-list li {
    opacity: 1;
    transform: translateX(0);
}

/* Timeline stagger delays */
.timeline-item.reveal.stagger-1 .timeline-date { transition-delay: 0.1s; }
.timeline-item.reveal.stagger-1 .timeline-content::before { transition-delay: 0.25s; }
.timeline-item.reveal.stagger-1 .timeline-list li:nth-child(1) { transition-delay: 0.35s; }
.timeline-item.reveal.stagger-1 .timeline-list li:nth-child(2) { transition-delay: 0.45s; }
.timeline-item.reveal.stagger-1 .timeline-list li:nth-child(3) { transition-delay: 0.55s; }

.timeline-item.reveal.stagger-2 .timeline-date { transition-delay: 0.3s; }
.timeline-item.reveal.stagger-2 .timeline-content::before { transition-delay: 0.45s; }
.timeline-item.reveal.stagger-2 .timeline-list li:nth-child(1) { transition-delay: 0.55s; }
.timeline-item.reveal.stagger-2 .timeline-list li:nth-child(2) { transition-delay: 0.65s; }
.timeline-item.reveal.stagger-2 .timeline-list li:nth-child(3) { transition-delay: 0.75s; }

.timeline-item.reveal.stagger-3 .timeline-date { transition-delay: 0.5s; }
.timeline-item.reveal.stagger-3 .timeline-content::before { transition-delay: 0.65s; }
.timeline-item.reveal.stagger-3 .timeline-list li:nth-child(1) { transition-delay: 0.75s; }
.timeline-item.reveal.stagger-3 .timeline-list li:nth-child(2) { transition-delay: 0.85s; }
.timeline-item.reveal.stagger-3 .timeline-list li:nth-child(3) { transition-delay: 0.95s; }

/* ----------------------------------------
   10. Education
   ---------------------------------------- */

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

.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.edu-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
        linear-gradient(90deg, rgba(201,162,39,0.12), rgba(91,126,184,0.08), rgba(201,162,39,0.12)) border-box;
    background-size: 100% 100%, 200% 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 28px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    contain: layout style paint;
    animation: borderFlow 3s linear infinite;
}

.edu-card > * {
    position: relative;
    z-index: 2;
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2, 4, 10, 0.2), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.25), transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.edu-card:hover::before {
    opacity: 1;
}

.edu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.05) 42%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 58%,
        transparent 65%
    );
    transform: translateX(-100%);
    transition: transform 0s;
    pointer-events: none;
    z-index: 4;
}

.edu-card:hover::after {
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.edu-info {
    flex: 1;
    min-width: 0;
}

.edu-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.edu-card:hover .edu-logo {
    opacity: 1;
    transform: scale(1.05);
}

.edu-school {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text);
}

.edu-degree {
    font-size: 1.2rem;
    color: var(--accent-navy);
    margin-bottom: 8px;
    font-weight: 500;
}

.edu-year {
    font-size: 1.1375rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ----------------------------------------
   11. Certifications (Education 2nd row)
   ---------------------------------------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.cert-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
        linear-gradient(90deg, rgba(201,162,39,0.12), rgba(91,126,184,0.08), rgba(201,162,39,0.12)) border-box;
    background-size: 100% 100%, 200% 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px 16px 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    contain: layout style paint;
    animation: borderFlow 3s linear infinite;
}

.cert-card > * {
    position: relative;
    z-index: 2;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2, 4, 10, 0.2), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.25), transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.05) 42%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 58%,
        transparent 65%
    );
    transform: translateX(-100%);
    transition: transform 0s;
    pointer-events: none;
    z-index: 4;
}

.cert-card:hover::after {
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-logo-wrap {
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 18px;
}

.cert-card:hover .cert-logo {
    opacity: 1;
    transform: scale(1.05);
}

.cert-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: -4px;
}

.cert-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.cert-divider {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.7;
    align-self: center;
}

.cert-score {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
    line-height: 1;
}

.cert-score--text {
    font-size: 2.625rem;
}

/* ----------------------------------------
   12. Expertise Cards
   ---------------------------------------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.expertise-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(10px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
}

.expertise-card:hover {
    transform: translateY(-7px);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 24px 48px rgba(2, 4, 10, 0.28);
}

.expertise-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: #0a0a0c;
}

.expertise-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease, filter 0.55s ease;
    filter: saturate(0.88) contrast(1.04) brightness(0.98);
}

.expertise-card:hover .expertise-image-wrap img {
    transform: scale(1.06);
    filter: saturate(1) contrast(1) brightness(1);
}

.expertise-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(8, 8, 10, 0.55) 100%);
    pointer-events: none;
}

.expertise-body {
    padding: 22px 18px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Expertise reveal wave cascade */
.expertise-card.reveal {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.expertise-card.reveal.active {
    opacity: 1;
    transform: scale(1);
}

.expertise-card.reveal .expertise-image-wrap {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.expertise-card.reveal.active .expertise-image-wrap {
    opacity: 1;
    transform: scale(1);
}

.expertise-card.reveal .expertise-body {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.expertise-card.reveal.active .expertise-body {
    opacity: 1;
    transform: translateY(0);
}

/* Wave cascade delays (80ms apart) */
.expertise-grid > .expertise-card:nth-child(1) { transition-delay: 0ms; }
.expertise-grid > .expertise-card:nth-child(1) .expertise-image-wrap { transition-delay: 80ms; }
.expertise-grid > .expertise-card:nth-child(1) .expertise-body { transition-delay: 180ms; }

.expertise-grid > .expertise-card:nth-child(2) { transition-delay: 80ms; }
.expertise-grid > .expertise-card:nth-child(2) .expertise-image-wrap { transition-delay: 160ms; }
.expertise-grid > .expertise-card:nth-child(2) .expertise-body { transition-delay: 260ms; }

.expertise-grid > .expertise-card:nth-child(3) { transition-delay: 160ms; }
.expertise-grid > .expertise-card:nth-child(3) .expertise-image-wrap { transition-delay: 240ms; }
.expertise-grid > .expertise-card:nth-child(3) .expertise-body { transition-delay: 340ms; }

.expertise-grid > .expertise-card:nth-child(4) { transition-delay: 240ms; }
.expertise-grid > .expertise-card:nth-child(4) .expertise-image-wrap { transition-delay: 320ms; }
.expertise-grid > .expertise-card:nth-child(4) .expertise-body { transition-delay: 420ms; }

.expertise-grid > .expertise-card:nth-child(5) { transition-delay: 320ms; }
.expertise-grid > .expertise-card:nth-child(5) .expertise-image-wrap { transition-delay: 400ms; }
.expertise-grid > .expertise-card:nth-child(5) .expertise-body { transition-delay: 500ms; }

.expertise-grid > .expertise-card:nth-child(6) { transition-delay: 400ms; }
.expertise-grid > .expertise-card:nth-child(6) .expertise-image-wrap { transition-delay: 480ms; }
.expertise-grid > .expertise-card:nth-child(6) .expertise-body { transition-delay: 580ms; }

.expertise-grid > .expertise-card:nth-child(7) { transition-delay: 480ms; }
.expertise-grid > .expertise-card:nth-child(7) .expertise-image-wrap { transition-delay: 560ms; }
.expertise-grid > .expertise-card:nth-child(7) .expertise-body { transition-delay: 660ms; }

.expertise-grid > .expertise-card:nth-child(8) { transition-delay: 560ms; }
.expertise-grid > .expertise-card:nth-child(8) .expertise-image-wrap { transition-delay: 640ms; }
.expertise-grid > .expertise-card:nth-child(8) .expertise-body { transition-delay: 740ms; }

.expertise-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
}

.expertise-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ----------------------------------------
   12. Market Insights
   ---------------------------------------- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.insight-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    contain: layout style paint;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, 0.25);
    box-shadow: 0 20px 40px rgba(2, 4, 10, 0.25);
}

.insight-cover {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
    background: var(--bg-elevated);
}

.insight-card:hover .insight-cover {
    transform: scale(1.05);
}

.insight-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insight-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 10, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

.insight-meta {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 14px;
    color: var(--text);
    transition: color 0.3s ease;
}

.insight-card:hover .insight-title {
    color: var(--accent-gold);
}

.insight-link {
    font-size: 0.8125rem;
    color: var(--accent-navy);
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: auto;
}

.insight-card:hover .insight-link {
    color: var(--accent-gold);
}

.insights-note {
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.insights-note code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.insights-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.qrcode-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.qrcode-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.25);
    box-shadow: 0 16px 32px rgba(2, 4, 10, 0.2);
}

.qrcode-card img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.qrcode-info {
    text-align: left;
}

.qrcode-title {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.qrcode-name {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ----------------------------------------
   13. Research Reports
   ---------------------------------------- */
.reports-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reports-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.report-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-navy) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Shimmer hover effect for insight and report cards */
.insight-card::after,
.report-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 45%, transparent 50%);
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
}

.insight-card:hover::after,
.report-card:hover::after {
    transform: translateX(100%);
    transition: transform 0.9s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, 0.25);
    box-shadow: 0 20px 40px rgba(2, 4, 10, 0.25);
}

.report-card:hover::before {
    opacity: 1;
}

.report-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.report-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.report-card:hover .report-icon {
    background: rgba(201, 162, 39, 0.12);
    transform: scale(1.05);
}

.report-card--image {
    padding: 0;
    overflow: hidden;
}

.report-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.report-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.report-card--image:hover .report-image-wrap img {
    transform: scale(1.05);
}

.report-card--image .report-title {
    padding: 22px 24px 6px;
    margin-bottom: 0;
}

.report-card--image .report-link {
    padding: 0 24px 22px;
    display: block;
}

/* Featured Report Card */
.report-card--featured {
    display: flex;
    flex-direction: row;
    padding: 0;
    min-height: 280px;
    overflow: hidden;
}

.report-featured-image {
    width: 50%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.report-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-card--featured:hover .report-featured-image img {
    transform: scale(1.04);
}

.report-featured-body {
    width: 50%;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.report-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    background: rgba(201, 162, 39, 0.08);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-card--featured .report-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.35;
}

.report-card--featured .report-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.report-card--featured .report-link {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 4px;
}

.report-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    transition: color 0.3s ease;
}

.report-card:hover .report-title {
    color: var(--accent-gold);
}

.report-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 18px;
}

.report-link {
    font-size: 0.8125rem;
    color: var(--accent-navy);
    font-weight: 500;
    transition: color 0.3s ease;
}

.report-card:hover .report-link {
    color: var(--accent-gold);
}

.reports-note {
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.reports-note code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.reports-disclaimer {
    margin-top: 32px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: left;
    max-width: 900px;
    opacity: 0.85;
}

/* ----------------------------------------
   14. Footer
   ---------------------------------------- */
footer {
    padding: 70px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    letter-spacing: 0.02em;
}

/* ----------------------------------------
   15. Sticky Navigation
   ---------------------------------------- */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(8, 8, 10, 0.82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.sticky-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.sticky-nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(244, 244, 245, 0.85);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.sticky-nav-link:hover,
.sticky-nav-link.active {
    color: var(--accent-gold);
}

.sticky-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.sticky-nav-link:hover::after,
.sticky-nav-link.active::after {
    width: 100%;
}

.sticky-nav-dropdown {
    position: relative;
}

.sticky-nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 160px;
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 0;
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 16px 40px rgba(2, 4, 10, 0.35);
}

.sticky-nav-dropdown:hover .sticky-nav-submenu,
.sticky-nav-submenu:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-nav-sublink {
    display: block;
    padding: 10px 18px;
    font-size: 0.875rem;
    color: rgba(244, 244, 245, 0.85);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.sticky-nav-sublink:hover {
    color: var(--accent-gold);
    background: rgba(201, 162, 39, 0.08);
}

/* Anchor offset for sticky nav */
section[id],
.report-card[id] {
    scroll-margin-top: 80px;
}

/* ----------------------------------------
   16. Back to Top Button
   ---------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 98;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(8, 8, 10, 0.7);
    backdrop-filter: blur(10px);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 24px rgba(2, 4, 10, 0.3);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(201, 162, 39, 0.12);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

/* ----------------------------------------
   17. Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 56px;
    }

    .hero-title {
        margin-bottom: 16px;
    }

    .hero-tagline {
        margin: 0 auto 36px;
    }

    .hero-nav {
        justify-content: center;
    }

    .hero-avatar {
        order: -1;
    }

    .hero-avatar img {
        width: 240px;
        height: 240px;
    }

    .hero-name-en {
        margin-top: 16px;
        font-size: 1.625rem;
    }

    .hero-qrcode {
        margin-top: 14px;
    }

    .hero-qrcode img {
        width: 100px;
        height: 100px;
    }

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

    .timeline::before {
        left: 4px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-left: 28px;
    }

    .timeline-date {
        text-align: left;
        padding-top: 0;
        font-size: 1.09375rem;
    }

    .timeline-date::after {
        display: none;
    }

    .timeline-content::before {
        left: -30px;
        top: 4px;
        width: 10px;
        height: 10px;
    }

    .timeline-role {
        font-size: 1.25rem;
    }

    .timeline-company {
        font-size: 1rem;
    }

    .timeline-list li {
        font-size: 0.9375rem;
    }

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

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .cert-card {
        padding: 14px 12px 18px;
        gap: 6px;
    }

    .cert-logo-wrap {
        width: 126px;
        height: 126px;
    }

    .cert-meta {
        margin-top: -6px;
    }

    .cert-name {
        font-size: 1.125rem;
    }

    .cert-score {
        font-size: 3rem;
    }

    .cert-score--text {
        font-size: 2.1rem;
    }

    section {
        padding: 90px 0;
    }

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

    .reports-sub-grid {
        grid-template-columns: 1fr;
    }

    .report-card--featured {
        flex-direction: column;
        min-height: auto;
    }

    .report-featured-image,
    .report-featured-body {
        width: 100%;
    }

    .report-featured-image {
        aspect-ratio: 16 / 10;
    }

    .report-featured-body {
        padding: 28px 24px;
        gap: 10px;
    }

    .report-card--featured .report-title {
        font-size: 1.25rem;
    }

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

    .insights-footer {
        justify-content: center;
    }

    .qrcode-card {
        flex-direction: column;
        text-align: center;
    }

    .qrcode-info {
        text-align: center;
    }

    .qrcode-card img {
        width: 110px;
        height: 110px;
    }

    .nav-ring-row--lower {
        margin-left: 8px;
    }

    .nav-btn {
        width: 114px;
        height: 114px;
        font-size: 1.125rem;
        padding: 12px 0;
    }

    .sticky-nav-inner {
        padding: 0 20px;
        height: 56px;
        gap: 20px;
        justify-content: center;
    }

    .sticky-nav-link {
        font-size: 0.875rem;
    }

    .sticky-nav-submenu {
        right: 50%;
        transform: translateX(50%) translateY(-8px);
    }

    .sticky-nav-dropdown:hover .sticky-nav-submenu,
    .sticky-nav-submenu:focus-within {
        transform: translateX(50%) translateY(0);
    }

    section[id],
    .report-card[id] {
        scroll-margin-top: 72px;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-ring-row {
        gap: 10px;
    }

    .nav-ring-row--lower {
        margin-left: 0px;
    }

    .nav-btn {
        width: 96px;
        height: 96px;
        font-size: 1.05rem;
        padding: 8px 0;
    }

    .brand-logo img {
        width: 96px;
        border-radius: 16px;
    }

    .sticky-nav-inner {
        gap: 14px;
        padding: 0 16px;
    }

    .music-toggle {
        top: auto;
        bottom: 84px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .sticky-nav-link {
        font-size: 0.8125rem;
    }

    .sticky-nav-sublink {
        font-size: 0.8125rem;
        padding: 8px 14px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cert-card {
        padding: 16px 16px 20px;
        gap: 6px;
    }

    .cert-logo-wrap {
        width: 154px;
        height: 154px;
    }

    .cert-meta {
        margin-top: -8px;
    }

    .cert-score {
        font-size: 3.375rem;
    }

    .cert-score--text {
        font-size: 2.3625rem;
    }
}

/* ----------------------------------------
   18. 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;
    }
}
