/* ==========================================================================
   TCM Hub v3.0 — Cuberto-Inspired Living Design System
   Hybrid Light/Dark Editorial Rhythm • Pure Local IRANSansX • 60fps Motion
   ========================================================================== */

/* 1. Local IRANSansX FaNum Font Family */
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 100; font-display: swap; src: url('../fonts/IRANSansXFaNum-Thin.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 200; font-display: swap; src: url('../fonts/IRANSansXFaNum-UltraLight.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/IRANSansXFaNum-Light.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IRANSansXFaNum-Medium.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/IRANSansXFaNum-DemiBold.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/IRANSansXFaNum-Bold.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/IRANSansXFaNum-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'IRANSansX'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/IRANSansXFaNum-Black.woff2') format('woff2'); }

/* 2. Design Tokens */
:root {
    --cb-font: 'IRANSansX', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --cb-white: #ffffff;
    --cb-paper: #f7f7f5;
    --cb-paper-2: #efefec;
    --cb-ink: #111111;
    --cb-ink-muted: #5a5a5f;
    --cb-ink-dim: #8a8a92;
    --cb-border-light: rgba(17, 17, 17, 0.10);

    --cb-dark: #0e0e0e;
    --cb-dark-card: #161616;
    --cb-dark-card-hover: #1e1e1e;
    --cb-dark-text: #f5f5f5;
    --cb-dark-muted: #a1a1aa;
    --cb-border-dark: rgba(255, 255, 255, 0.11);

    --cb-emerald: #10b981;
    --cb-ease: cubic-bezier(0.19, 1, 0.22, 1);
    --cb-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --cb-radius-xl: clamp(32px, 4.5vw, 68px);
    --cb-radius-lg: 32px;
    --cb-radius-md: 22px;
    --cb-radius-sm: 14px;
    --cb-radius-pill: 999px;

    --cb-container: 1240px;
    --cb-header-h: 82px;

    /* Per-project dynamic accents (overridden inline on project pages) */
    --proj-accent: #111111;
    --proj-accent2: #059669;
    --proj-tint: #f5f5f3;
    --proj-dark: #0e0e0e;
}

/* 3. Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--cb-white);
}

body.cb-body {
    font-family: var(--cb-font);
    background: var(--cb-white);
    color: var(--cb-ink);
    line-height: 1.75;
    overflow-x: clip;
    direction: rtl;
}

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

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

button, input, textarea, select {
    font-family: inherit;
}

::selection {
    background: var(--cb-ink);
    color: var(--cb-white);
}

.cb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 4. Layout Container */
.cb-container {
    width: 100%;
    max-width: var(--cb-container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.cb-container-narrow {
    max-width: 920px;
}

/* 5. Scroll Progress Hairline & Page Transition Veil */
.cb-scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 2.5px;
    background: var(--cb-ink);
    transform-origin: right center;
    transform: scaleX(0);
    z-index: 9998;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.cb-page-veil {
    position: fixed;
    inset: 0;
    background: var(--cb-dark);
    z-index: 9995;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.38s var(--cb-ease), opacity 0.25s ease;
}

.cb-page-veil.is-leaving {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0%);
}

body.cb-header-dark .cb-scroll-progress {
    background: var(--cb-white);
}

/* 6. Custom Fluid Cursor (Desktop Pointer Only) */
.cb-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
    transition: opacity 0.25s ease;
}

.cb-cursor.is-visible {
    opacity: 1;
}

.cb-cursor-inner {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--cb-ink);
    color: var(--cb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        width 0.38s var(--cb-ease),
        height 0.38s var(--cb-ease),
        margin 0.38s var(--cb-ease),
        background-color 0.3s ease,
        color 0.3s ease,
        border-radius 0.38s var(--cb-ease);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.cb-cursor.is-on-dark .cb-cursor-inner {
    background: var(--cb-white);
    color: var(--cb-ink);
}

.cb-cursor.is-pointer .cb-cursor-inner {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    background: rgba(17, 17, 17, 0.12);
    backdrop-filter: blur(4px);
    box-shadow: none;
}

.cb-cursor.is-on-dark.is-pointer .cb-cursor-inner {
    background: rgba(255, 255, 255, 0.18);
}

.cb-cursor.is-labeled .cb-cursor-inner {
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    background: var(--cb-ink);
    color: var(--cb-white);
    backdrop-filter: none;
}

.cb-cursor.is-on-dark.is-labeled .cb-cursor-inner {
    background: var(--cb-white);
    color: var(--cb-ink);
}

.cb-cursor-text {
    font-size: 12.5px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.25s ease, transform 0.35s var(--cb-ease);
    text-align: center;
    padding: 0 8px;
    line-height: 1.3;
    white-space: nowrap;
}

.cb-cursor.is-labeled .cb-cursor-text {
    opacity: 1;
    transform: scale(1);
}

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
    .cb-cursor { display: none !important; }
}

/* 7. Minimal Header */
.cb-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--cb-header-h);
    z-index: 900;
    display: flex;
    align-items: center;
    transition: background-color 0.4s var(--cb-ease), border-color 0.4s ease, color 0.35s ease, backdrop-filter 0.4s ease;
}

body.admin-bar .cb-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .cb-header {
        top: 46px;
    }
}

.cb-header.is-scrolled {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

body.cb-header-dark .cb-header {
    color: var(--cb-white);
}

body.cb-header-dark .cb-header.is-scrolled {
    background: rgba(14, 14, 14, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.cb-header-inner {
    width: 100%;
    max-width: var(--cb-container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cb-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    will-change: transform;
}

.cb-brand-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    padding: 4px;
    background: #111111;
    border: 1px solid rgba(17, 17, 17, 0.12);
}

body.cb-header-dark .cb-brand-img,
.cb-brand-dark .cb-brand-img {
    border-color: rgba(255, 255, 255, 0.18);
}

.cb-brand-name {
    font-family: var(--cb-font);
    font-weight: 900;
    letter-spacing: -0.04em;
    direction: ltr;
}

.cb-quick-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cb-nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--cb-radius-pill);
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

.cb-nav-link:hover,
.cb-nav-link.is-active {
    background: rgba(17, 17, 17, 0.06);
}

body.cb-header-dark .cb-nav-link:hover,
body.cb-header-dark .cb-nav-link.is-active {
    background: rgba(255, 255, 255, 0.1);
}

.cb-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    margin-right: 6px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-ink);
    color: var(--cb-white);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s var(--cb-ease), background-color 0.3s ease, color 0.3s ease;
}

