/* Design Tokens - Tech Humanism (Classical Oil Painting × Robot) */

:root {
  /* Colors - Inspired by Classical Oil Painting with Robot Elements */
  --color-bg: #F5F3EF;              /* Canvas/Cream White */
  --color-bg-secondary: #EBE7DD;    /* Warm Stone */
  --color-bg-tertiary: #D8D4C8;     /* Aged Paper */

  /* Sky & Cloud Palette */
  --color-sky-light: #C5D5E4;       /* Soft Morning Sky */
  --color-sky: #8BA8B8;             /* Classical Sky Blue */
  --color-sky-deep: #5A7A8A;        /* Deep Sky */
  --color-cloud: #F7F5F0;           /* Cloud White */
  --color-cloud-shadow: #D4CFC7;    /* Cloud Shadow */

  /* Metal & Robot Elements */
  --color-metal: #C8C8C8;           /* Silver Metal */
  --color-metal-light: #E0E0E0;     /* Highlighted Metal */
  --color-metal-dark: #8A8A8A;      /* Shadowed Metal */
  --color-accent-blue: #4A7BA7;     /* Robot Blue Accent */

  /* Earth & Nature */
  --color-tree: #5A6B5A;            /* Olive Tree */
  --color-tree-deep: #3D4A3D;       /* Deep Forest */
  --color-earth: #B8A890;           /* Warm Earth */

  /* Text Colors */
  --color-text-primary: #2C2C2C;    /* Soft Charcoal */
  --color-text-secondary: #5A5A5A;  /* Warm Gray */
  --color-text-tertiary: #8C8C8C;   /* Light Gray */

  /* Borders */
  --color-border: #D4CFC7;          /* Warm Border */
  --color-border-light: #E6E2D8;    /* Light Border */
  --color-accent: #4A7BA7;          /* Blue Accent */
  --color-accent-hover: #3D6A97;    /* Darker Blue on Hover */

  /* Typography - Serif + Sans-serif Mix */
  --font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Cormorant Garamond', 'Inter', sans-serif;
  
  /* Font Sizes - Larger Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px - increased base */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.375rem;     /* 22px - increased */
  --text-2xl: 1.75rem;     /* 28px - increased */
  --text-3xl: 2.25rem;     /* 36px - increased */
  --text-4xl: 3rem;        /* 48px - increased */
  --text-5xl: 3.75rem;     /* 60px - increased */
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights - Airy and Spacious */
  --leading-tight: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;   /* LANCH default */
  --leading-loose: 2.2;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* Spacing - 8px base grid for more generous spacing */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */
  --space-20: 10rem;    /* 160px */
  --space-24: 12rem;    /* 192px */
  --space-32: 16rem;    /* 256px */
  
  /* Layout - LANCH Proportions */
  --sidebar-width: 28vw;           /* 28% of viewport width */
  --sidebar-width-min: 320px;      /* Minimum sidebar width */
  --sidebar-width-max: 480px;      /* Maximum sidebar width */
  --content-max-width: 1200px;
  --container-padding: var(--space-4);
  
  /* Transitions - Subtle and Smooth */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Easing Functions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  
  /* Border Radius - Removed for pure minimalism */
  --radius-none: 0;
  
  /* Shadows - Removed for flat design */
  --shadow-none: none;
  
  /* Borders */
  --border-width: 1px;
  --border-dotted: 1px dotted var(--color-border);

  /* Sky Gradient Background */
  --sky-gradient: linear-gradient(180deg, var(--color-sky-light) 0%, var(--color-cloud) 50%, var(--color-bg) 100%);

  /* Oil Painting Frame Effect */
  --frame-shadow: 0 0 0 8px var(--color-cloud), 0 0 0 10px var(--color-metal), 0 20px 40px rgba(0,0,0,0.15);

  /* Paper Texture - Oil Painting Canvas Feel */
  --paper-texture: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");

  /* Torn Paper Edge SVG */
  --torn-edge-bottom: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L2 3 L4 1 L6 4 L8 2 L10 5 L12 2 L14 4 L16 1 L18 4 L20 2 L22 5 L24 2 L26 4 L28 1 L30 4 L32 2 L34 5 L36 2 L38 4 L40 1 L42 4 L44 2 L46 5 L48 2 L50 4 L52 1 L54 4 L56 2 L58 5 L60 2 L62 4 L64 1 L66 4 L68 2 L70 5 L72 2 L74 4 L76 1 L78 4 L80 2 L82 5 L84 2 L86 4 L88 1 L90 4 L92 2 L94 5 L96 2 L98 4 L100 1 L100 20 L0 20 Z' fill='%23D4CFC7'/%3E%3C/svg%3E");
  
  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* Responsive Breakpoints */
@custom-media --mobile (max-width: 767px);
@custom-media --tablet (min-width: 768px) and (max-width: 1023px);
@custom-media --desktop (min-width: 1024px);
@custom-media --large (min-width: 1440px);
/* Base Styles - Tech Humanism with Paper Texture & Hand-drawn Feel */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    /* Paper texture overlay */
    background-image: var(--paper-texture);
    overflow-x: hidden;
}

