/* ═══════════════════════════════════════════
   HEINEMANN PROJECT v2.0 — CSS (Clean)
   Performance-optimized, dark mode only
   ═══════════════════════════════════════════ */

:root {
    --bg: #0A0A0F;
    --bg2: #111118;
    --bg3: #18181F;
    --surface: #1C1C26;
    --border: #2A2A35;
    --text: #E8E8ED;
    --text2: #9898A8;
    --text3: #686878;
    --accent: #00E86C;
    --accent2: #00CC5E;
    --green: #00E86C;
    --blue: #4DA3FF;
    --orange: #FF8C42;
    --pink: #FF5CAD;
    --yellow: #FFD23F;
    --radius: 14px;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --nav-h: 56px;
    --max-w: 1100px;
}

/* Dark mode only — no theme toggle */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
    overflow-x: hidden;
}
html::-webkit-scrollbar { display: none; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
::selection { background: rgba(0,232,108,.25); color: #fff; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.dot { color: var(--accent); }

/* ═══ NAV (floating pill) ═══ */
.nav-spacer { height: 20px; }
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: auto; max-width: 860px; height: var(--nav-h); z-index: 100; background: rgba(14,14,20,.95); border: 1px solid rgba(255,255,255,.06); border-radius: 999px; transition: background .3s, border-color .3s, box-shadow .3s, transform .4s cubic-bezier(.4,0,.2,1), opacity .4s; box-shadow: 0 4px 30px rgba(0,0,0,.35); }
.nav.nav-hidden { transform: translateX(-50%) translateY(-120%); opacity: 0; pointer-events: none; }
.nav.scrolled { background: rgba(14,14,20,.88); border-color: rgba(255,255,255,.08); box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.nav-inner { padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { font-weight: 700; font-size: .9rem; letter-spacing: .06em; white-space: nowrap; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .82rem; color: var(--text2); transition: color .2s; white-space: nowrap; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active { color: var(--accent); }
.nav-links a.nav-active::after { content: ''; position: absolute; bottom: -4px; left: 20%; right: 20%; height: 2px; background: var(--accent); border-radius: 2px; animation: navUnderline .3s ease-out; }
@keyframes navUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mobile-menu-link.nav-active { color: var(--accent) !important; }
.nav-cta { background: var(--accent) !important; color: #000 !important; padding: 7px 16px; border-radius: 999px; font-weight: 600 !important; font-size: .8rem !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--accent2) !important; }
/* ─── Nav Section Label ─── */
.nav-section-label {
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s, transform .3s;
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    pointer-events: none;
}
.nav-section-label.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; width: 22px; height: 16px; position: relative; padding: 0; }
.nav-mobile-btn span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; position: absolute; left: 0; }
.nav-mobile-btn span:first-child { top: 0; width: 100%; }
.nav-mobile-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 70%; }
.nav-mobile-btn span:last-child { bottom: 0; width: 85%; }
.mobile-menu { position: fixed; top: calc(14px + var(--nav-h) + 8px); left: 50%; transform: translateX(-50%) translateY(-12px); width: 280px; background: rgba(14,14,20,.97); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 20px 24px; z-index: 99; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 8px 40px rgba(0,0,0,.5); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s, visibility .35s; }
.mobile-menu.open { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-link { transition: color .2s, transform .2s; }
.mobile-menu-link:hover { color: var(--accent); transform: translateX(4px); }
.mobile-menu-link { font-size: .95rem; color: var(--text2); }

/* ═══ HERO ═══ */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: calc(var(--nav-h) + 40px) 32px 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-grain { position: absolute; inset: 0; opacity: .5; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/heinemann/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/heinemann/%3E%3C/svg%3E"); }
.hero-glow { position: absolute; top: -30%; left: 50%; width: 800px; height: 800px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(62,207,160,.05), transparent 70%); }

.hero-anim { position: relative; z-index: 1; width: 100%; max-width: 340px; margin: 0 auto 36px; overflow: hidden; border-radius: 12px; }
.hero-svg { width: 100%; height: auto; display: block; }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 680px; }
.hero-label { font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 20px; overflow-wrap: break-word; word-break: break-word; }
.hero-sub { color: var(--text2); font-size: 1.05rem; line-height: 1.7; max-width: 520px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--accent); color: #000; font-weight: 600; border-radius: 999px; font-size: .95rem; transition: background .2s, transform .15s; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: 1px solid var(--border); color: var(--text2); font-weight: 500; border-radius: 999px; font-size: .95rem; transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--text3); color: var(--text); }

/* ═══════════════════════════════════════════
   SERVICES — Centered vertical timeline
   Each item centered, fades in on scroll,
   connected by a line growing downward
   ═══════════════════════════════════════════ */
.services { padding: 120px 0 100px; }

.svc-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 32px;
}
.svc-label {
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.svc-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.svc-sub {
    color: var(--text2);
    font-size: 1rem;
    margin-top: 14px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.svc-timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 32px;
}

/* The connecting vertical line — centered */
.svc-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
     background: #a855f7;
     box-shadow: 0 0 16px 4px #a855f7;
}

/* Each service item — centered, spaced generously */
.svc-item {
    position: relative;
    text-align: center;
    padding: 56px 20px;
}

/* Glowing dot on the line */
.svc-dot {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 24px #a855f7, 0 0 0 5px #a855f7;
}

/* Color rotation for service items */
.svc-item:nth-child(2) .svc-dot { background: var(--blue); box-shadow: 0 0 24px rgba(77,163,255,.4), 0 0 0 5px rgba(77,163,255,.12); }
.svc-item:nth-child(2) .svc-num { color: var(--blue); }
.svc-item:nth-child(3) .svc-dot { background: var(--orange); box-shadow: 0 0 24px rgba(255,140,66,.4), 0 0 0 5px rgba(255,140,66,.12); }
.svc-item:nth-child(3) .svc-num { color: var(--orange); }
.svc-item:nth-child(4) .svc-dot { background: var(--pink); box-shadow: 0 0 24px rgba(255,92,173,.4), 0 0 0 5px rgba(255,92,173,.12); }
.svc-item:nth-child(4) .svc-num { color: var(--pink); }
.svc-item:nth-child(5) .svc-dot { background: var(--yellow); box-shadow: 0 0 24px rgba(255,210,63,.4), 0 0 0 5px rgba(255,210,63,.12); }
.svc-item:nth-child(5) .svc-num { color: var(--yellow); }

/* Service number */
.svc-num {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: .1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.svc-item h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}

.svc-item p {
    color: var(--text2);
    font-size: .95rem;
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto;
}

/* ═══ SERVICE ACCORDION (expandable details) ═══ */
.svc-item[data-expandable] {
    cursor: pointer;
}
.svc-item[data-expandable]:hover {
    transform: translateY(-2px);
}
.svc-toggle {
    display: inline-block;
    font-weight: 400;
    font-size: .85em;
    color: var(--accent);
    margin-left: 6px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    vertical-align: middle;
}
.svc-item.svc-open .svc-toggle {
    transform: rotate(45deg);
}
.svc-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s, margin .35s;
    opacity: 0;
    margin-top: 0;
}
.svc-item.svc-open .svc-detail {
    max-height: 320px;
    opacity: 1;
    margin-top: 18px;
}
.svc-detail-inner {
    max-width: 420px;
    margin: 0 auto;
    padding: 18px 22px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.svc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.svc-detail-label {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--accent);
    letter-spacing: .04em;
    white-space: nowrap;
    min-width: 90px;
}
.svc-detail-val {
    font-size: .82rem;
    color: var(--text2);
    text-align: right;
    line-height: 1.5;
}
@media (max-width: 480px) {
    .svc-detail-row {
        flex-direction: column;
        gap: 2px;
    }
    .svc-detail-val {
        text-align: left;
    }
    .svc-detail-inner {
        padding: 14px 16px;
    }
}

