
/* ═══════════════════════════════════════════════════════════════
   COMPLEX MINDS — DEEP NAVY PROGRESSIVE PALETTE
═══════════════════════════════════════════════════════════════ */

:root {
    --cm-bg:         #0c141d;
    --cm-bg-mid:     #111e2b;
    --cm-bg-light:   #162538;
    --cm-accent:     #e9d7b4;
    --cm-accent-dim: rgba(233,215,180,0.6);
    --cm-accent-lo:  rgba(233,215,180,0.3);
    --cm-text:       #e0e6ed;
    --cm-text-dim:   rgba(224,230,237,0.55);
    --cm-text-lo:    rgba(224,230,237,0.30);
    --cm-border:     rgba(233,215,180,0.15);
    --cm-border-hi:  rgba(233,215,180,0.45);
}
* { box-sizing: border-box; }

/* ── LOGO & HEADER ─────────────────────────────────────────── */
#logo .black-logo { opacity: 0; position: absolute; transition: opacity 0.5s ease; }
#logo .white-logo { opacity: 1;                      transition: opacity 0.5s ease; }
#logo { position: relative; }
body.logo-dark #logo .black-logo { opacity: 1; }
body.logo-dark #logo .white-logo { opacity: 0; }
header, #header-container { background-color: transparent !important; }
#tmc-header-fade {
    position: fixed; top: 0; left: 0; width: 100%; height: 75px;
    z-index: 999; pointer-events: none;
    background: var(--cm-bg); opacity: 0;
}

/* ── HERO ──────────────────────────────────────────────────── */
.cm-hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cm-hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(12,20,29,0.03) 0%, rgba(12,20,29,0.03) 50%, rgba(12,20,29,0.03) 100%);
    pointer-events: none;
}

/* ── EYEBROW ──────────────────────────────────────────────── */
.cm-eyebrow {
    font-size: 9.5px; letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--cm-accent); display: block; margin-bottom: 28px;
    font-family: 'Poppins', sans-serif; font-weight: 500;
}

/* ── TEXT ──────────────────────────────────────────────────── */
.cm-t { color: var(--cm-text-dim); }
.cm-t-h { color: var(--cm-text); }
.cm-t-h em { font-style: italic; color: var(--cm-accent); }

/* ══════════════════════════════════════════════════════════════
   SECTION 2: AI IS RAISING THE BAR
══════════════════════════════════════════════════════════════ */
.cm-who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cm-who-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 300; line-height: 1.08; margin-bottom: 40px; color: var(--cm-text);
}
.cm-who-headline em { font-style: italic; color: var(--cm-accent); }
.cm-who-body p { font-size: 16px; line-height: 2; margin-bottom: 24px; color: var(--cm-text-dim); }
.cm-who-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .cm-who-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ★ "NOT" — blank clickable box ────────────────────────────── */
.cm-not-reveal {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; line-height: 1.5; color: var(--cm-text); margin-top: 48px;
}
.cm-not-box {
    display: inline-block; min-width: 90px; height: 1.15em;
    vertical-align: baseline; border: 2px dashed var(--cm-accent-lo);
    border-radius: 4px; cursor: pointer; position: relative;
    transition: all 0.4s ease; margin: 0 6px; text-align: center;
    background: rgba(233,215,180,0.03);
}
.cm-not-box:hover { border-color: var(--cm-accent); background: rgba(233,215,180,0.06); }
.cm-not-box:focus-visible { outline: 2px solid var(--cm-accent); outline-offset: 2px; }
.cm-not-box-word {
    opacity: 0; color: var(--cm-accent); font-weight: 600; font-style: italic;
    transition: opacity 0.5s ease; display: inline-block; padding: 0 8px;
}
.cm-not-box.revealed { border-color: var(--cm-accent); border-style: solid; background: rgba(233,215,180,0.08); }
.cm-not-box.revealed .cm-not-box-word { opacity: 1; }
.cm-raised-text {
    font-size: clamp(1rem, 1.8vw, 1.3rem); font-family: 'Cormorant Garamond', serif;
    color: var(--cm-text-dim); line-height: 1.8; margin-top: 20px;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}
