/* ============================================
   ROOT VARIABLES — DESIGN SYSTEM TOKENS
   ============================================ */
:root {
    /* Accent */
    --accent: #FFD700;
    --accent-dim: rgba(255, 215, 0, 0.10);
    --accent-border: rgba(255, 215, 0, 0.28);
    --accent-glow: rgba(255, 215, 0, 0.18);

    /* Legacy aliases (backward compat) */
    --gold: #FFD700;
    --gold-dim: rgba(255, 215, 0, 0.10);
    --gold-border: rgba(255, 215, 0, 0.28);

    /* Spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;

    /* Radius scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --radius-card: 18px;
    --radius-nav: 22px;

    /* Type scale */
    --text-xs: 10.5px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --text-2xl: 26px;
    --text-display: clamp(3rem, 7vw, 4.8rem);

    /* Motion */
    --nav-h: 60px;
    --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.18s ease;
}

[data-theme="dark"] {
    --bg: #0c0c0c;
    --bg2: #141414;
    --bg3: #1a1a1a;
    --surface: rgba(20, 20, 20, 0.92);
    --surface-raised: rgba(28, 28, 28, 0.96);
    --text: #efefef;
    --text-muted: #a0a0a0;
    --text-faint: #686868;
    --border: rgba(255, 215, 0, 0.16);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow: 0 8px 48px rgba(0, 0, 0, 0.75);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
    --grad: radial-gradient(ellipse 70% 50% at top left, rgba(255, 215, 0, 0.055) 0%, transparent 60%),
            radial-gradient(ellipse 50% 40% at bottom right, rgba(255, 215, 0, 0.03) 0%, transparent 60%);
}

[data-theme="light"] {
    --bg: #f8f5ee;
    --bg2: #ede9df;
    --bg3: #e4e0d5;
    --surface: rgba(255, 252, 242, 0.95);
    --surface-raised: rgba(255, 255, 255, 0.98);
    --text: #141414;
    --text-muted: #5a5a5a;
    --text-faint: #aaa;
    --border: rgba(180, 140, 0, 0.22);
    --border-subtle: rgba(0, 0, 0, 0.07);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.09);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
    --grad: radial-gradient(ellipse 70% 50% at top left, rgba(255, 215, 0, 0.10) 0%, transparent 60%),
            radial-gradient(ellipse 50% 40% at bottom right, rgba(200, 160, 0, 0.07) 0%, transparent 60%);
}


/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    background-image: var(--grad);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: calc(var(--nav-h) + 44px);
    transition: background 0.4s, color 0.4s;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--accent-border), 0 0 20px var(--accent-glow); }
    50%       { box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.55), 0 0 38px rgba(255, 215, 0, 0.28); }
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 0 1px var(--accent-border), 0 0 18px rgba(255, 215, 0, 0.06); }
    50%       { box-shadow: 0 0 0 1.5px rgba(255, 215, 0, 0.55), 0 0 28px rgba(255, 215, 0, 0.18); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes checkIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}


/* ============================================
   PAGES
   ============================================ */
.page {
    display: none;
    padding: 48px 20px 20px;
    max-width: 940px;
    margin: 0 auto;
    animation: fadeUp 0.36s ease;
}

.page.active {
    display: block;
}


/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(540px, calc(100vw - 28px));
    height: var(--nav-h);
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-nav);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 1000;
    transition: transform 0.4s ease, opacity 0.4s ease;
    animation: borderGlow 3.5s ease-in-out infinite;
}

#navbar.hidden {
    transform: translateX(-50%) translateY(110px);
    opacity: 0;
    pointer-events: none;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.025em;
}

.nav-btn i {
    font-size: 19px;
    transition: all var(--transition);
}

.nav-btn:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-btn.active {
    color: var(--accent);
}

.nav-btn.active i {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.nav-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

#darkToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--accent-dim);
    color: var(--accent);
    cursor: pointer;
    font-size: 15px;
    transition: all var(--transition);
    flex-shrink: 0;
}

#darkToggle:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--accent);
    color: #000;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.38);
    filter: brightness(1.05);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent-border);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    transform: translateY(-2px);
}


