/* ========================================
   styles.css - Revision 21.0
   Institutional Authority: Editorial Depth Edition
   
   Core Design Philosophy:
   - 紙幣や石の物質感を持つテクスチャ
   - 非対称エディトリアルレイアウト
   - 物理的重量感を伴うマイクロインタラクション
   - ベースライン調整された精密な組版
   ======================================== */

:root {
    /* Brand Colors: Deep, Authoritative */
    --primary-dark: #0f1215;        /* Deep navy-black with blue undertone */
    --primary-darker: #080a0d;      /* Even deeper for contrast */
    --primary-light: #1a1a1a;       /* For text */
    
    --accent-red: #6b3e36;          /* Aged red: authority, not alarm */
    --accent-red-hover: #5a3430;    /* Darker hover state */
    
    --neutral-gray-1: #faf9f7;      /* Premium off-white (paper-like) */
    --neutral-gray-2: #f5f3f0;      /* Slightly darker off-white */
    --neutral-gray-3: #ebe8e4;      /* Light neutral gray */
    --neutral-gray-4: #d3d0cc;      /* Mid-tone gray */
    --neutral-gray-5: #8d8a86;      /* Dark gray for body text */
    --neutral-gray-6: #5f5c58;      /* Very dark gray */
    
    --text-primary: #2a2a2a;
    --text-secondary: #6b6b6b;
    --border-color: rgba(0, 0, 0, 0.08);  /* Ultra-thin border */
    
    /* Texture & Depth */
    --noise-opacity-light: 0.04;
    --noise-opacity-heavy: 0.08;
    
    /* Typography (consolidated) */
    --font-display: 'Playfair Display', serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Spacing */
    --section-gap: 180px;
    --section-gap-small: 120px;
    
    /* Easing: Heavy Motion */
    --ease-heavy: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.8;
    background-color: var(--neutral-gray-1);
    overflow-x: hidden;
    position: relative;
}

/* Premium Texture Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0 0 0 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* Material depth: layered radial gradients + subtle noise overlays */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.00) 120px),
        radial-gradient(circle at 90% 80%, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.00) 220px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.00) 360px),
        linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
    background-repeat: no-repeat;
    mix-blend-mode: soft-light;

    /* subtle fiber noise painted on with pseudo-element layering fallback */
    box-shadow: inset 0 0 180px rgba(0,0,0,0.02);
}

/* Fine-grain noise overlay (separate layer for better control) */
body::after {
    content: '';
    position: fixed;
    inset: 0 0 0 0;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='t'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23t)' opacity='0.06'/%3E%3C/svg%3E");
    opacity: var(--noise-opacity-light);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Ensure content sits above texture */
main, header, footer, .container { position: relative; z-index: 2; }

/* Typography Hierarchy - Professional Edition */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    /* Tight kerning for authority */
    letter-spacing: -0.02em;
    color: var(--primary-dark);
    text-rendering: optimizeLegibility;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: -0.015em;
}

p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
}

small, .text-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

section {
    padding: var(--section-gap) 0;
}

/* Buttons - Heavy Motion Edition */
.btn {
    display: inline-block;
    padding: 14px 40px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.5s var(--ease-heavy);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: left 0.5s var(--ease-heavy);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--neutral-gray-1);
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(107, 62, 54, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--neutral-gray-2);
    transform: translateY(-3px);
}

/* Header with Mega Menu Support */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(249, 248, 247, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 0.5px solid var(--border-color);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.5s var(--ease-heavy), transform 0.5s var(--ease-heavy);
}

.logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.9;
    transition: filter 0.5s var(--ease-heavy), opacity 0.5s var(--ease-heavy);
}

