/* ============================================
   FELIX FRAMES — PORTFOLIO
   Premium Interactive Design
   ============================================ */

/* --- FONT FACE: Neue Haas Display --- */
@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayXXThin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayXThin.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayThin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayLight.ttf') format('truetype');
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('../assets/fonts/NeueHaasDisplayBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- ACCESSIBILITY --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus-visible ring for keyboard users only */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

:root {
    /* Brand Colors */
    --brand-black: #040404;
    --brand-pink: #F6B9C0;
    --brand-red: #F02D3A;
    --brand-orange: #FB8500;
    --brand-cream: #FFFEF7;
    --brand-green: #30AD6A;
    --brand-blue: #345BA7;

    /* Dark theme (default) */
    --bg: #040404;
    --text: var(--brand-cream);
    --text-secondary: #8a8a8a;
    --border: #1e1e1e;
    --card-bg: #0c0c0c;
    --accent: var(--brand-red);
    --accent-secondary: var(--brand-orange);
    --accent-soft: var(--brand-pink);
    --accent-green: var(--brand-green);
    --accent-blue: var(--brand-blue);
    --hero-overlay: rgba(4, 4, 4, 0.35);
    --nav-bg: rgba(4, 4, 4, 0.92);
    --placeholder-bg: #111;
    --hover-glow: rgba(240, 45, 58, 0.08);

}

[data-theme="light"] {
    --bg: var(--brand-cream);
    --text: var(--brand-black);
    --text-secondary: #555;
    --border: #e2e0da;
    --card-bg: #f3f2ed;
    --accent: var(--brand-red);
    --accent-secondary: var(--brand-orange);
    --accent-soft: var(--brand-pink);
    --accent-green: var(--brand-green);
    --accent-blue: var(--brand-blue);
    --hero-overlay: rgba(4, 4, 4, 0.25);
    --nav-bg: rgba(255, 254, 247, 0.92);
    --placeholder-bg: #f0efe8;
    --hover-glow: rgba(240, 45, 58, 0.08);
}

/* Light theme specific overrides */
[data-theme="light"] .hero-block {
    background: #f5f5f0;
}

[data-theme="light"] .hero-block-media {
    filter: brightness(1);
}

[data-theme="light"] .hero-block:hover .hero-block-media {
    filter: brightness(1.05);
}

[data-theme="light"] .hero-block-overlay {
    opacity: 0.6;
}

[data-theme="light"] .works-overlay {
    background: linear-gradient(135deg, rgba(240, 45, 58, 0.25), rgba(245, 245, 240, 0.7));
}

[data-theme="light"] .tools-overlay {
    background: linear-gradient(135deg, rgba(52, 91, 167, 0.25), rgba(245, 245, 240, 0.7));
}

[data-theme="light"] .fun-game-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .fun-game-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .detail-nav a:hover {
    background: #F02D3A;
}

[data-theme="light"] .experience-item:hover {
    background: rgba(240, 45, 58, 0.04);
}

html {
    font-size: 16px;
}

/* Lenis smooth scroll body class */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: 'Neue Haas Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    cursor: none;
}

/* Force hide default cursor on ALL elements (desktop only) */
@media (pointer: fine) {

    *,
    *::before,
    *::after {
        cursor: none !important;
    }
}

/* --- LOADING SCREEN --- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-loader.done {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.loader-plus {
    width: 60px;
    height: 60px;
    position: relative;
    animation: loader-spin 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.loader-plus::before,
.loader-plus::after {
    content: '';
    position: absolute;
    background: var(--brand-cream);
    border-radius: 3px;
}

.loader-plus::before {
    width: 8px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.loader-plus::after {
    width: 100%;
    height: 8px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(0.85);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* --- CUSTOM PLUS CURSOR --- */
.cursor-plus {
    width: 18px;
    height: 18px;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.cursor-plus::before,
.cursor-plus::after {
    content: '';
    position: absolute;
    background: var(--brand-cream);
    border-radius: 1.5px;
}

.cursor-plus::before {
    width: 3px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.cursor-plus::after {
    width: 100%;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.cursor-plus.cursor-hover {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
}

@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-plus {
        display: none !important;
    }
}

/* --- GLOBAL GRAIN OVERLAY --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
    mix-blend-mode: overlay;
}

[data-theme="light"] body::before {
    opacity: 0.025;
    mix-blend-mode: multiply;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 0.95;
    text-transform: uppercase;
}

.mono {
    font-family: 'Space Mono', monospace;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    padding: 14px 28px;
    border-bottom-color: var(--border);
}

.nav-logo {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* nav-center removed — toggle is now inside nav-right */

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

.theme-separator {
    opacity: 0.4;
}

[data-theme="dark"] .dark-label {
    color: var(--text);
    font-weight: 700;
}

[data-theme="light"] .light-label {
    color: var(--text);
    font-weight: 700;
}

.nav-right {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text);
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

.nav-hamburger span:first-child {
    top: 4px;
}

.nav-hamburger span:last-child {
    bottom: 4px;
}

.nav-hamburger.active span:first-child,
.nav-hamburger.overlay-active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-hamburger.active span:last-child,
.nav-hamburger.overlay-active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.05em;
    color: var(--text);
}

.mobile-theme-toggle {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-text-block {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    padding: 60px 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
}

.hero-text-left,
.hero-text-right {
    flex: 1 1 0%;
    min-width: 0;
}

.hero-title {
    font-size: clamp(0.65rem, 1.3vw, 1.1rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
}

.hero-tagline {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(0.65rem, 1.3vw, 1.1rem);
    font-weight: 700;
    color: var(--text);
    text-align: right;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
}

.hero-bar {
    display: flex;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease;
}

.hero-bar-item {
    flex: 1;
    padding: 28px 40px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-bar-item:last-child {
    border-right: none;
}

.bar-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.bar-value {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
}

.bar-value + .bar-value {
    margin-top: -4px;
}

.bar-value a {
    color: var(--text);
    transition: color 0.3s ease;
}

.bar-value a:hover {
    color: var(--accent);
    opacity: 1;
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: clamp(100px, 14vw, 160px) 40px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.section+.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: clamp(40px, 8vw, 100px);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
}

.section-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* --- ABOUT SECTION --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text);
}

.about-detail {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-image-circle {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin: 0 auto;
    background: var(--placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    border-radius: 8px;
    perspective: 800px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
    cursor: none;
    position: relative;
}

.about-image-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(240, 45, 58, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: 8px;
}

.about-image-circle:hover::after {
    opacity: 1;
}

.about-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform;
}

.about-image-circle:hover img {
    transform: scale(1.05);
    filter: contrast(1.05) brightness(1.02);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 60px 0 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.stat-number {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(6rem, 12vw, 10rem);
    line-height: 0.85;
    color: var(--text);
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

/* Experience */
.experience-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.experience-list {
    display: flex;
    flex-direction: column;
}

.experience-item {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    font-size: 0.85rem;
    transition: padding-left 0.4s cubic-bezier(0.23, 1, 0.32, 1), background 0.4s ease;
    border-radius: 4px;
}

.experience-item:hover {
    padding-left: 16px;
    background: var(--hover-glow);
}

.exp-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.exp-role {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exp-company {
    text-align: right;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}


/* --- WORKS & TOOLS HERO BLOCKS --- */
.section-hero-block {
    padding: 0 !important;
}

.hero-block {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-block:hover {
    transform: scale(1.005);
}

/* Video/Image background media */
.hero-block-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), filter 0.8s ease;
    filter: brightness(0.8);
}

.hero-block:hover .hero-block-media {
    transform: scale(1.06);
    filter: brightness(0.9);
}

/* Color overlay */
.hero-block-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.8s ease;
}

/* Works overlay — brand red */
.works-overlay {
    background: linear-gradient(135deg,
            rgba(240, 45, 58, 0.35) 0%,
            rgba(4, 4, 4, 0.75) 50%,
            rgba(4, 4, 4, 0.85) 100%);
}

/* Tools overlay — cool blue/green */
.tools-overlay {
    background: linear-gradient(135deg,
            rgba(52, 91, 167, 0.35) 0%,
            rgba(48, 173, 106, 0.15) 30%,
            rgba(4, 4, 4, 0.8) 60%,
            rgba(4, 4, 4, 0.88) 100%);
}

.hero-block:hover .hero-block-overlay {
    opacity: 0.75;
}

.hero-block-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-block-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.6;
}

.hero-block-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 200;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 16px;
    transition: letter-spacing 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-block:hover .hero-block-title {
    letter-spacing: 0.22em;
}

.hero-block-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-block-cta {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid rgba(255, 254, 247, 0.15);
    transition: all 0.4s ease;
}

.hero-block:hover .hero-block-cta {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(240, 45, 58, 0.06);
}

.hero-block-cta svg {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-block:hover .hero-block-cta svg {
    transform: translate(3px, -3px);
}

.hero-block-count {
    position: absolute;
    bottom: 24px;
    right: 32px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    opacity: 0.4;
    z-index: 2;
}

/* Subtle divider line between hero blocks */
.hero-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* --- PIXEL CHARACTER (Hello World) --- */
.px-char {
    position: fixed;
    z-index: 90;
    pointer-events: auto;
    cursor: grab;
    opacity: 0;
    will-change: transform, left, top;
    transition: opacity 0.4s ease;
    user-select: none;
    -webkit-user-select: none;
}
.px-char.is-dragging { cursor: grabbing; }

.px-char.is-visible { opacity: 1; }

.px-char canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    width: 80px;
    height: 130px;
}

.px-char.is-flipped canvas { transform: scaleX(-1); }

.px-cat {
    position: fixed;
    bottom: 80px;
    right: 32px;
    z-index: 91;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.px-cat.is-visible { opacity: 1; }
.px-cat canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    width: 70px;
    height: 70px;
}

.px-speech {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.px-speech::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border);
}

.px-speech.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .px-char { display: none; }
    .px-cat { display: none; }
}

/* --- SERVICES SECTION — BENTO GRID --- */
.svc-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 100px;
    padding: 40px 0;
}