/* ============================================
   HERO — WESTERN MINIMALISM
   ============================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: var(--sp-6);
    align-items: flex-start;
    padding: 16px 0 var(--sp-7);
    min-height: 300px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: var(--sp-4);
}

/* Brand line */
.hero-brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    animation: slideInLeft 0.5s 0.05s ease both;
}

.hero-brand::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.8;
}

/* Display name */
.hero-name {
    font-size: var(--text-display);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin-bottom: var(--sp-3);
    background: linear-gradient(150deg, var(--text) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.5s 0.12s ease both;
}

/* Handle / subtitle */
.hero-handle {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.03em;
    margin-bottom: var(--sp-5);
    opacity: 0.85;
    animation: slideInLeft 0.5s 0.19s ease both;
}

/* Divider */
.hero-divider {
    width: 48px;
    height: 1.5px;
    background: var(--accent);
    opacity: 0.4;
    margin-bottom: var(--sp-4);
    animation: slideInLeft 0.5s 0.24s ease both;
}

/* Bio */
.hero-about {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 400px;
    margin-bottom: var(--sp-5);
    animation: slideInLeft 0.5s 0.28s ease both;
}

/* Primary CTAs */
.hero-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    animation: slideInLeft 0.5s 0.34s ease both;
}

/* Secondary links */
.hero-secondary-actions {
    display: flex;
    gap: var(--sp-5);
    margin-top: var(--sp-3);
    align-items: center;
    animation: slideInLeft 0.5s 0.40s ease both;
}

.hero-sub-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    transition: color var(--transition-fast);
    font-family: 'Inter', sans-serif;
}

.hero-sub-link:hover {
    color: var(--accent);
}

/* Social links (if used) */
.social-links {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 17px;
    transition: all var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}


/* ============================================
   AVATAR — Floating right of hero
   ============================================ */
.hero-avatar {
    animation: fadeUp 0.5s 0.18s ease both, float 5s 0.5s ease-in-out infinite;
    position: relative;
    width: 210px;
    height: 210px;
    flex-shrink: 0;
    align-self: center;
    margin-top: var(--sp-3);
}

.avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0.35;
}

.avatar-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    animation: pulse-ring 2.8s ease-out infinite;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2.5px solid var(--accent);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: glowPulse 4s ease-in-out infinite;
}

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


/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}


/* ============================================
   ECOSYSTEM — HORIZONTAL INFORMATION-DENSE CARDS
   ============================================ */
.ecosystem-section {
    margin-bottom: var(--sp-7);
    animation: fadeUp 0.42s 0.08s ease both;
}

.ecosystem-intro {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--sp-5);
    max-width: 580px;
}

/* Vertical stack of horizontal cards */
.ecosystem-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}

/* Each horizontal card */
.eco-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-left: 2.5px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--sp-4) var(--sp-5);
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: var(--sp-4);
    align-items: center;
    transition: border-left-color var(--transition), box-shadow var(--transition), background var(--transition);
    position: relative;
}

.eco-card:hover {
    border-left-color: var(--accent);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
}

/* Left: icon block */
.eco-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.eco-card:hover .eco-icon-wrap {
    background: var(--accent);
    color: #000;
}

/* Middle: text info */
.eco-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.eco-header-row {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.eco-title {
    font-size: var(--text-md);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.eco-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.eco-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right: action buttons */
.eco-actions {
    display: flex;
    gap: var(--sp-2);
    flex-shrink: 0;
    align-items: center;
}

.eco-btn {
    font-size: var(--text-sm);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* "More" card — secondary platform */
.eco-more-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--sp-3) var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.eco-more-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.eco-more-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.eco-more-header {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.eco-more-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
}

.eco-more-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg2);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.eco-more-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.eco-btn-small {
    font-size: var(--text-sm);
    padding: 7px 14px;
    flex-shrink: 0;
}

/* Legacy eco-card-header for backward compat */
.eco-card-header {
    display: none;
}


/* ============================================
   SKILLS
   ============================================ */
.skills-subsection {
    margin-bottom: var(--sp-6);
}

.skills-subsection:last-child {
    margin-bottom: var(--sp-7);
}

.subsection-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.subsection-label i {
    color: var(--accent);
    font-size: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: var(--sp-2);
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 15px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    transition: all var(--transition);
    animation: fadeUp 0.4s ease both;
    cursor: pointer;
}

.skill-card:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.12);
}

