/*
 * METRIX — V1 "Refined Architectural Elegance"
 * Warm parchment · architectural drawing · understated precision
 * Inspired by premium architecture & engineering consultancies
 * /?v=1
 */

/* ═══════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
[data-theme="v1"] {
    --slate:          #F5F0E8;   /* warm parchment */
    --slate-800:      #EFE9DC;   /* stone */
    --slate-700:      #E3DBCb;   /* deeper stone */
    --slate-600:      #D4C9B4;   /* darkest stone */
    --amber:          #A8722E;   /* architectural amber — warmer, earthier */
    --amber-light:    #BF8840;
    --terracotta:     #B04A1A;
    --rule:           rgba(26,18,8,0.07);
    --rule-amber:     rgba(168,114,46,0.22);
    --text-muted:     #786450;
    --text-dim:       #9C8470;
}

/* ═══════════════════════════════════════
   BASE
═══════════════════════════════════════ */
[data-theme="v1"] body {
    background: #FAFAF6;
    color: #1A1206;
}

/* ═══════════════════════════════════════
   BLUEPRINT — PARCHMENT PAPER GRID
═══════════════════════════════════════ */
[data-theme="v1"] .blueprint-bg {
    background-color: #F2EDE2;
    background-image:
        linear-gradient(rgba(26,18,8,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,18,8,0.05) 1px, transparent 1px),
        linear-gradient(rgba(26,18,8,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,18,8,0.025) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

/* ═══════════════════════════════════════
   HERO SVG → ARCHITECTURAL PENCIL DRAWING
   White fills/strokes → warm charcoal ink on parchment
═══════════════════════════════════════ */
[data-theme="v1"] .hero-svg [stroke*="255,255,255"] { stroke: rgba(26,18,8,0.15) !important; }
[data-theme="v1"] .hero-svg [fill*="255,255,255"]   { fill:   rgba(26,18,8,0.04) !important; }
[data-theme="v1"] .hero-svg text                    { fill:   rgba(26,18,8,0.45) !important; }
/* Preserve amber annotations */
[data-theme="v1"] .hero-svg text[fill*="217,119,6"] { fill:   rgba(168,114,46,0.75) !important; }
[data-theme="v1"] .hero-svg text[fill*="217"]       { fill:   rgba(168,114,46,0.75) !important; }

/* ═══════════════════════════════════════
   GLASS NAV — WARM CREAM
═══════════════════════════════════════ */
[data-theme="v1"] .glass {
    background: rgba(250,250,246,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26,18,8,0.07);
    box-shadow: 0 1px 20px rgba(26,18,8,0.04);
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
[data-theme="v1"] .nav-link               { color: rgba(26,18,8,0.48); }
[data-theme="v1"] .nav-link:hover,
[data-theme="v1"] .nav-link.active        { color: #1A1206; }
[data-theme="v1"] .nav-link::after        { background: #A8722E; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
[data-theme="v1"] .btn-amber              { background: #A8722E; color: #FDFCF8; }
[data-theme="v1"] .btn-amber:hover        { background: #BF8840; }
[data-theme="v1"] .btn-ghost              { color: rgba(26,18,8,0.60); border-color: rgba(26,18,8,0.16); }
[data-theme="v1"] .btn-ghost:hover        { color: #1A1206; border-color: rgba(26,18,8,0.32); background: rgba(26,18,8,0.03); }
[data-theme="v1"] .btn-slate              { background: #EFE9DC; color: #1A1206; border-color: rgba(26,18,8,0.1); }

/* ═══════════════════════════════════════
   HERO ELEMENTS
═══════════════════════════════════════ */
[data-theme="v1"] .hero-amp               { color: rgba(26,18,8,0.18) !important; }
[data-theme="v1"] .kpi-value              { color: #A8722E; }
[data-theme="v1"] .kpi-label              { color: #786450; }

/* ═══════════════════════════════════════
   PIPELINE — WARM STONE STEPS
═══════════════════════════════════════ */
[data-theme="v1"] .pipeline               { border-top-color: rgba(26,18,8,0.07); }
[data-theme="v1"] .pipeline-step          { border-right-color: rgba(26,18,8,0.07); }
[data-theme="v1"] .pipeline-step::before  { background: #A8722E; }
[data-theme="v1"] .pipeline-step:hover    { background: rgba(168,114,46,0.05); }
[data-theme="v1"] .pipeline-step .step-title       { color: rgba(26,18,8,0.80); }
[data-theme="v1"] .pipeline-step:hover .step-title { color: #1A1206; }
[data-theme="v1"] .pipeline-step .step-detail      { color: rgba(26,18,8,0.42); }

/* ═══════════════════════════════════════
   PROJECT TILES — WHITE CARD, WARM SHADOW
═══════════════════════════════════════ */
[data-theme="v1"] .proj-tile {
    background: #FDFCF8;
    border: 1px solid rgba(26,18,8,0.08);
    box-shadow: 0 2px 16px rgba(26,18,8,0.06), 0 1px 3px rgba(26,18,8,0.04);
}
[data-theme="v1"] .proj-tile:hover {
    border-color: rgba(168,114,46,0.35);
    box-shadow: 0 6px 32px rgba(26,18,8,0.10), 0 2px 6px rgba(26,18,8,0.06);
    transform: translateY(-2px);
}
[data-theme="v1"] .proj-cat-badge {
    background: rgba(168,114,46,0.10);
    border-color: rgba(168,114,46,0.22);
    color: #A8722E;
}
[data-theme="v1"] .proj-scope-tag {
    background: rgba(26,18,8,0.04);
    border-color: rgba(26,18,8,0.09);
    color: #786450;
}

/* ═══════════════════════════════════════
   CONCOURS CARDS
═══════════════════════════════════════ */
[data-theme="v1"] .concours-card {
    background: #FDFCF8;
    border-color: rgba(26,18,8,0.08);
    box-shadow: 0 2px 16px rgba(26,18,8,0.06);
}
[data-theme="v1"] .concours-card:hover    { border-color: rgba(168,114,46,0.35); }
[data-theme="v1"] .concours-bar-top       { background: #A8722E; }

/* ═══════════════════════════════════════
   SERVICE ROWS
═══════════════════════════════════════ */
[data-theme="v1"] .service-row            { border-bottom-color: rgba(26,18,8,0.07); }
[data-theme="v1"] .service-row:hover      { background: rgba(168,114,46,0.04); }
[data-theme="v1"] .service-row:hover .sr-title { color: #A8722E; }
[data-theme="v1"] .service-row:hover .sr-arrow { color: #A8722E; }
[data-theme="v1"] .sr-num                 { color: rgba(168,114,46,0.55); }
[data-theme="v1"] .sr-desc                { color: #786450; }

/* ═══════════════════════════════════════
   FILTER BUTTONS
═══════════════════════════════════════ */
[data-theme="v1"] .filter-btn             { border-color: rgba(26,18,8,0.11); color: #786450; }
[data-theme="v1"] .filter-btn:hover,
[data-theme="v1"] .filter-btn.active      { background: rgba(168,114,46,0.09); border-color: rgba(168,114,46,0.3); color: #A8722E; }

/* ═══════════════════════════════════════
   FOUNDER SECTION
═══════════════════════════════════════ */
[data-theme="v1"] .founder-overlay        { background: linear-gradient(0deg,rgba(239,233,220,0.96) 0%,transparent 100%) !important; }
[data-theme="v1"] .founder-corner-tl,
[data-theme="v1"] .founder-corner-br      { border-color: #A8722E; }
[data-theme="v1"] .founder-badge          { border-color: rgba(168,114,46,0.28); background: rgba(168,114,46,0.05); }
[data-theme="v1"] .founder-badge:hover    { border-color: rgba(168,114,46,0.5); background: rgba(168,114,46,0.1); }

/* ═══════════════════════════════════════
   FLOAT BAR
═══════════════════════════════════════ */
[data-theme="v1"] .float-bar {
    background: rgba(250,250,246,0.96);
    border-top: 1px solid rgba(26,18,8,0.09);
    box-shadow: 0 -4px 24px rgba(26,18,8,0.06);
}

/* ═══════════════════════════════════════
   TICKER
═══════════════════════════════════════ */
[data-theme="v1"] .ticker-wrap            { border-color: rgba(26,18,8,0.07); }
[data-theme="v1"] .ticker-track span      { color: rgba(26,18,8,0.20) !important; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
[data-theme="v1"] footer                  { border-top-color: rgba(26,18,8,0.07); }

/* ═══════════════════════════════════════
   TAILWIND — SECTION BACKGROUNDS
═══════════════════════════════════════ */
[data-theme="v1"] .bg-\[\#0B0F17\]        { background-color: #F2EDE2 !important; }
[data-theme="v1"] .bg-\[\#080C12\]        { background-color: #EDE6D8 !important; }
[data-theme="v1"] .bg-\[\#111827\]        { background-color: #EFE9DC !important; }

/* ═══════════════════════════════════════
   TAILWIND — TEXT COLORS
═══════════════════════════════════════ */
[data-theme="v1"] .text-white             { color: #1A1206 !important; }
[data-theme="v1"] .text-white\/10         { color: rgba(26,18,6,0.14) !important; }
[data-theme="v1"] .text-white\/15         { color: rgba(26,18,6,0.20) !important; }
[data-theme="v1"] .text-white\/20         { color: rgba(26,18,6,0.26) !important; }
[data-theme="v1"] .text-white\/25         { color: rgba(26,18,6,0.32) !important; }
[data-theme="v1"] .text-white\/30         { color: rgba(26,18,6,0.38) !important; }
[data-theme="v1"] .text-white\/35         { color: rgba(26,18,6,0.44) !important; }
[data-theme="v1"] .text-white\/40         { color: rgba(26,18,6,0.50) !important; }
[data-theme="v1"] .text-white\/45         { color: rgba(26,18,6,0.56) !important; }
[data-theme="v1"] .text-white\/50         { color: rgba(26,18,6,0.62) !important; }
[data-theme="v1"] .text-white\/55         { color: rgba(26,18,6,0.68) !important; }
[data-theme="v1"] .text-white\/60         { color: rgba(26,18,6,0.72) !important; }
[data-theme="v1"] .text-white\/75         { color: rgba(26,18,6,0.80) !important; }

/* ═══════════════════════════════════════
   TAILWIND — BORDERS
═══════════════════════════════════════ */
[data-theme="v1"] .border-white\/5        { border-color: rgba(26,18,8,0.07) !important; }
[data-theme="v1"] .border-white\/6        { border-color: rgba(26,18,8,0.08) !important; }
[data-theme="v1"] .border-white\/8        { border-color: rgba(26,18,8,0.09) !important; }
[data-theme="v1"] .border-white\/10       { border-color: rgba(26,18,8,0.11) !important; }

/* ═══════════════════════════════════════
   HERO IMAGE SWAP
═══════════════════════════════════════ */
[data-theme="v1"] .hero-img-default       { display: none !important; }
[data-theme="v1"] .hero-img-v1            { display: flex !important; }

/* ═══════════════════════════════════════
   LOGO SWAP
═══════════════════════════════════════ */
[data-theme="v1"] .logo-white             { display: none !important; }
[data-theme="v1"] .logo-dark              { display: inline !important; }