.footer-logo:hover .logo-img-footer {
    filter: grayscale(0%);
    opacity: 1;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav a {

/* High-density micro metadata */
.meta-dense {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    display: inline-block;
}

.meta-inline { margin-right: 10px; font-weight: 600; color: var(--neutral-gray-6); }

/* Ensure insight cards can host absolute micro metadata */
.insight-card { position: relative; }

/* Editorial section divider with section number */
.section-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 0;
    color: var(--neutral-gray-5);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    opacity: 0.85;
}
.section-divider::before{
    content: '';
    display:block;
    height:1px;
    background: rgba(0,0,0,0.06);
    flex:1 1 auto;
}
.section-divider .section-num {
    flex: 0 0 auto;
    font-family: var(--font-sans);
    font-weight:700;
    opacity:0.8;
    margin-left:8px;
}

/* Numeric / tabular figures for trust & data readability */
.num, .insight-date {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0;
}

/* Data-art canvas placeholder */
.data-art-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: 6px;
    overflow: hidden;
    isolation: isolate;
}

#data-art-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Insight Grid: Asymmetrical editorial layout */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
    gap: 28px 28px;
    align-items: start;
}

.insight-card {
    background: transparent;
    color: var(--text-primary);
    display: block;
    position: relative;
}

.insight-card--featured {
    grid-column: 1 / span 7;
    grid-row: span 2;
    align-self: stretch;
}

.insight-card:not(.insight-card--featured) {
    grid-column: auto / span 5;
}

.insight-image {
    width: 100%;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0f1112;
    position: relative;
}

.insight-image .image-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
}

.insight-content {
    margin-top: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    padding: 8px 0 0 0;
}

/* Hidden state used by FLIP filter */
.insight-card.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.98); }

/* Responsive stack on small screens */
@media (max-width: 900px) {
    .insight-grid { grid-template-columns: 1fr; }
    .insight-card--featured, .insight-card { grid-column: 1 / -1; }
    .insight-image { height: 220px; }
}

/* Accordion: heavy, spring-like feel via CSS fallback for performance */
.accordion-item { border-top: 1px solid rgba(0,0,0,0.04); }
.accordion-header {
    padding: 18px 0; cursor: pointer; display:flex; justify-content:space-between; align-items:center; font-weight:600;
}
.accordion-body { overflow: hidden; max-height: 0; transition: max-height 700ms var(--ease-elastic); }
.accordion-item.is-open .accordion-body { /* JS will compute max-height inline for precision */ }

/* Small utility for heavy motion */
.motion-heavy { transition: transform 850ms var(--ease-heavy), opacity 650ms var(--ease-heavy); }
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.5s var(--ease-heavy);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 0.5px;
    background: var(--accent-red);
    transition: width 0.5s var(--ease-heavy);
}

.nav a:hover {
    color: var(--accent-red);
}

.nav a:hover::after {
    width: 100%;
}

/* Mega Menu */
.nav .nav-has-mega { position: relative; }
.mega-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100vw;
    transform: translateY(12px) scaleY(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-heavy), transform 0.6s var(--ease-heavy);
    background: linear-gradient(180deg, rgba(15,18,21,0.98), rgba(15,18,21,0.98));
    border-top: 0.5px solid var(--border-color);
}
.mega-inner {
    display: flex;
    gap: 48px;
    padding: 48px 48px;
}
.mega-column h4 { color: var(--neutral-gray-1); margin-bottom: 12px; }
.mega-column ul { list-style: none; padding: 0; margin: 0; }
.mega-column li { margin-bottom: 10px; }
.mega-column a { color: rgba(255,255,255,0.85); text-decoration: none; }
.nav .nav-has-mega:hover .mega-menu,
.nav .nav-has-mega:focus-within .mega-menu {
    opacity: 1; pointer-events: auto; transform: translateY(0) scaleY(1);
}

/* Fade-up class for IntersectionObserver (slow, heavy) */
.fade-up {
    opacity: 0;
    transform: translateY(80px);
    animation: fadeInUp 0.85s var(--ease-heavy) forwards;
}

