/* ============================================
   PIONEER — Premium Venture Studio
   ============================================ */

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

:root {
    /* Dark palette */
    --bg: #08080a;
    --bg2: #0c0b0e;
    --bg3: #121216;
    --bg4: #18171d;

    /* Light palette */
    --bg-light: #f7f6f3;
    --bg-light2: #efeee9;
    --bg-light3: #e8e6e1;

    /* Text */
    --text: #ece9e3;
    --text-dark: #1a1a1f;
    --dim: #7d7a85;
    --dim-light: #8a8690;
    --mid: #a9a5b0;

    /* Accent — deep, serious purple */
    --ac: #5b3cc4;
    --ac-hover: #4a2fa8;
    --ac-light: #7c5cfc;
    --ac-s: rgba(91,60,196,0.14);
    --ac-g: rgba(91,60,196,0.06);

    /* Borders */
    --bd: rgba(255,255,255,0.06);
    --bd-ac: rgba(91,60,196,0.22);
    --bd-light: rgba(0,0,0,0.08);
    --bd-light-ac: rgba(91,60,196,0.15);

    /* Fonts */
    --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'DM Serif Display', Georgia, serif;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

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

/* ============================================
   SHARED TYPOGRAPHY
   ============================================ */

.label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ac-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.label::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--ac);
    border-radius: 2px;
}