body.cb-header-dark .cb-nav-pill {
    background: var(--cb-white);
    color: var(--cb-ink);
}

.cb-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cb-emerald);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: cbPulse 2.2s infinite;
    flex-shrink: 0;
}

@keyframes cbPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cb-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--cb-radius-pill);
    font-size: 14px;
    font-weight: 600;
    z-index: 1002;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.cb-menu-toggle:focus-visible {
    box-shadow: 0 0 0 2px currentColor;
}

.cb-burger {
    width: 28px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.cb-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.45s var(--cb-ease), opacity 0.25s ease;
    transform-origin: center;
}

.cb-menu-toggle.is-open .cb-burger span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.cb-menu-toggle.is-open .cb-burger span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

body.cb-drawer-open .cb-header {
    color: var(--cb-ink) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom-color: transparent !important;
}

/* 8. Fullscreen Curtain Menu Drawer */
.cb-drawer {
    position: fixed;
    inset: 0;
    z-index: 880;
    pointer-events: none;
    visibility: hidden;
}

.cb-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.cb-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.55s var(--cb-ease);
}

.cb-drawer.is-open .cb-drawer-backdrop {
    opacity: 1;
}

.cb-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(820px, 100%);
    background: var(--cb-white);
    color: var(--cb-ink);
    padding: calc(var(--cb-header-h) + 36px) clamp(24px, 5vw, 72px) 48px;
    transform: translateX(-100%);
    transition: transform 0.72s var(--cb-ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cb-drawer.is-open .cb-drawer-panel {
    transform: translateX(0);
}

.cb-drawer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 48px;
    align-items: start;
}

.cb-drawer-kicker {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-ink-dim);
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}

.cb-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-drawer-link {
    display: inline-block;
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--cb-ink);
}

.cb-drawer-link.is-active {
    color: var(--cb-ink-muted);
}

.cb-link-roll {
    display: inline-block;
    overflow: hidden;
    position: relative;
    vertical-align: top;
}

.cb-link-roll span {
    display: inline-block;
    transition: transform 0.5s var(--cb-ease);
}

.cb-link-roll::after {
    content: attr(data-text);
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    transition: transform 0.5s var(--cb-ease);
}

.cb-drawer-link:hover .cb-link-roll span,
.cb-drawer-link:hover .cb-link-roll::after {
    transform: translateY(-100%);
}

.cb-drawer-sublinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.cb-drawer-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-paper);
    border: 1px solid var(--cb-border-light);
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cb-drawer-chip:hover {
    background: var(--cb-ink);
    color: var(--cb-white);
    border-color: var(--cb-ink);
}

.cb-drawer-side {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 8px;
}

.cb-drawer-socials {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-drawer-socials a {
    font-size: 15px;
    font-weight: 500;
    color: var(--cb-ink-muted);
    transition: color 0.25s ease, padding-right 0.3s var(--cb-ease);
    display: inline-block;
}

.cb-drawer-socials a:hover {
    color: var(--cb-ink);
    padding-right: 6px;
}

.cb-drawer-contact {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    direction: ltr;
    border-bottom: 1.5px solid var(--cb-ink);
    padding-bottom: 4px;
    margin-bottom: 12px;
}

.cb-drawer-note {
    font-size: 13.5px;
    color: var(--cb-ink-muted);
    line-height: 1.8;
}

/* 9. Cuberto Liquid-Fill & Rolling-Text Pill Buttons (Clean Zero-Overflow Curtain) */
.cb-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--cb-radius-pill);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    border: 1.5px solid var(--cb-ink);
    background: transparent;
    color: var(--cb-ink);
    transition: color 0.42s var(--cb-ease), border-color 0.42s var(--cb-ease), transform 0.3s var(--cb-ease);
    will-change: transform;
    z-index: 1;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.cb-btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.cb-btn-sm {
    padding: 11px 22px;
    font-size: 13.5px;
}

.cb-btn-fill {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--cb-ink);
    transform: translateY(108%);
    transition: transform 0.52s var(--cb-ease);
    z-index: -1;
    pointer-events: none;
}

.cb-btn:hover .cb-btn-fill {
    transform: translateY(0%);
}

.cb-btn:hover {
    color: var(--cb-white);
}

/* Primary Dark Button (Inverted Fill) */
.cb-btn-dark {
    background: var(--cb-ink);
    color: var(--cb-white);
    border-color: var(--cb-ink);
}

.cb-btn-dark .cb-btn-fill {
    background: var(--cb-white);
}

.cb-btn-dark:hover {
    color: var(--cb-ink);
}

/* Light Button on Dark Backgrounds */
.cb-btn-light {
    background: var(--cb-white);
    color: var(--cb-ink);
    border-color: var(--cb-white);
}

.cb-btn-light .cb-btn-fill {
    background: var(--cb-ink);
}

.cb-btn-light:hover {
    color: var(--cb-white);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Outline Light Button on Dark Backgrounds */
.cb-btn-outline-light {
    background: transparent;
    color: var(--cb-white);
    border-color: rgba(255, 255, 255, 0.32);
}

.cb-btn-outline-light .cb-btn-fill {
    background: var(--cb-white);
}

.cb-btn-outline-light:hover {
    color: var(--cb-ink);
    border-color: var(--cb-white);
}

/* Project Accent Button */
.cb-btn-accent {
    background: var(--proj-accent);
    border-color: var(--proj-accent);
    color: #ffffff;
}

.cb-btn-accent .cb-btn-fill {
    background: var(--cb-ink);
}

.cb-btn-accent:hover {
    color: #ffffff;
    border-color: var(--cb-ink);
}

.cb-btn-text {
    display: inline-block;
    overflow: hidden;
    position: relative;
    line-height: 1.5;
}

.cb-btn-text span {
    display: inline-block;
    transition: transform 0.48s var(--cb-ease);
}

.cb-btn-text::after {
    content: attr(data-text);
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    transition: transform 0.48s var(--cb-ease);
}

.cb-btn:hover .cb-btn-text span,
.cb-btn:hover .cb-btn-text::after {
    transform: translateY(-100%);
}

/* 10. Scroll Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.85s var(--cb-ease), transform 0.85s var(--cb-ease);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.cb-line-mask {
    display: block;
    overflow: hidden;
    padding: 0.08em 0 0.28em;
    margin: -0.08em 0 -0.28em;
}

.cb-line-mask > span {
    display: inline-block;
    transform: translateY(112%);
    opacity: 0;
    animation: cbLineUp 0.95s var(--cb-ease) forwards;
    animation-delay: var(--d, 0.08s);
}

@keyframes cbLineUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 11. Front Page — HERO (Pure Cuberto Editorial Light Canvas + Living Capsule & Kinetic Spark) */
.cb-hero {
    padding: calc(var(--cb-header-h) + clamp(42px, 7vh, 86px)) 0 clamp(54px, 7vh, 88px);
    background: var(--cb-white);
    position: relative;
}

.cb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-paper);
    border: 1px solid var(--cb-border-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-ink-muted);
    margin-bottom: clamp(24px, 3.5vw, 38px);
}