/* Parallax: image-inner within insight-image to move slightly */
.insight-image .image-inner { will-change: transform; transform: translateY(0); transition: transform 0.9s var(--ease-heavy); }

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: var(--section-gap);
    background-color: var(--neutral-gray-1);
    border-bottom: 0.5px solid var(--border-color);
}

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

.hero h1 {
    margin-bottom: 40px;
    animation: slideInUp 0.8s var(--ease-heavy) forwards;
}

.hero-lead {
    font-size: 1.1rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    max-width: 700px;
    animation: slideInUp 0.8s var(--ease-heavy) 0.1s forwards;
    opacity: 0;
}

.hero-lead strong {
    color: var(--accent-red);
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s var(--ease-heavy) 0.2s forwards;
    opacity: 0;
}

.pain-points {
    border-left: 1px solid var(--accent-red);
    padding-left: 32px;
    margin-bottom: 60px;
}

.pain-points h3 {
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.pain-points li {
    list-style: none;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.pain-points li:before {
    content: '→ ';
    color: var(--accent-red);
    margin-right: 8px;
}

/* Data Art Background - Sophisticated Geometric Patterns */
.data-art-bg {
    position: relative;
    background: linear-gradient(135deg, #0f1215 0%, #1a1a2a 50%, #0f1215 100%);
    overflow: hidden;
    min-height: 250px;
    opacity: 0.95;
}

.data-art-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Hexagonal grid pattern */
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,0 L60,15 L60,45 L30,60 L0,45 L0,15 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cpath d='M30,10 L50,20 L50,40 L30,50 L10,40 L10,20 Z' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3C/svg%3E"),
        /* Wave pattern */
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 6px);
    pointer-events: none;
}

.data-art-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Concentric circles (radial noise) */
        radial-gradient(circle at 20% 30%, rgba(107, 62, 54, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 62, 54, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Insights Section */
.insights {
    padding: var(--section-gap) 0;
    background-color: var(--neutral-gray-1);
    border-bottom: 0.5px solid var(--border-color);
}

.section-header {
    margin-bottom: 100px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-header h2 {
    margin: 0;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Filter UI */
.filter-ui {
    display: flex;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-tag {
    background: transparent;
    border: 0.5px solid var(--border-color);
    padding: 8px 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.5s var(--ease-heavy);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-dark);
    color: var(--neutral-gray-1);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Asymmetric Bento Grid - Editorial Layout */
.insight-grid {
    display: grid;
    grid-template-columns: 1fr 0.618fr 0.382fr; /* Golden-ish columns for editorial balance */
    gap: 32px;
    grid-auto-rows: auto;
    margin-bottom: 80px;
}

.insight-card {
    background: linear-gradient(180deg, var(--neutral-gray-1), var(--neutral-gray-3));
    border: 0.5px solid var(--border-color);
    transition: transform 0.75s var(--ease-heavy), box-shadow 0.6s var(--ease-heavy), border-color 0.5s var(--ease-heavy);
    display: block;
    overflow: hidden;
    position: relative;
}

/* Featured occupies left column, list items occupy right two columns */
.insight-card--featured {
    grid-column: 1 / span 1;
}

.insight-list {
    grid-column: 2 / span 2;
    display: grid;
    gap: 20px;
}

.insight-card--compact {
    padding: 20px;
    border-left: 3px solid rgba(0,0,0,0.03);
}

.insight-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}

.insight-image {
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    will-change: transform;
}

.insight-card--featured .insight-image {
    height: 360px;
}

.insight-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
}

.insight-cat {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.insight-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin: 0 0 16px;
    line-height: 1.3;
    color: var(--primary-dark);
}

.insight-card:first-child .insight-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.insight-summary {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.archive-link {
    display: inline-block;
    margin-top: 60px;
    padding: 14px 40px;
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.5s var(--ease-heavy);
    position: relative;
    overflow: hidden;
}

.archive-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
    transform: translateY(-50%);
    transition: left 0.5s var(--ease-heavy);
}

.archive-link:hover {
    background: var(--primary-dark);
    color: var(--neutral-gray-1);
    transform: translateY(-2px);
}

.archive-link:hover::before {
    left: 100%;
}

/* Philosophy Section */
.philosophy {
    background-color: var(--primary-dark);
    color: var(--neutral-gray-1);
    padding: var(--section-gap) 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.philosophy .section-header {
    border-top-color: rgba(255,255,255,0.2);
}

.philosophy .section-header h2 {
    color: var(--neutral-gray-1);
}

.philosophy .section-header p {
    color: rgba(255,255,255,0.6);
}

.theory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.theory-card {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: all 0.5s var(--ease-heavy);
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-heavy) forwards;
}

.theory-card:nth-child(1) { animation-delay: 0.1s; }
.theory-card:nth-child(2) { animation-delay: 0.2s; }
.theory-card:nth-child(3) { animation-delay: 0.3s; }
.theory-card:nth-child(4) { animation-delay: 0.4s; }

.theory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s var(--ease-heavy);
    z-index: 1;
}

.theory-card:hover::before {
    left: 100%;
}

.theory-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.theory-visual {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.theory-body {
    padding: 32px;
}

.theory-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--neutral-gray-1);
    margin-bottom: 16px;
    line-height: 1.3;
}

.theory-summary {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1.7;
}

.theory-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--neutral-gray-1);
    border-bottom: 1px solid var(--accent-red);
    transition: all 0.5s var(--ease-heavy);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.theory-card:hover .theory-link {
    color: var(--accent-red);
    padding-right: 8px;
}

/* ========================================
   CSS Generative Art: Insight & Philosophy
   Institutional Gradient Patterns
   ======================================== */

/* Market Structure: Layered radials with tech gradient */
.art-market {
    background: 
        radial-gradient(circle at 100% 0%, rgba(100,200,255,0.12) 0%, transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(107,62,54,0.08) 0%, transparent 55%),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.04) 12px, rgba(255,255,255,0.04) 13px),
        linear-gradient(135deg, #0a101f 0%, #1a2a4a 100%);
    background-attachment: fixed;
    position: relative;
}