.stitle {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.stitle em { font-style: italic; color: var(--ac-light); }

.sdesc {
    font-size: 1rem;
    color: var(--dim);
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: 3.5rem;
}

/* ============================================
   NAVBAR — Liquid Glass
   ============================================ */

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 1100px;
    border-radius: 16px;
    background: rgba(8, 8, 10, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transition: all 0.4s var(--ease);
}
.navbar.scrolled {
    background: rgba(8, 8, 10, 0.88);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}
.logo-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 20px; height: 20px;
}
.logo-grid span {
    border-radius: 1.5px;
    background: var(--ac);
}
.logo-grid span:nth-child(1) { background: #7c5cfc; }
.logo-grid span:nth-child(2) { background: #5b3cc4; }
.logo-grid span:nth-child(3) { background: #a78bfa; }
.logo-grid span:nth-child(4) { background: #4a2fa8; }
.logo-grid span:nth-child(5) { background: #7c5cfc; }
.logo-grid span:nth-child(6) { background: #3b2070; }
.logo-grid span:nth-child(7) { background: #6b4fd4; }
.logo-grid span:nth-child(8) { background: #5b3cc4; }
.logo-grid span:nth-child(9) { background: #8b6ef0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}
.nav-links a {
    color: var(--dim);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s var(--ease);
    letter-spacing: 0.02em;
}
.nav-links a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}
.nav-cta {
    background: linear-gradient(135deg, #5b3cc4, #7c5cfc) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(91,60,196,0.3);
}
.nav-cta:hover {
    background: linear-gradient(135deg, #4a2fa8, #6b4fd4) !important;
    box-shadow: 0 4px 16px rgba(91,60,196,0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav-toggle.active span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 480px;
}

#heroCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ac-s);
    border: 1px solid var(--bd-ac);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    margin-bottom: 2.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ac);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.badge-pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ac);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    line-height: 1.08;
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 em { font-style: italic; color: var(--ac-light); }

.hero-sub {
    font-size: 1.05rem;
    color: var(--dim);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.2rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.35s var(--ease);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: linear-gradient(135deg, #5b3cc4 0%, #7c5cfc 50%, #5b3cc4 100%);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 20px rgba(91,60,196,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(91,60,196,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-outline {
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    border-color: var(--ac);
    color: #fff;
    background: rgba(91,60,196,0.08);
}

/* ============================================
   STATS BAR (full-width, light)
   ============================================ */

.section-stats {
    background: var(--bg-light);
    padding: 4.5rem 3rem;
    border-top: 1px solid var(--bd-light);
    border-bottom: 1px solid var(--bd-light);
}
.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 0 1rem;
}
.stat-item + .stat-item {
    border-left: 1px solid rgba(0,0,0,0.08);
}
.counter-num {
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}
.section-stats .counter-label {
    font-size: 0.78rem;
    color: var(--dim-light);
    letter-spacing: 0.04em;
    font-weight: 500;
}
/* Re-usable counter label for dark sections */
.counter-label {
    font-size: 0.75rem;
    color: var(--dim);
    letter-spacing: 0.03em;
}

/* Hero entry animations */
.anim-hero {
    opacity: 0;
    transform: translateY(25px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section { padding: 7rem 0; position: relative; }

.section-dark {
    background: var(--bg);
    color: var(--text);
}
.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section-light .dim,
.section-light .sdesc,
.section-light .team-bio,
.section-light .c-desc,
.section-light .svc-panel-text p,
.section-light .svc-feature p {
    color: var(--dim-light);
}
.section-light .label { color: var(--ac); }
.section-light .stitle em { color: var(--ac); }
.section-light .stitle { color: var(--text-dark); }
.section-light .stitle em { color: var(--ac); }

/* ============================================
   SCROLL REVEAL
   ============================================ */

.sr {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.sr.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TEAM (light section)
   ============================================ */

.section-team { padding-top: 5rem; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}
.team-card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}
.team-card:hover {
    border-color: var(--bd-ac);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    background: linear-gradient(135deg, #1a1a24, #0e0e14);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(15%);
    transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
}
.team-card:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.04);
}
.team-photo span {
    font-size: 2.2rem;
    font-family: var(--serif);
    color: rgba(255,255,255,0.06);
    letter-spacing: 0.05em;
}
.team-info { padding: 1.5rem 1.75rem 1.75rem; }
.team-info h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.team-role { font-size: 0.8rem; color: var(--ac-light); font-weight: 500; margin-bottom: 0.65rem; }
.team-bio { font-size: 0.8rem; color: var(--dim); line-height: 1.6; }

/* ============================================
   STORY (dark section)
   ============================================ */

.story-layout {
    max-width: 680px;
    margin: 0 auto 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.story-text .label { justify-content: center; }
.story-text .stitle { text-align: center; }
.story-text .story-p { text-align: left; }
#story { position: relative; overflow: hidden; }
#story::after {
    content: '';
    position: absolute;
    right: -60px; bottom: -60px;
    width: 300px; height: 300px;
    background: conic-gradient(from 45deg, rgba(91,60,196,0.06), rgba(124,92,252,0.03), rgba(91,60,196,0.06));
    border-radius: 24px;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
}
.story-text h2 { margin-bottom: 1.75rem; }
.story-p {
    font-size: 0.95rem;
    color: var(--dim);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.5s ease, margin 0.4s ease;
    margin-bottom: 0;
}
.story-p.show {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 1.5rem;
}
.story-p strong { color: var(--text); font-weight: 600; }

.story-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--ac);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    background: none;
    border: none;
    font-family: var(--font);
    transition: gap 0.3s;
}
.story-toggle:hover { gap: 0.75rem; }
.story-toggle .arrow { transition: transform 0.3s; display: inline-block; }
.story-toggle.open .arrow { transform: rotate(180deg); }

.story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-self: center;
}
.story-stat {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.4s var(--ease);
}
.story-stat:hover {
    border-color: var(--bd-ac);
    transform: translateY(-3px);
}
.story-stat-num {
    font-family: var(--serif);
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--ac);
}
.story-stat-label { font-size: 0.78rem; color: var(--dim); }

/* Horizontal Scroll Timeline */
.tl-section {
    background: var(--bg2);
    overflow: hidden;
    position: relative;
}
.tl-pin-wrap {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.tl-pin-wrap .stitle { margin-bottom: 2rem; }

.tl-progress-track {
    width: 100%;
    height: 2px;
    background: var(--bd);
    border-radius: 2px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.tl-progress-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ac), #6b4fd4);
    border-radius: 2px;
    transition: width 0.05s linear;
}

.tl-scroll-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
}

.tl-card {
    flex-shrink: 0;
    width: 380px;
    padding: 2.5rem;
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.tl-card:hover {
    border-color: var(--bd-ac);
    transform: translateY(-4px);
}
.tl-card-year {
    font-family: var(--serif);
    font-size: 3.5rem;
    color: rgba(124,92,252,0.1);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.4s;
}
.tl-card:hover .tl-card-year {
    color: rgba(124,92,252,0.2);
}
.tl-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.tl-card p {
    font-size: 0.88rem;
    color: var(--dim);
    line-height: 1.7;
}
.tl-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ac), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.tl-card:hover .tl-card-accent { opacity: 1; }

/* ============================================
   SERVICES (light section)
   ============================================ */

.services-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: end;
}
.services-intro .stitle { margin-bottom: 0; }
.services-intro p { font-size: 0.95rem; color: var(--dim-light); line-height: 1.75; margin: 0; }

.svc-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.svc-tab {
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--bd-light);
    background: transparent;
    color: var(--dim-light);
    font-family: var(--font);
    transition: all 0.3s;
}
.svc-tab:hover { border-color: rgba(0,0,0,0.15); color: var(--text-dark); }
.svc-tab.active { background: linear-gradient(135deg, #5b3cc4, #7c5cfc); border-color: var(--ac); color: #fff; box-shadow: 0 2px 12px rgba(91,60,196,0.25); }

.svc-panels { position: relative; min-height: 200px; }
.svc-panel {
    display: none;
    animation: panelIn 0.4s ease;
}
.svc-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.svc-panel-text h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.svc-panel-text p {
    font-size: 0.92rem;
    color: var(--dim-light);
    line-height: 1.75;
}

.svc-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.svc-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--bd-light);
    border-radius: 10px;
    transition: all 0.3s var(--ease);
}
.svc-feature:hover {
    border-color: var(--bd-light-ac);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.svc-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--ac-s);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--ac);
}
.svc-feature h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--text-dark);
}
.svc-feature p {
    font-size: 0.78rem;
    color: var(--dim-light);
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   VENTURES (dark section)
   ============================================ */

.ventures-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.ventures-header .sdesc { margin-bottom: 0; }
.venture-count {
    font-size: 0.78rem;
    color: var(--dim);
    font-weight: 500;
    background: var(--bg3);
    border: 1px solid var(--bd);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

/* Flagship cards */
.v-flag {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
    cursor: pointer;
}
.v-flag:hover { border-color: var(--bd-ac); }
.v-flag-header {
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}
.v-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ac-s);
    border: 1px solid var(--bd-ac);
    border-radius: 100px;
    padding: 0.3rem 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ac);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.v-flag-header h3 { font-family: var(--serif); font-size: 2rem; margin-bottom: 0.2rem; }