.cb-hero-title {
    font-size: clamp(36px, 6.2vw, 84px);
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: -0.03em;
    color: var(--cb-ink);
    margin-bottom: clamp(28px, 4vw, 44px);
}

/* Second Living Hero Element: Magnetic Spinning Kinetic Star Emblem */
.cb-hero-spark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: clamp(44px, 5.2vw, 72px);
    height: clamp(44px, 5.2vw, 72px);
    border-radius: 50%;
    background: var(--cb-paper);
    border: 1.5px solid var(--cb-border-light);
    color: var(--cb-ink);
    margin-right: clamp(10px, 1.4vw, 20px);
    transform: translateY(-0.08em);
    transition: background-color 0.4s var(--cb-ease), color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.cb-hero-spark svg {
    width: 52%;
    height: 52%;
    animation: cbSpin 11s linear infinite;
    transition: transform 0.5s var(--cb-ease);
}

.cb-hero-spark:hover {
    background: var(--cb-ink);
    border-color: var(--cb-ink);
    color: #34d399;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.18);
}

.cb-hero-spark:hover svg {
    animation-duration: 2.4s;
}

/* Always-Alive Editorial Kinetic Marquee Ribbon under Hero */
.cb-hero-ribbon {
    border-top: 1px solid var(--cb-border-light);
    border-bottom: 1px solid var(--cb-border-light);
    background: var(--cb-paper);
    padding: clamp(16px, 2vw, 24px) 0;
    color: var(--cb-ink);
}

.cb-hero-ribbon .cb-marquee-track span {
    font-size: clamp(18px, 2.1vw, 26px);
    font-weight: 500;
    opacity: 0.82;
}

.cb-hero-ribbon .cb-marquee-track .cb-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    opacity: 0.85;
}

.cb-hero-title .cb-thin {
    font-weight: 300;
    color: var(--cb-ink-muted);
}

/* Signature Cuberto Kinetic Pill Capsule embedded right inside H1 */
.cb-hero-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: clamp(92px, 12.5vw, 175px);
    height: clamp(44px, 5.8vw, 82px);
    border-radius: var(--cb-radius-pill);
    overflow: hidden;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    position: relative;
    margin: 0 clamp(8px, 1vw, 16px);
    background: #0f172a;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
    transform: translateY(-0.06em) translateZ(0);
    cursor: pointer;
    transition: transform 0.45s var(--cb-ease), box-shadow 0.45s ease;
}

.cb-hero-capsule:hover {
    transform: translateY(-0.06em) scale(1.06);
    box-shadow: 0 22px 48px rgba(17, 17, 17, 0.24);
}

.cb-hero-capsule canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.cb-hero-bottom {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
    align-items: end;
    padding-top: 24px;
    border-top: 1px solid var(--cb-border-light);
}

.cb-hero-lead {
    font-size: clamp(16px, 1.55vw, 21px);
    font-weight: 400;
    color: var(--cb-ink-muted);
    line-height: 1.9;
    max-width: 600px;
}

.cb-hero-lead strong {
    color: var(--cb-ink);
    font-weight: 700;
}

.cb-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

/* 12. Living Kinetic Strip / Intro Philosophy with Morphing Sphere Canvas */
.cb-intro-section {
    padding: clamp(56px, 8vw, 110px) 0;
    background: var(--cb-white);
}

.cb-intro-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.cb-sphere-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-sphere-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.cb-sphere-caption {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid var(--cb-border-light);
    border-radius: var(--cb-radius-pill);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-ink-muted);
    white-space: nowrap;
}

.cb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cb-ink-dim);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.cb-section-dark .cb-eyebrow {
    color: var(--cb-dark-muted);
}

.cb-intro-statement {
    font-size: clamp(22px, 2.7vw, 34px);
    font-weight: 500;
    line-height: 1.75;
    color: var(--cb-ink);
    margin-bottom: 32px;
}

.cb-intro-statement strong {
    font-weight: 800;
}

.cb-pillars-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 34px;
}

.cb-pillar-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--cb-radius-sm);
    background: var(--cb-paper);
    border: 1px solid transparent;
    transition: border-color 0.3s ease, transform 0.35s var(--cb-ease), background-color 0.3s ease;
}

.cb-pillar-pill:hover {
    border-color: var(--cb-ink);
    background: var(--cb-white);
    transform: translateY(-3px);
}

.cb-pillar-pill .cb-pillar-num {
    font-size: 13px;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cb-ink);
    color: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cb-pillar-pill strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--cb-ink);
}

.cb-pillar-pill div span {
    display: block;
    font-size: 12.5px;
    color: var(--cb-ink-muted);
}

/* 13. Cuberto Signature Rounded Dark Section (Featured Portfolio Showcase) */
.cb-section-dark {
    background: var(--cb-dark);
    color: var(--cb-dark-text);
    border-radius: var(--cb-radius-xl);
    padding: clamp(72px, 9vw, 130px) 0;
    position: relative;
    overflow: hidden;
    margin: 0 clamp(0px, 1vw, 16px);
}

.cb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: clamp(44px, 6vw, 76px);
}

.cb-h2 {
    font-size: clamp(32px, 5vw, 66px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.cb-h2 .cb-thin {
    font-weight: 300;
    opacity: 0.6;
}

/* Full-Row Portfolio Header with Inline Wide Living Heartbeat ECG */
.cb-portfolio-head {
    margin-bottom: clamp(44px, 6vw, 76px);
}

.cb-portfolio-title-row {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
    width: 100%;
    margin-bottom: 20px;
}

.cb-portfolio-title-row .cb-h2 {
    flex-shrink: 0;
}

.cb-ecg-banner {
    flex: 1;
    min-width: 120px;
    height: 64px;
    display: flex;
    align-items: center;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 92%, transparent 100%);
}

.cb-ecg-wide {
    width: 100%;
    height: 60px;
    display: block;
    overflow: visible;
}

.cb-ecg-wide-pulse {
    stroke-dasharray: 140 620;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.75));
    animation: cbEcgWideFlow 3.2s linear infinite;
}

