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

:root, html[data-theme="dark"] {
    --bg-main: #0C0C0A;
    --bg-card: #151412;
    --bg-card-hover: #1E1C18;
    --bg-pill: #211F1A;

    --accent-gold: #F4C444;
    --accent-gold-hover: #FFD254;
    --accent-gold-light: rgba(244, 196, 68, 0.12);
    --accent-gold-glow: rgba(244, 196, 68, 0.25);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(244, 196, 68, 0.35);

    --text-main: #F6F3EA;
    --text-muted: #A39D91;
    --text-dim: #787267;

    --shape-color: rgba(244, 196, 68, 0.14);

    --tg-card-bg: #1B1A17;
    --tg-banner-bg: #0E0E0C;
    --tg-box-bg: rgba(255, 255, 255, 0.05);
    --tg-box-hover: rgba(255, 255, 255, 0.09);
    --tg-text-name: #FFFFFF;

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-pill: 9999px;
    --radius-card: 28px;

    --transition-smooth: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] {
    --bg-main: #F6F4EE;
    --bg-card: #FFFFFF;
    --bg-card-hover: #EDE8DE;
    --bg-pill: #E5DFD3;

    --accent-gold: #C68E08;
    --accent-gold-hover: #A67400;
    --accent-gold-light: rgba(198, 142, 8, 0.14);
    --accent-gold-glow: rgba(198, 142, 8, 0.25);

    --border-color: rgba(0, 0, 0, 0.10);
    --border-hover: rgba(198, 142, 8, 0.45);

    --text-main: #1A1917;
    --text-muted: #5C564C;
    --text-dim: #8A8378;

    --shape-color: rgba(0, 0, 0, 0.13);

    --tg-card-bg: #FFFFFF;
    --tg-banner-bg: #EBE7DF;
    --tg-box-bg: rgba(0, 0, 0, 0.04);
    --tg-box-hover: rgba(0, 0, 0, 0.08);
    --tg-text-name: #1A1917;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    background: var(--bg-main);
    min-height: 100vh;
    position: relative;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

.shell {
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* ----------------------------------------------------
   HOVER REVEAL GROUP CARDS (TECH STACK)
   ---------------------------------------------------- */
/* ----------------------------------------------------
   HOVER REVEAL GROUP CARDS (TECH STACK)
   ---------------------------------------------------- */
.stack-hover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 5.5rem;
}

.stack-hover-card {
    position: relative;
    height: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
}

.stack-hover-card:hover,
.stack-hover-card:focus {
    border-color: var(--accent-gold);
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 20px 50px rgba(244, 196, 68, 0.16);
}

.card-default-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.stack-hover-card:hover .card-default-content,
.stack-hover-card:focus .card-default-content {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    pointer-events: none;
}

.card-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(244, 196, 68, 0.1);
    border: 1px solid rgba(244, 196, 68, 0.25);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.card-category-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.card-count-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(244, 196, 68, 0.1);
    border: 1px solid rgba(244, 196, 68, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
}

.card-hover-content {
    position: absolute;
    inset: 0;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
}

.stack-hover-card:hover .card-hover-content,
.stack-hover-card:focus .card-hover-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.card-tools-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

/* ----------------------------------------------------
   GUARDIANBOT FLOATING INTERACTIVE BACKGROUND SHAPES
   ---------------------------------------------------- */
.ambient-shapes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-interactive-shape {
    position: absolute;
    color: var(--shape-color);
    pointer-events: none;
    will-change: transform;
    transform-origin: center center;
    transform: translateZ(0);
    transition: color 0.4s ease;
}

.spin-cw-fast {
    animation: spinCW 26s linear infinite;
    will-change: transform;
}

.spin-ccw-medium {
    animation: spinCCW 38s linear infinite;
    will-change: transform;
}

.spin-cw-slow {
    animation: spinCW 54s linear infinite;
    will-change: transform;
}

.spin-ccw-slow {
    animation: spinCCW 70s linear infinite;
    will-change: transform;
}

@keyframes spinCW {
    from { transform: rotate(0deg) translateZ(0); }
    to { transform: rotate(360deg) translateZ(0); }
}

@keyframes spinCCW {
    from { transform: rotate(0deg) translateZ(0); }
    to { transform: rotate(-360deg) translateZ(0); }
}

/* ----------------------------------------------------
   WAVY SECTION DIVIDERS (GUARDIANBOT STYLE - IMAGE 2)
   ---------------------------------------------------- */
.wavy-divider {
    width: 100%;
    height: 38px;
    overflow: hidden;
    line-height: 0;
    margin-block: 2.5rem;
    position: relative;
    z-index: 5;
    opacity: 0.6;
}

.wavy-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ----------------------------------------------------
   SIDE SCROLL INDICATOR DOTS (IMAGE 3)
   ---------------------------------------------------- */
.side-dots-nav {
    position: fixed;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .side-dots-nav {
        display: none !important;
    }
}

.side-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transition: transform 0.3s ease, background-color 0.3s ease, height 0.3s ease;
    cursor: pointer;
    display: block;
}