.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    min-height: clamp(200px, 22vw, 320px);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    --card-accent: var(--accent);
    transition: border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.svc-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 0 0 1px var(--card-accent);
}

/* Per-card brand accent colors */
.svc-card[data-service="video"] { --card-accent: var(--brand-red); }
.svc-card[data-service="motion"] { --card-accent: var(--brand-orange); }
.svc-card[data-service="photo"] { --card-accent: var(--brand-pink); }
.svc-card[data-service="art"] { --card-accent: var(--brand-blue); }
.svc-card[data-service="brand"] { --card-accent: var(--brand-green); }
.svc-card[data-service="social"] { --card-accent: var(--brand-orange); }
.svc-card[data-service="web"] { --card-accent: var(--brand-blue); }

/* Hover glow line at bottom */
.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--card-accent);
    border-radius: 3px 3px 0 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.svc-card:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hover title color matches card accent */
.svc-card:hover .svc-card-title {
    color: var(--card-accent);
}

.svc-card:hover .svc-card-num {
    color: var(--card-accent);
}

.svc-card-lg {
    grid-row: span 2;
    min-height: clamp(420px, 46vw, 660px);
}

.svc-card-wide {
    grid-column: span 2;
}

.svc-card-accent {
    background: var(--accent);
    border-color: var(--accent);
}

.svc-card-accent .svc-card-num,
.svc-card-accent .svc-card-desc {
    color: rgba(255,255,255,0.7);
}

.svc-card-accent .svc-card-title,
.svc-card-accent .svc-card-arrow {
    color: #fff;
}

.svc-card-accent:hover .svc-card-title,
.svc-card-accent:hover .svc-card-num {
    color: #fff;
}

.svc-card-accent:hover {
    border-color: #fff;
    box-shadow: 0 20px 60px rgba(240, 45, 58, 0.3);
    background: color-mix(in srgb, var(--accent) 85%, #000);
}

.svc-card-accent::after {
    background: #fff;
}

/* Card content */
.svc-card-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.svc-card-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: letter-spacing 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.svc-card:hover .svc-card-title {
    letter-spacing: 0.02em;
    transform: translateX(4px);
}

.svc-card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.svc-card:hover .svc-card-desc {
    transform: translateX(4px);
}

.svc-card-arrow {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    font-size: 1.2rem;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.svc-card:hover .svc-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- PROCESS SECTION --- */
.process-section {
    padding-top: 60px;
}

.process-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 40px;
}


/* Two-panel process visual */
.process-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 80px;
    height: clamp(320px, 40vw, 480px);
}

.process-panel-color {
    background: var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3vw, 48px);
    position: relative;
}

.process-panel-color .panel-logo {
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 36px);
    color: rgba(255,255,255,0.9);
    width: clamp(36px, 4vw, 52px);
    height: clamp(36px, 4vw, 52px);
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.process-panel-color .panel-text {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.process-panel-color .panel-headline {
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.15;
    color: #fff;
    margin: 0;
    max-width: 280px;
}

.process-panel-color .panel-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    margin-top: 16px;
}

.process-panel-dots {
    position: relative;
    background: var(--bg);
    cursor: crosshair;
}

.process-panel-dots canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .process-panels {
        grid-template-columns: 1fr;
        height: auto;
    }
    .process-panel-color {
        min-height: 220px;
    }
    .process-panel-dots {
        min-height: 300px;
    }
}

/* Mobile bento */
@media (max-width: 900px) {
    .svc-bento {
        grid-template-columns: 1fr 1fr;
    }
    .svc-card-lg {
        grid-row: span 1;
        min-height: 200px;
    }
    .svc-card-wide {
        grid-column: span 2;
    }
    /* Fill layout gaps: 3rd and 7th card alone in 2-col grid */
    .svc-card:nth-child(3) {
        grid-column: span 2;
    }
    .svc-card:nth-child(7) {
        grid-column: span 2;
    }
    .svc-card {
        min-height: 180px;
    }
}

@media (max-width: 540px) {
    .svc-bento {
        grid-template-columns: 1fr;
    }
    .svc-card-wide,
    .svc-card:nth-child(3),
    .svc-card:nth-child(7) {
        grid-column: span 1;
    }
    .svc-card {
        min-height: 160px;
    }
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
}