.v-year { color: var(--dim); font-size: 0.82rem; }
.v-summary { font-size: 0.9rem; color: var(--dim); line-height: 1.7; margin-top: 0.75rem; max-width: 580px; }
.v-expand-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--bd);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--dim);
    transition: all 0.3s;
    margin-top: 0.5rem;
}
.v-flag:hover .v-expand-icon { border-color: var(--bd-ac); color: var(--ac); }
.v-flag.open .v-expand-icon { transform: rotate(45deg); background: var(--ac-s); color: var(--ac); }

.v-flag-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.v-flag.open .v-flag-body { max-height: 400px; }
.v-flag-inner {
    padding: 0 3rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    border-top: 1px solid var(--bd);
    padding-top: 2rem;
}
.v-flag-inner p { font-size: 0.88rem; color: var(--dim); line-height: 1.75; }

.v-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.v-metric {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s;
}
.v-metric:hover { border-color: var(--bd-ac); }
.v-metric strong {
    color: var(--text);
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.1rem;
    font-family: var(--serif);
}
.v-metric span { font-size: 0.72rem; color: var(--dim); }

/* Venture Cards */
.v-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.v-card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s var(--ease);
}
.v-card:hover {
    border-color: var(--bd-ac);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.v-card-top { padding: 2.25rem 2.25rem 1.25rem; }
.v-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.v-card h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.v-card-year {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ac);
    background: var(--ac-s);
    padding: 0.28rem 0.7rem;
    border-radius: 100px;
    white-space: nowrap;
}
.v-card-short { font-size: 0.87rem; color: var(--dim); line-height: 1.7; }

.v-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}
.v-card.open .v-card-details { max-height: 250px; }
.v-card-details-inner { padding: 0 2.25rem 1.5rem; }
.v-card-details-inner p { font-size: 0.85rem; color: var(--dim); line-height: 1.7; margin-bottom: 1rem; }
.v-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.v-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--dim);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bd);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.v-card-bottom {
    padding: 0.85rem 2.25rem;
    border-top: 1px solid var(--bd);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}
.v-card-bottom:hover { background: rgba(255,255,255,0.02); }
.v-kpi { font-size: 0.8rem; color: var(--ac); font-weight: 600; }
.v-card-toggle {
    font-size: 0.78rem;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}
.v-card-toggle:hover { color: var(--text); }
.toggle-arrow { transition: transform 0.3s; display: inline-block; }
.v-card.open .toggle-arrow { transform: rotate(180deg); }