.side-dot:hover {
    background: rgba(244, 196, 68, 0.6);
    transform: scale(1.3);
}

.side-dot.active {
    height: 22px;
    border-radius: var(--radius-pill);
    background: var(--accent-gold);
    box-shadow: 0 0 14px var(--accent-gold);
}

/* ----------------------------------------------------
   NAVBAR: EXPAND ON SCROLL UP / COMPACT ON SCROLL DOWN
   ---------------------------------------------------- */
.navbar-wrap {
    position: fixed;
    top: 1.25rem;
    inset-inline: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding-inline: 1rem;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.navbar-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.65rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transition: padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
    will-change: padding, gap;
    transform: translateZ(0);
}

.nav-collapsible {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 500px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
    will-change: max-width, opacity;
}

.navbar-wrap.scrolled .nav-collapsible {
    max-width: 0px;
    opacity: 0;
    margin: 0;
    gap: 0;
    pointer-events: none;
}

.navbar-wrap.scrolled .navbar-pill {
    padding: 0.45rem 1.15rem;
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(244, 196, 68, 0.3);
    gap: 0.8rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-divider {
    display: none;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
    .nav-divider { display: block; }
}



.btn-nav-gold {
    padding: 0.5rem 1.25rem;
    background: var(--accent-gold);
    color: #0E0E0C;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-nav-gold:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-gold-glow);
}

/* ----------------------------------------------------
   SECTIONS & LAYOUT
   ---------------------------------------------------- */
.section {
    padding-block: 6rem;
    position: relative;
    overflow: hidden;
}

.section-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero-section {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 4rem;
    text-align: left;
}

.hero-header-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-sticker-top {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-main);
    max-width: 920px;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 760px;
    margin-bottom: 2.75rem;
    font-weight: 400;
}

.hero-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}

.hero-sticker-bottom {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    margin-left: -0.25rem;
}

.btn-primary-gold {
    padding: 0.95rem 2.2rem;
    background: var(--accent-gold);
    color: #0E0E0C;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-gold:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-gold-glow);
}