/* ═══ PROJECTS ═══ */
.projects { padding: 100px 0; }
.project-list { display: flex; flex-direction: column; gap: 56px; }
.project-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.project-card.reverse { direction: rtl; }
.project-card.reverse > * { direction: ltr; }

/* ─── Browser mockup project cards ─── */
.project-visual { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; }
.browser-mock {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .45s cubic-bezier(.25,.46,.45,.94), box-shadow .45s;
}
.project-visual:hover .browser-mock {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.bm-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(18,18,24,.95);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.bm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bm-url {
    font-family: var(--mono);
    font-size: .68rem;
    color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.04);
    padding: 3px 14px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
}
.bm-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}
.bm-label {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255,255,255,.88);
    letter-spacing: -.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.project-tag { font-family: var(--mono); font-size: .7rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.project-info h3 { font-size: 1.3rem; font-weight: 700; margin: 6px 0 10px; }
.project-info p { color: var(--text2); font-size: .9rem; margin-bottom: 14px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-stack span { font-family: var(--mono); font-size: .7rem; padding: 3px 10px; border-radius: 4px; background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--accent); transition: gap .2s; }
.project-link:hover { gap: 10px; }

/* ═══ PROJECT MODAL ═══ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.project-modal.active { visibility: visible; opacity: 1; pointer-events: auto; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 92vw;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 210;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.01em;
    padding-right: 40px;
}

/* ─── Modal Analytics ─── */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.stat-card {
    background: var(--bg3);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.stat-body { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--mono);
    letter-spacing: -.02em;
}
.stat-value.accent { color: var(--accent); }
.stat-value.green { color: var(--green); }
.stat-label {
    font-size: .68rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: var(--mono);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Live indicator dot */
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    /* animation entfernt: statischer Rahmen */
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent); }
    50% { opacity: .6; box-shadow: 0 0 6px 2px var(--accent); }
}

/* Loading placeholder */
.stat-loading {
    color: var(--text3);
    animation: loadBlink 1s ease-in-out infinite;
}
@keyframes loadBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* Live data flash */
.stat-live {
    transition: color .3s ease;
}

@media (max-width: 768px) {
    .analytics-grid { grid-template-columns: 1fr; }
    .modal-content { width: 96vw; padding: 20px; max-width: 100%; }
    .modal-close { top: 12px; right: 12px; }
    .modal-head { flex-direction: column; align-items: flex-start; padding-right: 40px; }
}
@media (max-width: 480px) {
    .pv-facts { gap: 16px; }
    .pv-brand { font-size: 1.5rem; }
    .pv-content { padding: 40px 16px 36px; }
}

/* ═══ ABOUT / VORSTELLUNG ═══ */
.about {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,.04);
}

/* Overlapping image + card (rounded + purple) */
.about-split {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 380px;
}
.about-image {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}
.about-img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    filter: grayscale(.05) contrast(1.08);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    border: 6px solid #a855f7;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    animation: none;
}

@keyframes aboutFloat {
    0%   { }
    50%  { }
    100% { }
}
}
.about-card {
    position: relative;
    z-index: 2;
    margin-left: 120px;
    margin-bottom: 0;
    background: #a855f7;
    border: 0;
    border-radius: 60px 38px 60px 38px / 48px 60px 38px 60px;
    padding: 60px 54px 56px 54px;
    box-shadow: 0 36px 90px 0 rgba(168,85,247,0.18), 0 2px 24px rgba(0,0,0,.18), 0 0 0 12px #a855f722, inset 0 1px 0 rgba(168,85,247,.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: skewY(-5deg) rotate(-2deg) translateY(-18px);
    overflow: visible;
    transition: box-shadow .4s, transform .5s cubic-bezier(.34,1.56,.64,1);
    animation: aboutCardFloat 5.5s ease-in-out infinite alternate;
}