.cm-raised-text.visible { opacity: 1; transform: translateY(0); }

/* Interactive boxes: dropped / risen */
.cm-box-row { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.cm-box-word {
    border: 1px solid var(--cm-border-hi); padding: 16px 36px;
    font-family: 'Poppins', sans-serif; font-size: 12px; letter-spacing: 0.3em;
    text-transform: uppercase; font-weight: 500; color: var(--cm-accent);
    cursor: pointer; user-select: none; transition: all 0.4s ease;
}
.cm-box-word:hover { background: rgba(233,215,180,0.12); border-color: var(--cm-accent); }
.cm-box-word.placed { opacity: 0; transform: scale(0.8); pointer-events: none; }
.cm-floor-ceiling {
    margin-top: 32px; font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.4; color: var(--cm-text);
}
.cm-floor-ceiling .cm-slot {
    display: inline-block; min-width: 120px; border-bottom: 2px solid var(--cm-accent-lo);
    color: var(--cm-accent); font-weight: 400; transition: all 0.5s ease; text-align: center;
}
.cm-floor-ceiling .cm-slot.filled { border-bottom-color: var(--cm-accent); }
@media (max-width: 600px) {
    .cm-box-row { gap: 12px; margin-top: 28px; }
    .cm-box-word { padding: 12px 20px; font-size: 10px; letter-spacing: 0.2em; }
    .cm-floor-ceiling { font-size: clamp(1.3rem, 5vw, 2rem); margin-top: 20px; }
    .cm-floor-ceiling .cm-slot { min-width: 80px; }
}

/* ══════════════════════════════════════════════════════════════
   CAROUSEL
══════════════════════════════════════════════════════════════ */
.cm-carousel-header { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
@media (max-width: 900px) { .cm-carousel-header { grid-template-columns: 1fr; gap: 24px; } }
.cm-carousel-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--cm-border); margin-bottom: 0; }
.cm-carousel-pill { background: none; border: none; border-right: 1px solid var(--cm-border); padding: 24px 24px 20px; cursor: pointer; text-align: left; position: relative; transition: background 0.3s ease; }
.cm-carousel-pill:last-child { border-right: none; }
.cm-carousel-pill:hover { background: rgba(233,215,180,0.06); }
.cm-carousel-pill.active { background: rgba(233,215,180,0.04); }
.cm-carousel-pill-icon { width: 22px; height: 22px; display: block; margin-bottom: 8px; color: var(--cm-accent); opacity: 0.5; transition: opacity 0.35s ease; }
.cm-carousel-pill.active .cm-carousel-pill-icon { opacity: 1; }
.cm-carousel-pill-label { font-family: 'Cormorant Garamond', serif; font-size: clamp(0.95rem, 1.4vw, 1.2rem); font-weight: 400; color: rgba(224,230,237,0.35); display: block; transition: color 0.35s ease; line-height: 1.3; }
.cm-carousel-pill.active .cm-carousel-pill-label { color: var(--cm-text); }
.cm-carousel-pill-bar { position: absolute; bottom: -1px; left: 0; width: 100%; height: 4px; background: rgba(233,215,180,0.08); overflow: hidden; }
.cm-carousel-pill-fill { display: block; width: 0%; height: 100%; background: var(--cm-accent); opacity: 0.85; }
.cm-carousel-pill.active .cm-carousel-pill-fill { width: 0%; }
.cm-carousel-pill.active.running .cm-carousel-pill-fill { width: 100%; transition: width 4s linear; }
.cm-carousel-stage { position: relative; min-height: 280px; border-bottom: 1px solid var(--cm-border); }
.cm-carousel-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.cm-carousel-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.cm-carousel-slide-inner { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 48px 0 36px; }
.cm-carousel-big-icon { width: 80px; color: var(--cm-accent); opacity: 0.3; }
.cm-carousel-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 300; line-height: 1.25; margin-bottom: 16px; color: var(--cm-text); }
.cm-carousel-content-col p { font-size: 15px; line-height: 1.9; color: var(--cm-text-dim); }
@media (max-width: 900px) { .cm-carousel-pill { padding: 16px 12px 14px; } .cm-carousel-slide-inner { grid-template-columns: 80px 1fr; gap: 24px; padding: 36px 0 24px; } }
@media (max-width: 600px) { .cm-carousel-pill { padding: 12px 8px 10px; } .cm-carousel-pill-label { font-size: 0.75rem; } .cm-carousel-slide-inner { grid-template-columns: 1fr; gap: 8px; } }