.art-market::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        conic-gradient(from 0deg at 100% 50%, rgba(100,200,255,0.06) 0deg, transparent 90deg, transparent 270deg, rgba(100,200,255,0.06) 360deg),
        radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

/* Decision Theory: Quantum-inspired interference pattern */
.art-decision {
    background:
        radial-gradient(circle at 30% 40%, rgba(74,150,180,0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(255,200,100,0.08) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 9px),
        repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(255,255,255,0.02) 8px, rgba(255,255,255,0.02) 9px),
        linear-gradient(120deg, #0f1419 0%, #1a1f2e 50%, #0f1724 100%);
    background-attachment: fixed;
    position: relative;
}

.art-decision::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%),
        linear-gradient(45deg, transparent 0%, rgba(100,150,200,0.04) 25%, transparent 50%, rgba(100,150,200,0.04) 75%, transparent 100%);
    pointer-events: none;
}

/* Risk Management: Chaotic but structured noise */
.art-risk {
    background:
        radial-gradient(circle at 20% 30%, rgba(200,80,60,0.12) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(80,40,120,0.10) 0%, transparent 45%),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.035) 10px, rgba(255,255,255,0.035) 11px),
        repeating-radial-gradient(circle at 50% 50%, transparent 0px, transparent 50px, rgba(255,255,255,0.01) 50px, rgba(255,255,255,0.01) 52px),
        linear-gradient(110deg, #1a0f0f 0%, #2a1414 50%, #0f1619 100%);
    background-attachment: fixed;
    position: relative;
}

.art-risk::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 45deg at 50% 50%, rgba(200,80,60,0.03) 0deg, transparent 90deg, transparent 270deg, rgba(200,80,60,0.03) 360deg),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
}

/* Philosophy Gradients: Thematic Authority Colors */