@keyframes aboutCardFloat {
    0%   { transform: skewY(-5deg) rotate(-2deg) translateY(-18px); box-shadow: 0 32px 80px 0 rgba(168,85,247,0.18), 0 2px 24px rgba(0,0,0,.18), 0 0 0 8px #a855f722, inset 0 1px 0 rgba(168,85,247,.18); }
    50%  { transform: skewY(-7deg) rotate(2deg) translateY(-32px); box-shadow: 0 48px 120px 0 rgba(168,85,247,0.28), 0 12px 40px rgba(0,0,0,.22), 0 0 0 12px #a855f733, inset 0 1px 0 rgba(168,85,247,.18); }
    100% { transform: skewY(-5deg) rotate(-2deg) translateY(-18px); box-shadow: 0 32px 80px 0 rgba(168,85,247,0.18), 0 2px 24px rgba(0,0,0,.18), 0 0 0 8px #a855f722, inset 0 1px 0 rgba(168,85,247,.18); }
}

.about-card .svc-label, .about-card .about-name, .about-card .about-bio, .about-card .about-meta {
    transform: skewY(5deg);
}
}
.about-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0 16px;
    color: var(--text);
}
.about-bio {
    color: var(--text2);
    font-size: .92rem;
    line-height: 1.75;
    margin-bottom: 20px;
}
.about-meta {
    display: flex;
    gap: 20px;
    font-size: .82rem;
    color: rgba(168,85,247,.8);
    font-family: var(--mono);
}

@media (max-width: 768px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 0;
        justify-items: center;
    }
    .about-img {
        max-width: 220px;
    }
    .about-card {
        margin-left: 0;
        margin-top: -40px;
        text-align: center;
    }
    .about-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ═══ PROCESS ═══ */
.process { padding: 80px 0; }
.timeline { position: relative; max-width: 600px; margin: 0 auto 56px; padding-left: 56px; }
.timeline-track { position: absolute; left: 16px; top: 0; bottom: 0; width: 3px; background: #a855f7; box-shadow: 0 0 12px 2px #a855f7aa; transform-origin: top; z-index: 0; }
.timeline-step { position: relative; margin-bottom: 40px; }
.timeline-step:last-child { margin-bottom: 0; }
.step-marker { position: absolute; left: -56px; top: 0; display: flex; align-items: center; gap: 10px; }
.step-dot { width: 16px; height: 16px; border-radius: 50%; background: #a855f7; box-shadow: 0 0 16px 4px #a855f7aa; border: 2px solid #fff; }
.timeline-step:nth-child(3) .step-dot { background: var(--blue); box-shadow: 0 0 10px rgba(77,163,255,.3); }
.timeline-step:nth-child(4) .step-dot { background: var(--orange); box-shadow: 0 0 10px rgba(255,140,66,.3); }
.timeline-step:nth-child(5) .step-dot { background: var(--pink); box-shadow: 0 0 10px rgba(255,92,173,.3); }
.timeline-step:nth-child(6) .step-dot { background: var(--yellow); box-shadow: 0 0 10px rgba(255,210,63,.3); }
.step-num { font-family: var(--mono); font-size: .7rem; color: var(--text2); }
.step-body h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.step-body p { color: var(--text); font-size: .85rem; }
.tech-stack { padding: 32px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.tech-stack h3 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; text-align: center; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-cell { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--bg3); border-radius: 8px; border: 1px solid rgba(255,255,255,.04); }
.tech-label { font-family: var(--mono); font-size: .65rem; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.tech-val { font-size: .8rem; color: var(--text2); }

/* ═══ CONTACT ═══ */
.contact { padding: 80px 0 100px; }
.contact-card { max-width: 640px; margin: 0 auto; padding: 40px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 14px; }
.form-group label { font-size: .78rem; font-weight: 500; color: var(--text2); }
.form-group input, .form-group select, .form-group textarea { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: .88rem; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.btn-submit { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--accent); color: #000; font-weight: 600; font-size: .9rem; border: none; border-radius: 999px; cursor: pointer; transition: background .2s, transform .15s; }
.btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }
.form-success { margin-top: 16px; color: var(--green); font-size: .85rem; }

/* ═══ FOOTER ═══ */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { font-weight: 700; font-size: .9rem; letter-spacing: .06em; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .8rem; color: var(--text3); transition: color .2s; }
.footer-copy { font-size: .72rem; color: var(--text3); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .project-card, .project-card.reverse { grid-template-columns: 1fr; direction: ltr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { max-width: calc(100% - 24px); }
    .nav-inner { padding: 0 20px; gap: 10px; }
    .nav-links { display: none; }
    .nav-mobile-btn { display: block; }
    .nav-logo { font-size: .8rem; }
    .hero { padding-top: calc(var(--nav-h) + 40px); }
    .hero-anim { max-width: 260px; }
    .form-row { grid-template-columns: 1fr; }
    .svc-item { padding: 36px 0; }
    .svc-item h3 { font-size: 1.25rem; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .lh-rings { gap: 16px; }
    .lh-ring { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
    .nav { max-width: calc(100% - 16px); }
    .nav-inner { padding: 0 14px; gap: 6px; }
    .nav-links { display: none; }
    .nav-mobile-btn { display: block; }
    .nav-logo { font-size: .72rem; letter-spacing: .04em; }
    .hero-anim { max-width: 200px; }
    .tech-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 24px; }
    .hero-actions { flex-direction: column; }
    .svc-timeline { padding: 0 16px; }
    .proof-grid { grid-template-columns: 1fr 1fr; }
    .proof-number { font-size: 2.2rem; }
}

/* ═══════════════════════════════════════════
   CURSOR GLOW — follows mouse, accent aura
   ═══════════════════════════════════════════ */
.cursor-glow {
    display: none;
}
.cursor-glow.glow-active {
    background: radial-gradient(circle, rgba(0,232,108,.12) 0%, transparent 60%);
    width: 400px;
    height: 400px;
}

/* ═══════════════════════════════════════════
   SOCIAL PROOF — counter bar
   ═══════════════════════════════════════════ */
.proof {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
    background: var(--bg2);
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.proof-number {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -.04em;
    font-family: var(--mono);
    color: var(--accent);
}
.proof-label {
    font-size: .78rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--mono);
}

/* ═══════════════════════════════════════════
   LIGHTHOUSE SCORE RINGS
   ═══════════════════════════════════════════ */
.lh-section {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg3);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 16px;
}
.lh-title {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    color: var(--text3);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}
.lh-rings {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.lh-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.lh-ring {
    width: 72px;
    height: 72px;
}
.lh-arc {
    transition: stroke-dashoffset 1.2s ease-out;
}
.lh-label {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ═══════════════════════════════════════════
   SSL DETAIL CARD
   ═══════════════════════════════════════════ */
.ssl-detail {
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--bg3);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 14px;
}
.ssl-detail-title {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.ssl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: .82rem;
}
.ssl-row:last-of-type { border-bottom: none; }
.ssl-row span:first-child { color: var(--text3); }
.ssl-val { color: var(--text); font-family: var(--mono); font-weight: 500; }
.ssl-val.accent { color: var(--accent); }
.ssl-bar-wrap {
    margin-top: 12px;
    height: 6px;
    background: rgba(255,255,255,.04);
    border-radius: 3px;
    overflow: hidden;
}
.ssl-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* ═══════════════════════════════════════════
   BUTTON RIPPLE + MICRO-INTERACTIONS
   ═══════════════════════════════════════════ */
.btn-primary, .btn-ghost, .btn-submit, .nav-cta {
    position: relative;
    overflow: hidden;
}
.btn-primary::after, .btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s;
}
.btn-primary:active::after, .btn-submit:active::after {
    opacity: 1;
    transition: opacity 0s;
}

/* Project link hover arrow animation */
.project-link::after {
    content: '';
    display: inline-block;
    width: 0;
    transition: width .2s;
}
.project-link:hover::after {
    width: 4px;
}

/* Gradient text for section titles */
.svc-title {
    background: linear-gradient(135deg, var(--text) 0%, var(--text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth focus ring for form elements */
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,232,108,.1);
}

/* Tech cell hover */
.tech-cell {
    transition: transform .2s, border-color .2s;
}
.tech-cell:hover {
    transform: translateY(-2px);
    border-color: rgba(0,232,108,.15);
}

/* Service dot pulse on viewport */
@keyframes dotGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.svc-dot {
}

/* Footer hover lift */
.footer-links a {
    transition: color .2s, transform .2s;
}
.footer-links a:hover {
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   SKIP NAV (Accessibility)
   ═══════════════════════════════════════════ */
.skip-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 12px 24px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 0 0 12px 12px;
    transition: top .2s;
}
.skip-nav:focus {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(14,14,20,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #a855f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .35s, transform .35s, background .2s, color .2s, border-color .2s;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
@media (max-width: 480px) {
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════
   LEGAL MODALS (Impressum / Datenschutz)
   ═══════════════════════════════════════════ */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, visibility .3s;
}
.legal-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.legal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}
.legal-content {
    position: relative;
    z-index: 1;
    width: 92vw;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.legal-content::-webkit-scrollbar { width: 6px; }
.legal-content::-webkit-scrollbar-track { background: transparent; }
.legal-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    padding-right: 40px;
}
.legal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 24px 0 8px;
}
.legal-body h3:first-child {
    margin-top: 0;
}
.legal-body h4 {
    font-size: .88rem;
    font-weight: 600;
    margin: 16px 0 6px;
}
.legal-body p {
    color: var(--text2);
    font-size: .88rem;
    line-height: 1.75;
    margin-bottom: 8px;
}
.legal-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(0,232,108,.3);
    transition: text-decoration-color .2s;
}
.legal-body a:hover {
    text-decoration-color: var(--accent);
}
@media (max-width: 768px) {
    .legal-content { width: 96vw; padding: 24px; max-width: 100%; }
}

/* ═══════════════════════════════════════════
   FOOTER LEGAL LINKS
   ═══════════════════════════════════════════ */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-legal a {
    font-size: .75rem;
    color: var(--text3);
    transition: color .2s;
    cursor: pointer;
}
.footer-legal a:hover {
    color: var(--accent);
}
.footer-divider {
    color: var(--border);
    font-size: .75rem;
}

/* ═══════════════════════════════════════════
   FOCUS STYLES (Accessibility)
   ═══════════════════════════════════════════ */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
/* ═══════════════════════════════════════════
   PRELOADER — Full screen HP logo animation
   ═══════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.preloader-logo {
    font-family: var(--mono);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .12em;
    animation: preloaderPulse 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.05); }
}
.preloader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
    overflow: hidden;
}
.preloader-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width .3s ease;
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS BAR — top of viewport
   ═══════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    z-index: 10000;
    transition: width .05s linear;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0,232,108,.4);
}

/* ═══════════════════════════════════════════
   HERO SHAPES
   ═══════════════════════════════════════════ */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .6;
    animation: none;
}
.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    background: radial-gradient(circle, rgba(0,232,108,.04), transparent 70%);
    animation-delay: 0s;
    animation-duration: 22s;
}
.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -3%;
    background: radial-gradient(circle, rgba(77,163,255,.04), transparent 70%);
    animation-delay: -4s;
    animation-duration: 18s;
}
.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, rgba(255,92,173,.03), transparent 70%);
    animation-delay: -8s;
    animation-duration: 25s;
}
.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(255,210,63,.03), transparent 70%);
    animation-delay: -12s;
    animation-duration: 20s;
}
.shape-5 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0,232,108,.02), transparent 70%);
    animation-delay: -6s;
    animation-duration: 28s;
}
@keyframes shapeFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 1; }
    90% { opacity: 1; }
}