.skill-card i {
    font-size: 22px;
    color: var(--accent);
}

.skill-card span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}


/* ============================================
   STORE
   ============================================ */
.store-page-intro {
    margin: calc(var(--sp-3) * -1) 0 var(--sp-5);
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.7;
}

.store-scope-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
    padding: var(--sp-5);
    background: linear-gradient(135deg, var(--accent-dim), var(--surface));
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.store-scope-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #000;
    font-size: 22px;
}

.store-scope-content { min-width: 0; }

.store-scope-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-1);
}

.store-scope-title {
    color: var(--text);
    font-size: var(--text-lg);
    font-weight: 700;
}

.store-scope-badge {
    padding: 3px 9px;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-pill);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.store-scope-content p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
}

.store-scope-cta {
    white-space: nowrap;
    text-decoration: none;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sp-4);
}

.store-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--sp-5);
    transition: all var(--transition);
    animation: fadeUp 0.4s ease both;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.store-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(255, 215, 0, 0.10);
}

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

/* Card top: icon + type + badge */
.store-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--sp-4);
}

.store-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    transition: all var(--transition);
}

.store-card:hover .store-icon {
    background: var(--accent);
    color: #000;
}

.store-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Type label */
.store-type {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: var(--sp-1);
}

/* Product name */
.store-name {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--sp-2);
    letter-spacing: -0.01em;
}

/* Description */
.store-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: var(--sp-4);
}

/* Divider */
.store-divider {
    height: 1px;
    background: var(--border-subtle);
    margin-bottom: var(--sp-4);
}

/* Feature list */
.store-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    margin-bottom: var(--sp-4);
}

.store-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.5;
    animation: checkIn 0.3s ease both;
}

.store-feature-item i {
    color: var(--accent);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* "For whom" tag */
.store-audience {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--sp-4);
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.store-audience i {
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
}

/* Price + CTA row — always visible at bottom */
.store-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.store-price {
    display: flex;
    align-items: center;
}

.price-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--accent-border);
    background: var(--accent-dim);
}

.price-usd,
.price-mmk {
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.price-usd { color: var(--accent); }
.price-mmk { color: var(--text-muted); display: none; }

.store-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    background: var(--accent);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.store-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.32);
    filter: brightness(1.05);
}

/* Legacy store-card fields kept for compat */
.store-name-legacy { display: none; }


/* ============================================
   CURRENCY TOGGLE
   ============================================ */
.currency-row {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
}

.currency-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.currency-toggle {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.currency-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.currency-btn.active {
    background: var(--accent);
    color: #000;
}


/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--sp-4);
    transition: all var(--transition);
    animation: fadeUp 0.4s ease both;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.04));
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.09);
}

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

.project-card.featured { grid-column: span 2; }
.project-card.tall     { grid-row: span 2; }

.project-image-wrap {
    margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-4);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-raised);
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.025);
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--sp-2);
}

.project-title {
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: var(--sp-1);
}

.project-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}

.project-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.project-link:hover { opacity: 0.65; }

/* Project showcase */
.projects-intro {
    max-width: 680px;
    margin: calc(var(--sp-3) * -1) 0 var(--sp-5);
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.7;
}

.projects-page {
    max-width: 1160px;
}

.projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5);
}

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    cursor: pointer;
    isolation: isolate;
}

.project-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.project-image-wrap {
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
}

.project-card.featured .project-image-wrap {
    min-height: 360px;
    aspect-ratio: auto;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 0;
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
    transition: opacity var(--transition);
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.055);
}

.project-card:hover .project-image-overlay { opacity: 0.72; }