/* Typography - Serif for Headings (Humanism) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin: 0;
    letter-spacing: var(--tracking-tight);
}

h1 {
    font-size: var(--text-5xl);
    line-height: 1.2;
}

h2 {
    font-size: var(--text-4xl);
    line-height: 1.3;
}

h3 {
    font-size: var(--text-3xl);
    line-height: 1.4;
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* Links - Minimal Styling */
a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.6;
    /* Simple opacity change instead of color */
}

/* Lists */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons - Minimal Reset */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    transition: opacity var(--transition-base);
}

button:hover {
    opacity: 0.6;
}

button:focus {
    outline: none;
}

/* Focus States - Minimal */
:focus-visible {
    outline: 1px solid var(--color-accent);
    outline-offset: 4px;
}

/* Selection - Pure Black */
::selection {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* Scrollbar Styling - Minimal */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: 0;
    /* No radius for pure minimalism */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border);
}

/* Smooth Scrolling with Offset */
html {
    scroll-padding-top: var(--space-8);
}/* Layout System - LANCH Pure Minimalist Split-Screen */

body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Fixed Left Column */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: clamp(var(--sidebar-width-min), var(--sidebar-width), var(--sidebar-width-max));
    height: 100vh;
    background-color: var(--color-bg);
    /* Pure white */
    border-right: var(--border-dotted);
    /* Dotted separator */
    z-index: var(--z-fixed);
    overflow-y: auto;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-8) var(--space-6);
}

/* Main Content - Scrollable Right Column */
.main-content {
    margin-left: clamp(var(--sidebar-width-min), var(--sidebar-width), var(--sidebar-width-max));
    flex: 1;
    width: calc(100% - clamp(var(--sidebar-width-min), var(--sidebar-width), var(--sidebar-width-max)));
    min-height: 100vh;
    background-color: var(--color-bg);
    /* Pure white */
}

/* Content Sections */
.content-section {
    min-height: 100vh;
    padding: var(--space-12) var(--space-8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.content-section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-6);
    border-bottom: var(--border-dotted);
    /* Dotted separator */
}

.section-number {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-2);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-tight);
}

/* Subsection Titles */
.subsection-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    margin-top: var(--space-16);
    letter-spacing: var(--tracking-tight);
}