/* ============================================
   CONTACT (light section)
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}
.c-info h2 { margin-bottom: 1.25rem; }
.c-desc { color: var(--dim-light); font-size: 0.95rem; line-height: 1.75; margin-bottom: 2.5rem; }

.c-detail { margin-bottom: 1.5rem; }
.c-detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim-light);
    margin-bottom: 0.3rem;
}
.c-detail-val { font-size: 1rem; font-weight: 500; color: var(--text-dark); }
.c-detail-val a { transition: color 0.3s; }
.c-detail-val a:hover { color: var(--ac); }

.c-form { display: flex; flex-direction: column; gap: 1.15rem; }
.c-form .btn { width: 100%; justify-content: center; text-align: center; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.c-field { display: flex; flex-direction: column; gap: 0.35rem; }
.c-field label { font-size: 0.75rem; font-weight: 600; color: var(--dim-light); }
.c-field input,
.c-field select,
.c-field textarea {
    background: #fff;
    border: 1px solid var(--bd-light);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    font-family: var(--font);
    font-size: 0.88rem;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
}
.c-field input:focus,
.c-field select:focus,
.c-field textarea:focus {
    border-color: rgba(124,92,252,0.35);
    box-shadow: 0 0 0 3px rgba(124,92,252,0.08);
}
.c-field textarea { min-height: 110px; resize: vertical; }
.c-field select { cursor: pointer; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--bd);
    background: var(--bg);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--dim);
}
.f-links { display: flex; gap: 2rem; }
.f-links a { transition: color 0.3s; }
.f-links a:hover { color: var(--text); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .v-flag-inner { grid-template-columns: 1fr; }
    .hero-counters { gap: 2rem; flex-wrap: wrap; }
    .hero-canvas-wrap { height: 350px; }
    .tl-card { width: 300px; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 5rem 0; }

    /* Nav */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(8,8,10,0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--bd);
        border-radius: 14px;
        padding: 16px;
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 12px 16px; }
    .nav-toggle { display: flex; }

    .navbar { top: 8px; width: calc(100% - 16px); }

    /* Hero */
    .hero { padding: 6rem 1.5rem 2rem; min-height: auto; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .hero-canvas-wrap { height: 280px; max-width: 100%; }

    /* Stats */
    .section-stats { padding: 3rem 1.5rem; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .stat-item:nth-child(3) { border-left: none; }

    /* Team */
    .team-grid { grid-template-columns: 1fr; max-width: 400px; }

    /* Story */
    .story-layout { grid-template-columns: 1fr; gap: 3rem; }

    /* Timeline — horizontal scroll on mobile (narrower cards) */
    .tl-section { overflow: hidden; }
    .tl-pin-wrap { padding: 3rem 1.5rem; }
    .tl-pin-wrap .stitle { margin-bottom: 1.5rem; font-size: 1.6rem; }
    .tl-card {
        width: 260px;
        padding: 1.8rem;
    }
    .tl-card-year { font-size: 2.2rem; }
    .tl-card h3 { font-size: 1.05rem; }
    .tl-card p { font-size: 0.82rem; }

    /* Services */
    .services-intro { grid-template-columns: 1fr; gap: 1.5rem; }
    .svc-panel.active { grid-template-columns: 1fr; }

    /* Ventures */
    .v-grid { grid-template-columns: 1fr; }
    .v-flag-header { padding: 2rem; flex-direction: column; }
    .v-flag-inner { grid-template-columns: 1fr; padding: 0 2rem 2rem; }
    .ventures-header { flex-direction: column; align-items: flex-start; }

    /* Contact */
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .c-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .story-stats { grid-template-columns: 1fr 1fr; }
    .navbar { border-radius: 14px; }
    .nav-inner { padding: 12px 16px; }
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; }
}

/* ============================================
   PRIVACY MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    padding: 2rem;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dim);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.06); color: var(--text-dark); }
.modal-content h2 {
    font-family: var(--serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.modal-updated {
    font-size: 0.8rem;
    color: var(--dim);
    margin-bottom: 2rem;
}
.modal-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-dark);
}
.modal-content p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #4a4a55;
    margin-bottom: 0.5rem;
}
.modal-content ul {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}
.modal-content li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #4a4a55;
    margin-bottom: 0.35rem;
}

/* ============================================
   COOKIE CONSENT BAR
   ============================================ */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(12,11,14,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--bd);
    padding: 1.2rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease);
}
.cookie-bar.show {
    transform: translateY(0);
}
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}
.cookie-icon { font-size: 1.4rem; flex-shrink: 0; }
.cookie-text p {
    font-size: 0.82rem;
    color: var(--dim);
    line-height: 1.5;
    margin: 0;
}
.cookie-text a {
    color: var(--ac-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-text a:hover { color: #fff; }
.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.55rem 1.4rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px;
}