/* ══════════════════════════════════════════════════════════════
   STATEMENT SECTIONS (full-bleed photo backdrop)
══════════════════════════════════════════════════════════════ */
.cm-statement-section { position: relative; overflow: hidden; padding: 140px 80px; display: flex; align-items: center; justify-content: center; min-height: 50vh; background: var(--cm-bg-mid); }
.cm-statement-section .cm-bg-overlay { position: absolute; inset: 0; background: rgba(12,20,29,0.70); z-index: 1; }
.cm-statement-section .cm-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; opacity: 0.4; }
.cm-statement-text { position: relative; z-index: 2; font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.3; color: var(--cm-text); text-align: center; max-width: 800px; }
.cm-statement-text em { font-style: italic; color: var(--cm-accent); }
@media (max-width: 767px) { .cm-statement-section { padding: 100px 30px; } }

/* ★ Scroll-swap: operate → be educated ─────────────────────── */
.cm-swap-wrap { display: inline-block; position: relative; min-width: 170px; text-align: center; vertical-align: baseline; }
.cm-swap-word { display: inline-block; transition: opacity 0.6s ease, transform 0.6s ease; }
.cm-swap-word.cm-swap-active { opacity: 1; transform: translateY(0); }
.cm-swap-word:not(.cm-swap-active) { position: absolute; left: 50%; transform: translateX(-50%) translateY(15px); opacity: 0; }

/* ══════════════════════════════════════════════════════════════
   ★ FINANCIAL REVOLUTION TIMELINE — Left list, right photo+text
══════════════════════════════════════════════════════════════ */
.cm-fin-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border: 1px solid var(--cm-border); min-height: 500px; }
.cm-fin-nav { border-right: 1px solid var(--cm-border); overflow-y: auto; max-height: 620px; }
.cm-fin-nav-item {
    display: flex; align-items: baseline; gap: 16px; padding: 18px 28px;
    border-bottom: 1px solid var(--cm-border); cursor: pointer;
    position: relative; transition: all 0.3s ease;
}
.cm-fin-nav-item:last-child { border-bottom: none; }
.cm-fin-nav-item:hover { background: rgba(233,215,180,0.03); }
.cm-fin-nav-item.active { background: rgba(233,215,180,0.06); }
.cm-fin-nav-bar { position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: transparent; transition: background 0.3s ease; }
.cm-fin-nav-item.active .cm-fin-nav-bar { background: var(--cm-accent); }
.cm-fin-nav-date {
    font-family: 'Six Caps', sans-serif; font-size: 1.8rem; line-height: 1;
    color: var(--cm-accent-dim); flex-shrink: 0; min-width: 80px;
    transition: color 0.3s ease;
}
.cm-fin-nav-item.active .cm-fin-nav-date { color: var(--cm-accent); }
.cm-fin-nav-label {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--cm-text-dim); transition: color 0.3s ease; line-height: 1.4;
}
.cm-fin-nav-item.active .cm-fin-nav-label { color: var(--cm-text); }
.cm-fin-detail { position: relative; display: flex; flex-direction: column; }
.cm-fin-panel { display: none; opacity: 0; transition: opacity 0.4s ease; position: absolute; inset: 0; flex-direction: column; }
.cm-fin-panel.active { display: flex; opacity: 1; position: relative; }
.cm-fin-panel-img {
    width: 100%; aspect-ratio: 16/9; background-size: cover;
    background-position: center; position: relative; flex-shrink: 0;
}
.cm-fin-panel-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(12,20,29,0.8) 100%); }
.cm-fin-panel-body { padding: 28px 36px; flex: 1; }
.cm-fin-panel-title {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 400; color: var(--cm-text); margin-bottom: 12px; line-height: 1.3;
}
.cm-fin-panel-text { font-size: 15px; line-height: 1.9; color: var(--cm-text-dim); }
@media (max-width: 900px) {
    .cm-fin-timeline { grid-template-columns: 1fr; }
    .cm-fin-nav { border-right: none; border-bottom: 1px solid var(--cm-border); max-height: 300px; }
    .cm-fin-panel-body { padding: 20px 24px; }
}