/* ═══════════════════════════════════════════
   3D CARD TILT — perspective on project cards
   ═══════════════════════════════════════════ */
.project-visual {
    /* 3D tilt disabled for performance */
}
.browser-mock.tilting {
    /* disabled */
}

/* ═══════════════════════════════════════════
   CHAR SPLIT ANIMATION — hero title
   ═══════════════════════════════════════════ */
.char-wrap {
    display: inline-block;
    overflow: hidden;
}
.char {
    opacity: 0;
    transform: translateY(100%);
}
.char.space {
    width: .3em;
}

/* ═══════════════════════════════════════════
   ENHANCED FORM — floating labels, char count
   ═══════════════════════════════════════════ */
.form-group.floating {
    position: relative;
}
.form-group.floating label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: .88rem;
    color: var(--text3);
    pointer-events: none;
    transition: all .2s ease;
    background: transparent;
    padding: 0 4px;
    z-index: 1;
}
.form-group.floating textarea ~ label {
    top: 16px;
    transform: none;
}
.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    transform: none;
    font-size: .68rem;
    color: var(--accent);
    background: var(--bg2);
    letter-spacing: .05em;
}
.char-count {
    display: block;
    text-align: right;
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--text3);
    transition: color .2s;
}
.char-count.warning { color: var(--orange); }
.char-count.full { color: var(--pink); }

/* Form input validation states */
.form-group input.valid,
.form-group textarea.valid {
    border-color: rgba(0,232,108,.3);
}
.form-group input.invalid {
    border-color: rgba(255,92,173,.3);
}

/* ═══════════════════════════════════════════
   TERMINAL EASTER EGG
   ═══════════════════════════════════════════ */
.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(0,0,0,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s, visibility .4s;
}
.terminal-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.terminal-box {
    width: 90vw;
    max-width: 700px;
    max-height: 80vh;
    background: #0c0c14;
    border: 1px solid rgba(0,232,108,.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,232,108,.1), 0 20px 80px rgba(0,0,0,.5);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(18,18,28,.95);
    border-bottom: 1px solid rgba(0,232,108,.08);
}
.terminal-bar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-bar-title {
    flex: 1;
    text-align: center;
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--text3);
    letter-spacing: .08em;
}
.terminal-body {
    padding: 20px;
    font-family: var(--mono);
    font-size: .82rem;
    line-height: 1.8;
    color: var(--accent);
    overflow-y: auto;
    max-height: calc(80vh - 42px);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.terminal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.t-line {
    opacity: 0;
    transform: translateX(-8px);
    white-space: pre-wrap;
    word-break: break-all;
}
.t-line.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity .3s, transform .3s;
}
.t-prompt { color: var(--blue); }
.t-info { color: var(--text2); }
.t-highlight { color: var(--yellow); }
.t-success { color: var(--green); }
.t-pink { color: var(--pink); }
.t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    animation: termBlink .8s step-start infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}
@keyframes termBlink {
    0%, 100% { opacity: 1; }
}