.cb-portfolio-title-row:hover .cb-ecg-wide-pulse {
    animation-duration: 1.7s;
}

@keyframes cbEcgWideFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 760; }
}

.cb-portfolio-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Living Heartbeat Focal Word ("جان") inside Featured Portfolio Headline */
.cb-alive-word {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 0.1em;
    margin: 0 0.04em;
    vertical-align: baseline;
    cursor: default;
}

.cb-alive-txt {
    position: relative;
    z-index: 2;
    font-weight: 900;
    color: #34d399;
    text-shadow: 0 0 36px rgba(52, 211, 153, 0.3);
    animation: cbAliveBreath 3.2s ease-in-out infinite;
    display: inline-block;
}

.cb-alive-orb {
    position: absolute;
    top: 0.06em;
    left: -0.05em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
    z-index: 3;
}

.cb-alive-orb::before,
.cb-alive-orb::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid #34d399;
    animation: cbAliveRipple 2.4s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

.cb-alive-orb::after {
    animation-delay: 1.2s;
}

@keyframes cbAliveRipple {
    0% { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(2.8); opacity: 0; }
}

@keyframes cbAliveBreath {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@media (max-width: 900px) {
    .cb-portfolio-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cb-ecg-banner {
        width: 100%;
        height: 44px;
    }
    .cb-ecg-wide {
        height: 42px;
    }
}

.cb-section-sub {
    font-size: 16px;
    color: var(--cb-ink-muted);
    max-width: 520px;
    line-height: 1.85;
    margin-top: 14px;
}

.cb-section-dark .cb-section-sub {
    color: var(--cb-dark-muted);
}

/* Staggered 2-Column Cuberto Showcase Masonry */
.cb-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.cb-showcase-col-offset {
    margin-top: clamp(40px, 7vw, 100px);
}

.cb-project-card {
    display: block;
    margin-bottom: clamp(42px, 5.5vw, 76px);
    group: project;
}

.cb-project-card:last-child {
    margin-bottom: 0;
}

.cb-project-media {
    position: relative;
    border-radius: var(--cb-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #1b1b1b;
    margin-bottom: 22px;
    transform: translateZ(0);
    transition: border-radius 0.55s var(--cb-ease), transform 0.55s var(--cb-ease);
}

.cb-project-card:hover .cb-project-media {
    border-radius: 44px;
}

.cb-project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.85s var(--cb-ease);
}

.cb-project-card:hover .cb-project-media img {
    transform: scale(1.06);
}

.cb-project-accent-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
    opacity: 0.65;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.cb-project-card:hover .cb-project-accent-glow {
    opacity: 0.4;
}

.cb-project-vibe-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 14px;
    border-radius: var(--cb-radius-pill);
    background: rgba(14, 14, 14, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cb-project-vibe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--proj-accent, #ffffff);
}

.cb-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 0 6px;
}

.cb-project-title {
    font-size: clamp(20px, 2.1vw, 26px);
    font-weight: 700;
    color: inherit;
    margin-bottom: 6px;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.cb-project-desc {
    font-size: 14.5px;
    color: var(--cb-dark-muted);
    line-height: 1.75;
}

.cb-section-light .cb-project-desc {
    color: var(--cb-ink-muted);
}

.cb-project-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 18px;
    transition: background-color 0.35s var(--cb-ease), color 0.35s ease, transform 0.45s var(--cb-ease), border-color 0.35s ease;
}

.cb-section-light .cb-project-arrow {
    border-color: var(--cb-border-light);
}

.cb-project-card:hover .cb-project-arrow {
    background: var(--proj-accent, #ffffff);
    border-color: var(--proj-accent, #ffffff);
    color: #ffffff;
    transform: rotate(-45deg) scale(1.06);
}

/* 14. Live Services Hub Section (Listino + Future Services) */
.cb-section-light {
    padding: clamp(72px, 9vw, 130px) 0;
    background: var(--cb-white);
    position: relative;
}

.cb-services-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.cb-service-card {
    position: relative;
    border-radius: var(--cb-radius-lg);
    padding: clamp(32px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.5s var(--cb-ease), box-shadow 0.5s var(--cb-ease);
}

.cb-service-card:hover {
    transform: translateY(-6px);
}

.cb-service-card-flagship {
    background: #0e1116;
    color: #ffffff;
    box-shadow: 0 30px 70px rgba(14, 17, 22, 0.16);
}

.cb-service-card-flagship .cb-service-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.42;
    pointer-events: none;
}

.cb-service-card-inner {
    position: relative;
    z-index: 2;
}

.cb-service-card-upcoming {
    background: var(--cb-paper);
    border: 1.5px dashed rgba(17, 17, 17, 0.18);
    color: var(--cb-ink);
}

.cb-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--cb-radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cb-service-badge-live {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cb-service-badge-soon {
    background: var(--cb-white);
    color: var(--cb-ink-muted);
    border: 1px solid var(--cb-border-light);
}

.cb-service-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
}

.cb-service-desc {
    font-size: 15.5px;
    line-height: 1.9;
    opacity: 0.82;
    max-width: 520px;
    margin-bottom: 28px;
}

.cb-service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.cb-service-features span {
    padding: 6px 13px;
    border-radius: var(--cb-radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cb-service-card-upcoming .cb-service-features span {
    background: var(--cb-white);
    border-color: var(--cb-border-light);
    color: var(--cb-ink-muted);
}

.cb-service-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.cb-project-media-framed {
    background: var(--proj-dark, #121216);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-project-media-framed img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

/* ==========================================================================
   Bespoke Zero-Bloat Animated Portfolio Card Stages (GPU 60fps CSS + SVG)
   ========================================================================== */
.cb-project-media-stage {
    background: var(--proj-dark, #121215);
    border: 1px solid rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.cb-section-light .cb-project-media-stage {
    border-color: rgba(17, 17, 17, 0.08);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.cb-live-stage {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--st-accent) 22%, transparent) 0%, transparent 58%),
                linear-gradient(155deg, var(--st-dark, #111216) 0%, #090a0d 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(16px, 2.2vw, 26px);
    overflow: hidden;
    transition: transform 0.65s var(--cb-ease);
}

.cb-project-card:hover .cb-live-stage {
    transform: scale(1.02);
}

.cb-stage-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.45;
    pointer-events: none;
}

.cb-stage-glow {
    position: absolute;
    width: 64%;
    height: 64%;
    left: -12%;
    bottom: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--st-accent) 0%, transparent 70%);
    opacity: 0.18;
    filter: blur(26px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.6s var(--cb-ease);
}

.cb-project-card:hover .cb-stage-glow {
    opacity: 0.3;
    transform: scale(1.12);
}

.cb-stage-visual {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.6vw, 22px);
    min-height: 0;
}

.cb-stage-svg {
    position: relative;
    flex: 0 0 44%;
    width: 44%;
    height: 100%;
    max-height: 190px;
    pointer-events: none;
    overflow: visible;
}

.cb-stage-hud {
    position: relative;
    z-index: 3;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.cb-hud-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: clamp(11px, 1vw, 12.8px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    max-width: 100%;
}

.cb-hud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cb-hud-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: clamp(10.5px, 0.95vw, 12px);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 100%;
}

.cb-hud-pill-ok {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.35);
}

.cb-stage-footer {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
}

.cb-stage-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-stage-domain {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.35s var(--cb-ease);
}

.cb-project-card:hover .cb-stage-domain {
    transform: translateX(-4px);
}

/* Lightweight GPU-Composited Stage Keyframes */
.cb-anim-spin-slow {
    transform-box: fill-box;
    transform-origin: center;
    animation: cbSpin 18s linear infinite;
}

.cb-anim-spin-rev {
    transform-box: fill-box;
    transform-origin: center;
    animation: cbSpin 14s linear infinite reverse;
}

.cb-anim-float-1 {
    animation: cbStageFloat 4.2s ease-in-out infinite;
}

.cb-anim-float-2 {
    animation: cbStageFloat 4.2s ease-in-out 1.4s infinite;
}

.cb-anim-scan-y {
    animation: cbScanY 3.4s ease-in-out infinite;
}

.cb-anim-pulse-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: cbStagePulse 3s ease-out infinite;
}

.cb-anim-pulse-ring-2 {
    transform-box: fill-box;
    transform-origin: center;
    animation: cbStagePulse 3s ease-out 1.5s infinite;
}

.cb-anim-draw {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: cbStageDraw 3.6s var(--cb-ease) infinite;
}

.cb-anim-bar-1 { transform-origin: bottom; animation: cbBarGrow 3.2s ease-in-out infinite; }
.cb-anim-bar-2 { transform-origin: bottom; animation: cbBarGrow 3.2s ease-in-out 0.4s infinite; }
.cb-anim-bar-3 { transform-origin: bottom; animation: cbBarGrow 3.2s ease-in-out 0.8s infinite; }

@keyframes cbStageFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -6px, 0); }
}