/* ══════════════════════════════════════════════════════════════
   ★ MVP CONNECTOR MAP — Hover 2008 → arrows to 2025
══════════════════════════════════════════════════════════════ */
.cm-mvp-map { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; margin-top: 48px; position: relative; align-items: start; }
.cm-mvp-col { position: relative; }
.cm-compare-year { font-family: 'Six Caps', sans-serif; font-size: clamp(3rem, 5vw, 5rem); line-height: 1; color: var(--cm-accent); opacity: 0.35; margin-bottom: 28px; display: block; }
.cm-mvp-item, .cm-mvp-target {
    padding: 16px 20px; border-bottom: 1px solid var(--cm-border);
    font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--cm-text-dim); cursor: default; transition: all 0.3s ease;
    display: flex; align-items: center; gap: 12px; line-height: 1.4;
}
.cm-mvp-item { cursor: pointer; }
.cm-mvp-item:hover { color: var(--cm-text); background: rgba(233,215,180,0.04); }
.cm-mvp-item.active-source { color: var(--cm-accent); background: rgba(233,215,180,0.06); }
.cm-mvp-target.highlight { color: var(--cm-accent); background: rgba(233,215,180,0.06); }
.cm-mvp-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--cm-accent-lo); flex-shrink: 0; transition: all 0.3s ease; }
.cm-mvp-item:hover .cm-mvp-dot, .cm-mvp-item.active-source .cm-mvp-dot { background: var(--cm-accent); border-color: var(--cm-accent); }
.cm-mvp-target.highlight .cm-mvp-dot { background: var(--cm-accent); border-color: var(--cm-accent); }
.cm-mvp-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.cm-mvp-svg line { stroke: var(--cm-accent); stroke-width: 1.5; opacity: 0; transition: opacity 0.3s ease; }
.cm-mvp-svg line.visible { opacity: 0.5; }
@media (max-width: 900px) { .cm-mvp-map { grid-template-columns: 1fr; gap: 24px; } .cm-mvp-svg { display: none; } }

/* ══════════════════════════════════════════════════════════════
   ★ COMPARE STACKS — Progressive status-bar reveal
══════════════════════════════════════════════════════════════ */
.cm-stack-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; }
.cm-stack-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 0;
    border-bottom: 1px solid var(--cm-border); position: relative;
    opacity: 0.25; transition: opacity 0.5s ease;
}
.cm-stack-item.item-active, .cm-stack-item.item-done { opacity: 1; }
.cm-stack-bar {
    position: absolute; left: 0; top: 0; width: 3px; height: 0%;
    background: var(--cm-accent); transition: none;
}
.cm-stack-item.item-active .cm-stack-bar { height: 100%; transition: height 0.8s linear; }
.cm-stack-item.item-done .cm-stack-bar { height: 100%; }
.cm-stack-num { font-family: 'Six Caps', sans-serif; font-size: 1.6rem; line-height: 1; color: var(--cm-accent-dim); flex-shrink: 0; width: 32px; padding-left: 12px; transition: color 0.4s ease; }
.cm-stack-item.item-active .cm-stack-num, .cm-stack-item.item-done .cm-stack-num { color: var(--cm-accent); }
.cm-stack-label { font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--cm-text-dim); transition: color 0.4s ease; }
.cm-stack-item.item-active .cm-stack-label, .cm-stack-item.item-done .cm-stack-label { color: var(--cm-text); }
@media (max-width: 900px) { .cm-stack-compare { grid-template-columns: 1fr; gap: 40px; } }