/* Responsive Layout */
@media (max-width: 1023px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: var(--border-dotted);
    }

    .sidebar-inner {
        padding: var(--space-6) var(--space-4);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .content-section {
        padding: var(--space-10) var(--space-4);
    }

    .section-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 767px) {
    .content-section {
        padding: var(--space-8) var(--space-3);
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .subsection-title {
        font-size: var(--text-xl);
        margin-top: var(--space-10);
    }
}/* Component Styles - Tech Humanism with Collage & Torn Paper Effects */

/* ===== Torn Paper Edge Effect ===== */
.torn-edge {
    position: relative;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 98%,
        98% 99%,
        96% 97%,
        94% 99%,
        92% 96%,
        90% 98%,
        88% 96%,
        86% 98%,
        84% 96%,
        82% 98%,
        80% 96%,
        78% 98%,
        76% 96%,
        74% 98%,
        72% 96%,
        70% 98%,
        68% 96%,
        66% 98%,
        64% 96%,
        62% 98%,
        60% 96%,
        58% 98%,
        56% 96%,
        54% 98%,
        52% 96%,
        50% 98%,
        48% 96%,
        46% 98%,
        44% 96%,
        42% 98%,
        40% 96%,
        38% 98%,
        36% 96%,
        34% 98%,
        32% 96%,
        30% 98%,
        28% 96%,
        26% 98%,
        24% 96%,
        22% 98%,
        20% 96%,
        18% 98%,
        16% 96%,
        14% 98%,
        12% 96%,
        10% 98%,
        8% 96%,
        6% 98%,
        4% 96%,
        2% 98%,
        0% 97%
    );
}

.torn-edge-top {
    clip-path: polygon(
        0% 2%,
        2% 1%,
        4% 3%,
        6% 1%,
        8% 3%,
        10% 1%,
        12% 3%,
        14% 1%,
        16% 3%,
        18% 1%,
        20% 3%,
        22% 1%,
        24% 3%,
        26% 1%,
        28% 3%,
        30% 1%,
        32% 3%,
        34% 1%,
        36% 3%,
        38% 1%,
        40% 3%,
        42% 1%,
        44% 3%,
        46% 1%,
        48% 3%,
        50% 1%,
        52% 3%,
        54% 1%,
        56% 3%,
        58% 1%,
        60% 3%,
        62% 1%,
        64% 3%,
        66% 1%,
        68% 3%,
        70% 1%,
        72% 3%,
        74% 1%,
        76% 3%,
        78% 1%,
        80% 3%,
        82% 1%,
        84% 3%,
        86% 1%,
        88% 3%,
        90% 1%,
        92% 3%,
        94% 1%,
        96% 3%,
        98% 1%,
        100% 2%,
        100% 100%,
        0% 100%
    );
}

/* ===== Hand-drawn Border Effect ===== */
.hand-drawn-border {
    position: relative;
    border: 2px solid var(--color-text-primary);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    background-image: var(--paper-texture);
}

/* ===== Collage Layer Effect ===== */
.collage-layer {
    position: relative;
    box-shadow:
        8px 8px 0 rgba(26, 26, 26, 0.1),
        12px 12px 0 rgba(26, 26, 26, 0.05);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.collage-layer:hover {
    transform: translate(-2px, -2px);
    box-shadow:
        10px 10px 0 rgba(26, 26, 26, 0.12),
        16px 16px 0 rgba(26, 26, 26, 0.08);
}

/* ===== Sidebar Components ===== */

/* Brand */
.sidebar-brand {
    margin-bottom: var(--space-10);
}

.brand-logo {
    display: block;
}

.brand-name {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-wide);
}

.brand-title {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

/* Navigation Tabs - Minimal Text-Only */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-10);
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    transition: opacity var(--transition-base);
    position: relative;
}

.nav-tab::before {
    content: '·';
    position: absolute;
    left: -12px;
    font-size: var(--text-lg);
    color: var(--color-border);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-tab:hover {
    opacity: 0.6;
}

.nav-tab.active::before {
    opacity: 1;
    color: var(--color-accent);
}

.nav-number {
    font-size: var(--text-xs);
    font-weight: var(--font-regular);
    color: var(--color-text-tertiary);
    letter-spacing: var(--tracking-wider);
    min-width: 24px;
}

.nav-label {
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    color: var(--color-text-primary);
}

.nav-tab.active .nav-label {
    font-weight: var(--font-medium);
}

/* Language Toggle - Minimal */
.language-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-2) 0;
}

.lang-btn {
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    color: var(--color-text-tertiary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-btn:hover {
    color: var(--color-text-primary);
    opacity: 0.6;
}

.lang-btn.active {
    color: var(--color-text-primary);
    font-weight: var(--font-medium);
}

.lang-separator {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* CTA Links - Minimal Text Links */
.sidebar-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-6);
    border-top: var(--border-dotted);
}

.cta-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    transition: opacity var(--transition-base);
}