@keyframes cbScanY {
    0%, 100% { transform: translate3d(0, -14px, 0); opacity: 0.25; }
    50% { transform: translate3d(0, 14px, 0); opacity: 0.85; }
}

@keyframes cbStagePulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes cbStageDraw {
    0% { stroke-dashoffset: 220; opacity: 0.4; }
    55% { stroke-dashoffset: 0; opacity: 1; }
    85% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -220; opacity: 0.3; }
}

@keyframes cbBarGrow {
    0%, 100% { transform: scaleY(0.75); }
    50% { transform: scaleY(1.08); }
}

@media (max-width: 600px) {
    .cb-stage-svg { flex: 0 0 38%; width: 38%; }
    .cb-stage-hud { gap: 6px; }
    .cb-hud-card { padding: 6px 10px; font-size: 10.5px; }
    .cb-hud-pill { padding: 5px 9px; font-size: 10px; }
    .cb-stage-footer { font-size: 11px; padding-top: 9px; }
}

.cb-project-vibe-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-dark-muted);
    margin-bottom: 6px;
}

.cb-section-light .cb-project-vibe-inline {
    color: var(--cb-ink-muted);
}

.cb-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    position: relative;
    padding-bottom: 4px;
}

.cb-text-link::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 1.5px;
    background: currentColor;
    transform-origin: right center;
    transform: scaleX(0.42);
    transition: transform 0.4s var(--cb-ease);
}

.cb-text-link:hover::after {
    transform: scaleX(1);
}

/* Live Interactive Listino Mini-Preview inside Full-Width Flagship Service Card */
.cb-services-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cb-service-flagship-wide {
    padding: clamp(34px, 4.5vw, 56px);
}

.cb-service-split {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.cb-listino-preview {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.cb-listino-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
}

.cb-listino-bar {
    height: 4px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 16px;
}

.cb-listino-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.45s var(--cb-ease);
}

.cb-services-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.cb-service-upcoming-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: clamp(28px, 3.5vw, 40px) clamp(28px, 4vw, 48px);
    border-radius: var(--cb-radius-lg);
    background: var(--cb-paper);
    border: 1.5px dashed rgba(17, 17, 17, 0.16);
}

.cb-service-upcoming-info h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    color: var(--cb-ink);
    margin-bottom: 8px;
}

.cb-service-upcoming-info p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--cb-ink-muted);
    margin: 0;
}

.cb-service-upcoming-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cb-service-upcoming-bar .cb-service-features span {
    background: var(--cb-white);
    border: 1px solid var(--cb-border-light);
    color: var(--cb-ink-muted);
}

@media (max-width: 960px) {
    .cb-service-split,
    .cb-service-upcoming-bar,
    .cb-services-subgrid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cb-listino-task {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: right;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.cb-listino-task:last-child { margin-bottom: 0; }

.cb-listino-task:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(52, 211, 153, 0.4);
}

.cb-listino-check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    display: grid;
    place-items: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.cb-listino-task.is-done {
    opacity: 0.62;
}

.cb-listino-task.is-done .cb-listino-task-txt {
    text-decoration: line-through;
}

.cb-listino-task.is-done .cb-listino-check {
    background: #10b981;
    border-color: #10b981;
    color: #06281e;
}

/* AI Article Editorial Cover Thumbnail inside Stream Rows */
.cb-article-row-with-thumb {
    grid-template-columns: 164px 132px 1fr auto;
    gap: 28px;
}

.cb-article-thumb-mini {
    width: 164px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--cb-border-light);
    background: var(--cb-white);
    flex-shrink: 0;
}

.cb-article-thumb-mini img,
.cb-article-thumb-mini svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s var(--cb-ease);
}

.cb-article-row:hover .cb-article-thumb-mini img,
.cb-article-row:hover .cb-article-thumb-mini svg {
    transform: scale(1.06);
}

/* Collapsible Clean Home SEO Dossier */
.cb-seo-toggle {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cb-seo-toggle::-webkit-details-marker { display: none; }

.cb-seo-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-white);
    border: 1px solid var(--cb-border-light);
    font-size: 13px;
    font-weight: 700;
    color: var(--cb-ink);
    flex-shrink: 0;
}