/* Red: Radical Transparency */
.grad-red {
    background:
        radial-gradient(circle at 100% 0%, rgba(150,80,70,0.25) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(100,50,50,0.15) 0%, transparent 60%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 11px),
        linear-gradient(135deg, #6b3e36 0%, #4a2a25 50%, #3a1f1a 100%);
    position: relative;
    overflow: hidden;
}

.grad-red::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 0deg at 50% 0%, rgba(255,200,180,0.08) 0deg, transparent 180deg, rgba(255,200,180,0.08) 360deg),
        radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Blue: Observation & Interpretation */
.grad-blue {
    background:
        radial-gradient(circle at 80% 20%, rgba(100,140,200,0.20) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(60,100,150,0.12) 0%, transparent 55%),
        repeating-linear-gradient(60deg, transparent, transparent 9px, rgba(255,255,255,0.025) 9px, rgba(255,255,255,0.025) 10px),
        repeating-linear-gradient(-60deg, transparent, transparent 9px, rgba(255,255,255,0.015) 9px, rgba(255,255,255,0.015) 10px),
        linear-gradient(150deg, #2a4a6a 0%, #1a3a5a 50%, #1a2a4a 100%);
    position: relative;
    overflow: hidden;
}

.grad-blue::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 90deg at 100% 50%, rgba(150,180,220,0.06) 0deg, transparent 120deg, transparent 240deg, rgba(150,180,220,0.06) 360deg),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.04) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Green: Thinking in Distributions */
.grad-green {
    background:
        radial-gradient(circle at 70% 30%, rgba(80,150,120,0.18) 0%, transparent 48%),
        radial-gradient(circle at 30% 70%, rgba(60,120,100,0.10) 0%, transparent 52%),
        repeating-linear-gradient(30deg, transparent, transparent 11px, rgba(255,255,255,0.025) 11px, rgba(255,255,255,0.025) 12px),
        repeating-linear-gradient(-30deg, transparent, transparent 11px, rgba(255,255,255,0.018) 11px, rgba(255,255,255,0.018) 12px),
        linear-gradient(140deg, #1a4a3a 0%, #1a3a2a 50%, #0f2a1a 100%);
    position: relative;
    overflow: hidden;
}

.grad-green::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(150,200,170,0.05) 0%, transparent 65%),
        linear-gradient(45deg, transparent 0%, rgba(100,150,120,0.03) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Gold: Systematized Feedback */
.grad-gold {
    background:
        radial-gradient(circle at 60% 40%, rgba(200,160,80,0.22) 0%, transparent 46%),
        radial-gradient(circle at 40% 60%, rgba(180,140,60,0.12) 0%, transparent 54%),
        repeating-linear-gradient(75deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 11px),
        repeating-linear-gradient(-75deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 11px),
        linear-gradient(125deg, #5a4a2a 0%, #4a3a1a 50%, #3a2a0a 100%);
    position: relative;
    overflow: hidden;
}

.grad-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 180deg at 50% 100%, rgba(255,220,140,0.08) 0deg, transparent 120deg, transparent 240deg, rgba(255,220,140,0.08) 360deg),
        radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,0.06) 100%);
    pointer-events: none;
    z-index: 1;
}
}

/* References Section */
.references-section {
    margin-top: var(--section-gap);
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.references-section h3 {
    font-size: 1.25rem;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.reference-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
}

.reference-list li {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    padding-left: 24px;
    position: relative;
}

.reference-list li:before {
    content: '[' attr(data-index) ']';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Methodology Section */
.methodology {
    padding: var(--section-gap) 0;
    border-bottom: 0.5px solid var(--border-color);
}

.tech-accordion {
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    padding: 32px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-dark);
    transition: color 0.5s var(--ease-heavy);
}

.accordion-header:hover {
    color: var(--accent-red);
}

.accordion-body {
    padding-bottom: 32px;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s var(--ease-heavy);
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tech-tag {
    background: var(--neutral-gray-2);
    padding: 16px;
    font-size: 0.9rem;
    border-left: 1px solid var(--accent-red);
    line-height: 1.6;
}

/* Closing Section */
.closing {
    padding: var(--section-gap) 0 !important;
    background-color: var(--neutral-gray-2) !important;
    border-bottom: 0.5px solid var(--border-color) !important;
}

.closing h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 40px;
}

/* Contact Form */
#contact {
    padding: var(--section-gap) 0 !important;
}