.btn-secondary-dark {
    padding: 0.95rem 2rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-dark:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

/* ----------------------------------------------------
   TYPOGRAPHY & REVEAL ANIMATIONS
   ---------------------------------------------------- */
.reveal-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.display-title {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.display-title span {
    color: var(--accent-gold);
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ----------------------------------------------------
   PROJECTS HORIZONTAL SLIDER
   ---------------------------------------------------- */
.carousel-tabs-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.carousel-tab-btn {
    width: 100%;
    padding: 0.6rem 1.25rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    cursor: pointer;
    line-height: 1.2;
    text-wrap: balance;
}

.carousel-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

.carousel-tab-btn.active {
    background: var(--accent-gold);
    color: #0E0E0C;
    border-color: var(--accent-gold);
    font-weight: 800;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
}

.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 3rem 2.5rem;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .carousel-slide {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
}

.slide-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.slide-lottie-box {
    width: 75px;
    height: 75px;
}

.slide-index {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: var(--accent-gold-light);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
}

.slide-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.slide-subtitle {
    font-size: 0.98rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.slide-narrative {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.slide-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.slide-chip {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-main);
    background: var(--bg-pill);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.slide-action-btn:hover {
    color: var(--accent-gold-hover);
    transform: translateX(4px);
}

.slide-preview-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.slide-preview-panel:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(244, 196, 68, 0.12);
}

.slide-preview-lottie {
    width: 130px;
    height: 130px;
    margin-bottom: 1rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-arrow:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.08);
}

/* ----------------------------------------------------
   INTERACTIVE GOLDEN RAIL TIMELINE
   ---------------------------------------------------- */
.golden-rail-container {
    position: relative;
    padding-left: 3rem;
    margin-top: 2.5rem;
}

.rail-track-line {
    position: absolute;
    left: 1rem;
    top: 2rem;
    bottom: 2rem;
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
}

.rail-glow-progress {
    position: absolute;
    left: 1rem;
    top: 2rem;
    width: 3px;
    height: 0%;
    background: var(--accent-gold);
    box-shadow: 0 0 14px var(--accent-gold);
    border-radius: 9999px;
    transition: height 0.4s ease-out;
}

.rail-item-node {
    position: relative;
    margin-bottom: 2.5rem;
}

.rail-item-node:last-child {
    margin-bottom: 0;
}

.rail-node-dot {
    position: absolute;
    left: -3rem;
    top: 2.2rem;
    transform: translateX(calc(1rem - 50%));
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.rail-item-node.active .rail-node-dot {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold), 0 0 35px var(--accent-gold-glow);
    transform: translateX(calc(1rem - 50%)) scale(1.3);
}

.rail-card-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2.75rem 2.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.35;
    transform: translateX(25px);
}

.rail-item-node.active .rail-card-body {
    opacity: 1;
    transform: translateX(0);
    border-color: rgba(244, 196, 68, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 850px) {
    .golden-rail-container {
        padding-left: 2rem;
    }
    .rail-card-body {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
}

/* ----------------------------------------------------
   ARTHOUSE PIPELINE (ORGANIC STAGGERED FLOW WITH ARROWS)
   ---------------------------------------------------- */
.arthouse-pipeline-container {
    position: relative;
    min-height: 940px;
    margin-top: 3rem;
}

.arthouse-svg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.arthouse-arrow-path {
    stroke: var(--accent-gold);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 10 6;
    animation: dashFlow 20s linear infinite;
    filter: drop-shadow(0 0 10px var(--accent-gold-glow));
    opacity: 0.85;
    will-change: stroke-dashoffset;
}

.arthouse-card {
    position: absolute;
    z-index: 2;
    width: 45%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    will-change: transform;
    transform: translateZ(0);
}

.arthouse-card:hover {
    border-color: var(--accent-gold);
    transform: scale(1.03) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(244, 196, 68, 0.18);
}

.arthouse-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.step-pill-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    background: rgba(244, 196, 68, 0.1);
    border: 1px solid rgba(244, 196, 68, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.step-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.arthouse-card:hover .step-icon-box {
    background: var(--accent-gold);
    color: #0E0E0C;
    border-color: var(--accent-gold);
    transform: rotate(6deg) scale(1.08);
}

.arthouse-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.micro-chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
}

.arthouse-card-1 { left: 1%; top: 20px; transform: rotate(-1.8deg); }
.arthouse-card-2 { right: 1%; top: 140px; transform: rotate(2deg); }
.arthouse-card-3 { left: 4%; top: 480px; transform: rotate(-1.2deg); }
.arthouse-card-4 { right: 2%; top: 590px; transform: rotate(2.4deg); }

@media (max-width: 900px) {
    .arthouse-pipeline-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }
    .arthouse-card {
        position: relative;
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
    }
    .arthouse-svg-layer {
        display: none;
    }
}

/* ----------------------------------------------------
   APPROACH & PROCESS CARDS
   ---------------------------------------------------- */
.cards-trio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.info-card-icon {
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.info-card-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------
   TECH STACK GRID
   ---------------------------------------------------- */
.stack-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.tech-pill {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tech-pill:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 196, 68, 0.15);
}

/* ----------------------------------------------------
   CTA SECTION
   ---------------------------------------------------- */
.cta-section {
    padding: 7rem 0 10rem 0;
    margin-bottom: 5rem;
    position: relative;
    z-index: 5;
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-left: 0.2rem;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.08) rotate(15deg);
}

/* ----------------------------------------------------
   TELEGRAM NATIVE PROFILE CARD (CONTACT SECTION)
   ---------------------------------------------------- */
.tg-profile-container {
    max-width: 620px;
    margin: 2.5rem auto 0 auto;
}

.tg-profile-card {
    background: var(--tg-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-profile-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 50px var(--accent-gold-glow);
}

.tg-profile-banner {
    position: relative;
    padding: 4.5rem 2rem 2.5rem 2rem;
    background: var(--tg-banner-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.tg-profile-banner::before {
    content: '';
    position: absolute;
    bottom: -35%;
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: var(--accent-gold-light);
    animation: orbPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.75; }
    50% { transform: translateX(-50%) scale(1.65) translateY(-30px); opacity: 1; }
}

.tg-avatar-wrapper {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 3px;
    background: var(--tg-card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.tg-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tg-name-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--tg-text-name);
}

.tg-name-sticker {
    width: 36px;
    height: 36px;
    display: inline-block;
}

.tg-bottom-sticker {
    width: 80px;
    height: 80px;
    margin-top: 1.25rem;
}

.tg-status-online {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.tg-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 8px #4ADE80;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.tg-profile-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--tg-card-bg);
}

.tg-channel-box {
    background: var(--tg-box-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.tg-channel-box:hover {
    background: var(--tg-box-hover);
    border-color: var(--border-hover);
}

.tg-channel-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tg-channel-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.tg-channel-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.tg-channel-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tg-info-row {
    background: var(--tg-box-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.tg-info-label {
    font-size: 0.78rem;
    font-weight: 400;
    color: #8E8E93;
}

.tg-info-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: #24A1DE;
}

.tg-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.25rem 0;
}

/* ----------------------------------------------------
   CTA SECTION & FOOTER
   ---------------------------------------------------- */
.cta-inner {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.cta-lottie-container {
    width: 140px;
    height: 140px;
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

.cta-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.cta-title span {
    color: var(--accent-gold);
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

footer {
    border-top: 1px solid var(--border-color);
    padding-block: 3rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

/* ====================================================
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM (360px - 768px)
   ==================================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .shell {
        padding-inline: 1rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .section {
        padding-block: 3.5rem 2.5rem !important;
    }

    /* HIDE OVERLAPPING SIDE DOTS ON MOBILE */
    .side-dots-nav {
        display: none !important;
    }

    /* SCALED BACKGROUND SHAPES FOR MOBILE */
    .bg-interactive-shape svg {
        transform: scale(0.55) !important;
        transform-origin: center center;
    }

    /* NAVBAR PILL MOBILE FIT */
    .navbar-wrap {
        top: 0.5rem !important;
        padding-inline: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .navbar-pill {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.45rem 0.75rem !important;
        justify-content: space-between !important;
        gap: 0.4rem !important;
    }

    .brand-link span {
        font-size: 0.9rem !important;
    }

    .btn-nav-gold {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.76rem !important;
    }

    .theme-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    /* HERO SECTION MOBILE TUNING */
    .hero-section {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
        min-height: auto !important;
    }

    .hero-header-top {
        margin-bottom: 0.75rem !important;
    }

    .hero-sticker-top {
        width: 65px !important;
        height: 65px !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.4rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
        letter-spacing: -0.02em !important;
    }

    .hero-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.75rem !important;
    }

    .hero-bottom-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .btn-primary-gold, .btn-secondary-dark {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 0.85rem 1.25rem !important;
    }

    .hero-sticker-bottom {
        width: 70px !important;
        height: 70px !important;
        align-self: center !important;
        margin-top: 0.5rem !important;
    }

    /* CASES SECTION TABS & CAROUSEL MOBILE */
    .carousel-tabs-row {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1.25rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .carousel-tabs-row::-webkit-scrollbar {
        display: none !important;
    }

    .carousel-tab-btn {
        flex-shrink: 0 !important;
        width: auto !important;
        white-space: nowrap !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.78rem !important;
    }

    .carousel-slide {
        padding: 1.35rem 1.15rem !important;
        border-radius: 20px !important;
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .slide-title {
        font-size: 1.35rem !important;
    }

    .slide-subtitle {
        font-size: 0.88rem !important;
    }

    .slide-narrative {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    .slide-action-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .slide-preview-panel {
        padding: 1rem !important;
    }

    /* APPROACH GOLDEN RAIL TIMELINE MOBILE */
    .golden-rail-container {
        padding-left: 1.25rem !important;
    }

    .golden-rail-line {
        left: 6px !important;
    }

    .rail-node-dot {
        left: -1.25rem !important;
        width: 14px !important;
        height: 14px !important;
    }

    .rail-item-node .rail-card-body {
        opacity: 1 !important;
        transform: none !important;
        padding: 1.25rem 1rem !important;
        border-radius: 18px !important;
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* PROCESS PIPELINE MOBILE */
    .arthouse-pipeline-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        min-height: auto !important;
    }

    .arthouse-card {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        padding: 1.35rem 1.15rem !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }

    .arthouse-svg-layer {
        display: none !important;
    }

    /* TECH STACK HOVER GRID MOBILE */
    .stack-hover-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .stack-hover-card {
        padding: 1.5rem 1.25rem !important;
        border-radius: 20px !important;
    }

    .stack-hover-card .card-hover-content {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        transform: none !important;
        margin-top: 1rem !important;
        pointer-events: auto !important;
    }

    .stack-hover-card:hover .card-default-content {
        opacity: 1 !important;
        transform: none !important;
    }

    /* CONTACTS & TG PROFILE CARD MOBILE */
    .tg-profile-container {
        padding-inline: 0 !important;
        width: 100% !important;
    }

    .tg-profile-card {
        padding: 1.25rem 1rem !important;
        border-radius: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tg-channel-box {
        padding: 0.75rem 0.85rem !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .tg-channel-title {
        font-size: 0.92rem !important;
    }

    .tg-channel-sub {
        font-size: 0.76rem !important;
    }

    .footer-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }
}

/* Local fonts: no third-party requests at page load. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/webfonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/webfonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root { --font-mono: ui-monospace, Consolas, monospace; --text-dim: #a39d91; }
html[data-theme="light"] { --accent-gold: #936600; --accent-gold-hover: #785300; --text-dim: #625c51; }
html[data-theme="light"] :is(.btn-primary-gold,.btn-nav-gold,.carousel-tab-btn.active) { background: #f4c444; color: #17130a; }
:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 5px; }
section[id], main { scroll-margin-top: 105px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 20px; background: var(--bg-card); }
.skip-link:focus { top: 12px; }
.section-bg-shapes .bg-interactive-shape { pointer-events: auto; animation-play-state: paused; will-change: auto; }
.section-bg-shapes.motion-active .bg-interactive-shape { animation-play-state: running; will-change: transform; }
.bg-interactive-shape svg { transform-origin: center; }
.bg-interactive-shape.squish svg { animation: shapeSquish .42s cubic-bezier(.22,.9,.28,1); }
@keyframes shapeSquish {
    0%, 100% { transform: scale(1); }
    42% { transform: scale(.78, 1.16) rotate(4deg); }
    72% { transform: scale(1.07, .94) rotate(-2deg); }
}
.side-dots-nav { gap: 4px; right: 8px; }
.side-dot, .side-dot.active { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: transparent; box-shadow: none; transform: none; }
.side-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); transition: height .2s, background-color .2s; }
.side-dot.active::before { height: 24px; border-radius: 6px; background: var(--accent-gold); }
.side-dot:hover { background: var(--accent-gold-light); transform: none; }
.carousel-track { transform: translate3d(0, 0, 0); will-change: transform; }
.carousel-slide { grid-template-columns: 1fr 1fr; gap: 2rem; }
.carousel-tab-btn { min-height: 44px; }
.project-features { color: var(--text-muted); line-height: 1.6; margin: 1.2rem 0; }
.preview-label { color: var(--accent-gold); font-size: .8rem; margin-bottom: 1rem; }
.arthouse-card { backdrop-filter: none; -webkit-backdrop-filter: none; will-change: auto; }
.arthouse-arrow-path { filter: none; will-change: auto; animation-play-state: paused; }
.arthouse-svg-layer.is-visible .arthouse-arrow-path { animation-play-state: running; }
.slide-index { display: inline-block; margin-bottom: 1rem; }
.preview-title { font-size: 1.15rem; font-weight: 800; color: var(--text-main); margin-bottom: .4rem; }
.preview-copy { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.project-wordmark-panel { min-height: 280px; gap: 1rem; }
.project-wordmark { color: var(--accent-gold); font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.055em; line-height: .95; }
.project-state { color: var(--text-muted); border: 1px solid var(--border-color); border-radius: 999px; padding: .45rem .8rem; font-size: .78rem; font-weight: 700; }
.tg-profile-banner::before { animation-play-state: paused; }
.tg-profile-card.motion-active .tg-profile-banner::before { animation-play-state: running; }
html[data-theme="light"] :is(.stack-hover-card,.navbar-pill,.navbar-wrap.scrolled .navbar-pill,.carousel-slide,.slide-preview-panel,.rail-card-body,.arthouse-card,.tg-profile-card) { box-shadow: 0 4px 16px rgb(49 38 16 / 7%); }
.hero-section > .shell { padding-right: 420px; }
.hero-title { font-size: clamp(2.4rem,4.4vw,3.8rem); }
.hero-header-top:empty { display: none; }
.duck-stage { position: absolute; width: 410px; height: 430px; right: 0; top: 50%; transform: translateY(-50%); border-radius: 32px; touch-action: pan-y; }
.duck-stage canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 1000px) {
    .hero-section > .shell { padding-right: 340px; }
    .duck-stage { width: 320px; height: 370px; }
}
@media (max-width: 850px) {
    .carousel-slide { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-section > .shell { padding-right: 1rem; display: flex; flex-direction: column; }
    .duck-stage { position: relative; order: 3; top: auto; right: auto; transform: none; width: 100%; height: 290px; margin-top: .5rem; }
    .hero-title { font-size: clamp(1.9rem,7vw,2.6rem) !important; }
    .hero-subtitle { margin-bottom: 1.2rem !important; }
    .carousel-slide { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