/* 15. AI News & Articles Editorial Stream (Crisp Non-Overlapping Card Rows) */
.cb-section-paper {
    background: var(--cb-paper);
    border-radius: var(--cb-radius-xl);
    padding: clamp(72px, 9vw, 120px) 0;
    margin: 0 clamp(0px, 1vw, 16px);
}

.cb-articles-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cb-article-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 22px 26px;
    background: var(--cb-white);
    border: 1px solid var(--cb-border-light);
    border-radius: var(--cb-radius-md);
    transition: transform 0.4s var(--cb-ease), border-color 0.3s ease, box-shadow 0.4s var(--cb-ease);
}

.cb-article-row.cb-article-row-with-thumb {
    grid-template-columns: 192px minmax(0, 1fr) auto;
    gap: 26px;
}

.cb-article-row:hover {
    transform: translateY(-3px);
    border-color: rgba(17, 17, 17, 0.24);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.cb-article-row .cb-article-thumb-mini {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--cb-border-light);
    background: #111214;
}

.cb-article-body-col {
    min-width: 0;
}

.cb-article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cb-article-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-paper);
    border: 1px solid var(--cb-border-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-ink-muted);
    white-space: nowrap;
}

.cb-article-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-ink-dim);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cb-article-breaking {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--cb-radius-pill);
    background: rgba(220, 38, 38, 0.09);
    font-size: 11.5px;
    font-weight: 700;
    color: #dc2626;
}

.cb-article-row-title {
    font-size: clamp(18px, 1.9vw, 23px);
    font-weight: 800;
    color: var(--cb-ink);
    line-height: 1.5;
    margin-bottom: 8px;
}

.cb-article-row-excerpt {
    font-size: 14.5px;
    color: var(--cb-ink-muted);
    line-height: 1.8;
    max-width: 720px;
}

.cb-article-row-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--cb-border-light);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.4s var(--cb-ease), background-color 0.3s ease, color 0.3s ease;
}

.cb-article-row:hover .cb-article-row-arrow {
    background: var(--cb-ink);
    color: var(--cb-white);
    border-color: var(--cb-ink);
    transform: translateX(-6px);
}

/* 16. Kinetic Marquee Strip */
.cb-marquee {
    overflow: hidden;
    width: 100%;
    direction: ltr;
}

.cb-marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    width: max-content;
    will-change: transform;
}

.cb-marquee-track span {
    font-size: clamp(24px, 3.6vw, 50px);
    font-weight: 300;
    white-space: nowrap;
    letter-spacing: -0.02em;
    direction: rtl;
}

.cb-marquee-track .cb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    flex-shrink: 0;
}

/* 17. Consultation & Collaboration Section (Clean, Calm, High-Conversion) */
.cb-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: start;
}

.cb-contact-grid > * {
    min-width: 0;
    max-width: 100%;
}

.cb-contact-card {
    background: var(--cb-paper);
    border-radius: var(--cb-radius-lg);
    padding: clamp(22px, 4vw, 48px);
    border: 1px solid var(--cb-border-light);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.cb-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 100%;
}

.cb-chip-btn {
    padding: 9px 16px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-white);
    border: 1px solid var(--cb-border-light);
    color: var(--cb-ink-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--cb-ease);
    text-align: center;
}

.cb-chip-btn:hover {
    border-color: var(--cb-ink);
    color: var(--cb-ink);
}

.cb-chip-btn.is-active {
    background: var(--cb-ink);
    border-color: var(--cb-ink);
    color: var(--cb-white);
}

.cb-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.cb-form-row > div {
    min-width: 0;
}

.cb-input {
    width: 100%;
    background: var(--cb-white);
    border: 1.5px solid var(--cb-border-light);
    border-radius: var(--cb-radius-sm);
    padding: 15px 18px;
    font-size: 14.5px;
    color: var(--cb-ink);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cb-input:focus {
    border-color: var(--cb-ink);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.cb-form-msg {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    min-height: 22px;
}

.cb-form-msg.success { color: #059669; }
.cb-form-msg.error { color: #dc2626; }

/* 18. Footer (Dark Kinetic Cuberto Footer) */
.cb-footer {
    background: var(--cb-dark);
    color: var(--cb-dark-text);
    border-radius: var(--cb-radius-xl) var(--cb-radius-xl) 0 0;
    margin-top: clamp(64px, 8vw, 110px);
    padding: clamp(72px, 9vw, 120px) 0 44px;
    position: relative;
    overflow: hidden;
}

.cb-footer-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.45;
    pointer-events: none;
}

.cb-footer-content {
    position: relative;
    z-index: 2;
}

.cb-footer-hero {
    margin-bottom: clamp(56px, 7vw, 88px);
}

.cb-footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cb-dark-muted);
    margin-bottom: 20px;
}

.cb-footer-headline {
    font-size: clamp(38px, 6.5vw, 86px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 36px;
}

.cb-footer-headline-sub {
    display: block;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
}

.cb-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cb-footer-marquee-wrap {
    border-top: 1px solid var(--cb-border-dark);
    border-bottom: 1px solid var(--cb-border-dark);
    padding: 26px 0;
    margin-bottom: 56px;
    color: rgba(255, 255, 255, 0.78);
}

.cb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}

.cb-footer-desc {
    font-size: 14px;
    color: var(--cb-dark-muted);
    line-height: 1.9;
    margin-top: 16px;
    max-width: 340px;
}

.cb-trust-badges {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 18px;
}

.cb-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cb-footer-col a {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s ease, padding-right 0.3s var(--cb-ease);
    display: inline-block;
}

.cb-footer-col a:hover {
    color: #ffffff;
    padding-right: 6px;
}

.cb-footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--cb-border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--cb-dark-muted);
}

/* 19. Floating Rotating Magnetic Contact Orb (Cuberto Bottom Corner) */
.cb-fab {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--cb-ink);
    color: var(--cb-white);
    display: grid;
    place-items: center;
    z-index: 820;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.38s var(--cb-ease), opacity 0.35s ease, background-color 0.35s ease, color 0.35s ease;
    will-change: transform, opacity;
}

.cb-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.75) translateY(16px);
}

body.cb-header-dark .cb-fab {
    background: var(--cb-white);
    color: var(--cb-ink);
}

.cb-fab-ring {
    position: absolute;
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    animation: cbSpin 16s linear infinite;
}