#contact h2 {
    margin-bottom: 50px;
    font-size: 2rem;
}

.contact-form .form-group {
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 0.5px solid var(--border-color);
    background: var(--neutral-gray-1);
    font-family: var(--font-serif);
    font-size: 1rem;
    transition: all 0.5s var(--ease-heavy);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: inset 0 0 0 3px rgba(107, 62, 54, 0.1);
}

/* Footer */
.footer {
    background-color: var(--neutral-gray-2);
    padding: 100px 0 60px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 0.5px solid var(--border-color);
}

.footer .logo {
    color: var(--text-secondary);
}

.footer a {
    color: inherit;
    transition: color 0.5s var(--ease-heavy);
}

.footer a:hover {
    color: var(--accent-red);
}

.footer-links a {
    margin: 0 10px;
}

/* Legal Block */
.legal-block {
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    padding-top: 40px;
    font-size: 0.8rem;
    color: #999999;
    text-align: left;
    line-height: 1.75;
}

.legal-block p {
    margin-bottom: 16px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
}

.legal-block strong {
    color: #666666;
    font-weight: 600;
}

.legal-block a {
    color: #666666;
    text-decoration: underline;
    transition: color 0.5s var(--ease-heavy);
}

.legal-block a:hover {
    color: var(--accent-red);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    color: var(--neutral-gray-1);
    padding: 24px 48px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner p {
    margin: 0;
    font-family: var(--font-serif);
}

.cookie-banner .btn {
    background-color: var(--neutral-gray-1);
    color: var(--primary-dark);
    padding: 10px 24px;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.5s var(--ease-heavy);
}

.cookie-banner .btn:hover {
    background-color: var(--accent-red);
    color: var(--neutral-gray-1);
}

/* Responsive */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Observer Animation Classes */
.observe-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-heavy) forwards;
}

@media (max-width: 1024px) {
    .hero-grid,
    .section-header {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .insight-grid {
        grid-auto-rows: 280px;
    }

    .insight-card:first-child {
        grid-column: span 12;
        grid-row: span 1;
    }

    .insight-card:nth-child(2),
    .insight-card:nth-child(3) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 32px;
    }

    section {
        padding: var(--section-gap-small) 0;
    }

    .header-inner {
        padding: 0 32px;
    }

    .nav ul {
        gap: 24px;
    }

    .hero {
        padding-top: 120px;
    }

    .insight-grid {
        grid-auto-rows: auto;
        gap: 24px;
    }

    .insight-card,
    .insight-card:first-child,
    .insight-card:nth-child(2),
    .insight-card:nth-child(3) {
        grid-column: span 12;
        grid-row: auto;
    }

    .insight-card:first-child .insight-image {
        height: auto;
        min-height: 200px;
    }

    .section-header {
        margin-bottom: 60px;
    }

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

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 24px;
    }

    .header-inner {
        padding: 0 24px;
    }

    .nav ul {
        gap: 16px;
        font-size: 0.75rem;
    }

    h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

    .cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Modal Styles for Insights */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-content {
    background: var(--neutral-gray-1);
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s var(--ease-heavy);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-heavy);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal-close:hover {
    background: var(--accent-red);
    color: var(--neutral-gray-1);
    transform: rotate(90deg);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-header {
    padding: 60px 60px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    color: var(--primary-dark);
    margin: 0 0 16px;
}

.modal-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.modal-body {
    padding: 40px 60px 60px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.modal-body p {
    margin-bottom: 20px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        margin: 20px;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 40px 30px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