.process-step {
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.step-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-desc {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* --- WORKS OVERVIEW PAGE --- */
.works-overview {
    min-height: 100vh;
    background: var(--bg);
}

.works-overview-hero {
    height: 60vh;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.works-overview-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 200;
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.works-overview-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-top: 20px;
    text-transform: uppercase;
}

.works-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 0 0 80px;
}

.works-overview-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--placeholder-bg);
    cursor: pointer;
}

.works-overview-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.works-overview-item img,
.works-overview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}

.works-overview-item:hover img,
.works-overview-item:hover video {
    transform: scale(1.04);
    filter: brightness(0.7);
}

.works-overview-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px 24px;
    background: linear-gradient(180deg, transparent, rgba(4, 4, 4, 0.8));
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.works-overview-item:hover .works-overview-item-info {
    transform: translateY(0);
}

.works-overview-item-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.works-overview-item-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #FFFEF7;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.works-overview-item-cat {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 254, 247, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Full-width item */
.works-overview-item.wo-full {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

@media (max-width: 768px) {
    .works-overview-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .works-overview-item {
        aspect-ratio: 16/10;
    }

    .works-overview-item.wo-full {
        aspect-ratio: 16/10;
    }

    .works-overview-item-info {
        transform: translateY(0);
        padding: 20px 16px 16px;
    }

    .works-overview-hero {
        height: 45vh;
    }
}

/* --- ART SECTION (legacy, kept for detail pages) --- */
.art-caption {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-top: 12px;
    display: block;
}

/* --- CONTACT SECTION --- */
.section-contact {
    padding-bottom: 80px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.contact-heading h3 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

.contact-value {
    font-size: 1rem;
}

.contact-cta {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--text);
    border-radius: 40px;
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text);
    border-radius: 40px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    background: var(--accent);
}

.cta-button:hover {
    color: #fff;
    opacity: 1;
    border-color: var(--accent);
}