/* ═══════════════════════════════════════════
   SECTION TITLE GRADIENT (enhanced)
   ═══════════════════════════════════════════ */
[data-reveal] .svc-title,
.process .svc-title {
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════
   SMOOTH PAGE TRANSITIONS
   ═══════════════════════════════════════════ */
.page-ready .services,
.page-ready .projects,
.page-ready .proof,
.page-ready .process,
.page-ready .contact,
.page-ready .testimonials,
.page-ready .faq {
    animation: sectionFadeIn .3s ease-out both;
}
@keyframes sectionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═══════════════════════════════════════════
   v10.0 — COOKIE CONSENT BANNER (DSGVO)
   ═══════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    background: rgba(14,14,20,.92);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 18px 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s;
}
.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cookie-text {
    font-size: .82rem;
    color: var(--text2);
    line-height: 1.6;
    flex: 1;
}
.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(0,232,108,.3);
}
.cookie-text a:hover {
    text-decoration-color: var(--accent);
}
.cookie-actions {
    flex-shrink: 0;
}
.cookie-accept {
    padding: 8px 24px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: .82rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.cookie-accept:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .cookie-inner { flex-direction: column; text-align: center; gap: 14px; }
}
/* ═══════════════════════════════════════════
   v10.0 — SECTION SCROLL DOTS (side nav)
   ═══════════════════════════════════════════ */
.section-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transition: opacity .4s;
}
.section-dots.visible {
    opacity: 1;
}
.sec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.15);
    transition: background .3s, border-color .3s, transform .3s, box-shadow .3s;
    cursor: pointer;
}
.sec-dot:hover {
    background: rgba(255,255,255,.25);
    transform: scale(1.3);
}
.sec-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0,232,108,.4);
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .section-dots { display: none; }
}

/* ═══════════════════════════════════════════
   v10.0 — CLICK SPARK EFFECT
   ═══════════════════════════════════════════ */
.click-spark {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 0;
    height: 0;
}
.click-spark.active .spark-particle {
    animation: sparkBurst .5s ease-out forwards;
}
.spark-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
}
@keyframes sparkBurst {
    0% { opacity: 1; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}
/* ═══════════════════════════════════════════
   v10.0 — SVG WAVE SECTION DIVIDERS
   ═══════════════════════════════════════════ */
.wave-divider {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    margin: -1px 0;
}
.wave-divider svg {
    width: 100%;
    height: 60px;
    display: block;
}
.wave-divider.flip {
    transform: scaleY(-1);
}
/* ═══════════════════════════════════════════
   v10.0 — SERVICE ICONS
   ═══════════════════════════════════════════ */
.svc-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
    filter: saturate(0.8);
    transition: transform .3s, filter .3s;
}
.svc-item:hover .svc-icon {
    transform: scale(1.2) rotate(-5deg);
    filter: saturate(1.2);
}

/* ═══════════════════════════════════════════
   v10.0 — SERVICE HOVER GLOW
   ═══════════════════════════════════════════ */
.svc-item {
    transition: transform .3s;
}
.svc-item::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(0,232,108,.06), transparent 70%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    z-index: 0;
}
.svc-item:hover::before {
    opacity: 1;
}
.svc-item:nth-child(2)::before { background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(77,163,255,.06), transparent 70%); }
.svc-item:nth-child(4)::before { background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255,92,173,.06), transparent 70%); }
.svc-item:nth-child(5)::before { background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255,210,63,.06), transparent 70%); }

/* ═══════════════════════════════════════════
   v10.0 — TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials {
    padding: 80px 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}
.testimonial-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,232,108,.15);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.testimonial-quote {
    font-size: .9rem;
    color: var(--text2);
    line-height: 1.75;
    font-style: italic;
    position: relative;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}
.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
}
.testimonial-role {
    font-size: .72rem;
    color: var(--text3);
    font-family: var(--mono);
}
@media (max-width: 768px) {
    .testimonial-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* ═══════════════════════════════════════════
   v10.0 — FAQ ACCORDION
   ═══════════════════════════════════════════ */
.faq {
    padding: 80px 0;
}
.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.faq-item.open {
    border-color: rgba(0,232,108,.2);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: .92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color .2s;
}
.faq-question:hover {
    color: var(--accent);
}
.faq-icon {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
    font-weight: 300;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .4s;
    padding: 0 24px;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 18px;
}
.faq-answer p {
    color: var(--text2);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════
   v10.0 — HONEYPOT FIELD HIDE
   ═══════════════════════════════════════════ */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ═══════════════════════════════════════════
   v10.0 — ANIMATED GRADIENT BORDER (contact)
   ═══════════════════════════════════════════ */
.contact-card {
    position: relative;
}
.contact-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--border-angle, 0deg), var(--accent), var(--blue), var(--pink), var(--accent));
    border-radius: calc(var(--radius) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity .6s;
    animation: borderSpin 4s linear infinite;
}
.contact-card:hover::before,
.contact-card:focus-within::before {
    opacity: 1;
}
@keyframes borderSpin {
    to { --border-angle: 360deg; }
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ═══════════════════════════════════════════
   v10.0 — FOOTER REDESIGN
   ═══════════════════════════════════════════ */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-tagline {
    font-size: .85rem;
    color: var(--text3);
    line-height: 1.6;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-heading {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--mono);
}
.footer-nav .footer-links {
    flex-direction: column;
    gap: 10px;
}
.footer-cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-sm {
    padding: 8px 20px;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
.footer-response {
    font-size: .72rem;
    color: var(--text3);
    font-family: var(--mono);
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.footer-social-link:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-nav .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .footer-cta-wrap { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* ═══════════════════════════════════════════
   v10.0 — HERO TYPEWRITER LABEL
   ═══════════════════════════════════════════ */
.hero-label .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: twBlink .7s step-start infinite;
}
@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   v10.0 — RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .cookie-inner { padding: 0 18px; }
    .faq-question { padding: 14px 18px; font-size: .85rem; }
    .faq-answer { padding: 0 18px; }
    .faq-item.open .faq-answer { padding: 0 18px 14px; }
    .testimonial-card { padding: 22px 18px; }
    .wave-divider svg { height: 40px; }
}

/* ═══════════════════════════════════════════
   v11.0 — TEXT SCRAMBLE EFFECT
   ═══════════════════════════════════════════ */
[data-scramble] .scramble-char {
    display: inline-block;
    transition: opacity .08s;
}
[data-scramble] .scramble-char.scrambling {
    color: var(--accent);
    opacity: .7;
}

/* ═══════════════════════════════════════════
   v11.0 — TECH MARQUEE (Trust Bar)
   ═══════════════════════════════════════════ */
.tech-marquee {
    padding: 28px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
    background: var(--bg2);
    position: relative;
}
.tech-marquee::before,
.tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.tech-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg2), transparent);
}
.tech-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg2), transparent);
}
.marquee-track {
    display: flex;
    gap: 48px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-item {
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text3);
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .3s;
    flex-shrink: 0;
}
.marquee-item:hover {
    color: var(--accent);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   v11.0 — TESTIMONIAL CAROUSEL
   ═══════════════════════════════════════════ */
.testimonial-carousel {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.testimonial-carousel .testimonial-card {
    min-width: 100%;
    flex-shrink: 0;
    margin: 0;
}
.testimonial-stars {
    color: var(--yellow);
    font-size: .85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}
.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.carousel-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.05);
}
.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background .3s, transform .3s, box-shadow .3s;
}
.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0,232,108,.4);
}
/* ═══════════════════════════════════════════
   v11.0 — FLOATING CTA
   ═══════════════════════════════════════════ */