.project-featured-badge {
    position: absolute;
    top: var(--sp-4);
    left: var(--sp-4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 215, 0, 0.42);
    border-radius: var(--radius-pill);
    background: rgba(10, 10, 10, 0.76);
    backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-view-btn {
    position: absolute;
    right: var(--sp-4);
    bottom: var(--sp-4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(10px);
    color: #fff;
    font: 600 11px 'Inter', sans-serif;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}

.project-card:hover .project-view-btn,
.project-card:focus-within .project-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.project-view-btn i { transition: transform var(--transition-fast); }
.project-view-btn:hover i { transform: translate(2px, -2px); }

.project-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(24px, 3vw, 32px);
}

.project-card.featured .project-card-body { justify-content: center; }

.project-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.project-card-topline .project-tag { margin-bottom: 0; }

.project-impact {
    display: flex;
    align-items: baseline;
    gap: 5px;
    text-align: right;
}

.project-impact strong {
    color: var(--accent);
    font-size: var(--text-xl);
    line-height: 1;
}

.project-impact span {
    max-width: 78px;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.25;
    text-transform: uppercase;
}

.project-title {
    margin-bottom: var(--sp-2);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.project-desc {
    margin-bottom: var(--sp-4);
    font-size: var(--text-base);
    line-height: 1.65;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.project-tech {
    padding: 5px 9px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: var(--bg2);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
}

.project-links {
    flex-wrap: wrap;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-subtle);
}

.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--bg2);
    color: var(--text-muted);
    font-size: 9px;
}

.filter-tag.active .filter-count {
    background: rgba(0, 0, 0, 0.18);
    color: #000;
}

body.modal-open { overflow: hidden; }

body.modal-open #navbar {
    transform: translateX(-50%) translateY(110px);
    opacity: 0;
    pointer-events: none;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: var(--sp-7);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition), visibility var(--transition);
}

.project-modal.open { visibility: visible; opacity: 1; }

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(10px);
}

.project-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border: 1px solid var(--accent-border);
    border-radius: 28px;
    background: var(--surface-raised);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
    transform: translateY(18px) scale(0.98);
    transition: transform var(--transition);
}

.project-modal.open .project-modal-dialog { transform: none; }

.project-modal-close {
    position: absolute;
    z-index: 2;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.76);
    color: #fff;
    cursor: pointer;
}

.project-modal-image { height: clamp(270px, 32vw, 380px); overflow: hidden; }
.project-modal-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-modal-body { padding: clamp(32px, 5vw, 56px); }

.project-modal-eyebrow,
.project-detail-label {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-modal-body h2 { margin: var(--sp-2) 0 var(--sp-3); font-size: clamp(1.9rem, 4vw, 2.65rem); }
.project-modal-lead { max-width: 760px; color: var(--text-muted); font-size: var(--text-md); line-height: 1.8; }

.project-modal-stats {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--sp-6);
    align-items: center;
    margin: var(--sp-6) 0;
    padding: var(--sp-5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg2);
}

.project-modal-stats > div:first-child { display: flex; flex-direction: column; }
.project-modal-stats strong { color: var(--accent); font-size: 2rem; line-height: 1; }
.project-modal-stats span:not(.project-tech) { color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
.project-modal-stack { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.project-modal-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.project-modal-story section {
    padding: var(--sp-5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.project-modal-story p { margin-top: var(--sp-3); color: var(--text-muted); font-size: var(--text-base); line-height: 1.75; }

.project-highlights-section { margin-top: var(--sp-6); }

.project-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
    margin-top: var(--sp-3);
    list-style: none;
}

.project-highlights li {
    display: flex;
    gap: var(--sp-2);
    padding: var(--sp-4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.project-highlights i { color: var(--accent); flex-shrink: 0; }
.project-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-subtle);
}
.project-modal-footer > span { color: var(--text-muted); font-size: var(--text-sm); }
.project-modal-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; }
.project-modal-link { padding: 11px 16px; border: 1px solid var(--accent-border); border-radius: var(--radius-md); }


/* ============================================
   FILTER TAGS
   ============================================ */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
}

.filter-tag {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
}

.filter-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-tag.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}


/* ============================================
   BLOG / PAPER
   ============================================ */
.paper-page {
    --paper-font: 'Noto Sans Myanmar', 'Inter', sans-serif;
}

.paper-page-header {
    transition: opacity var(--transition-fast);
}

.paper-article-mode .paper-page-header,
.paper-article-route .paper-page-header {
    display: none;
}

.paper-article-mode .paper-layout,
.paper-article-route .paper-layout {
    max-width: 860px !important;
    padding-top: 28px;
}