.cta-button svg {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-button:hover svg {
    transform: translate(5px, -5px);
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 40px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-content .footer-top {
    text-align: right;
}

.footer-copy {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.footer-top {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* --- BRAND COLOR ACCENTS --- */
.section-number {
    color: var(--accent);
}

.nav-link:hover::after {
    background: var(--accent);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--brand-cream);
    border-color: var(--accent);
}

.cta-button {
    border-color: var(--accent);
    color: var(--text);
}

.cta-button::before {
    background: var(--accent);
}

.cta-button:hover {
    color: #fff;
    border-color: var(--accent);
}

.step-number {
    color: var(--accent);
}

/* Hero block hover accent handled inline */

.contact-value:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-top:hover {
    color: var(--accent);
    opacity: 1;
}

/* Colored accent dots */
.bar-label::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.hero-bar-item:nth-child(1) .bar-label::before {
    background: var(--brand-red);
}

.hero-bar-item:nth-child(2) .bar-label::before {
    background: var(--brand-orange);
}

.hero-bar-item:nth-child(3) .bar-label::before {
    background: var(--brand-green);
}

.hero-bar-item:nth-child(4) .bar-label::before {
    background: var(--brand-blue);
}

/* Process step colored top borders */
.process-step:nth-child(1) {
    border-top-color: var(--brand-red);
}

.process-step:nth-child(2) {
    border-top-color: var(--brand-orange);
}

.process-step:nth-child(3) {
    border-top-color: var(--brand-green);
}

.process-step:nth-child(4) {
    border-top-color: var(--brand-blue);
}

/* --- CARD LINK STYLES (works overview page) --- */

/* ============================================
   DETAIL PAGE STYLES
   ============================================ */

.detail-page {
    padding-top: 80px;
}

.detail-back {
    position: fixed;
    top: 75px;
    right: 40px;
    z-index: 999;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.detail-back:hover {
    color: var(--accent);
    opacity: 1;
}

.detail-back svg {
    transition: transform 0.3s ease;
}

.detail-back:hover svg {
    transform: translateX(-4px);
}

.detail-header {
    padding: 120px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.detail-meta-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-meta-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
}

.detail-meta-value {
    font-size: 0.85rem;
    text-align: right;
}

.detail-gallery {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-gallery-row {
    display: grid;
    gap: 20px;
}

.detail-gallery-row.single {
    grid-template-columns: 1fr;
}

.detail-gallery-row.double {
    grid-template-columns: 1fr 1fr;
}

.detail-gallery-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.detail-gallery-item {
    overflow: hidden;
    border-radius: 4px;
}

.detail-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-gallery-item video {
    aspect-ratio: 16/9;
}

.detail-description {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.detail-description p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Detail: Approach / Concept Section */
.detail-approach {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.detail-approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.detail-approach-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.detail-approach h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.detail-approach p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-approach-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.detail-approach-list li {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.detail-approach-list li span:last-child {
    color: var(--text-secondary);
}



/* Detail: Next/Prev Navigation */
.detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.detail-nav a {
    padding: 40px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s ease, padding 0.3s ease;
    position: relative;
}

.detail-nav a:hover {
    background: var(--card-bg);
}

.detail-nav a:first-child {
    border-right: 1px solid var(--border);
}

.detail-nav a:first-child:hover {
    padding-left: 50px;
}

.detail-nav a:last-child:hover {
    padding-right: 50px;
}

.detail-nav-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.detail-nav a:hover .detail-nav-label {
    color: var(--accent);
}

.detail-nav-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 500;
}

.detail-nav a:last-child {
    text-align: right;
}

/* More Works / More Art section */
.more-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.more-section h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
}

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

.more-item {
    position: relative;
    overflow: hidden;
}

.more-item-image {
    aspect-ratio: 16/10;
    background: var(--placeholder-bg);
    overflow: hidden;
}

.more-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.more-item:hover .more-item-image img {
    transform: scale(1.03);
}

.more-item-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.8rem;
}

.more-item-info span:last-child {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ============================================
   GALLERY PAGE STYLES (Photography, etc.)
   Horizontal scroll — wheel drives translateX
   ============================================ */

.gallery-page {
    background: var(--bg);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* ── Horizontal Track ────────────────────── */
.gal-track {
    display: flex;
    align-items: stretch;
    height: 100vh;
    will-change: transform;
}

/* ── Title Slide ─────────────────────────── */
.gal-slide--title {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gal-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 200;
    font-size: clamp(3rem, 10vw, 9rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
    opacity: 0;
    animation: galFadeIn 0.9s ease-out 0.2s forwards;
}

.gal-title-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 1.6rem 0 1rem;
    opacity: 0;
    animation: galFadeIn 0.6s ease-out 0.5s forwards;
}

.gal-title-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0;
    animation: galFadeIn 0.6s ease-out 0.7s forwards;
}

@keyframes galFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

/* ── Image Slides ────────────────────────── */
.gal-slide {
    flex: 0 0 auto;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2vw;
}

.gal-slide img {
    display: block;
    max-height: 92vh;
    max-width: 80vw;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Fixed UI: Back button override ──────── */
.gal-back {
    z-index: 100;
}

/* ── Fixed UI: Counter (bottom-right) ────── */
.gal-counter {
    position: fixed;
    bottom: clamp(20px, 3vh, 36px);
    right: clamp(20px, 3vw, 40px);
    z-index: 80;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--text);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gal-counter.visible {
    opacity: 0.4;
}

.gal-sep {
    opacity: 0.3;
    margin: 0 2px;
}

/* ── Fixed UI: Category label (bottom-left) ─ */
.gal-cat-label {
    position: fixed;
    bottom: clamp(20px, 3vh, 36px);
    left: clamp(20px, 3vw, 40px);
    z-index: 80;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gal-cat-label.visible {
    opacity: 0.4;
}

/* ── Fixed UI: Progress bar (bottom) ─────── */
.gal-progress-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 90;
}

.gal-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: none;
}

/* ── Responsive (mobile: touch swipe) ────── */
@media (max-width: 768px) {
    .gal-title {
        font-size: clamp(2.2rem, 11vw, 4.5rem);
        letter-spacing: 0.1em;
    }

    .gal-slide img {
        max-height: 80vh;
        max-width: 90vw;
    }

    .gal-slide {
        padding: 0 3vw;
    }

    .gal-counter,
    .gal-cat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .gal-title {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }

    .gal-slide img {
        max-height: 75vh;
        max-width: 94vw;
    }

    .gal-slide {
        padding: 0 2vw;
    }
}

/* ============================================
   FUN PAGE STYLES
   ============================================ */

.fun-page {
    padding-top: 80px;
    position: relative;
}

.fun-game-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.fun-game-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--hover-glow);
}

.fun-game-preview {
    aspect-ratio: 16/10;
    background: var(--placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.fun-game-info {
    padding: 20px;
}

.fun-game-info h3 {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.fun-game-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.fun-game-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
    margin-top: 10px;
}

.tag-creative {
    background: var(--brand-blue);
    color: var(--brand-cream);
}

.tag-interactive {
    background: var(--brand-green);
    color: var(--brand-cream);
}

.tag-visual {
    background: var(--brand-orange);
    color: var(--brand-cream);
}

/* Fun game containers */
.game-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.game-canvas {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: block;
}

/* Color palette game */
.palette-display {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.palette-swatch {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.palette-swatch:hover {
    transform: scale(1.05);
}

.palette-swatch.selected {
    border-color: var(--text);
    transform: scale(1.1);
}

/* --- GAME MODAL --- */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.game-modal.active {
    opacity: 1;
    pointer-events: all;
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
}

.game-modal-header h3 {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.game-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.game-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--brand-cream);
}

.game-modal-body {
    flex: 1;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* --- VIDEO HERO --- */
.hero-video {
    width: 100%;
    padding-top: 80px;
    background: var(--bg);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- LABS NAV LINK RGB GLOW --- */
.nav-link-fun {
    position: relative;
    animation: rgb-glow-text 4s linear infinite;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-link-fun::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: rgb-glow-dot 4s linear infinite;
}

@keyframes rgb-glow-text {
    0% {
        color: #F02D3A;
    }

    16% {
        color: #FB8500;
    }

    33% {
        color: #F6B9C0;
    }

    50% {
        color: #30AD6A;
    }

    66% {
        color: #345BA7;
    }

    83% {
        color: #F02D3A;
    }

    100% {
        color: #F02D3A;
    }
}

@keyframes rgb-glow-dot {
    0% {
        background: #F02D3A;
    }

    16% {
        background: #FB8500;
    }

    33% {
        background: #F6B9C0;
    }

    50% {
        background: #30AD6A;
    }

    66% {
        background: #345BA7;
    }

    83% {
        background: #F02D3A;
    }

    100% {
        background: #F02D3A;
    }
}

.nav-link-fun:hover {
    opacity: 1;
}

@keyframes blink {

    0%,
    100% {
        border-color: var(--accent);
    }

    50% {
        border-color: transparent;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page .legal-content {
    padding: 120px 40px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.legal-content h3 {
    font-size: 1rem;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.legal-content p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.legal-content ul li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Footer legal links */
.footer-legal {
    display: flex;
    gap: 20px;
    justify-self: center;
}

.footer-legal a {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.footer-legal a:hover {
    color: var(--text);
    opacity: 1;
}

.footer-ai {
    text-align: center;
    padding: 16px 0 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    opacity: 0.5;
}

.footer-ai a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============================================
   COOKIE BANNER (DSGVO)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 24px;
    right: 24px;
    z-index: 9990;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(calc(100% + 48px));
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.cookie-banner p a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.cookie-btn-accept {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--brand-cream);
}

.cookie-btn-accept:hover {
    opacity: 0.9;
}

.cookie-btn:hover {
    border-color: var(--text);
}

/* responsive cookie/legal moved to main 768px block below */

/* --- MARQUEE TEXT STRIP --- */
.marquee-strip {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border);
    padding: 18px 0;
    position: relative;
    z-index: 2;
}

/* Solid accent line below marquee */
.marquee-strip::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.marquee-inner {
    display: inline-flex;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-inner span {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0 40px;
    display: inline-block;
}

.marquee-inner span::after {
    content: '+';
    margin-left: 40px;
    color: var(--accent);
    font-weight: 300;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- SMOOTH SCALE REVEAL --- */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- SLIDE FROM LEFT --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- SLIDE FROM RIGHT --- */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HOVER MICRO INTERACTIONS --- */

.experience-item {
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.experience-item:hover::before {
    width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .nav-right {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .hero-text-block {
        padding: 30px 20px 0;
        gap: 12px;
    }

    .hero-title {
        font-size: clamp(0.55rem, 1.6vw, 0.85rem);
        letter-spacing: 0.04em;
    }

    .hero-tagline {
        font-size: clamp(0.55rem, 1.6vw, 0.85rem);
        letter-spacing: 0.04em;
    }

    .hero-video {
        padding-top: 58px;
    }

    .hero-video video {
        max-height: 70vh;
        object-fit: cover;
    }

    .hero-bar {
        flex-wrap: wrap;
    }

    .hero-bar-item {
        flex: 1 1 50%;
        padding: 15px 20px;
    }

    .hero-bar-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .hero-bar-item:nth-child(2) {
        border-right: none;
    }

    .section {
        padding: 80px 24px;
    }

    .section-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-circle {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 3/4;
    }

    .about-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding: 40px 0;
    }

    .stat-number {
        font-size: clamp(4rem, 16vw, 7rem);
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 0;
    }

    .exp-company {
        text-align: left;
    }

    .hero-block {
        height: 55vh;
        min-height: 350px;
    }

    .hero-block-title {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .spec-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    /* Detail page responsive */
    .detail-header {
        grid-template-columns: 1fr;
        padding: 100px 24px 30px;
        gap: 30px;
    }

    .detail-gallery {
        padding: 20px 24px;
    }

    .detail-gallery-row.double,
    .detail-gallery-row.triple {
        grid-template-columns: 1fr;
    }

    .detail-description {
        padding: 40px 24px;
    }

    .more-grid {
        grid-template-columns: 1fr;
    }

    .more-section {
        padding: 60px 24px;
    }

    .detail-back {
        right: 24px;
    }

    .detail-approach {
        padding: 40px 24px;
    }

    .detail-approach-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-nav a {
        padding: 24px;
    }

    .detail-nav-title {
        font-size: 1rem;
    }

    /* Modal responsive */
    .game-modal-header {
        padding: 18px 24px;
    }

    .game-modal-body {
        padding: 24px;
    }

    /* Cookie banner responsive */
    .cookie-banner {
        flex-direction: column;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 16px;
        right: 16px;
        padding: 16px 20px;
        gap: 12px;
        text-align: center;
    }

    .cookie-banner p {
        font-size: 0.75rem;
    }

    .cookie-banner-btns {
        width: 100%;
        justify-content: center;
    }

    /* Legal pages responsive */
    .legal-content {
        padding: 100px 24px 60px;
    }

    .legal-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Hero section mobile fixes */
    .hero-title {
        font-size: clamp(0.65rem, 2.2vw, 0.75rem);
        letter-spacing: 0.03em;
    }

    .hero-tagline {
        font-size: clamp(0.65rem, 2.2vw, 0.75rem);
        letter-spacing: 0.03em;
    }

    /* Service words mobile */
    .spec-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .service-word {
        font-size: clamp(1.8rem, 7vw, 3rem);
        padding: 12px 0;
    }

}

/* Old cursor styles removed — replaced by .cursor-plus */

@media (max-width: 480px) {
    .hero-block {
        height: 45vh;
        min-height: 300px;
    }

    .hero-block-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .hero-block-sub {
        font-size: 0.65rem;
        padding: 0 16px;
    }

    .hero-block-count {
        display: none;
    }

    .hero-bar-item {
        flex: 1 1 50%;
        padding: 12px 16px;
    }

    .hero-text-block {
        padding: 20px 12px 0;
        gap: 8px;
    }

    .hero-title {
        font-size: clamp(0.6rem, 2.5vw, 0.75rem);
        letter-spacing: 0.02em;
        line-height: 1.4;
    }

    .hero-tagline {
        font-size: clamp(0.6rem, 2.5vw, 0.75rem);
        letter-spacing: 0.02em;
        line-height: 1.4;
    }

    .section {
        padding: 60px 16px;
    }

    .section-hero-block {
        padding: 0 !important;
    }

    .about-image {
        order: -1;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .stat-number {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .footer {
        padding: 20px 16px;
    }

    .filter-btn {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    /* Detail pages on small screens */
    .detail-header {
        padding: 90px 16px 20px;
    }

    .detail-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .detail-gallery {
        padding: 10px 16px;
    }

    .detail-description {
        padding: 30px 16px;
    }

    .more-section {
        padding: 40px 16px;
    }

    .detail-approach {
        padding: 30px 16px;
    }

    .detail-nav {
        grid-template-columns: 1fr;
    }

    .detail-nav a:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .detail-nav a:last-child {
        text-align: left;
    }

    /* Modal padding for small screens */
    .game-modal-header {
        padding: 16px 20px;
    }

    .game-modal-body {
        padding: 20px;
    }

    /* Cookie banner buttons */
    .cookie-banner-btns {
        width: 100%;
        justify-content: center;
    }
}

/* --- PRINT STYLES --- */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }

    body::before,
    .cursor-plus,
    .page-loader,
    .navbar,
    .mobile-menu,
    .cookie-banner,
    .detail-back,
    .detail-nav,
    .marquee-strip,
    .footer,
    .theme-toggle,
    .skip-link,
    .contact-cta {
        display: none !important;
    }

    .section,
    .detail-header,
    .detail-gallery,
    .detail-description,
    .detail-approach {
        padding: 20px 0 !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    a::after {
        content: " (" attr(href) ")" !important;
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "" !important;
    }

    .detail-gallery-item {
        break-inside: avoid;
    }

    img,
    video {
        max-width: 100% !important;
    }
}

/* --- BARBA TRANSITION CURTAIN --- */
.barba-curtain {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--accent);
    pointer-events: none;
    display: none;
}

/* --- GSAP REVEAL INITIAL STATES --- */
[data-barba="container"] {
    will-change: clip-path;
}

/* --- REDUCED MOTION --- */
@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;
    }

    html {
        scroll-behavior: auto;
    }

    .page-loader {
        display: none !important;
    }

    .reveal,
    .reveal-scale,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }

    .marquee-inner {
        animation: none !important;
    }

    .cursor-plus {
        display: none !important;
    }
}

/* --- SOCIAL PROOF SECTION --- */
.section-proof {
    text-align: center;
}

.proof-content {
    max-width: 800px;
    margin: 0 auto;
}

.proof-quote {
    margin: 0 0 60px;
}

.proof-quote p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    font-style: italic;
    color: var(--text);
}

.proof-author {
    margin-top: 20px;
}

.proof-name {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.proof-stat-number {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
}

.proof-stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .proof-stats {
        flex-direction: column;
        gap: 24px;
    }
}

/* --- PRICING SECTION --- */
.pricing-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 40px;
}

.pricing-card {
    position: relative;
    padding: 48px 40px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 45, 58, 0.25);
    z-index: 2;
}

.pricing-card-featured {
    border-color: rgba(240, 45, 58, 0.4);
    background: #0f0808;
    box-shadow: 0 0 60px rgba(240, 45, 58, 0.06), inset 0 1px 0 rgba(240, 45, 58, 0.2);
}

.pricing-card-featured:hover {
    box-shadow: 0 20px 80px rgba(240, 45, 58, 0.12), inset 0 1px 0 rgba(240, 45, 58, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -1px;
    left: 36px;
    background: var(--brand-red);
    color: var(--brand-cream);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 4px 12px;
}

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-tier {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.pricing-card-featured .pricing-tier {
    color: var(--brand-red);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pricing-amount {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
}

.pricing-period {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.pricing-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.4;
}

.feat-check {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--brand-red);
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.feat-dim {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--border);
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.pricing-features li:has(.feat-dim) {
    color: var(--text-secondary);
    opacity: 0.5;
}

.pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid var(--border);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-cta:hover {
    border-color: var(--text);
    opacity: 1;
}

.pricing-cta-featured {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--brand-cream);
}

.pricing-cta-featured:hover {
    background: transparent;
    border-color: var(--brand-red);
    color: var(--brand-red);
    opacity: 1;
}

.pricing-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    opacity: 0.6;
}

[data-theme="light"] .pricing-card {
    background: #fff;
}

[data-theme="light"] .pricing-card-featured {
    background: #fff8f8;
    box-shadow: 0 0 60px rgba(240, 45, 58, 0.04);
}

/* Pricing mobile */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }

    .pricing-card:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .pricing-card {
        padding: 32px 24px;
    }
}

/* --- LANG TOGGLE --- */
.lang-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    letter-spacing: 0.06em;
}

.lang-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

.lang-sep {
    opacity: 0.35;
}

.lang-de,
.lang-en {
    transition: color 0.2s ease;
}

/* Mobile toggles row (theme + lang side by side) */
.mobile-toggles {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- WORKS SECTION — Editorial List --- */
.section-works {
    padding-bottom: 80px;
}

.works-filters {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.works-filter-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 8px 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.works-filter-btn:hover,
.works-filter-btn.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.works-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.works-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: padding-left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Sliding red underline on hover */
.works-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.works-item:hover::after {
    width: 100%;
}

.works-item:hover {
    padding-left: 12px;
    opacity: 1;
}

.works-item.hidden {
    display: none;
}

.works-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.works-item:hover .works-num {
    color: var(--accent);
}

.works-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.works-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 0.95;
    color: var(--text);
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.works-item:hover .works-title {
    color: var(--accent);
}

.works-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.works-cat {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.works-item:hover .works-cat {
    border-color: rgba(240, 45, 58, 0.4);
    color: var(--text);
}

.works-arrow {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.works-item:hover .works-arrow {
    transform: translate(4px, -4px);
    color: var(--accent);
}

/* --- FLOATING HOVER PREVIEW --- */
.works-preview {
    position: fixed;
    width: 320px;
    height: 200px;
    pointer-events: none;
    z-index: 500;
    opacity: 0;
    border-radius: 4px;
    overflow: hidden;
    transform: scale(0.92) rotate(-2deg);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.works-preview.visible {
    opacity: 1;
    transform: scale(1) rotate(-1deg);
}

.works-preview-img,
.works-preview-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.works-preview-img.active,
.works-preview-vid.active {
    display: block;
}

/* Works mobile */
@media (max-width: 768px) {
    .works-item {
        grid-template-columns: 36px 1fr auto;
        gap: 12px;
        padding: 24px 0;
    }

    .works-cat {
        display: none;
    }

    .works-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        white-space: normal;
    }

    .works-preview {
        display: none;
    }

    .works-item:hover {
        padding-left: 0;
    }
}

/* =========================================
   KINETIC TEXT ANIMATION — Service Section
   ========================================= */
.services-intro {
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.kinetic-scene {
    display: flex;
    gap: clamp(24px, 4vw, 60px);
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 32px;
    user-select: none;
    pointer-events: none;
}

.kinetic-word {
    display: inline-block;
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-secondary);
    text-transform: uppercase;
    transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease;
    will-change: transform;
    pointer-events: auto;
    cursor: default;
}

.kinetic-word:hover {
    -webkit-text-stroke-color: var(--accent);
    color: rgba(240, 45, 58, 0.08);
    text-shadow: 0 0 80px rgba(240, 45, 58, 0.3);
}

.services-statement {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

/* =========================================
   PARALLAX IMAGES
   ========================================= */
.parallax-wrap {
    overflow: hidden;
    border-radius: inherit;
}

.parallax-img {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Hero parallax strip */
.hero-content {
    will-change: transform;
}

/* About image subtle parallax */
.about-image-wrap {
    overflow: hidden;
}

.about-image-wrap img {
    will-change: transform;
    transition: transform 0.05s linear;
    transform-origin: center center;
}

/* =========================================
   DETAIL-NAV — Prev/Next Hover
   ========================================= */
.detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.detail-nav a {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, padding-left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-nav a:first-child {
    border-right: 1px solid var(--border);
}

/* Sliding accent underline */
.detail-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-nav a:hover::after {
    width: 100%;
}

.detail-nav a:hover {
    background: #F02D3A;
    padding-left: 50px;
}

.detail-nav-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.detail-nav a:hover .detail-nav-label {
    color: #fff;
    letter-spacing: 0.22em;
}

.detail-nav-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-nav a:hover .detail-nav-title {
    color: #fff;
    transform: translateX(6px);
}

/* Right-aligned next link */
.detail-nav a:last-child {
    align-items: flex-end;
    text-align: right;
}

.detail-nav a:last-child:hover {
    padding-left: 40px;
    padding-right: 50px;
}

.detail-nav a:last-child:hover .detail-nav-title {
    transform: translateX(-6px);
}

/* Mobile detail-nav */
@media (max-width: 768px) {
    .detail-nav {
        grid-template-columns: 1fr;
    }

    .detail-nav a:first-child {
        border-right: none;
    }

    .detail-nav a,
    .detail-nav a:hover {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* =========================================
   FULLSCREEN NAV OVERLAY — Studio Linear style
   ========================================= */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: clip-path;
}

.nav-overlay.open {
    clip-path: inset(0 0 0% 0);
    pointer-events: all;
}

.nav-overlay-inner {
    width: 100%;
    max-width: var(--container-max);
    padding: 100px clamp(24px, 5vw, 60px) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.overlay-link {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition:
        color 0.3s ease,
        padding-left 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0s,
        transform 0s;
}

.nav-overlay.open .overlay-link {
    animation: overlayLinkIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.nav-overlay.open .overlay-link:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-overlay.open .overlay-link:nth-child(2) {
    animation-delay: 0.18s;
}

.nav-overlay.open .overlay-link:nth-child(3) {
    animation-delay: 0.26s;
}

.nav-overlay.open .overlay-link:nth-child(4) {
    animation-delay: 0.34s;
}

.nav-overlay.open .overlay-link:nth-child(5) {
    animation-delay: 0.42s;
}

.nav-overlay.open .overlay-link:nth-child(6) {
    animation-delay: 0.50s;
}

.nav-overlay.open .overlay-link:nth-child(7) {
    animation-delay: 0.58s;
}

.nav-overlay.open .overlay-link:nth-child(8) {
    animation-delay: 0.66s;
}

@keyframes overlayLinkIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.overlay-link:hover {
    color: var(--accent);
}

.overlay-link-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    align-self: center;
}

.overlay-link:hover .overlay-link-num {
    color: var(--accent);
}

.nav-overlay-meta {
    display: flex;
    gap: 20px 40px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
    padding-bottom: 20px;
}

.nav-overlay.open .nav-overlay-meta {
    opacity: 1;
    transform: translateY(0);
}

.overlay-social {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.overlay-social:hover {
    color: var(--accent);
}

/* Toggle group inside overlay */
.overlay-toggles {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Hamburger → X morphing (handled above in .nav-hamburger rules) */


/* =========================================
   CONTACT GIANT CTA — Studio Linear style
   ========================================= */
.contact-giant-cta {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 60px;
}

.contact-giant-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-giant-text {
    display: block;
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(4rem, 13vw, 13rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    transition:
        -webkit-text-stroke-color 0.5s ease,
        color 0.5s ease,
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: left center;
    will-change: transform;
}

.contact-giant-link:hover .contact-giant-text {
    -webkit-text-stroke-color: transparent;
    color: var(--accent);
    transform: scale(1.015);
}

/* Cursor-following "write to me" tag */
.contact-giant-link::after {
    content: 'Write ↗';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    transform: translate(-50%, -50%) scale(0);
    background: var(--accent);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 40px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
}

.contact-giant-link:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.contact-giant-sub {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 24px;
}

.contact-response-badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-green, #30AD6A);
    border: 1px solid var(--accent-green, #30AD6A);
    padding: 8px 20px;
    margin-top: 20px;
}

/* Contact details simplified (no heading anymore) */
.contact-content {
    display: flex;
    justify-content: flex-end;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 80px;
    max-width: 600px;
}

@media (max-width: 600px) {
    .contact-details {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-giant-link::after {
        display: none;
        /* no hover bubble on touch */
    }

    .nav-overlay-links {
        gap: 0;
    }

    .overlay-link {
        font-size: clamp(2rem, 10vw, 4rem);
        padding: 12px 0;
    }

    .nav-overlay-meta {
        gap: 12px 24px;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }

    .overlay-social {
        font-size: 0.7rem;
    }

    .overlay-toggles {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        margin-top: 4px;
    }

}

/* =========================================
   PARTICLE CANVAS — Service Section
   ========================================= */
.particle-stage {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 280px;
    max-height: 520px;
    margin: 40px 0 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg);
    cursor: none;
}

/* show crosshair cursor when inside */
.particle-stage:hover {
    cursor: none;
}

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

.particle-mode-label {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: opacity 0.4s ease;
    pointer-events: none;
    user-select: none;
}

.particle-mode-icon {
    color: var(--accent);
    font-size: 0.65rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.particle-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: opacity 0.8s ease;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.particle-hint.hidden {
    opacity: 0;
}

/* Mode transition flash */
.particle-mode-label.flash {
    animation: modeFlash 0.4s ease;
}

@keyframes modeFlash {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Mobile — reduce canvas height */
@media (max-width: 768px) {
    .particle-stage {
        height: 36vh;
        min-height: 200px;
    }

    .particle-hint {
        font-size: 0.65rem;
    }
}

/* =========================================
   FELIX.RUN — EASTER EGG GAME OVERLAY
   ========================================= */

/* Hidden footer trigger asterisk */
.game-trigger {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0.3;
    transition: opacity 0.25s ease, color 0.25s ease;
    vertical-align: middle;
    line-height: 1;
}

.game-trigger:hover {
    opacity: 1;
    color: var(--accent);
}

/* Fullscreen overlay */
.game-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: none;
    flex-direction: column;
    pointer-events: none;
}

.game-overlay.active {
    display: flex;
    pointer-events: all;
    cursor: default;
}

#gameCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Score HUD — top row */
.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 32px;
    gap: 12px;
    z-index: 2;
    pointer-events: none;
}

.game-score-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.game-hi-label {
    color: var(--text-secondary);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
}

.game-hi {
    color: var(--text-secondary);
}

.game-score {
    color: var(--text);
}

.game-close {
    pointer-events: all;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-left: 8px;
}

.game-close:hover {
    color: var(--text);
    border-color: var(--text);
}

/* Start screen */
.game-start-screen,
.game-over-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    pointer-events: none;
}

.game-start-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    margin: 0;
    line-height: 1;
}

.game-start-sub {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}

.game-start-hint {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.4;
    margin: 4px 0 0;
}

/* Desktop-only utility — hides element on mobile */
.desktop-only {
    display: revert;
}
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* Arcade mobile notice — hidden on desktop, shown on mobile */
.game-mobile-notice {
    display: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 280px;
    line-height: 1.6;
    margin: 16px 0 0;
}

@media (max-width: 768px) {
    .game-mobile-notice {
        display: block;
    }

    .game-desktop-only {
        display: none;
    }
}

/* Game over screen */
.game-over-title {
    font-family: 'Neue Haas Display', sans-serif;
    font-size: clamp(2rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--accent);
    margin: 0;
    line-height: 1;
}

.game-over-sub {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}

/* =========================================
   SCROLL PROGRESS BAR — Top of viewport
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 10001;
    background: transparent;
    pointer-events: none;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange), var(--brand-pink));
    transition: width 0.1s linear;
    transform-origin: left;
}

/* =========================================
   PARTICLE STAGE — Enhanced styles
   ========================================= */

/* Mode progress indicators */
.particle-modes-strip {
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: flex;
    gap: 6px;
    align-items: center;
    pointer-events: none;
}

.particle-mode-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s ease, transform 0.3s ease;
}

.particle-mode-dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

/* Click hint */
.particle-click-hint {
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.5s ease;
}

.particle-stage:hover .particle-click-hint {
    opacity: 0.7;
}

/* Stage border glow on hover */
.particle-stage {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.particle-stage:hover {
    border-color: rgba(240, 45, 58, 0.2);
    box-shadow: 0 0 40px rgba(240, 45, 58, 0.04);
}

/* =========================================
   CONTACT FORM — Embedded form
   ========================================= */
.contact-form-wrap {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.contact-form-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-group.full {
    grid-column: 1 / -1;
}

.contact-form-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
}

.contact-form-input,
.contact-form-textarea {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    font-family: 'Neue Haas Display', sans-serif;
    font-size: 0.9rem;
    padding: 14px 18px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.4;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    border-color: var(--accent);
    background: rgba(240, 45, 58, 0.02);
}

.contact-form-textarea {
    resize: none;
    min-height: 140px;
    line-height: 1.7;
}

.contact-form-submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

.contact-form-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-cream);
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 14px 36px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.contact-form-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-btn:hover::before {
    transform: translateX(0);
}

.contact-form-btn:hover {
    color: #fff;
    border-color: var(--accent);
}

.contact-form-btn span {
    position: relative;
    z-index: 1;
}

.contact-form-btn:active {
    transform: scale(0.98);
}

.contact-form-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    opacity: 0.5;
}

.contact-form-success {
    display: none;
    padding: 20px;
    border: 1px solid var(--accent);
    background: rgba(240, 45, 58, 0.04);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 16px;
}

.contact-form-success.visible {
    display: block;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form-group.full {
        grid-column: 1;
    }

    .contact-form-submit {
        grid-column: 1;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 500;
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--brand-cream);
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }
}

/* =========================================
   ABOUT SECTION — Availability Badge
   ========================================= */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(48, 173, 106, 0.3);
    border-radius: 20px;
    background: rgba(48, 173, 106, 0.06);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.availability-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-green 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* =========================================
   WORKS LIST — Subtle hover improvements
   ========================================= */
.works-item .works-title {
    position: relative;
}

/* Number tracks the accent color on hover */
.works-item:hover .works-num {
    color: var(--accent);
}

/* =========================================
   FOOTER — Improved
   ========================================= */
.footer-game-hint {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    opacity: 0.25;
    margin-left: 4px;
}

/* =========================================
   MICRO INTERACTIONS — Quality of life
   ========================================= */

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Selection styles */
::selection {
    background: var(--accent);
    color: var(--brand-cream);
}

/* Smooth underline for contact values */
.contact-value {
    position: relative;
    display: inline-block;
}

.contact-value::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.contact-value:hover::after {
    width: 100%;
}

/* Section divider line animation on scroll */
@keyframes lineSlide {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Subtle animated dots for section numbers */
.section-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-number::before {
    content: '▸';
    font-size: 0.5em;
    opacity: 0.5;
    animation: blink-arrow 3s ease-in-out infinite;
}

@keyframes blink-arrow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.2;
    }
}

/* =========================================
   HERO VIDEO — Improved
   ========================================= */
.hero-video {
    position: relative;
    overflow: hidden;
}


/* =========================================
   EXPERIENCE ITEM — Enhanced hover
   ========================================= */
.experience-item {
    cursor: default;
}

.exp-role {
    transition: color 0.3s ease;
}

.experience-item:hover .exp-role {
    color: var(--accent);
}

/* =========================================
   PROCESS STEPS — Hover expansion
   ========================================= */
.process-step {
    transition: padding-left 0.4s cubic-bezier(0.23, 1, 0.32, 1), background 0.4s ease;
    border-radius: 4px;
}

.process-step:hover {
    padding-left: 16px;
    background: var(--hover-glow);
}

/* =========================================
   PRICING CARD — Light theme
   ========================================= */
[data-theme="light"] .contact-form-input,
[data-theme="light"] .contact-form-textarea {
    background: transparent;
    border-color: var(--border);
}

[data-theme="light"] .contact-form-input:focus,
[data-theme="light"] .contact-form-textarea:focus {
    background: transparent;
}

/* =========================================
   CONTACT FORM — Shake validation animation
   ========================================= */
@keyframes cf-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-8px);
    }

    30% {
        transform: translateX(8px);
    }

    45% {
        transform: translateX(-6px);
    }

    60% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-4px);
    }

    90% {
        transform: translateX(4px);
    }
}

[data-shake="1"] {
    animation: cf-shake 0.4s ease !important;
}

/* =========================================
   HERO VIDEO — Better fade overlay
   ========================================= */
/* Only apply overflow hidden once to avoid duplication issue */
.hero-video {
    overflow: hidden;
}

/* =========================================
   NAVBAR — Active underline state
   ========================================= */
.nav-link[style*="color: var(--text)"]::after {
    width: 100%;
}

/* =========================================
   GLOBAL — Text reveal animation (v2)
   ========================================= */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* =========================================
   MARQUEE — Pause on reduced motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    .availability-dot {
        animation: none !important;
    }

    .scroll-progress-fill {
        transition: none !important;
    }
}

/* font-display is set to swap in @font-face declarations above */

/* =========================================
   CONTACT CONTENT — Fix layout for new form
   ========================================= */
.section-contact .contact-content {
    display: flex;
    justify-content: flex-end;
}

/* =========================================
   PARTICLE MODE LABEL — 6 mode colors
   ========================================= */
/* Mode 0: DOTS */
.particle-mode-icon[style*="rgba(255,255,255"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* fallback: accent handles it */

/* =========================================
   SCROLL PROGRESS — Stays above navbar
   ========================================= */
.scroll-progress {
    z-index: 10001;
}

/* =========================================
   SCROLL TO TOP — Doesn't overlap cookie
   ========================================= */
.cookie-banner.visible~.scroll-top-btn,
.cookie-banner.visible+.scroll-top-btn {
    bottom: 100px;
}

/* =========================================
   RESPONSIVE AUDIT FIXES — 2026
   Covers: 768px, 480px, 375px breakpoints
   ========================================= */

/* Ensure no horizontal overflow at root level */
html {
    overflow-x: hidden;
}

/* --- CONTACT GIANT CTA — prevent overflow on small screens --- */
@media (max-width: 768px) {
    .contact-giant-text {
        font-size: clamp(2.5rem, 14vw, 7rem);
        letter-spacing: -0.02em;
        white-space: normal;
        word-break: break-word;
    }

    .contact-giant-cta {
        padding: 40px 0 30px;
        margin-bottom: 40px;
    }

    .contact-response-badge {
        font-size: 0.7rem;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .contact-giant-text {
        font-size: clamp(2rem, 16vw, 4rem);
    }

    .contact-giant-cta {
        padding: 30px 0 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 375px) {
    .contact-giant-text {
        font-size: clamp(1.8rem, 15vw, 3.5rem);
    }
}

/* --- MARQUEE — prevent horizontal scroll trigger --- */
.marquee-strip {
    max-width: 100vw;
}

/* --- HERO BAR — full-width items on 375px --- */
@media (max-width: 375px) {
    .hero-bar-item {
        flex: 1 1 100%;
        border-right: none !important;
    }

    .hero-bar-item:nth-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }
}

/* --- NAV HAMBURGER — ensure 44px touch target --- */
.nav-hamburger {
    min-width: 44px;
    min-height: 44px;
}

/* --- FILTER TABS — wrap on mobile, adequate tap size --- */
@media (max-width: 480px) {
    .works-filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn {
        min-height: 36px;
        padding: 8px 14px;
    }
}

/* --- ABOUT STATS — center text on mobile --- */
@media (max-width: 768px) {
    .about-stats {
        text-align: center;
        justify-content: center;
        gap: 40px;
    }

    .stat {
        align-items: center;
    }

    .stat-divider {
        display: none;
    }
}

/* --- SOCIAL PROOF — proof-stats already stacks at 600px (existing rule).
   Add alignment fix for very small screens --- */
@media (max-width: 480px) {
    .proof-stats {
        align-items: center;
        gap: 20px;
    }

    .proof-stat {
        align-items: center;
        text-align: center;
    }

    .proof-quote {
        font-size: clamp(1rem, 5vw, 1.3rem);
        padding: 0;
    }
}

/* --- PRICING CARD — content overflow guard --- */
@media (max-width: 375px) {
    .pricing-card {
        padding: 24px 16px;
    }

    .pricing-amount {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
}

/* --- CONTACT FORM — full-width inputs already handled at 768px.
   Extra fix for submit button touch target --- */
.contact-form-submit button,
.contact-form-submit .cta-button {
    min-height: 44px;
}

/* --- FOOTER — ensure no overflow on tiny screens --- */
@media (max-width: 375px) {
    .footer {
        padding: 16px 16px;
    }

    .footer-content {
        gap: 8px;
    }

    .footer-copy {
        font-size: 0.65rem;
    }
}

/* --- COOKIE BANNER — usable on 375px --- */
@media (max-width: 375px) {
    .cookie-banner {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        right: 12px;
        padding: 14px 16px;
        gap: 10px;
    }

    .cookie-banner p {
        font-size: 0.7rem;
    }

    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
        min-height: 40px;
    }
}

/* --- SERVICE WORDS — prevent overflow on 375px --- */
@media (max-width: 375px) {
    .service-word {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        padding: 10px 0;
    }

    .kinetic-word {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

/* --- SECTION TITLE — guard against overflow on 375px --- */
@media (max-width: 375px) {
    .section-title {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    .section {
        padding: 50px 16px;
    }
}

/* --- CONTACT SECTION heading — 375px --- */
@media (max-width: 375px) {
    .contact-heading h3 {
        font-size: clamp(2rem, 9vw, 3rem);
    }
}

/* --- WORKS ITEM — readable title on 375px --- */
@media (max-width: 375px) {
    .works-title {
        font-size: clamp(1rem, 5.5vw, 1.4rem);
    }

    .works-item {
        grid-template-columns: 28px 1fr auto;
        gap: 8px;
        padding: 20px 0;
    }

    .works-num {
        font-size: 0.65rem;
    }
}

/* --- PROCESS STEPS — padding on 375px --- */
@media (max-width: 375px) {
    .process-step {
        padding: 16px 0;
    }
}

/* --- HERO VIDEO — top padding on tiny screens --- */
@media (max-width: 375px) {
    .hero-video {
        padding-top: 52px;
    }

    .hero-video video {
        max-height: 60vh;
        object-fit: cover;
    }
}

/* --- CONTACT RESPONSE BADGE — mobile layout --- */
@media (max-width: 480px) {
    .contact-response-badge {
        display: block;
        margin-top: 16px;
        text-align: left;
    }
}