.cta-link:hover {
    opacity: 0.6;
}

.cta-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== Intro Section ===== */

.intro-content {
    max-width: 800px;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.intro-lead {
    font-size: var(--text-2xl);
    line-height: var(--leading-relaxed);
    font-weight: var(--font-regular);
    color: var(--color-text-primary);
}

.intro-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.intro-highlights {
    margin-top: var(--space-8);
}

.intro-highlights h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.highlight-list li {
    position: relative;
    padding-left: var(--space-6);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.highlight-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-text-tertiary);
}

/* ===== Works Section ===== */

/* Filter Controls - Minimal Pills */
.works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-10);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    color: var(--color-text-secondary);
    background-color: transparent;
    transition: opacity var(--transition-base);
    text-decoration: underline;
    text-decoration-color: transparent;
}

.filter-btn:hover {
    opacity: 0.6;
}

.filter-btn.active {
    color: var(--color-text-primary);
    font-weight: var(--font-medium);
    text-decoration-color: var(--color-accent);
}

/* Works Grid - Clean Cards */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    border: none;
    border-radius: 0;
    background-color: var(--color-bg-secondary);
    transition: opacity var(--transition-base);
    cursor: pointer;
}

.project-card:hover {
    opacity: 0.8;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
}

.project-summary {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.project-tag {
    padding: var(--space-1) var(--space-2);
    background-color: var(--color-bg);
    border-radius: 0;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    font-weight: var(--font-regular);
}

.project-info {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    margin-top: var(--space-2);
}

/* Project Modal - Minimal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.95);
    animation: fadeIn var(--transition-base);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background-color: var(--color-bg);
    border: var(--border-dotted);
    border-radius: 0;
    overflow: hidden;
    animation: fadeIn var(--transition-slow);
}

.modal-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    z-index: 1;
    transition: opacity var(--transition-base);
}

.modal-close:hover {
    opacity: 0.6;
}

.modal-body {
    padding: var(--space-10);
    overflow-y: auto;
    max-height: 90vh;
}

/* ===== Blog Section ===== */

/* Featured Articles - Clean List */
.featured-articles {
    display: grid;
    gap: var(--space-12);
}

.featured-article {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding-bottom: var(--space-12);
    border-bottom: var(--border-dotted);
}

.featured-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Article Header */
.article-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Article Hero Image - Vibrant Impressionist */
.article-hero-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    margin-bottom: var(--space-6);
    background-color: var(--color-bg-secondary);
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* No filters - preserve vibrant colors */
}

/* Section Hero Image - For Media Articles */
.section-hero-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    margin: var(--space-6) 0 var(--space-10) 0;
    background-color: var(--color-bg-secondary);
}

.section-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* No filters - preserve vibrant colors */
}

.article-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.article-date {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    letter-spacing: var(--tracking-wide);
}

.article-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-tight);
}

/* Article Content - Long-form Typography */
.article-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.article-lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    font-weight: var(--font-regular);
    padding-left: var(--space-4);
    border-left: 2px solid var(--color-accent);
}

.article-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.article-section h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: var(--tracking-tight);
}

.article-section p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.article-conclusion {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    font-weight: var(--font-medium);
    font-style: italic;
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    border-top: var(--border-dotted);
}

.article-excerpt {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-accent);
    margin-top: var(--space-2);
    transition: opacity var(--transition-base);
}

.article-link:hover {
    opacity: 0.6;
}

/* Media Articles - Simpler Layout with Background Images */
.media-articles {
    display: grid;
    gap: var(--space-6);
}

.media-article {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background-color: var(--color-bg);
    border: var(--border-dotted);
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
}

/* Background Image for Media Articles */
.media-article::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/media_landscape_vibrant_1768580214891.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.media-article:hover::before {
    opacity: 0.15;
}

.media-article:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Ensure content is above background */
.media-article>* {
    position: relative;
    z-index: 1;
}