.paper-intro {
    max-width: 760px;
    margin-bottom: var(--sp-5);
    color: var(--text-muted);
    font-family: var(--paper-font);
    font-size: var(--text-base);
    line-height: 1.9;
}

.paper-page .blog-card,
.paper-page .blog-article-shell {
    font-family: var(--paper-font);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-4);
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.09);
}

.blog-card-image-wrap,
.blog-article-image-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg2);
    display: block;
}

.blog-card-image-wrap {
    max-height: 320px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-card-image-wrap img,
.blog-article-image-wrap img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card-image-wrap img { max-height: 320px; }
.blog-article-image-wrap img { max-height: 420px; }

.blog-card:hover .blog-card-image-wrap img { transform: scale(1.03); }

.blog-card-body {
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 1;
}

.blog-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    width: fit-content;
}

.blog-title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.3;
}

.paper-page .blog-title {
    line-height: 1.55;
}

.blog-desc {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
}

.blog-link {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-link:hover { opacity: 0.7; }

.blog-article-shell {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-article-hero {
    padding: 28px 32px 22px;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-article-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-article-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.blog-article-title {
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    font-weight: 800;
    line-height: 1.2;
}

.paper-page .blog-article-title {
    line-height: 1.48;
    letter-spacing: -0.015em;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.blog-author-block {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

.blog-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.12);
}

.blog-author { color: var(--accent); font-weight: 600; }
.blog-meta-separator { color: var(--text-muted); }

.blog-article-desc {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 720px;
}

.paper-page .blog-article-desc {
    font-size: 14px;
    line-height: 1.85;
}

.blog-article-image-wrap {
    margin-top: var(--sp-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg2);
}

.blog-article-image-wrap img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-article-content {
    padding: 32px 40px 44px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    color: var(--text);
    line-height: 1.8;
}

.blog-article-content p { font-size: var(--text-md); }

.paper-page .blog-article-content {
    max-width: 760px;
    margin: 0 auto;
    gap: 14px;
    line-height: 1.9;
}

.paper-page .blog-article-content p,
.paper-page .blog-article-content li {
    font-size: 15px;
    line-height: 1.9;
}

.paper-page .blog-article-content ul,
.paper-page .blog-article-content ol {
    color: var(--text);
    padding-left: 24px;
}

.blog-article-content ul,
.blog-article-content.markdown-body ul {
    padding-left: 20px;
    color: var(--text-muted);
}

.blog-article-content.markdown-body h2,
.blog-article-content.markdown-body h3 {
    font-weight: 700;
    line-height: 1.35;
    margin-top: var(--sp-2);
}

.blog-article-content.markdown-body h2 { font-size: var(--text-xl); }
.blog-article-content.markdown-body h3 { font-size: var(--text-lg); }

.paper-page .blog-article-content.markdown-body h2,
.paper-page .blog-article-content.markdown-body h3 {
    line-height: 1.6;
    margin-top: var(--sp-5);
}

.paper-page .blog-article-content.markdown-body h2 { font-size: 18px; }
.paper-page .blog-article-content.markdown-body h3 { font-size: 16px; }

.blog-article-content.markdown-body a {
    color: var(--accent);
    text-decoration: underline;
}

.blog-article-content.markdown-body code {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.9em;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.blog-article-content.markdown-body pre {
    background: var(--bg2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    overflow-x: auto;
}

.blog-article-content.markdown-body pre code {
    background: none;
    border: none;
    padding: 0;
}

.blog-article-content.markdown-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.blog-article-content.markdown-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
}

.copy-article-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    align-self: flex-start;
    border: 1px solid var(--accent-border);
    background: var(--accent-dim);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-article-btn:hover {
    background: var(--accent);
    color: #000;
}

#blog-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--accent-border);
    background: var(--surface);
    color: var(--accent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

#blog-back-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
}


/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-border);
    background: var(--accent-dim);
}

.contact-item i {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.contact-item-val {
    font-size: var(--text-base);
    font-weight: 600;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--sp-5);
}

.form-group { margin-bottom: var(--sp-3); }

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--sp-1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: var(--text-base);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition);
    outline: none;
    resize: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.08);
}