/* ══════════════════════════════════════════════════════════════
   ★ ARCHITECTURAL INTELLIGENCE — Selector + Detail Panel
══════════════════════════════════════════════════════════════ */
.cm-arch-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border: 1px solid var(--cm-border); }
.cm-arch-nav { border-right: 1px solid var(--cm-border); }
.cm-arch-nav-item {
    display: flex; align-items: center; gap: 16px; padding: 24px 28px;
    border-bottom: 1px solid var(--cm-border); cursor: pointer;
    position: relative; transition: all 0.3s ease;
}
.cm-arch-nav-item:last-child { border-bottom: none; }
.cm-arch-nav-item:hover { background: rgba(233,215,180,0.03); }
.cm-arch-nav-item.active { background: rgba(233,215,180,0.06); }
.cm-arch-nav-bar { position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: transparent; transition: background 0.3s ease; }
.cm-arch-nav-item.active .cm-arch-nav-bar { background: var(--cm-accent); }
.cm-arch-nav-num { font-family: 'Six Caps', sans-serif; font-size: 1.6rem; line-height: 1; color: var(--cm-accent-dim); flex-shrink: 0; transition: color 0.3s ease; }
.cm-arch-nav-item.active .cm-arch-nav-num { color: var(--cm-accent); }
.cm-arch-nav-label { font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--cm-text-dim); transition: color 0.3s ease; line-height: 1.4; }
.cm-arch-nav-item.active .cm-arch-nav-label { color: var(--cm-text); }
.cm-arch-panels { padding: 36px 40px; display: flex; align-items: flex-start; }
.cm-arch-panel { display: none; opacity: 0; transition: opacity 0.4s ease; }
.cm-arch-panel.active { display: block; opacity: 1; }
.cm-arch-panel h4 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 400; color: var(--cm-text); margin-bottom: 16px; line-height: 1.3; }
.cm-arch-panel p { font-size: 15px; line-height: 1.9; color: var(--cm-text-dim); }
@media (max-width: 900px) { .cm-arch-selector { grid-template-columns: 1fr; } .cm-arch-nav { border-right: none; border-bottom: 1px solid var(--cm-border); display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .cm-arch-nav::-webkit-scrollbar { display: none; } .cm-arch-nav-item { flex-shrink: 0; border-bottom: none; border-right: 1px solid var(--cm-border); padding: 14px 16px; flex-direction: column; gap: 4px; } .cm-arch-nav-item:last-child { border-right: none; } .cm-arch-nav-bar { left: 0; top: auto; bottom: 0; width: 100%; height: 3px; } .cm-arch-nav-num { font-size: 1.2rem; } .cm-arch-nav-label { font-size: 0.75rem; line-height: 1.25; } .cm-arch-panels { padding: 24px 18px; } .cm-arch-panel p { font-size: 14px; line-height: 1.75; } }
@media (max-width: 600px) { .cm-arch-selector { margin-top: 28px; } .cm-arch-nav-item { padding: 10px 12px; min-width: 100px; } .cm-arch-nav-label { font-size: 0.7rem; } .cm-arch-panels { padding: 20px 14px; } .cm-arch-panel h4 { font-size: 1.2rem; margin-bottom: 10px; } .cm-arch-panel p { font-size: 13px; line-height: 1.7; } }
.cm-arch-moat { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.3; color: var(--cm-text); }
.cm-arch-moat em { color: var(--cm-accent); font-style: italic; }

/* ★ Arch panel background image (crossfade on switch) */
.cm-arch-bg-img {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.7s ease;
    pointer-events: none;
}
.cm-arch-bg-img.has-img { opacity: 0.08; }
.cm-arch-selector { position: relative; overflow: hidden; }
.cm-arch-nav, .cm-arch-panels { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   ★ TRAINING GROUND — 4 Image Cards with text below
══════════════════════════════════════════════════════════════ */
.cm-train-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 2; }
.cm-train-card { cursor: pointer; transition: all 0.4s ease; border: 1px solid transparent; overflow: hidden; }
.cm-train-card:hover, .cm-train-card.active { border-color: var(--cm-accent-lo); }
.cm-train-img { aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px; }
.cm-train-img-overlay { position: absolute; inset: 0; background: rgba(12,20,29,0.55); transition: background 0.4s ease; }
.cm-train-card.active .cm-train-img-overlay { background: rgba(12,20,29,0.25); }
.cm-train-card:hover .cm-train-img-overlay { background: rgba(12,20,29,0.35); }
.cm-train-img-label { position: relative; z-index: 2; font-family: 'Poppins', sans-serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(224,230,237,0.6); font-weight: 500; transition: color 0.3s ease; }
.cm-train-card.active .cm-train-img-label { color: var(--cm-accent); }
.cm-train-text-area { position: relative; z-index: 2; margin-top: 24px; min-height: 60px; }
.cm-train-text { display: none; opacity: 0; transition: opacity 0.4s ease; text-align: center; }
.cm-train-text.active { display: block; opacity: 1; }
.cm-train-text p { font-size: 15px; line-height: 1.9; color: var(--cm-text-dim); max-width: 700px; margin: 0 auto; }
@media (max-width: 900px) { .cm-train-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cm-train-grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════════════════════════════════════
   GAME GRID
══════════════════════════════════════════════════════════════ */
.cm-game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--cm-border); margin-top: 12px; }
.cm-game-cell { padding: 16px 14px; border-right: 1px solid var(--cm-border); border-bottom: 1px solid var(--cm-border); font-family: 'Cormorant Garamond', serif; font-size: clamp(0.8rem, 1.1vw, 0.95rem); color: var(--cm-text-dim); line-height: 1.4; transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease, border-color 0.3s ease; cursor: default; }
.cm-game-cell:nth-child(6n) { border-right: none; }
.cm-game-cell:nth-last-child(-n+6) { border-bottom: none; }
.cm-game-cell:hover { background: rgba(233,215,180,0.04); color: var(--cm-text); }
@media (max-width: 1100px) { .cm-game-grid { grid-template-columns: repeat(3, 1fr); } .cm-game-cell:nth-child(6n) { border-right: 1px solid var(--cm-border); } .cm-game-cell:nth-child(3n) { border-right: none; } .cm-game-cell:nth-last-child(-n+6) { border-bottom: 1px solid var(--cm-border); } .cm-game-cell:nth-last-child(-n+3) { border-bottom: none; } .cm-game-cell { padding: 14px 12px; } }
@media (max-width: 600px) { .cm-game-grid { grid-template-columns: repeat(2, 1fr); } .cm-game-cell:nth-child(3n) { border-right: 1px solid var(--cm-border); } .cm-game-cell:nth-child(2n) { border-right: none; } .cm-game-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--cm-border); } .cm-game-cell:nth-last-child(-n+2) { border-bottom: none; } }