.floating-cta {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 89;
    opacity: 0;
    pointer-events: none;
    transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s;
}
.floating-cta.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.floating-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: .88rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    transition: background .2s, transform .15s, box-shadow .3s, border-color .2s;
    position: relative;
}
.floating-cta-btn:hover {
    background: var(--bg3);
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.floating-cta-pulse {
    display: none;
}
@keyframes ctaPulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.15); opacity: 0; }
}
@media (max-width: 768px) {
    .floating-cta { bottom: 20px; }
    .floating-cta-btn { padding: 10px 22px; font-size: .82rem; }
}

/* ═══════════════════════════════════════════
   v11.0 — KEYBOARD SHORTCUTS MODAL
   ═══════════════════════════════════════════ */
.shortcuts-modal {
    position: fixed;
    inset: 0;
    z-index: 350;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, visibility .3s;
}
.shortcuts-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.shortcuts-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}
.shortcuts-content {
    position: relative;
    z-index: 1;
    width: 92vw;
    max-width: 480px;
    padding: 36px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.shortcuts-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-right: 40px;
}
.shortcuts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.shortcut-row:last-child { border-bottom: none; }
.shortcut-row kbd {
    font-family: var(--mono);
    font-weight: 500;
    color: var(--text);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    min-width: fit-content;
    white-space: nowrap;
    box-shadow: 0 2px 0 var(--border);
}
.shortcut-row span {
    font-size: .85rem;
    color: var(--text2);
}

/* ═══════════════════════════════════════════
   v11.0 — SECTION CLIP-PATH REVEAL
   ═══════════════════════════════════════════ */
.section-reveal {
    clip-path: inset(8% 0 8% 0);
    opacity: 0;
    transition: clip-path .8s cubic-bezier(.4,0,.2,1), opacity .8s;
}
.section-reveal.revealed {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

/* ═══════════════════════════════════════════
   v11.0 — NUMBER ODOMETER
   ═══════════════════════════════════════════ */
/* Odometer removed — using simple countUp */

/* ═══════════════════════════════════════════
   v11.0 — LOADING SKELETON
   ═══════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, var(--bg3) 25%, rgba(255,255,255,.06) 50%, var(--bg3) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.stat-card .skeleton {
    width: 80px;
    height: 20px;
    display: inline-block;
}

/* ═══════════════════════════════════════════
   v12.0 — SVG LINE-DRAW SERVICE ICONS
   ═══════════════════════════════════════════ */
.svc-svg-icon {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 8px;
    transition: transform .3s, filter .3s;
}
.svc-svg-icon circle,
.svc-svg-icon line,
.svc-svg-icon path,
.svc-svg-icon rect,
.svc-svg-icon ellipse,
.svc-svg-icon polyline,
.svc-svg-icon polygon {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1);
}
.svc-item.icon-drawn .svc-svg-icon circle,
.svc-item.icon-drawn .svc-svg-icon line,
.svc-item.icon-drawn .svc-svg-icon path,
.svc-item.icon-drawn .svc-svg-icon rect,
.svc-item.icon-drawn .svc-svg-icon ellipse,
.svc-item.icon-drawn .svc-svg-icon polyline,
.svc-item.icon-drawn .svc-svg-icon polygon {
    stroke-dashoffset: 0;
}
.svc-item:hover .svc-svg-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 8px currentColor);
}

/* ═══════════════════════════════════════════
   v12.0 — PROGRESSIVE TEXT HIGHLIGHT
   ═══════════════════════════════════════════ */
[data-highlight] .hl-word {
    display: inline;
    background-position: 100% 0;
    background-image: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position .4s ease, -webkit-text-fill-color .4s;
    -webkit-text-fill-color: var(--text2);
}
[data-highlight] .hl-word.highlighted {
    background-position: 0 0;
    -webkit-text-fill-color: var(--accent);
}

/* ═══════════════════════════════════════════
   v12.0 — MORPHING SVG BLOB
   ═══════════════════════════════════════════ */