.form-textarea { min-height: 100px; }


/* ============================================
   SKILL MODAL
   ============================================ */
.skill-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.skill-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-modal-content {
    background: var(--surface);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-card);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    position: relative;
}

.skill-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.skill-modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.skill-node-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
    padding: 20px 10px;
    min-height: 200px;
    position: relative;
}

.skill-node-center {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.skill-node-center .node-item {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    color: #000;
    font-weight: 700;
    font-size: 18px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    cursor: default;
}

.skill-node-connected {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
}

.node-item {
    background: var(--bg2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.node-item i {
    font-size: 14px;
    color: var(--accent);
}

.node-item:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

.skill-node-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    opacity: 0.3;
    pointer-events: none;
}


/* ============================================
   STAGGER ANIMATIONS
   ============================================ */
.skill-card:nth-child(1)  { animation-delay: .04s; }
.skill-card:nth-child(2)  { animation-delay: .08s; }
.skill-card:nth-child(3)  { animation-delay: .12s; }
.skill-card:nth-child(4)  { animation-delay: .16s; }
.skill-card:nth-child(5)  { animation-delay: .20s; }
.skill-card:nth-child(6)  { animation-delay: .24s; }
.skill-card:nth-child(7)  { animation-delay: .28s; }
.skill-card:nth-child(8)  { animation-delay: .32s; }
.skill-card:nth-child(9)  { animation-delay: .36s; }
.skill-card:nth-child(10) { animation-delay: .40s; }
.skill-card:nth-child(11) { animation-delay: .44s; }
.skill-card:nth-child(12) { animation-delay: .48s; }
.skill-card:nth-child(13) { animation-delay: .52s; }
.skill-card:nth-child(14) { animation-delay: .56s; }
.skill-card:nth-child(15) { animation-delay: .60s; }
.skill-card:nth-child(16) { animation-delay: .64s; }
.skill-card:nth-child(17) { animation-delay: .68s; }
.skill-card:nth-child(18) { animation-delay: .72s; }
.skill-card:nth-child(19) { animation-delay: .76s; }

.project-card:nth-child(1) { animation-delay: .05s; }
.project-card:nth-child(2) { animation-delay: .10s; }
.project-card:nth-child(3) { animation-delay: .15s; }
.project-card:nth-child(4) { animation-delay: .20s; }
.project-card:nth-child(5) { animation-delay: .25s; }

.store-card:nth-child(1)   { animation-delay: .05s; }
.store-card:nth-child(2)   { animation-delay: .10s; }
.store-card:nth-child(3)   { animation-delay: .15s; }
.store-card:nth-child(4)   { animation-delay: .20s; }
.store-card:nth-child(5)   { animation-delay: .25s; }
.store-card:nth-child(6)   { animation-delay: .30s; }

.store-feature-item:nth-child(1) { animation-delay: .08s; }
.store-feature-item:nth-child(2) { animation-delay: .14s; }
.store-feature-item:nth-child(3) { animation-delay: .20s; }
.store-feature-item:nth-child(4) { animation-delay: .26s; }


/* ============================================
   SKILL DETAIL PAGE
   ============================================ */
#skillDetail {
    display: block;
    padding: 40px 20px 20px;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp 0.38s ease;
    padding-bottom: calc(var(--nav-h) + 60px);
}

.skill-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.skill-detail-icon {
    font-size: 72px;
    color: var(--accent);
    margin-bottom: var(--sp-4);
    background: var(--accent-dim);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--accent-border);
}

.skill-detail-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--sp-2);
}

.skill-detail-desc {
    font-size: var(--text-lg);
    color: var(--text-muted);
}

.skill-detail-body {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 30px 36px;
}

.skill-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.skill-detail-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-base);
    color: var(--text);
    padding: 8px 12px;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.skill-detail-item:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateX(4px);
}