/* ══════════════════════════════════════════════════════════════
   ★ FLOW CHAIN — Interactive with hover images
══════════════════════════════════════════════════════════════ */
.cm-flow-interactive { position: relative; }
.cm-flow-preview {
    width: 100%; max-width: 500px; margin: 0 auto 32px;
    aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--cm-border);
    opacity: 0; transition: opacity 0.4s ease; background: var(--cm-bg);
}
.cm-flow-preview.visible { opacity: 1; }
.cm-flow-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-flow-chain { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.cm-flow-step { padding: 16px 28px; border: 1px solid var(--cm-border-hi); font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.3s ease; }
.cm-flow-step:hover { background: rgba(233,215,180,0.12); border-color: var(--cm-accent); }
.cm-flow-step-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cm-accent); font-weight: 500; }
.cm-flow-arrow { color: var(--cm-accent-dim); font-size: 18px; font-family: 'Cormorant Garamond', serif; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.cm-btn { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--cm-border-hi); padding: 16px 40px; text-decoration: none; transition: all 0.28s ease; background: transparent; }
.cm-btn:hover { background: var(--cm-accent); border-color: var(--cm-accent); }
.cm-btn span { font-size: 10.5px; letter-spacing: 0.35em; text-transform: uppercase; font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--cm-text); transition: color 0.28s ease; }
.cm-btn svg { width: 10px; height: 10px; color: var(--cm-accent); transition: color 0.28s ease; }
.cm-btn:hover span, .cm-btn:hover svg { color: var(--cm-bg) !important; }