.nav-links a .nav-char {
    display: inline-block;
    transition: transform .3s cubic-bezier(.4,0,.2,1), color .2s;
}
.nav-links a:hover .nav-char {
    animation: letterWave .5s ease forwards;
    animation-delay: calc(var(--i) * .03s);
}
@keyframes letterWave {
    0% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   v12.0 — TESTIMONIAL 3D TILT
   ═══════════════════════════════════════════ */
.testimonial-card {
    transition: transform .3s cubic-bezier(.25,.46,.45,.94), border-color .3s, box-shadow .3s;
    perspective: 800px;
}
.testimonial-card.tilting {
    transition: transform .1s ease-out, border-color .3s, box-shadow .3s;
}

/* ═══════════════════════════════════════════
   v12.0 — SECTION BACKGROUND TRANSITIONS
   ═══════════════════════════════════════════ */
body {
    transition: background-color .8s ease;
}
body.section-services-bg { background-color: #090B0F; }
body.section-projects-bg { background-color: #0A0A10; }
body.section-process-bg  { background-color: #09090E; }
body.section-faq-bg      { background-color: #0A0B0E; }
body.section-contact-bg  { background-color: #080A0D; }

/* ═══════════════════════════════════════════
   v12.0 — INTERACTIVE TERMINAL STYLES
   ═══════════════════════════════════════════ */
.t-input-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}
.t-input-prompt {
    color: var(--blue);
    font-family: var(--mono);
    font-size: .82rem;
    flex-shrink: 0;
}
.t-input {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .82rem;
    flex: 1;
    outline: none;
    caret-color: var(--accent);
}
.t-output {
    color: var(--text2);
    font-family: var(--mono);
    font-size: .82rem;
    margin-top: 4px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   v13.0 — SCROLL-DRIVEN PROCESS TRACKER
   ═══════════════════════════════════════════ */
.timeline-step .step-dot {
    transition: background .4s, box-shadow .4s, transform .4s;
}
.timeline-step .step-body {
    transition: opacity .4s;
    opacity: 1;
}

/* ═══════════════════════════════════════════
   v13.0 — BACK-TO-TOP & SECTION DIM
   ═══════════════════════════════════════════ */
.btt-ring {
    position: absolute;
    inset: 0;
    width: 44px;
    height: 44px;
    margin: auto;
}
.btt-ring-bg { opacity: .2; }
.btt-ring-fill {
    transition: stroke-dashoffset .15s linear;
}
.btt-arrow {
    position: relative;
    z-index: 1;
}
section.section-dimmed {
    opacity: .35;
    transition: opacity .6s ease;
}
section.section-focus {
    opacity: 1;
    transition: opacity .6s ease;
}

/* ═══════════════════════════════════════════
   v14.0 — FORM FIELD MICRO-ANIMS
   ═══════════════════════════════════════════ */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    animation: fieldFocusPop .3s cubic-bezier(.4,0,.2,1);
}
@keyframes fieldFocusPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.01); }
    100% { transform: scale(1); }
}
.form-group .field-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: .85rem;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   v14.0 — SECTION VISITED CHECKMARKS
   ═══════════════════════════════════════════ */
.sec-dot.dot-visited::after {
    content: '✓';
    position: absolute;
    top: -2px;
    right: -8px;
    font-size: .5rem;
    color: var(--accent);
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: opacity .4s;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   v14.0 — COPY EMAIL CLICK FEEDBACK
   ═══════════════════════════════════════════ */
.footer-email-copy {
    position: relative;
    cursor: pointer;
}
.footer-email-copy.copied::after {
    content: 'Kopiert!';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--mono);
    font-size: .6rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    animation: copiedPop .6s ease forwards;
    pointer-events: none;
}
@keyframes copiedPop {
    0%   { opacity: 0; transform: translateX(-50%) translateY(4px); }
    30%  { opacity: 1; transform: translateX(-50%) translateY(-4px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus { animation: none !important; }
}

/* ═══════════════════════════════════════════
   v15.0 — TEXT SELECTION STYLE
   ═══════════════════════════════════════════ */
::selection {
    background: rgba(0,232,108,.25);
    color: var(--text);
}
::-moz-selection {
    background: rgba(0,232,108,.25);
    color: var(--text);
}

/* ═══════════════════════════════════════════
   v15.0 — TESTIMONIAL AUTO-ROTATE PROGRESS BAR
   ═══════════════════════════════════════════ */
.carousel-progress {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}
.carousel-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width .1s linear;
}

/* ═══════════════════════════════════════════
   v15.0 — SKELETON SHIMMER LOADING
   ═══════════════════════════════════════════ */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background: var(--bg2);
}
.skeleton-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
    animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════
   v15.0 — KEYBOARD FOCUS RING
   ═══════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(0,232,108,.15);
}

/* ═══════════════════════════════════════════
   v15.0 — CTA URGENCY PULSE
   ═══════════════════════════════════════════ */
.floating-cta-btn.urgency-1 .floating-cta-pulse {
    animation-duration: 2s;
}
.floating-cta-btn.urgency-2 .floating-cta-pulse {
    animation-duration: 1.2s;
}
.floating-cta-btn.urgency-3 .floating-cta-pulse {
    animation-duration: .7s;
    box-shadow: 0 0 20px rgba(0,232,108,.4);
}

/* ═══════════════════════════════════════════
   v15.0 — STAGGER CHILDREN
   ═══════════════════════════════════════════ */
.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.stagger-child.stagger-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   v15.0 — PRINT STYLESHEET
   ═══════════════════════════════════════════ */
@media print {
    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 12pt;
    }
    .nav, .preloader, .scroll-progress,
    .section-dots, .click-spark, .cookie-banner, .back-to-top,
    .floating-cta, .shortcuts-modal,
    .hero-bg, .wave-divider, .tech-marquee,
    .cursor-glow { display: none !important; }
    .hero { min-height: auto; padding: 30pt 0; }
    .hero-title {
        -webkit-text-fill-color: #111 !important;
        background: none !important;
        font-size: 22pt;
    }
    a { color: #111; text-decoration: underline; }
    a::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #666; }
    .project-card, .testimonial-card, .svc-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .footer::after {
        content: 'heinemannproject.dev';
        text-align: center;
        margin-top: 12pt;
        font-size: 10pt;
        color: #666;
    }
}

/* ═══════════════════════════════════════════
   v16.0 — LIGHTWEIGHT CSS REVEALS (replaces GSAP)
   ═══════════════════════════════════════════ */

/* Hero entrance */
.hero-anim,
.hero-content {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.hero-anim.hero-ready,
.hero-content.hero-ready {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════
   HERO SVG ANIMATION — pure CSS with ZOOM
   Timeline:
     0.0–0.6s  SVG fades in
     0.5–1.8s  Code lines type in, cursor blinks, keys flash
     1.8–3.0s  ZOOM IN on screen area (scale ~3.85x)
     2.6–3.2s  Glow pulse
     3.0–3.5s  Code fades out → web preview fades in
     3.5–4.8s  ZOOM OUT back to full view
     4.8–5.2s  Glow fades
     5.0+      Hero text content fades in
   ═══════════════════════════════════════════ */

/* ─── SVG zoom animation on the <svg> element ─── */
.hero-ready .hero-svg {
    /* Zoom centers on the monitor screen: (200, 146) → 50% 52% */
    transform-origin: 50% 52.14%;
    animation: heroZoom 5s cubic-bezier(.4,0,.2,1) .4s forwards;
    overflow: visible;
}

@keyframes heroZoom {
    /*  0% = normal view */
    0%   { transform: scale(1); }
    /* 32% ≈ 1.6s → start zoom in */
    32%  { transform: scale(1); }
    /* 55% ≈ 2.75s → fully zoomed in */
    55%  { transform: scale(3.6); }
    /* 62% ≈ 3.1s → hold zoomed while code→web */
    62%  { transform: scale(3.6); }
    /* 88% ≈ 4.4s → zoom back out */
    88%  { transform: scale(1); }
    100% { transform: scale(1); }
}

/* ─── Phase 1: Code lines type in (staggered) ─── */
.hero-ready .cl {
    animation: svgFadeIn .15s ease-out forwards;
}
.hero-ready .cl:nth-child(1) { animation-delay: .5s; }
.hero-ready .cl:nth-child(2) { animation-delay: .7s; }
.hero-ready .cl:nth-child(3) { animation-delay: .9s; }
.hero-ready .cl:nth-child(4) { animation-delay: 1.1s; }
.hero-ready .cl:nth-child(5) { animation-delay: 1.3s; }
.hero-ready .cl:nth-child(6) { animation-delay: 1.5s; }

/* ─── Phase 1b: Cursor appears, blinks, hides ─── */
.hero-ready .a-cursor {
    animation: cursorAnim 2.6s step-end .4s forwards;
}

/* ─── Phase 2: Keys flash while typing ─── */
.hero-ready .a-key:nth-of-type(1) { animation: keyFlash .14s ease-out .55s 3; }
.hero-ready .a-key:nth-of-type(2) { animation: keyFlash .14s ease-out .75s 3; }
.hero-ready .a-key:nth-of-type(3) { animation: keyFlash .14s ease-out .95s 3; }
.hero-ready .a-key:nth-of-type(4) { animation: keyFlash .14s ease-out 1.15s 3; }
.hero-ready .a-key:nth-of-type(5) { animation: keyFlash .14s ease-out 1.35s 3; }

/* ─── Phase 3: Glow pulse (during zoom) ─── */
.hero-ready .a-glow {
    animation: glowPulse 2s ease-in-out 2.2s forwards;
}

/* ─── Phase 4: Code fades out, web preview fades in (while zoomed) ─── */
.hero-ready .a-code {
    animation: svgFadeOut .35s ease-out 3s forwards;
}
.hero-ready .a-web {
    animation: svgFadeIn .4s ease-out 3.2s forwards;
}
/* Web parts stagger in */
.hero-ready .wp:nth-child(1)  { animation: svgFadeIn .1s ease-out 3.25s forwards; }
.hero-ready .wp:nth-child(2)  { animation: svgFadeIn .1s ease-out 3.3s forwards; }
.hero-ready .wp:nth-child(3)  { animation: svgFadeIn .1s ease-out 3.35s forwards; }
.hero-ready .wp:nth-child(4)  { animation: svgFadeIn .1s ease-out 3.4s forwards; }
.hero-ready .wp:nth-child(5)  { animation: svgFadeIn .1s ease-out 3.45s forwards; }
.hero-ready .wp:nth-child(6)  { animation: svgFadeIn .1s ease-out 3.5s forwards; }
.hero-ready .wp:nth-child(7)  { animation: svgFadeIn .1s ease-out 3.55s forwards; }
.hero-ready .wp:nth-child(8)  { animation: svgFadeIn .1s ease-out 3.6s forwards; }
.hero-ready .wp:nth-child(9)  { animation: svgFadeIn .1s ease-out 3.65s forwards; }
.hero-ready .wp:nth-child(10) { animation: svgFadeIn .1s ease-out 3.7s forwards; }

/* ─── Keyframes ─── */
@keyframes svgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes svgFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes cursorAnim {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    8%   { opacity: 0; }
    12%  { opacity: 1; }
    16%  { opacity: 0; }
    20%  { opacity: 1; }
    24%  { opacity: 0; }
    28%  { opacity: 1; }
    32%  { opacity: 0; }
    36%  { opacity: 1; }
    40%  { opacity: 0; }
    44%  { opacity: 1; }
    48%  { opacity: 0; }
    55%  { opacity: 1; }
    65%  { opacity: 0; }
    75%  { opacity: 1; }
    85%  { opacity: 0; }
    92%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes keyFlash {
    0%   { opacity: 0; }
    50%  { opacity: .8; }
    100% { opacity: 0; }
}
@keyframes glowPulse {
    0%   { opacity: 0; }
    35%  { opacity: .2; }
    65%  { opacity: .15; }
    100% { opacity: 0; }
}

/* Reduced motion — skip animation, show final state */
@media (prefers-reduced-motion: reduce) {
    .hero-ready .hero-svg { animation: none; }
    .hero-ready .cl,
    .hero-ready .a-web,
    .hero-ready .wp { animation: none; opacity: 1; }
    .hero-ready .a-code { animation: none; opacity: 0; }
    .hero-ready .a-cursor,
    .hero-ready .a-key,
    .hero-ready .a-glow { animation: none; opacity: 0; }
}

/* Generic scroll reveal for all observed elements */
[data-reveal],
.svc-item,
.svc-dot,
.step-dot,
.tech-cell,
.faq-item,
.project-stack {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease-out, transform .4s ease-out;
}
.svc-dot,
.step-dot {
    transform: scale(0);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s ease-out;
}
[data-reveal].revealed,
.svc-item.revealed,
.svc-dot.revealed,
.step-dot.revealed,
.tech-cell.revealed,
.faq-item.revealed,
.project-stack.revealed {
    opacity: 1;
    transform: none;
}

/* Staggered reveal for children inside project-stack */
.project-stack.revealed > * {
    opacity: 1;
    transform: none;
}

/* Nuclear failsafe: if JS errors, body gets .reveal-all — show everything */
.reveal-all .hero-anim,
.reveal-all .hero-content,
.reveal-all [data-reveal],
.reveal-all .svc-item,
.reveal-all .svc-dot,
.reveal-all .step-dot,
.reveal-all .tech-cell,
.reveal-all .faq-item,
.reveal-all .project-stack {
    opacity: 1 !important;
    transform: none !important;
}

/* CSS-only failsafe: auto-reveal after 4s if JS observer hasn't fired */
@keyframes cssAutoReveal {
    to { opacity: 1; transform: none; }
}
.page-ready [data-reveal]:not(.revealed),
.page-ready .svc-item:not(.revealed),
.page-ready .tech-cell:not(.revealed),
.page-ready .faq-item:not(.revealed),
.page-ready .project-stack:not(.revealed) {
    animation: cssAutoReveal .5s ease-out 4s forwards;
}

/* ═══════════════════════════════════════════
   v15.0 — SCROLL SNAP (Desktop)
   ═══════════════════════════════════════════ */