.skill-detail-item i {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
    .blog-article-hero    { padding: 18px 16px 14px; }
    .blog-article-title   { font-size: 1.5rem; }
    .blog-article-content { padding: 18px 16px 20px; }
    .blog-article-image-wrap img { max-height: 260px; }
    .blog-card-image-wrap { max-height: 220px; }
    .blog-card-image-wrap img { max-height: 220px; }

    .paper-article-mode .paper-layout,
    .paper-article-route .paper-layout {
        padding: 64px 12px 20px;
    }

    .paper-page .blog-article-shell {
        border-radius: 14px;
    }

    .paper-page .blog-article-title {
        font-size: 1.28rem;
        line-height: 1.55;
    }

    .paper-page .blog-article-meta {
        gap: 6px;
        font-size: 10.5px;
    }

    .paper-page .blog-author-avatar {
        width: 26px;
        height: 26px;
    }

    .paper-page .blog-article-desc {
        font-size: 13px;
        line-height: 1.8;
    }

    .paper-page .blog-article-image-wrap {
        margin-top: var(--sp-3);
        border-radius: var(--radius-md);
    }

    .paper-page .blog-article-content {
        padding: 20px 17px 30px;
        gap: 12px;
    }

    .paper-page .blog-article-content p,
    .paper-page .blog-article-content li {
        font-size: 14px;
        line-height: 1.9;
    }

    .paper-page .blog-article-content.markdown-body h2 {
        font-size: 16.5px;
    }

    .paper-page .blog-article-content.markdown-body h3 {
        font-size: 15px;
    }

    .paper-page .blog-article-content.markdown-body h2,
    .paper-page .blog-article-content.markdown-body h3 {
        margin-top: 18px;
    }

    .paper-page .copy-article-btn {
        padding: 7px 10px;
        font-size: 11px;
    }

    #blog-back-btn {
        top: 14px;
        left: 14px;
        padding: 8px 12px;
        font-size: var(--text-sm);
    }
}

@media (max-width: 620px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 24px;
    }

    .hero-avatar {
        width: 130px;
        height: 130px;
        margin: 0 auto var(--sp-5);
        order: -1;
    }

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

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-secondary-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Ecosystem: stack on mobile */
    .eco-card {
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
    }

    .eco-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .eco-desc {
        white-space: normal;
    }

    .eco-more-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }

    .eco-btn-small {
        width: 100%;
        justify-content: center;
    }

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

    .project-card.featured,
    .project-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-card.featured {
        display: flex;
    }

    .project-card.featured .project-image-wrap {
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .project-view-btn {
        opacity: 1;
        transform: none;
    }

    .project-modal {
        padding: var(--sp-2);
    }

    .project-modal-dialog {
        max-height: calc(100vh - 16px);
        border-radius: 20px;
    }

    .project-modal-image {
        height: 210px;
        aspect-ratio: auto;
    }

    .project-modal-body {
        padding: 24px 20px 30px;
    }

    .project-modal-body h2 {
        font-size: 1.65rem;
    }

    .project-modal-lead {
        font-size: 13.5px;
    }

    .project-modal-stats,
    .project-modal-story {
        grid-template-columns: 1fr;
    }

    .project-modal-stats {
        gap: var(--sp-4);
        margin: var(--sp-5) 0;
        padding: var(--sp-4);
    }

    .project-modal-story section {
        padding: 18px;
    }

    .project-highlights-section {
        margin-top: var(--sp-5);
    }

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

    .project-modal-footer {
        align-items: stretch;
        flex-direction: column;
        margin-top: var(--sp-5);
    }

    .project-modal-links {
        width: 100%;
    }

    .project-modal-link {
        flex: 1;
        justify-content: center;
    }

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

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

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

    .store-scope-card {
        grid-template-columns: auto 1fr;
        padding: var(--sp-4);
    }

    .store-scope-cta {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .store-bottom {
        flex-direction: column;
        align-items: stretch;
    }

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

    .subsection-label { font-size: var(--text-sm); }

    .skill-modal-content { padding: 20px; width: 95%; }
    .skill-modal-header h2 { font-size: var(--text-xl); }
    .node-item { font-size: 11px; padding: 6px 14px; }
    .skill-node-center .node-item { font-size: 15px; padding: 10px 20px; }
    .skill-node-container::before { display: none; }

    .skill-detail-list { grid-template-columns: 1fr; }
    .skill-detail-icon  { width: 80px; height: 80px; font-size: 48px; }
    .skill-detail-title { font-size: 24px; }
    .skill-detail-body  { padding: 20px; }
}