.media-article .article-title {
    font-size: var(--text-xl);
    transition: color var(--transition-base);
}

.media-article:hover .article-title {
    color: var(--color-accent);
}

.media-article .article-excerpt {
    font-size: var(--text-sm);
}

.media-article .article-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-accent);
    transition: opacity var(--transition-base);
}

.media-article:hover .article-link {
    opacity: 0.7;
}

/* Thoughts List - Minimal */
.thoughts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.thought-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background-color: var(--color-bg-secondary);
    border-left: 2px solid var(--color-accent);
    border-radius: 0;
}

.thought-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
}

.thought-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* Social Links - Text-Only Style */
.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border: none;
    border-bottom: var(--border-dotted);
    border-radius: 0;
    background-color: transparent;
    transition: opacity var(--transition-base);
}

.social-link:last-child {
    border-bottom: none;
}

.social-link:hover {
    opacity: 0.6;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.social-name {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
}

.social-handle {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.social-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition-base);
}

.social-link:hover .social-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* WeChat Modal - Minimal */
.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.wechat-modal.active {
    display: flex;
}

.wechat-qr {
    text-align: center;
    padding: var(--space-8);
}

.wechat-qr h3 {
    margin-bottom: var(--space-6);
}

.qr-placeholder {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    border: var(--border-dotted);
    border-radius: 0;
    color: var(--color-text-tertiary);
}

/* Project Detail Styles */
.project-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.project-detail-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border-light);
}

.case-study {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.case-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.case-section h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
}

.case-section p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 1023px) {
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .nav-tab {
        flex-shrink: 0;
    }

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

@media (max-width: 767px) {
    .intro-lead {
        font-size: var(--text-xl);
    }

    .intro-body {
        font-size: var(--text-base);
    }

    .modal-body {
        padding: var(--space-6);
    }

    .case-section h3 {
        font-size: var(--text-lg);
    }
}/* ===== Photo Gallery - Feishu Document Style ===== */

/* Section Subtitle */
.section-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-tertiary);
    font-style: italic;
    margin-top: var(--space-2);
    letter-spacing: var(--tracking-wide);
}

/* Gallery Grid - Clean & Organized */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

/* Gallery Item - Card Style */
.gallery-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Gallery Image Container */
.gallery-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-bg-secondary);
    cursor: pointer;
    transition: opacity var(--transition-base);
}

.gallery-image:hover {
    opacity: 0.88;
}

/* Gallery Images - Premium Treatment */
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* Subtle filter for premium look */
    filter: brightness(1.02) contrast(0.92) saturate(0.88);
    transition: filter var(--transition-smooth);
}

.gallery-image:hover img {
    filter: brightness(1.04) contrast(0.94) saturate(0.90);
}

/* Gallery Caption */
.gallery-caption {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    padding: 0 var(--space-1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .gallery-image {
        aspect-ratio: 16 / 9;
    }
}/* Animations - LANCH Pure Minimalist - Subtle Only */

/* Fade In - Primary Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animation Classes - Minimal */
.fade-in {
    animation: fadeIn var(--transition-slow) var(--ease-out) forwards;
}

.fade-in-up {
    animation: fadeIn var(--transition-slow) var(--ease-out) forwards;
}

/* Stagger Animation Delays - Subtle */
.fade-in-up:nth-child(1) {
    animation-delay: 0ms;
}

.fade-in-up:nth-child(2) {
    animation-delay: 50ms;
}

.fade-in-up:nth-child(3) {
    animation-delay: 100ms;
}

.fade-in-up:nth-child(4) {
    animation-delay: 150ms;
}

.fade-in-up:nth-child(5) {
    animation-delay: 200ms;
}

.fade-in-up:nth-child(6) {
    animation-delay: 250ms;
}

/* Scroll Reveal - Fade Only */
.reveal {
    opacity: 0;
    transition: opacity var(--transition-slow) var(--ease-out);
}

.reveal.active {
    opacity: 1;
}

/* Smooth Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Respect User's Motion Preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}