.cb-fab-ring text {
    fill: currentColor;
    font-size: 8.6px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@keyframes cbSpin {
    to { transform: rotate(360deg); }
}

.cb-fab-center {
    display: grid;
    place-items: center;
    transition: transform 0.4s var(--cb-ease);
}

.cb-fab:hover .cb-fab-center {
    transform: scale(1.18) rotate(-10deg);
}

/* 20. Per-Project Bespoke Case Study Hero & Interactive Stage */
.cb-proj-hero {
    position: relative;
    padding: calc(var(--cb-header-h) + clamp(42px, 6vw, 76px)) 0 clamp(56px, 7vw, 90px);
    background: var(--proj-tint);
    overflow: hidden;
    border-radius: 0 0 var(--cb-radius-xl) var(--cb-radius-xl);
}

.cb-proj-canvas {
    position: absolute;
    top: var(--cb-header-h);
    right: 0;
    left: 0;
    height: calc(100% - var(--cb-header-h));
    width: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.78;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 18%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 18%, rgba(0,0,0,1) 100%);
}

.cb-proj-hero-content {
    position: relative;
    z-index: 2;
}

.cb-breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-ink-muted);
    margin-bottom: 24px;
}

.cb-breadcrumbs a:hover {
    color: var(--cb-ink);
}

.cb-proj-vibe-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: var(--cb-radius-pill);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 13px;
    font-weight: 700;
    color: var(--proj-accent);
    margin-bottom: 20px;
}

.cb-proj-title {
    font-size: clamp(32px, 5vw, 66px);
    font-weight: 900;
    line-height: 1.24;
    letter-spacing: -0.03em;
    color: var(--cb-ink);
    margin-bottom: 18px;
    max-width: 980px;
}

.cb-proj-role {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--cb-ink-muted);
    font-weight: 500;
    max-width: 720px;
    margin-bottom: 30px;
}

.cb-proj-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.cb-proj-badge {
    padding: 7px 15px;
    border-radius: var(--cb-radius-pill);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-proj-banner-wrap {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.cb-proj-banner {
    border-radius: var(--cb-radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.14);
    border: 1px solid var(--cb-border-light);
    background: var(--cb-white);
}

.cb-proj-banner img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Interactive Nerkhino & Paxa Live Playground Micro-Widgets */
.cb-playground-box {
    margin: 40px 0;
    border-radius: var(--cb-radius-lg);
    padding: clamp(24px, 3.5vw, 38px);
    background: var(--proj-dark);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cb-playground-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.cb-playground-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--cb-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
    color: var(--proj-accent2);
}

.cb-nerkhino-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.cb-nerkhino-slider {
    flex: 1;
    min-width: 200px;
    accent-color: var(--proj-accent);
    cursor: pointer;
}

.cb-nerkhino-pct {
    min-width: 90px;
    text-align: center;
    padding: 8px 16px;
    border-radius: var(--cb-radius-pill);
    background: var(--proj-accent);
    font-weight: 800;
    font-size: 16px;
    direction: ltr;
}

.cb-nerkhino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cb-nerkhino-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--cb-radius-sm);
    padding: 18px;
}

.cb-nerkhino-item small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    margin-bottom: 6px;
}

.cb-nerkhino-old {
    display: block;
    font-size: 14.5px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.68);
}

.cb-nerkhino-new {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #34d399;
    margin-top: 2px;
}

/* Case Study Body Grid */
.cb-case-grid {
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(48px, 6vw, 80px) 0;
    align-items: start;
}

.cb-prose-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-lg);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--cb-border-light);
    font-size: 16px;
    line-height: 2.15;
    color: var(--cb-ink-muted);
}

.cb-prose-card h2,
.cb-prose-card h3 {
    color: var(--cb-ink);
    font-weight: 800;
    margin: 28px 0 14px;
    line-height: 1.45;
}

.cb-prose-card h2:first-child {
    margin-top: 0;
}

.cb-prose-card p {
    margin-bottom: 18px;
}

.cb-prose-card ul, .cb-prose-card ol {
    margin: 0 22px 18px 0;
}

.cb-prose-card strong {
    color: var(--cb-ink);
}

.cb-prose-card blockquote {
    margin: 26px 0;
    padding: 20px 24px;
    background: var(--cb-paper);
    border-right: 3.5px solid var(--cb-ink);
    border-radius: var(--cb-radius-sm);
    color: var(--cb-ink);
    font-weight: 500;
}

.cb-prose-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: var(--cb-paper);
    border: 1px solid var(--cb-border-light);
    color: var(--cb-ink);
    padding: 2px 7px;
    border-radius: 6px;
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.cb-prose-card pre {
    background: var(--cb-dark);
    color: #e4e4e7;
    padding: 20px;
    border-radius: var(--cb-radius-sm);
    overflow-x: auto;
    margin: 22px 0;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
    font-size: 13.5px;
    line-height: 1.8;
}

.cb-prose-card pre code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    display: inline;
}

/* Auto-Generated Interactive Table of Contents for AI Articles */
.cb-toc-box {
    background: var(--cb-paper);
    border: 1px solid var(--cb-border-light);
    border-radius: var(--cb-radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
    display: none;
}

.cb-toc-box.is-ready { display: block; }

.cb-toc-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--cb-ink);
    margin-bottom: 12px;
}

.cb-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.cb-toc-list a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-white);
    border: 1px solid var(--cb-border-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-ink-muted);
    transition: all 0.25s var(--cb-ease);
}

.cb-toc-list a:hover {
    background: var(--cb-ink);
    color: var(--cb-white);
    border-color: var(--cb-ink);
}

/* Cuberto Next Project Strip on Single Case Study */
.cb-next-proj {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    background: var(--cb-dark);
    color: #ffffff;
    border-radius: var(--cb-radius-lg);
    padding: clamp(28px, 4vw, 48px);
    margin: 28px 0 40px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--cb-ease);
}

.cb-next-proj:hover {
    transform: translateY(-4px);
}

.cb-next-proj-thumb {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.06);
}

.cb-next-proj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--cb-ease);
}

.cb-next-proj:hover .cb-next-proj-thumb img {
    transform: scale(1.06);
}

/* Related AI Articles Grid */
.cb-related-wrap {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--cb-border-light);
}

.cb-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Portfolio Filter Live Counter */
.cb-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
    margin-bottom: 44px;
}

.cb-filter-row .cb-filter-bar {
    margin: 0;
}

.cb-filter-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--cb-ink-dim);
}

.cb-sidebar-card {
    background: var(--cb-paper);
    border-radius: var(--cb-radius-lg);
    padding: 30px 26px;
    border: 1px solid var(--cb-border-light);
    margin-bottom: 24px;
}

.cb-sidebar-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cb-border-light);
}