/* ── DIVIDER / FOOTER / PRELOADER ─────────────────────────── */
.cm-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(233,215,180,0.3), transparent); }
footer { background-color: #070c12 !important; }
footer .copyright, footer .copyright a { color: rgba(224,230,237,0.28) !important; }
footer .copyright small, footer .copyright small font { color: rgba(224,230,237,0.16) !important; }
.preloader-wrap { background: #080e16 !important; }
.trackbar { background: transparent !important; clip-path: none !important; }
.trackbar::before { display: none; }
.loadbar, .preloader-intro, .percentage-wrapper, .percentage-intro { display: none !important; }
.preloader-wrap.tmc-revealing {
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-size: 100% 100%, var(--rw, 0%) var(--rh, 0%);
    -webkit-mask-position: center, center; -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
    mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    mask-size: 100% 100%, var(--rw, 0%) var(--rh, 0%);
    mask-position: center, center; mask-repeat: no-repeat; mask-composite: exclude;
}

/* ── SECTION TITLE ────────────────────────────────────────── */
.cm-section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 4.5vw, 4.5rem); font-weight: 300; line-height: 1.1; color: var(--cm-text); }
.cm-section-subtitle { font-size: 15px; line-height: 1.9; color: var(--cm-text-dim); max-width: 520px; margin-top: 20px; }

/* ── TEXTURE ──────────────────────────────────────────────── */
.cm-texture-bg { position: absolute; inset: 0; background-image: url('../images/contor-lines.png'); background-repeat: repeat; background-size: auto; opacity: 0.02; pointer-events: none; z-index: 1; }
.cm-texture-bg ~ * { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════════════════
   CM TRIPLE CHEVRON — Masked background synced to carousel
   Same pattern as tmc-chevron-bg on index.html but triple chevron
══════════════════════════════════════════════════════════════ */
.cm-chevron-bg {
    position: absolute;
    right: -2%;
    top: -5%;
    width: 50%;
    max-width: 860px;
    aspect-ratio: 1500 / 788;
    pointer-events: none;
    user-select: none;
    cursor: default;

    /* Triple chevron SVG mask — 3 chevron shapes */
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNTAwIDc4OCIgd2lkdGg9IjE1MDAiIGhlaWdodD0iNzg4Ij4KICA8cG9seWdvbiBwb2ludHM9IjMwLDMwIDI4MCwzMCA0ODAsMzk0IDI4MCw3NTggMzAsNzU4IDIzMCwzOTQiIGZpbGw9IndoaXRlIi8+CiAgPHBvbHlnb24gcG9pbnRzPSIzODAsMzAgNjMwLDMwIDgzMCwzOTQgNjMwLDc1OCAzODAsNzU4IDU4MCwzOTQiIGZpbGw9IndoaXRlIi8+CiAgPHBvbHlnb24gcG9pbnRzPSI3MzAsMzAgOTgwLDMwIDExODAsMzk0IDk4MCw3NTggNzMwLDc1OCA5MzAsMzk0IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K");
            mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNTAwIDc4OCIgd2lkdGg9IjE1MDAiIGhlaWdodD0iNzg4Ij4KICA8cG9seWdvbiBwb2ludHM9IjMwLDMwIDI4MCwzMCA0ODAsMzk0IDI4MCw3NTggMzAsNzU4IDIzMCwzOTQiIGZpbGw9IndoaXRlIi8+CiAgPHBvbHlnb24gcG9pbnRzPSIzODAsMzAgNjMwLDMwIDgzMCwzOTQgNjMwLDc1OCAzODAsNzU4IDU4MCwzOTQiIGZpbGw9IndoaXRlIi8+CiAgPHBvbHlnb24gcG9pbnRzPSI3MzAsMzAgOTgwLDMwIDExODAsMzk0IDk4MCw3NTggNzMwLDc1OCA5MzAsMzk0IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K");
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;

    opacity: 0.12;
    transition: opacity 0.8s ease;
}

.cm-chevron-bg.has-active {
    opacity: 0.55;
}

/* Default fill (gradient when no carousel item is active) */
.cm-chevron-bg .chev-default {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--cm-accent), rgba(233,215,180,0.15));
    transition: opacity 0.6s ease;
}
.cm-chevron-bg.has-active .chev-default {
    opacity: 0;
}