.cb-spec-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cb-spec-label {
    display: block;
    font-size: 12px;
    color: var(--cb-ink-dim);
    margin-bottom: 3px;
}

.cb-spec-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--cb-ink);
}

.cb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cb-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-white);
    border: 1px solid var(--cb-border-light);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cb-ink-muted);
}

/* 21. Archive Headers & Filters */
.cb-page-hero {
    padding: calc(var(--cb-header-h) + clamp(42px, 6vw, 76px)) 0 clamp(40px, 5vw, 64px);
    background: var(--cb-white);
}

.cb-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.cb-filter-btn {
    padding: 10px 22px;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-paper);
    border: 1px solid transparent;
    color: var(--cb-ink-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--cb-ease);
}

.cb-filter-btn:hover {
    border-color: var(--cb-ink);
    color: var(--cb-ink);
}

.cb-filter-btn.is-active {
    background: var(--cb-ink);
    color: var(--cb-white);
}

/* Archive Cards Grid */
.cb-cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3.5vw, 44px);
}

.cb-cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cb-editorial-card {
    background: var(--cb-paper);
    border-radius: var(--cb-radius-lg);
    padding: 28px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.45s var(--cb-ease), background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.45s ease;
}

.cb-editorial-card:hover {
    background: var(--cb-white);
    border-color: var(--cb-border-light);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
}

.cb-card-thumb {
    border-radius: var(--cb-radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--cb-paper-2);
    margin-bottom: 20px;
}

.cb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s var(--cb-ease);
}

.cb-editorial-card:hover .cb-card-thumb img {
    transform: scale(1.06);
}

/* 22. Single AI Article — TL;DR & Prompt Box */
.cb-tldr-box {
    background: var(--cb-paper);
    border-right: 4px solid var(--cb-ink);
    border-radius: var(--cb-radius-md);
    padding: 26px 30px;
    margin-bottom: 36px;
}

.cb-tldr-label {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--cb-ink);
    margin-bottom: 10px;
}

.cb-prompt-card {
    background: var(--cb-dark);
    color: #f4f4f5;
    border-radius: var(--cb-radius-lg);
    padding: 28px 30px;
    margin: 36px 0;
}

.cb-prompt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.cb-prompt-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.9;
    color: #e4e4e7;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--cb-radius-sm);
    padding: 20px;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

/* 23. Resume Timeline */
.cb-timeline {
    position: relative;
    padding-right: 32px;
    border-right: 2px solid var(--cb-border-light);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cb-timeline-item {
    position: relative;
    background: var(--cb-paper);
    border-radius: var(--cb-radius-md);
    padding: 28px 30px;
    border: 1px solid var(--cb-border-light);
    transition: transform 0.4s var(--cb-ease), background-color 0.3s ease;
}

.cb-timeline-item:hover {
    background: var(--cb-white);
    transform: translateX(-6px);
}

.cb-timeline-dot {
    position: absolute;
    right: -41px;
    top: 32px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cb-white);
    border: 3px solid var(--cb-ink);
}

/* 24. SEO Dossier & FAQ */
.cb-seo-dossier {
    margin: clamp(48px, 6vw, 80px) 0 20px;
}

.cb-seo-inner {
    background: var(--cb-paper);
    border: 1px solid var(--cb-border-light);
    border-radius: var(--cb-radius-lg);
    padding: clamp(28px, 4vw, 48px);
}

.cb-seo-title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    color: var(--cb-ink);
    margin-bottom: 18px;
}

.cb-seo-prose {
    font-size: 15px;
    line-height: 2.05;
    color: var(--cb-ink-muted);
}

.cb-seo-prose p {
    margin-bottom: 14px;
}

.cb-faq-wrap {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--cb-border-light);
}

.cb-faq-heading {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cb-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-faq-item {
    background: var(--cb-white);
    border: 1px solid var(--cb-border-light);
    border-radius: var(--cb-radius-sm);
    padding: 16px 20px;
}

.cb-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.cb-faq-item summary::-webkit-details-marker { display: none; }

.cb-faq-plus {
    width: 22px;
    height: 22px;
    position: relative;
    flex-shrink: 0;
}

.cb-faq-plus::before,
.cb-faq-plus::after {
    content: '';
    position: absolute;
    background: var(--cb-ink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--cb-ease);
}

.cb-faq-plus::before { width: 14px; height: 2px; }
.cb-faq-plus::after { width: 2px; height: 14px; }

.cb-faq-item[open] .cb-faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.cb-faq-answer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cb-border-light);
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--cb-ink-muted);
}

/* 25. Responsive Rules */
@media (max-width: 1024px) {
    .cb-quick-nav { display: none; }
    .cb-hero-bottom,
    .cb-intro-grid,
    .cb-services-grid,
    .cb-contact-grid,
    .cb-case-grid,
    .cb-drawer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .cb-hero-actions { justify-content: flex-start; }
    .cb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-cards-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-nerkhino-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    :root { --cb-header-h: 68px; }
    .cb-showcase-grid,
    .cb-cards-grid-2,
    .cb-cards-grid-3,
    .cb-pillars-mini,
    .cb-form-row,
    .cb-footer-grid,
    .cb-service-split,
    .cb-next-proj,
    .cb-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .cb-hero-title {
        font-size: clamp(30px, 8.6vw, 44px);
        line-height: 1.32;
    }
    .cb-hero-capsule {
        width: 76px;
        height: 36px;
        margin: 0 6px;
    }
    .cb-btn {
        min-height: 46px;
        padding: 12px 24px;
        font-size: 14px;
    }
    .cb-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        max-width: 100%;
    }
    .cb-filter-bar::-webkit-scrollbar { display: none; }
    .cb-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 42px;
    }
    .cb-chips-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .cb-chip-btn {
        white-space: normal;
        line-height: 1.45;
        padding: 10px 10px;
        font-size: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cb-showcase-col-offset { margin-top: 0; }
    .cb-articles-stream {
        border-top: none;
        gap: 14px;
    }
    .cb-article-row,
    .cb-article-row.cb-article-row-with-thumb {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }
    .cb-article-row:hover {
        padding: 18px;
    }
    .cb-article-thumb-mini {
        width: 100%;
        max-width: 100%;
    }
    .cb-article-row-arrow { display: none; }
    .cb-fab { display: none !important; }
    .cb-section-dark,
    .cb-section-paper {
        margin: 0;
        border-radius: 28px;
    }
    .cb-prose-card {
        padding: 24px 20px;
        font-size: 15.5px;
    }
    .cb-seo-toggle {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 26. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .cb-line-mask > span { opacity: 1 !important; transform: none !important; }
}