/* Image layers (one per carousel slide, stacked) */
.cm-chevron-bg .chev-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.cm-chevron-bg .chev-img.visible {
    opacity: 1;
}

@media (max-width: 900px) {
    .cm-chevron-bg {
        width: 100%;
        right: -10%;
        top: 30%;
        bottom: auto;
        opacity: 0.08;
    }
    .cm-chevron-bg.has-active { opacity: 0.25; }
}

/* ══════════════════════════════════════════════════════════════
   ★ Sector pills — compact row above game grid
══════════════════════════════════════════════════════════════ */
.cm-sector-row { display: flex; gap: 8px; margin: 24px 0 6px; flex-wrap: wrap; }
.cm-sector-pill {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 14px; cursor: pointer;
    border: 1px solid rgba(233,215,180,0.08); border-radius: 2px;
    transition: all 0.3s ease; user-select: none;
}
.cm-sector-pill:hover, .cm-sector-pill.sector-active {
    border-color: var(--sector-color); background: color-mix(in srgb, var(--sector-color) 8%, transparent);
}
.cm-sector-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    background: var(--sector-color); opacity: 0.35; transition: opacity 0.3s ease;
}
.cm-sector-pill:hover .cm-sector-dot, .cm-sector-pill.sector-active .cm-sector-dot { opacity: 1; }
.cm-sector-label {
    font-family: 'Poppins', sans-serif; font-size: 8px; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 500; color: var(--cm-text-dim);
    transition: color 0.3s ease;
}
.cm-sector-pill:hover .cm-sector-label, .cm-sector-pill.sector-active .cm-sector-label { color: var(--sector-color); }

/* Legend for dashed/solid */
.cm-sector-legend { display: flex; gap: 24px; margin: 8px 0 0; }
.cm-legend-item { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-size: 7.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cm-text-lo); font-weight: 400; }
.cm-legend-line { display: inline-block; width: 24px; height: 0; border-top: 2px solid var(--cm-accent-dim); }
.cm-legend-line.cm-legend-dashed { border-top-style: dashed; }

/* Grid cell highlight states */
.cm-game-grid.has-hover .cm-game-cell { opacity: 0.2; transition: opacity 0.3s ease, color 0.3s ease, background 0.3s ease, outline-color 0.3s ease; }
.cm-game-grid.has-hover .cm-game-cell.cell-lit {
    opacity: 1;
    color: var(--lit-color, var(--cm-text));
    background: color-mix(in srgb, var(--lit-color, var(--cm-accent)) 6%, transparent);
}
/* Solid outline = real-world implementation */
.cm-game-grid.has-hover .cm-game-cell.cell-lit.cell-real {
    outline: 2px solid var(--lit-color, var(--cm-accent));
    outline-offset: -2px;
}
/* Dashed outline = simulation */
.cm-game-grid.has-hover .cm-game-cell.cell-lit.cell-sim {
    outline: 2px dashed var(--lit-color, var(--cm-accent));
    outline-offset: -2px;
    background: color-mix(in srgb, var(--lit-color, var(--cm-accent)) 3%, transparent);
}
.cm-game-cell.cell-self-hover { opacity: 1 !important; }
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .cm-sector-pill:hover, .cm-sector-pill.sector-active { background: rgba(233,215,180,0.06); }
    .cm-game-grid.has-hover .cm-game-cell.cell-lit { background: rgba(233,215,180,0.06); }
    .cm-game-grid.has-hover .cm-game-cell.cell-lit.cell-sim { background: rgba(233,215,180,0.03); }
}

/* ★ Arch panel background image */
.cm-arch-bg-img {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.7s ease;
    pointer-events: none;
}
.cm-arch-bg-img.has-img { opacity: 0.08; }
.cm-arch-selector { position: relative; overflow: hidden; }
.cm-arch-nav, .cm-arch-panels { position: relative; z-index: 1; }
